PolyLabs Research Contact
Programme · lattice-lab

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.

period, exact…
the law says
The parity rule B1357/S1357, grown from one live cell on an n × n torus. Your browser computes its exact period, and the law our loop found and registered predicts it.
The model

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:

  1. Experiment. LatticeLife runs the automata and says what each number means, including when it is only a bound.
  2. Law. Kepler fits closed-form laws with error bars, and ranks them against their rivals.
  3. 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.
  4. Proof. What survives is proved in Lean 4. A theorem counts only if it builds and rests on Lean's three standard axioms.
  5. 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 held

How 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.

Life against HighLife, under the standoff: circles, solid line a soup of five species, under the random draw: diamonds, dashed line the range a prediction would accept

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 below

The 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.

held held, but a part failed did not hold running

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 runs

In 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.

ClaimTested atOutcome
Square parity law, P(n) = 2v(2sord(m) − 1)45 sizes by simulation, then all 198 sizes from 3 to 200 exactlyheld at all its rival refuted at all 10 sizes where they differ
Hexagon parity law, first form70 sizesrefuted at 74, 148 and 190, by a factor of 3
Hexagon parity law, corrected100 new sizes, 202 to 400held at all then proved for every even n
Triangle parity laws154 sizesheld at all
Kepler finds the hexagon law itself8 registered expectations8 of 8
B2/S34 settling time grows like log Lhexagon tori up to L = 1024, 100 soups eachheld the power law rejected (p = 10−9)
Kepler's laws for 42 linear rules, 38 never studied1,930 new (rule, size) pairsheld every rule with a law kept one
Rules that do not split reach the full bound113 predictions on 116 new rulesrefuted 7 failed, which revealed cubes and dilations
The refined statement, as a fixed procedure11,358 predictions, 344 new rulesrefuted 43 failed (0.4%), which revealed the twisted power
The laws the agents proved, at sizes nobody had computed15, 40 and 20 predictions in three pilots75 of 75
The fourth agent's mechanism for m = 37, at a held-out grid registered before it started180 claims at 29 held-out sizes180 of 180
The fifth agent's mechanism for m = 25, at a held-out grid registered before it started414 claims at 43 held-out sizes, on the atlas and the square family414 of 414
Our expectation that the cube confinements left in the square family are chanceall 32,767 rules at 14 sizes, registered before the runrefuted at 6: twisted pairs at four, and 16 rules at m = 37 nobody could then explain
The same expectation, with both pilots' mechanisms countedall 32,767 rules at 17 new sizes, 77 to 125refuted 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 started482 claims at the atlas's 29 held-out sizes and the census's 17482 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 rulesevery eligible prime from 302 to 20,000, 405 in all, and 4 pyramid primes405 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 proposedall 2,064,384 new rules of radius 5refuted 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 givenall 266,338,304 rules that use an orbit of radius 6held 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 characters3,000 random bivariate bicycle codes at 20 sizes, and 12 published entries (ten codes, two in two versions), IBM's gross code among them3,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 program12 published entries, up to 288 qubits; method checks on 200 random, 14 toric and 9 new codes12 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 atfresh codes at reserved sizes; the known fault cases; 142 codes of the kinds where the fault lives, with the unfixed solver alongsideheld 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 logicalsheld [[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.5253,370 code classes, registered before any was computedrefuted [[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 predicted154 classes on 9 tori, rerun with a second distance tool154 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 17633,390 code classes, registered before any was computed; a second distance tool, with a checked logical for every distancefailed 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 limitregistered before any class reached the limit; up to 14 days per classrunning 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 family41 held-out predictions of period odd parts, at sizes from 13 to 1,86135 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 match260 cases at blocks from 2 to 128 on grids up to 768 × 768, and 36 controls at mismatched scales296 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 commonLife against itself and against HighLife, 128 starts each, and 24 soups of five species15 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 itsides 512 to 4,096 from starts no run had used, in two parts registered together before either ran124 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 gridsides 1,024, 2,048 and 4,096, from 512 fresh starts9 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 timea torus of side 2,048 from sixteen fresh starts, at blocks of 4 to 6443 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 born600 rules no run had used, and 242 more for one claim, from a start no run had used10 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 pacesix worlds from fresh starts: the first look's two, three never zoomed out, and a control73 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 rule38 worlds that grow territories, never zoomed out, on a 1,024 grid from four fresh starts eachrefuted 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 abovethe still and the busy world on a 2,048 grid to generation 16,384, from eight fresh starts each22 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 downsixteen fresh starts of each of two worlds, at blocks of 4, 8 and 1674 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 missedthe 29 worlds that keep the still world's clock, each read on a clock of its own222 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 ittwelve worlds through blocks of 8 and of 16, each on a clock set by its walls105 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
Findings

What the loop has found

proved, in part

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 twice

The 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.

replicated

Settling 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 2

Agents 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 agents

Cubes 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 axioms

The 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 reproduced

Quantum 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 yet

Zooming 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.