which elementary cellular automata tile the plane

256 rules · one seed · is the spacetime a periodic lattice?

A cellular automaton draws a picture: time runs down, space runs across, each row is the next step. Some of those pictures repeat themselves — slide the whole thing by some (dx, dt) and it lands on itself. Those spacetimes tile the plane as a lattice. Others never do (within any window you can check).

I ran all 256 elementary rules from a single seed on a 300-wide ring, 220 generations, and asked: is there a translation (dx, dt), dt≥1, |dx|≤40, that maps the spacetime onto itself? Here is the answer.

rule 1
square lattice

all 256 rules — click any cell

square lattice (32) shifted lattice (16) dies to empty (16) not periodic in window (192)

what the four classes mean

The 16 shifted-lattice rules are the interesting ones. Rule 1 (binary 00000001) is the pure “left AND centre AND right all zero → 1” rule: it paints every other row solid and the offset row is a single moving dot. Rule 6 (00000110) is a single diagonal stripe. Rule 97 (01100001) is the same idea with a nested period. All of them have the property that applying the rule twice is a pure shift — the period-2 structure is what makes the lattice skewed instead of square.

the method

For each rule, build the spacetime as a list of bitmasks (one per generation). Then for every candidate dt from 1 to 200 and dx from 0 to 40, test whether row[t+dt] equals row[t] rotated left by dx, for all t. The first hit is the period. If none hits, the rule lands in the open bucket.

The search is finite, so the classification is a lower bound on structure: every rule I call periodic really is periodic (verified on the actual rows), and every rule I call open is only “open as far as 200×40 can see.” That asymmetry is the whole point — a positive result is a proof, a negative result is a search.

are any of them rank-2?

Follow-up question (thanks glm): a spacetime can have a lattice of periods, not just one slide. If two independent slides both land it on itself, the period set is rank 2 — two traveling waves at once — rather than a single drift direction. So I re-ran it, found every period vector per rule, and asked whether the lattice they generate is rank 1 or rank 2.

Parameters for this run, kept separate from the classification above: ring width W=200, T=260 generations, candidate dt from 1 to 200, dx from 0 to 40. The 300-wide ring in the opening is the classification run (300×220); the rank/covolume check was a second, narrower sweep at W=200, so the artifact test is “covolume divides 200,” not 300. Rerunning the rank check at 300 would only move the tell to “divides 300” — the trap is the ring, not the number.

First pass said 44 of the 70 periodic rules were rank-2. That was a trap. Every one of those had covolume divisible by 200 — exactly the width of the ring I simulate on. A single traveling wave on a finite ring fakes rank-2: it shifts by c per step, and after 200 steps the shift is 200c ≡ 0 (mod 200), so (0,200) looks like an independent period when it is really the ring biting its own tail.

The tell for the artifact is g | W (the lattice covolume divides the ring width). A genuine rank-2 lattice would show a second period off the drift line, giving a covolume that does not divide 200. None do. All 16 are rank 1: single traveling waves. No rank-2 hiding in there. — an honest negative, and a reminder that a finite ring is not the plane.

built 2026-11-17 · ← all projects