Discoveries · one frame · the proof
The proof
Seven theorems. Theorems 1, 2, 4 and 5 hold for any rule of this shape, and Theorem 7 for any rule in which a cell sees only its neighbours. Theorem 3 shows why rule 30 needs the two-tick form, and Theorem 6 is about rule 30 alone: it explains the circle on the 127-cell loop.
Setting up
A row is a list of cells, each 0 or 1, either on a loop of n cells or along an endless row. A rule f turns a row into a row. Between rows, or between the values 0 and 1, − is the difference taken cell by cell: the same gives 0, different gives 1. Between tick or cell numbers, as in t − 1 or 2ᵏ − 1, it is ordinary subtraction.
A history is one row s(t) for every integer t, negative ones included, and it obeys
for every t. The pair (s(t−1), s(t)) is the frame at t, written t²; the whole history is the line T. Four facts about − do all the work:
L1 is the law behind 0 = t₀ − t₀: anything minus itself is 0.
L3 says a difference has no direction: 0 − 1 = 1 − 0 = 1. In this arithmetic, taking away is the same as adding.
Rule 30, cell by cell, is f(r) at x = r(x−1) − (r(x) or r(x+1)): a cell’s new value compares its left neighbour with “itself or its right neighbour”. Rows are written with cells left to right, and on a loop the last cell’s right neighbour is the first.
Theorem 1. Any rule of this shape runs backward
For any rule f whatsoever, if s(t+1) = f(s(t)) − s(t−1), then
Proof.
The step that does the work is L1: anything minus itself is 0. With L4 it says that taking the same thing away twice gives it back, a − (a − b) = b, and that is why the backward rule is the forward rule read the other way. Nothing about f was used. It need not be reversible itself; rule 30 is not (Theorem 3).
Theorem 2. One frame holds the whole line
Pick any rule and any single frame (s(k−1), s(k)). Exactly one history passes through it.
Proof.
Build it: rows after k come from the forward rule, one at a time; rows before k−1 come from the backward rule of Theorem 1. The backward rule says the same thing as the forward rule (the computation of Theorem 1 runs both ways), so the rows built this way obey the rule at every t.
Only one: two histories that share the frame at k share row k+1 (the forward rule) and row k−2 (Theorem 1), so they share the frames at k+1 and k−1. Step by step, outward in both directions, they share every row. ∎
So the frame t² fixes all of T. A frame of frames, t⁴ = (t²)², adds nothing: the frame at k+2 is already fixed by the frame at k.
Theorem 3. One tick is not enough
With a one-tick rule, s(t+1) = f(s(t)), the present fixes the past only if f never sends two rows to the same row. Rule 30 does: on a loop of 10 cells,
(cells left to right; the last cell’s right neighbour is the first)
Proof.
If two different rows A and B both go to C, then a present of C has two possible pasts, and nothing in C says which. ∎
checked by computerOn that loop, 101 of the 1,024 rows have more than one past and 101 have none. In the two-tick form all 1,048,576 frames have exactly one past, as Theorem 2 says they must.
Theorem 4. Mirrors
If the rule empties some row, f(s(m)) = 0, then the history is a mirror image around tick m:
Proof.
It holds for j = 0 trivially, and for j = 1: s(m+1) = f(s(m)) − s(m−1) = 0 − s(m−1) = s(m−1). Suppose it holds for every i from 0 up to j. Then
Rule 30 turns an empty row into an empty row, and t₀ is empty, so tick 0 is a mirror: s(−j) = s(j). The past is the future in a mirror, and the rule itself has no arrow. The arrow, from order to noise, comes from where the start sits.
checked by computerOn the 161-cell loop, s(−j) = s(j) for all 600 values of j from 1 to 600.
Theorem 5. Circularity: on a loop, T is a circle
On a loop of n cells, every history repeats: for some p ≥ 1, s(t + p) = s(t) for every t.
Proof.
A frame is two rows of n cells, so there are only 4ⁿ different frames. Among the frames at ticks 0, 1, …, 4ⁿ two must be the same, say at ticks a < b. Let u(t) = s(t + b − a). The rule does not depend on t, so u is a history too, and its frame at a is the frame of s at b, which is the frame of s at a. By Theorem 2 they are the same history: s(t + b − a) = s(t) for every t. ∎
Nothing is ever lost (Theorem 2), so T cannot run into a dead end or merge into another history. With finitely many frames, the only shape left is a circle. On an endless row the argument fails: there are endlessly many frames, and the single 1 grows for ever.
Theorem 6. The circles of 2ᵏ
On a loop of n = 2ᵏ − 1 cells, rule 30 run from the start (t₀ empty, t₁ a single 1) comes back to its start after exactly 2ᵏ ticks. Halfway, at tick 2ᵏ⁻¹, every cell is 1.
The proof first follows the history on an endless row, cells numbered by the integers (…, −1, 0, 1, …) with the 1 of t₁ at cell 0. Call a row solid on [p, q] when it is 1 exactly on cells p through q.
Lemma E (edges)
Row 0 is empty. For t ≥ 1, row t is 0 outside [−(t−1), t−1], and it is 1 at cell t−1.
Proof.
Induction on t. Row 1 is the single 1. A cell of row t+1 that lies outside [−t, t] sees only cells outside rows t and t−1, all 0, so it is 0 (rule 30 sends 000 to 0). Cell t sees 1 on its left in row t, 0 at itself and to its right, and 0 in row t−1, so it is 1 − 0 − 0 = 1. ∎
Lemma A (the left half is solid)
For t ≥ 1, row t is 1 on every cell of [−(t−1), 0].
Proof.
Row 1 is 1 at cell 0, and row 2 is solid on [−1, 1]. Suppose rows t−1 and t (t ≥ 2) are as claimed, and look at row t+1. Cell −t sees 0, 0, 1 in row t and 0 in row t−1: 0 − 1 − 0 = 1. Cell −(t−1) sees 0 on its left and 1 at itself in row t, and 0 in row t−1 (Lemma E): 0 − 1 − 0 = 1. Every cell x from −(t−2) to 0 sees 1 on its left and 1 at itself in row t, and 1 in row t−1: 1 − 1 − 1 = 1. ∎
Lemma D (doubling)
Let h ≥ 1, and suppose row h is solid on [−(h−1), h−1]. Then for every j from 0 to h, row h+j is:
- (a) 1 on [−(h+j−1), 0] (Lemma A);
- (b) equal to row h−j on [1, h−j−1]: the middle runs backward;
- (c) equal to row j moved h cells right on [max(1, h−j), h+j−1]: a new copy of the whole history, born at cell h;
- (d) 0 from cell h+j on (Lemma E).
At j = h, part (b) is empty and part (c) is the solid row h moved to cells 1 … 2h−1, so row 2h is solid on [−(2h−1), 2h−1]. Row 1 is solid, so rows 2, 4, 8, … are all solid: row 2ᵐ is solid on [−(2ᵐ−1), 2ᵐ−1].
Proof.
Parts (a) and (d) are Lemmas A and E. Parts (b) and (c) go by induction on j.
j = 0 says row h is row h. j = 1, when h = 1: the lemma says only that row 2 is solid on [−1, 1], which Lemma A already shows. j = 1, when h ≥ 2: rule 30 sends the solid row h to 1s at exactly −h, −(h−1) and h. (Cell −h sees 0, 0, 1; cell −(h−1) sees 0, 1, 1; each cell from −(h−2) to h−1 has 1 on its left and 1 at itself, and 1 − 1 = 0; cell h sees 1, 0, 0.) So row h+1 is row h−1 with three extra 1s, at −h, −(h−1) and h, all outside row h−1 (Lemma E). On [1, h−2] it is row h−1, which is (b). At h−1 it is 0 and at h it is 1, which is row 1 moved h right, (c).
From j to j+1, for 1 ≤ j ≤ h−1: assume rows h+j−1 and h+j are as claimed, and work out each cell x ≥ 1 of row h+j+1 from its four inputs: cells x−1, x, x+1 of row h+j and cell x of row h+j−1.
Middle, 1 ≤ x ≤ h−j−2. All four inputs fall in parts (a) or (b), where the two rows agree with rows h−j and h−j+1 (on part (a) all are 1, Lemma A). So the cell is f(row h−j) − row h−j+1 at x, which is row h−j−1 at x by Theorem 1. That is (b).
New copy, h−j+1 ≤ x ≤ h+j. All four inputs fall in parts (c) or (d), where the rows agree with rows j and j−1 moved h right (on part (d) all are 0, Lemma E). So the cell is f(row j) − row j−1 at x−h, which is row j+1 at x−h by the rule. That is (c).
Seam, x = h−j. Row h+j has 1 at h−j−1 (the right edge of row h−j, Lemma E, or part (a) when j = h−1), 0 at h−j (row j at −j), and 1 at h−j+1 (row j at −(j−1), Lemma A). Row h+j−1 has 1 at h−j (the right edge of row h−j+1). So the cell is 1 − (0 or 1) − 1 = 1, which is row j+1 at −j (Lemma A). That is (c).
Seam, x = h−j−1(only when j ≤ h−2). Put u = h−j, and write a for row u at cell u−2. Row h+j has row u’s values at u−2 and u−1 (when u−2 = 0 that cell is in part (a), and both are 1 by Lemma A), and the second is 1 (Lemma E). Row h+j−1 has row u+1’s value at u−1. So the cell is a − 1 − s(u+1)(u−1). The rule at row u+1, cell u−1, gives s(u+1)(u−1) = a − (1 or 0) − 0 = a − 1. Put that in: the cell is a − 1 − (a − 1) = 0, which is row j+1 at −(j+1), outside it (Lemma E). That is (c).
These cases cover every cell from 1 to h+j, part (d) covers the rest, and Lemma A covers x ≤ 0. ∎
Back to the loop
Proof.
Let h = 2ᵏ⁻¹, so the loop has 2h − 1 cells. Number them −(h−1) … h−1.
Step 1, the loop agrees with the endless row up to tick h. A loop cell has the same inputs as on the endless row, except at the two ends, where the neighbour is the cell at the other end. While t ≤ h−1, row t of the endless row is 0 at both ends (Lemma E), which is also what it has just past each end. So each loop row up to h equals the endless row’s.
Step 2. Row h on the endless row is solid on [−(h−1), h−1] (Lemma D, h is a power of two), so on the loop, row h is all 1s.
Step 3, two mirrors. Each cell of an all-1 row becomes 1 − (1 or 1) = 0, so rule 30 empties it, and tick h is a mirror (Theorem 4). Tick 0 is a mirror too. Two mirrors make a circle:
Step 4, not sooner. If p and q are both periods, so is their difference, so the shortest period divides 2h = 2ᵏ and is a power of two. If it were h or less, row p would be the empty row t₀ for some p from 1 to h. But rows 1 to h are rows of the endless row, each with a 1 at its edge (Lemma E). So the circle is exactly 2ᵏ ticks long. ∎
checked by computerLoops of 2ᵏ − 1 cells for k = 1 to 10 (up to 1,023 cells): each closes in exactly 2ᵏ ticks. On the endless row, rows 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 are solid.
Other loop sizes close too (Theorem 5), but with no pattern found. Loops of 1 to 16 cells close in 2, 3, 4, 19, 18, 39, 8, 392, 727, 3,621, 473, 2,552, 4,127, 26,173, 16, 38,000 ticks (the 2ᵏ − 1 loops, 1, 3, 7 and 15 cells, are the 2, 4, 8 and 16). The 161-cell loop on the page had not closed after 20,000,000,000 ticks (searched once, outside the build, in 31 seconds of computer time). At the page’s 40 ticks a second that would be 16 years of watching.
Theorem 7. A speed limit: space measured in time
Take a rule in which each new cell depends only on cells x−1, x and x+1 (rule 30, or any rule numbered the same way). If two histories have frames at tick k that differ only on cells [a, b], then j ticks later, and j ticks earlier, they differ only on [a − j, b + j] (on a loop, until that stretch wraps round).
Proof.
A cell of row k+1 is computed from cells x−1, x, x+1 of row k and cell x of row k−1. If x is more than one cell outside [a, b], all four inputs agree, so the two new rows agree there. The frame at k+1 therefore differs only on [a−1, b+1]. Repeat. Backward, Theorem 1 uses the same four inputs. ∎
So a difference travels at most one cell per tick, in either direction of time. Distance can be counted in ticks: how far apart two cells are is the fewest ticks a difference can take to get from one to the other. From the start, the single 1 takes exactly that many, one cell per tick each way (Lemmas E and A). Other differences can be slower: under rule 30, one moving left often lags.
checked by computerFlip the middle cell of the frame held at t = 600 and run back: for all 79 ticks before the change could wrap round the loop, the two histories differed only inside that widening stretch.
Is it circular to make 0 and 1 from t?
The rows are made of 0s and 1s, and 0 and 1 were made from t, so it can look as if the argument assumes what it builds. It does not. What is taken as given: a row of cells, the rule, one shared tick, where the first difference sits, and that two moments can be compared cell by cell, same or different. 0 and 1 are only names for those two answers, and every proof above uses nothing about them except L1 to L4 and the rule’s table. Nothing is assumed that is later built.
The other circle is real, and it is Theorem 5: on a loop, T bends round and meets itself.