Finding the laws of simple worlds, and proving them
lattice-lab studies cellular automata on finite lattices: square, hexagonal and triangular. Each claim goes through a loop of machine checks: a simulation, a test registered in advance, and a proof in Lean. More and more of the proposing and proving is done by AI agents, and machines judge their work too.
A loop in which nobody marks their own work
Finding a pattern in data is easy. Knowing whether it is real is hard: with enough rules, sizes and laws to try, chance supplies patterns too. So every stage of our loop hands its output to a check that the stage cannot change:
- Experiment. LatticeLife runs the automata and says what each number means, including when it is only a bound.
- Law. Kepler fits closed-form laws with error bars, and ranks them against their rivals.
- Registered test. A law's predictions at untested sizes are written to a hash-chained ledger and pushed to GitHub before anyone computes those sizes.
- Proof. What survives is proved in Lean 4. A theorem counts only if it builds and rests on Lean's three standard axioms.
- Agents. AI agents, given a problem card and the proof library, propose the mechanism and write the proof. An automatic judge decides whether it counts.
The model, in detail, includes the real ledger of one study, to check yourself, and a record of every step an agent took.
One registered test: laws from small grids, tried on grids sixteen times as wide
zooming out · 124 of 124 heldHow much a world's live fraction varies from one start to the next, against the side of its grid. On sides 32 to 256 the spread fell as one over the side, as it would if the world were many independent patches. That law was written to the ledger, with a prediction and the range it would accept at each side from 512 to 4,096, before any grid that size was run. The eight drawn here held, and so did every other prediction of the test.
Point at a side, or tap it, for its readings.
The numbers in this chart
The spread is the standard deviation, over the starts, of the share of cells alive at the end of a run: 32 starts at each side up to 1,024, and 16 at 2,048 and 4,096. Both axes are logarithmic. The lines are the registered laws, 0.536047 / side for Life against HighLife and 0.257311 / side for the soup, their amplitudes fitted on sides 32 to 256. A bar is the range a prediction would accept: 3.29 combined standard errors either side, in logarithms, the 99.9% level. The bars are longer at 2,048 and 4,096, where there were fewer starts. At those four sides the two worlds' bars and marks are drawn a few pixels apart so that both can be seen.
Every registered test, by the day it was registered
one mark for each row of the table belowThe tests fall in two stretches of work: from 17 October to 3 November the parity laws, the atlas, the agents with the cubes and ninth powers, and the quantum codes; and from 23 to 30 November the ladder that zooms out. Every line of work with more than one test has had a miss.
Point at a mark, or tap it, to see which test it is.
The numbers in this chart
Each mark is set on the day, in UTC, that the first prediction of its test was written to the test's ledger; the marks of one day are stacked, earliest at the bottom. The axis leaves out 4 to 22 November, when no test was registered. How each test came out is as its row in the table below records it.
Registered tests, misses included
predictions written before the runsIn nine of these tests what we registered was refuted, and in four more a part of it failed. We count that as the method working: where a corrected claim followed, it was registered and tested again.
| Claim | Tested at | Outcome |
|---|---|---|
| Square parity law, P(n) = 2v(2sord(m) − 1) | 45 sizes by simulation, then all 198 sizes from 3 to 200 exactly | held at all its rival refuted at all 10 sizes where they differ |
| Hexagon parity law, first form | 70 sizes | refuted at 74, 148 and 190, by a factor of 3 |
| Hexagon parity law, corrected | 100 new sizes, 202 to 400 | held at all then proved for every even n |
| Triangle parity laws | 154 sizes | held at all |
| Kepler finds the hexagon law itself | 8 registered expectations | 8 of 8 |
| B2/S34 settling time grows like log L | hexagon tori up to L = 1024, 100 soups each | held the power law rejected (p = 10−9) |
| Kepler's laws for 42 linear rules, 38 never studied | 1,930 new (rule, size) pairs | held every rule with a law kept one |
| Rules that do not split reach the full bound | 113 predictions on 116 new rules | refuted 7 failed, which revealed cubes and dilations |
| The refined statement, as a fixed procedure | 11,358 predictions, 344 new rules | refuted 43 failed (0.4%), which revealed the twisted power |
| The laws the agents proved, at sizes nobody had computed | 15, 40 and 20 predictions in three pilots | 75 of 75 |
| The fourth agent's mechanism for m = 37, at a held-out grid registered before it started | 180 claims at 29 held-out sizes | 180 of 180 |
| The fifth agent's mechanism for m = 25, at a held-out grid registered before it started | 414 claims at 43 held-out sizes, on the atlas and the square family | 414 of 414 |
| Our expectation that the cube confinements left in the square family are chance | all 32,767 rules at 14 sizes, registered before the run | refuted at 6: twisted pairs at four, and 16 rules at m = 37 nobody could then explain |
| The same expectation, with both pilots' mechanisms counted | all 32,767 rules at 17 new sizes, 77 to 125 | refuted at 95, 101 and 111, by exactly the nine rules the sixth agent explained, where it predicted them; nothing else |
| The sixth agent's mechanism, at the held-out sizes registered before it started | 482 claims at the atlas's 29 held-out sizes and the census's 17 | 482 of 482 not all blind: it had checked its own nine rules at 95, 101 and 111 |
| Claude Fable's criterion, from a consultation, for when rule 90 is confined to the cubes at a prime, and its pyramid rules | every eligible prime from 302 to 20,000, 405 in all, and 4 pyramid primes | 405 of 405 and the pyramids 4 of 4 |
| That rule 4850's ninth powers at m = 37 are a coincidence, in a test Claude Fable proposed | all 2,064,384 new rules of radius 5 | refuted 5 unexplained against 0.0066 expected; four of them are neither multiples nor images of 4850 |
| A mechanism, not chance, behind more ninth powers at m = 37, among radius-6 rules the seventh agent was not given | all 266,338,304 rules that use an orbit of radius 6 | held 37 unexplained against 0.70 expected. The agent's condition covers 35, but it had computed this census itself, so that is not a prediction; none of its 533 claims at held-out sizes was false |
| A quantum code's logical qubits, read off the torus's characters | 3,000 random bivariate bicycle codes at 20 sizes, and 12 published entries (ten codes, two in two versions), IBM's gross code among them | 3,000 of 3,000 agree with plain linear algebra, and all 12 published values are reproduced |
| The same 12 codes' published distances, computed blind by an exhaustive search and an integer program | 12 published entries, up to 288 qubits; method checks on 200 random, 14 toric and 9 new codes | 12 of 12 reproduced, d = 18 for the largest in 3 minutes. method check failed once: the solver reported a wrong optimum on 1 of 200 random codes |
| The distance tools, with the solver fault fixed, on codes nobody had looked at | fresh codes at reserved sizes; the known fault cases; 142 codes of the kinds where the fault lives, with the unfixed solver alongside | held every part; the unfixed solver was wrong on 3 of the fresh codes |
| The open distances of two larger published codes, [[360,12,≤24]] and [[756,16,≤34]] | an exhaustive search split across 4 cores, with a stronger cut tested on fresh codes first, and checked logicals | held [[360,12]] has d = 24 exactly; [[756,16]] has 30 ≤ d ≤ 34 |
| A census's predictions for every weight-6 code on 122 sizes it held back, up to 300 qubits, among them that no code beats the published record k d²/n = 13.5 | 253,370 code classes, registered before any was computed | refuted [[294,10,20]] scores 13.6, above the published [[288,12,18]]; an independent check of 20 frontier codes with other tools agreed everywhere |
| The 154 classes that run left unfinished have d = 24, as the parity of d predicted | 154 classes on 9 tori, rerun with a second distance tool | 154 of 154 |
| Laws refitted on the census, tested on 110 new sizes from 302 to 400 qubits: the best distance under a fitted envelope, growth past the record d/√n, a new record k d²/n, but none above 17 | 633,390 code classes, registered before any was computed; a second distance tool, with a checked logical for every distance | failed growth and a new record held ([[384,12,24]] scores 18.0), but that breaks the ceiling of 17, and one code at 306 qubits is a step above the envelope |
| The 53 classes that run left at its 4-hour limit, all at 396 qubits, settle with no practical limit | registered before any class reached the limit; up to 14 days per class | running 17 of 53 so far, all d = 30: [[396,4,30]], at 1.51 √n the highest in the census |
| The deep dive's classification of rule 4850's family, the hexagon family | 41 held-out predictions of period odd parts, at sizes from 13 to 1,861 | 35 of 35 tested the six at the largest sizes, 709 to 1,861, were not tested: two ran out of time, and four were recorded as not run |
| The scale-up instrument: zooming out a parity rule by 2k, with the clock slowed by 2k, gives the rule itself, as two Lean theorems say, and a fair coin where the scales do not match | 260 cases at blocks from 2 to 128 on grids up to 768 × 768, and 36 controls at mismatched scales | 296 of 296 nothing differed in over ten million comparisons, and every control was a fair coin; LatticeLife then computed all 3,084 records again, identical |
| The birth tie-break (a random draw, or a standoff that leaves a contested cell empty) changes a world of several species only where contests are common | Life against itself and against HighLife, 128 starts each, and 24 soups of five species | 15 of 15 no difference where 0.41% of births are contested; in all nine soups where a fifth or more are, the standoff lowers the live fraction |
| Laws for Life against HighLife and a soup of five species, fitted on grids of side 32 to 256, hold on grids up to sixteen times as wide: means that do not depend on the side, spreads that fall as one over it | sides 512 to 4,096 from starts no run had used, in two parts registered together before either ran | 124 of 124 the soup's live fraction under the random draw, predicted at 0.76615 ± 0.00013, came out 0.76623 ± 0.00002 at side 4,096 |
| The large grids agree with each other: nothing in Life against HighLife creeps with the size of the grid | sides 1,024, 2,048 and 4,096, from 512 fresh starts | 9 of 9 every pair of sides within its margin; read after the verdict, the live fraction changes by 0.04% ± 0.04% a doubling |
| Zoomed out by blocks, Life against HighLife and the soup are maps of where things still move: no block starts moving where nothing around it moved, and movement spreads by one rule at every time | a torus of side 2,048 from sixteen fresh starts, at blocks of 4 to 64 | 43 of 45 none of 902 million still neighbourhoods broke the exact law. The two misses were our own: a band at block 64 drawn from a short trend, and a claim at block 32 that the first look had shown could not be tested |
| Which rules sort into territories against a copy of themselves goes with how few of their own kind a cell needs to be born | 600 rules no run had used, and 242 more for one claim, from a start no run had used | 10 of 10 17.7% hold territories: 61.5% of the rules that need two or three of their own kind for a birth, and none of the 43 that need four or more |
| A coarse rule (who leads each block, and how many of its neighbours the rival leads) runs a world of territories on without its cells, and for worlds whose grounds fill it is one rule with a pace | six worlds from fresh starts: the first look's two, three never zoomed out, and a control | 73 of 89 all 58 claims about the first look's two worlds held. Of the three new worlds one follows the rule as it is, one at half the pace, and a sparse one not at all. 8 failed, one of them by 0.00003, and 8 could not be tested |
| A world of territories that keeps the clock of the still world (B245678/S3678 against its copy), its walls thinning as the square root of time, follows the still world's coarse rule | 38 worlds that grow territories, never zoomed out, on a 1,024 grid from four fresh starts each | refuted 54 of 128 held. 29 worlds keep the clock; one tick ahead the rule serves 10 within 1% and misses 15 by 4% to 38%. What marks the 10 is a grid more than half live. Run on, the rule keeps 19 of the 29 |
| One rung further up, at blocks of 32, the coarse rule changes less again, and the rule of each rung runs the rung above | the still and the busy world on a 2,048 grid to generation 16,384, from eight fresh starts each | 22 of 22 the rule from the rung below has 2.8% more surprise at blocks of 16 and 1.4% at 32 in the still world, 3.0% and 1.6% in the busy one: less at each rung, but it has not stopped changing |
| A coarse rule that remembers how long a block has had its leader runs a world of territories on better, and nearly as well when learned one rung down | sixteen fresh starts of each of two worlds, at blocks of 4, 8 and 16 | 74 of 74 at four rival neighbours, a block that has had its leader one tick changes hands eight times as often as one that has had it sixteen; run on, the rule ends amiss in 0.73 to 0.88 of the plain rule's blocks |
| With how long in view, the still world's coarse rule serves the worlds the plain rule served and nearly served, and not those it missed | the 29 worlds that keep the still world's clock, each read on a clock of its own | 222 of 223 it serves 12 to 14 worlds, depending on how a world's own rule is measured, and none of the ten missed; run on, it runs 19 of the 29. The one miss was a world where the plain rule already ran on nearly as well |
| A world the coarse rule just missed is the still world on a ruler twice as long: read through blocks twice the size, the rule that missed it serves it | twelve worlds through blocks of 8 and of 16, each on a clock set by its walls | 105 of 105 through blocks of 16 all five just-missed worlds are within 0.8% to 2.0% of the still world's blocks of 8. Shown one tick ahead only: a later look found that, run on, that rule is the worst of the tables tried |
What the loop has found
The parity laws
Exact period laws for the parity rule on all three lattices. The hexagon's first law was refuted, and the corrected one is proved for every even n. The square rule escapes the shortfalls of rule 90 and the hexagon shares them exactly; a brief literature search found neither fact.
three rounds, refined twiceThe linear atlas
Periods of 502 linear rules built from neighbour shells. A rule reaches its field's full bound unless something confines its eigenvalues. Four mechanisms do, and three of them were found because a registered prediction failed.
replicatedSettling time
A random soup under B2/S34 settles in a time that grows like the logarithm of the torus size, replicated to L = 1024. Across eight random rules on four lattices the fluctuations share one shape and one ratio, the Gumbel values of extreme-value theory.
7 of 7 accepted, one in round 2Agents that prove
Seven fresh agents, each given only a problem card and the Lean library, proved theorems the library lacked. Six passed the judge in their first round. The seventh was stopped for cost with its Lean unbuilt, and made it build in a second round. The third found its law from data first. The fourth answered a question nobody had answered; the fifth answered part of a harder one; the sixth answered the question the fifth's test raised; the seventh explained four of five ninth-power rules.
answered by agentsCubes and ninth powers at m = 37
Six rules that none of the known mechanisms touches had every eigenvalue a cube at m = 37, far beyond chance. In the fourth pilot an agent found why and proved it in Lean; its condition made 633 claims, none false. Five more there, rule 4850 and four rules of radius 5, have every nonzero eigenvalue a ninth power, which no known mechanism explained. The seventh pilot's agent explained the four, and proved them in Lean. A multi-agent deep dive explained the fifth, rule 4850, with a proof that three independent checkers found stands, with repairs. That proof is not yet in Lean.
Lean 4, standard axiomsThe proof library
The bridge from periods to eigenvalues, the bound, the reduction from even sizes to odd, every confinement mechanism but rule 4850's, and the agents' seven proofs, all checked by Lean against mathlib.
k and d reproducedQuantum codes
Every linear rule here lives in one ring, and it is the ring of bivariate bicycle quantum codes, IBM's gross code among them. A code's logical qubits are read off the same characters. A registered test agreed with plain linear algebra on 3,000 of 3,000 random codes and reproduced all 12 published values, and a second reproduced all 12 published distances, by a search written here. A census of every weight-6 code up to 300 qubits then found [[294,10,20]], above the published [[288,12,18]] on k d²/n. A fourth stage, up to 400 qubits, found [[384,12,24]], with k d²/n = 18.0, and distances still growing faster than √n.
a class, no fixed point yetZooming out
Replace each block of cells by one symbol, learn a rule for the symbols, and repeat: a ladder that asks whether what a rule does on large grids can be found from small ones. In the first worlds of competing species, bigger was more of the same, out to grids 4,096 cells across. Worlds of territories have a coarse rule that works, shared by a class of worlds, and near the class worlds differ by a clock and a ruler. The rule changes less at each rung and has not stopped. Thirteen registered studies made 1,140 predictions: 1,047 held, 66 failed and 27 could not be tested.