7. T3, second half, and T5: Systems 3, 2, 1, 0 and loop-freeness
7.1. Orientation
Smith's Conjectures 0 to 3 differ only in the machine (p. 3-5). System 1 is
System 0 with the B2 rule split by the right neighbour; System 2 adds a state C
that is state B with the active cell swapped; System 3 is System 2 with every cell
left of the head swapped. Smith/Systems123.lean proves each relabeling as a
forward simulation in the direction the chain needs, from the higher system to the
lower. Smith/LoopFree.lean and Smith/Wolfram23Bridge.lean prove Smith's
loop-freeness argument (p. 21-22), T5. Loop-freeness is proved but not used by the
chain: the schedules of the chapters from
cyclic tag to System 5 to
System 4 to System 3 are explicit, so the run of each
finite initial condition is known to end without an appeal to it.
7.2. The relabelings
sw swaps the symbols 1 and 2 and fixes 0 (Smith's "subtracted from 3 (mod 3)").
Lean code for Definition7.2.1●1 definition
Associated Lean declarations
-
Smith.sw[complete]
-
Smith.sw[complete]
-
defdefined in Smith/Systems123.leancomplete
def Smith.sw : Fin 3 → Fin 3
def Smith.sw : Fin 3 → Fin 3
Swap the symbols 1 and 2, fix 0 (Smith's "subtracted from 3 (mod 3)").
The System 2 to System 1 relabeling of p. 4, on the zipper configurations
Definition 2.5.4: a configuration ⟨L, a, R, C⟩ in state C becomes
⟨L, sw a, R, B⟩, state B with the active cell swapped by Definition 7.2.1;
every configuration in state A or B is unchanged.
Lean code for Definition7.2.2●1 definition
Associated Lean declarations
-
Smith.phi2[complete]
-
Smith.phi2[complete]
-
defdefined in Smith/Systems123.leancomplete
def Smith.phi2 : Smith.LConfig → Smith.LConfig
def Smith.phi2 : Smith.LConfig → Smith.LConfig
The System 2 -> System 1 relabeling of p. 4: state C is state B with the active element swapped.
The System 3 to System 2 relabeling of p. 5: every cell left of the head is swapped
by Definition 7.2.1 (L.map sw), and so is the head cell itself in state A;
in states B and C the head cell is kept. The cells right of the head and the state
are kept in every case.
Lean code for Definition7.2.3●1 definition
Associated Lean declarations
-
Smith.phi3[complete]
-
Smith.phi3[complete]
-
defdefined in Smith/Systems123.leancomplete
def Smith.phi3 : Smith.LConfig → Smith.LConfig
def Smith.phi3 : Smith.LConfig → Smith.LConfig
The System 3 -> System 2 relabeling of p. 5: swap every cell left of the active one, and the active one itself in state A.
For b = 1 or b = 2, three steps of Definition 2.5.9 from ⟨L, 2, b :: R, B⟩
reach ⟨1 :: L, sw b, R, B⟩ (in the run function Definition 2.5.6):
B2 -> A0>, then A1 -> A2< or A2 -> A1<, then A0 -> B1> (p. 4). This is
the System 0 reading of the System 1 rules B21 and B22.
Lean code for Lemma7.2.4●1 theorem
Associated Lean declarations
-
Smith.sys0_B2_three[complete]
-
Smith.sys0_B2_three[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.sys0_B2_three (L : List (Fin 3)) (b : Fin 3) (R : List (Fin 3)) (hb : b = 1 ∨ b = 2) : Smith.lnSteps Smith.sys0 { left := L, head := 2, right := b :: R, state := Smith.LState.B } 3 = some { left := 1 :: L, head := Smith.sw b, right := R, state := Smith.LState.B }
theorem Smith.sys0_B2_three (L : List (Fin 3)) (b : Fin 3) (R : List (Fin 3)) (hb : b = 1 ∨ b = 2) : Smith.lnSteps Smith.sys0 { left := L, head := 2, right := b :: R, state := Smith.LState.B } 3 = some { left := 1 :: L, head := Smith.sw b, right := R, state := Smith.LState.B }
`B21` and `B22` of System 1 are three steps of System 0: `B2 -> A0>`, then `A1 -> A2<` or `A2 -> A1<`, then `A0 -> B1>` (p. 4).
Both cases of b, and R empty or not, by unfolding the three steps against the
rule table of System 0.
A Definition 4.2.3 from Definition 2.5.10 to Definition 2.5.9 on the identity relation: System 0 emulates System 1 on the same configurations, one step of System 1 being one or more steps of System 0. Conjectures 0 and 1 are equivalent (p. 4), in the direction the chain uses.
Lean code for Theorem7.2.5●1 theorem
Associated Lean declarations
-
Smith.sys1_sys0_forwardSim[complete]
-
Smith.sys1_sys0_forwardSim[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.sys1_sys0_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys1) (Smith.lsys Smith.sys0) fun c c' => c' = c
theorem Smith.sys1_sys0_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys1) (Smith.lsys Smith.sys0) fun c c' => c' = c
Conjectures 0 and 1 are equivalent (p. 4), the direction the chain uses: System 0 emulates System 1 on the same configurations, one step of System 1 being one or three steps of System 0.
One System 1 step is one System 0 step, or three for B21 and B22
(Lemma 7.2.4). The one-step form is the helper
Smith.sys1_sys0_step, proved by splitting on the state, the head symbol and the
right neighbour and comparing the two rule tables; every rule other than B2x
is the same rule in both systems.
One step of Definition 2.5.11 is one step of Definition 2.5.10 through
Definition 7.2.2: lstep sys1 (phi2 c) = (lstep sys2 c).map phi2 for every
configuration c (Definition 2.5.5).
Lean code for Lemma7.2.6●1 theorem
Associated Lean declarations
-
Smith.phi2_step[complete]
-
Smith.phi2_step[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.phi2_step (c : Smith.LConfig) : Smith.lstep Smith.sys1 (Smith.phi2 c) = Option.map Smith.phi2 (Smith.lstep Smith.sys2 c)
theorem Smith.phi2_step (c : Smith.LConfig) : Smith.lstep Smith.sys1 (Smith.phi2 c) = Option.map Smith.phi2 (Smith.lstep Smith.sys2 c)
One step of System 2 is one step of System 1 through `phi2`.
Case analysis over the rule tables: split on the state, the head symbol, the right neighbour (present or not) and the left tape (empty or not), and simplify each case.
A Definition 4.2.3 from Definition 2.5.11 to Definition 2.5.10
along Definition 7.2.2, that is, on the relation c' = phi2 c, one step to
one step. Conjectures 1 and 2 are equivalent (p. 4), in the direction the chain
uses.
Lean code for Theorem7.2.7●1 theorem
Associated Lean declarations
-
Smith.sys2_sys1_forwardSim[complete]
-
Smith.sys2_sys1_forwardSim[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.sys2_sys1_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys2) (Smith.lsys Smith.sys1) fun c c' => c' = Smith.phi2 c
theorem Smith.sys2_sys1_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys2) (Smith.lsys Smith.sys1) fun c c' => c' = Smith.phi2 c
Conjectures 1 and 2 are equivalent (p. 4), the direction the chain uses.
Directly from Lemma 7.2.6, with one target step for each source step.
One step of Definition 2.5.12 is one step of Definition 2.5.11 through
Definition 7.2.3: lstep sys2 (phi3 c) = (lstep sys3 c).map phi3 for every
configuration c (Definition 2.5.5).
Lean code for Lemma7.2.8●1 theorem
Associated Lean declarations
-
Smith.phi3_step[complete]
-
Smith.phi3_step[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.phi3_step (c : Smith.LConfig) : Smith.lstep Smith.sys2 (Smith.phi3 c) = Option.map Smith.phi3 (Smith.lstep Smith.sys3 c)
theorem Smith.phi3_step (c : Smith.LConfig) : Smith.lstep Smith.sys2 (Smith.phi3 c) = Option.map Smith.phi3 (Smith.lstep Smith.sys3 c)
One step of System 3 is one step of System 2 through `phi3`.
The same case analysis as for phi2, over the rule tables of Systems 2 and 3.
A Definition 4.2.3 from Definition 2.5.12 to Definition 2.5.11
along Definition 7.2.3, that is, on the relation c' = phi3 c, one step to
one step. Conjectures 2 and 3 are equivalent (p. 5), in the direction the chain
uses.
Lean code for Theorem7.2.9●1 theorem
Associated Lean declarations
-
Smith.sys3_sys2_forwardSim[complete]
-
Smith.sys3_sys2_forwardSim[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.sys3_sys2_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys3) (Smith.lsys Smith.sys2) fun c c' => c' = Smith.phi3 c
theorem Smith.sys3_sys2_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys3) (Smith.lsys Smith.sys2) fun c c' => c' = Smith.phi3 c
Conjectures 2 and 3 are equivalent (p. 5), the direction the chain uses.
Directly from Lemma 7.2.8, with one target step for each source step.
A Definition 4.2.3 from Definition 2.5.12 to Definition 2.5.9
on the relation c' = phi2 (phi3 c) (Definition 7.2.2, Definition 7.2.3):
System 0 emulates System 3 through phi2 ∘ phi3, one step of System 3 being one
or three steps of System 0. Conjecture 3 implies Conjecture 0 (p. 3-5). This
composite is what the chapter System 4 to System 3
composes with, in Theorem 6.7.2.
Lean code for Theorem7.2.10●1 theorem
Associated Lean declarations
-
Smith.sys3_sys0_forwardSim[complete]
-
Smith.sys3_sys0_forwardSim[complete]
-
theoremdefined in Smith/Systems123.leancomplete
theorem Smith.sys3_sys0_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys3) (Smith.lsys Smith.sys0) fun c c' => c' = Smith.phi2 (Smith.phi3 c)
theorem Smith.sys3_sys0_forwardSim : Smith.ForwardSim (Smith.lsys Smith.sys3) (Smith.lsys Smith.sys0) fun c c' => c' = Smith.phi2 (Smith.phi3 c)
Conjecture 3 implies Conjecture 0 (p. 3-5): System 0 emulates System 3 through `phi2 ∘ phi3`, one step of System 3 being one or three steps of System 0.
Compose Theorem 7.2.9, Theorem 7.2.7
and Theorem 7.2.5 with Lemma 4.2.4,
then rewrite the composed relation (two existentials over the intermediate
configurations) into the functional relation c' = phi2 (phi3 c) with the helper
Smith.ForwardSim_congr.
The correspondences are also checked by decide: the 1-or-3 correspondence and
the two relabelings on every tape of one cell on each side of the head (all 81
choices of state and three cells). Negative instances on the same tapes show that
neither relabeling is the identity: without phi3 (respectively phi2) on the
source configuration the one-step correspondence fails. phi2 is many-to-one
(System 1 has no state C), so these are simulations, not bisimulations; the other
direction is not needed.
7.3. Loop-freeness (T5)
Smith's argument (p. 21-22), made in System 1.
Smith's sum (p. 22): V c is the sum of the positions, counted from 1 at the left
end of the tape, of the 0s of the tape of the configuration c
(Definition 2.5.4).
Lean code for Definition7.3.1●1 definition
Associated Lean declarations
-
Smith.V[complete]
-
Smith.V[complete]
-
defdefined in Smith/LoopFree.leancomplete
def Smith.V (c : Smith.LConfig) : ℕ
def Smith.V (c : Smith.LConfig) : ℕ
Smith's sum, p. 22: the positions (from 1) of the 0s of the tape.
W c is Definition 7.3.1 c without the contribution of the head cell in state
A (the A0 -> B1> step that must follow spends it). The helper Smith.W_eq
records the relation: W c is V c minus the position of the head cell (counted
from 1) when the state is A and the head reads 0, and V c otherwise.
Lean code for Definition7.3.2●1 definition
Associated Lean declarations
-
Smith.W[complete]
-
Smith.W[complete]
-
defdefined in Smith/LoopFree.leancomplete
def Smith.W (c : Smith.LConfig) : ℕ
def Smith.W (c : Smith.LConfig) : ℕ
`V` without the head cell in state A.
The secondary measure on Definition 2.5.4: in state A, the head position plus the tape length, plus one (the tape length is added so that the change from A to B decreases it too); in state B (and in state C, which the argument never reaches), the number of cells to the right of the head. It measures how far the head can still go in its current direction before it changes state.
Lean code for Definition7.3.3●1 definition
Associated Lean declarations
-
Smith.phase[complete]
-
Smith.phase[complete]
-
defdefined in Smith/LoopFree.leancomplete
def Smith.phase (c : Smith.LConfig) : ℕ
def Smith.phase (c : Smith.LConfig) : ℕ
The secondary measure: how far the head can still go in its current direction before it changes state, plus the tape length in state A so that the change from A to B decreases it too.
Every step of Definition 2.5.10 (Definition 2.5.5) from a configuration
c whose state is not C, to a configuration c', decreases the pair
(W, phase) lexicographically (Definition 7.3.2, Definition 7.3.3): either
W c' < W c, or W c' = W c and phase c' < phase c; and the state of c' is
not C either.
Lean code for Theorem7.3.4●1 theorem
Associated Lean declarations
-
Smith.sys1_measure[complete]
-
Smith.sys1_measure[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.sys1_measure (c c' : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) (h : Smith.lstep Smith.sys1 c = some c') : (Smith.W c' < Smith.W c ∨ Smith.W c' = Smith.W c ∧ Smith.phase c' < Smith.phase c) ∧ c'.state ≠ Smith.LState.C
theorem Smith.sys1_measure (c c' : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) (h : Smith.lstep Smith.sys1 c = some c') : (Smith.W c' < Smith.W c ∨ Smith.W c' = Smith.W c ∧ Smith.phase c' < Smith.phase c) ∧ c'.state ≠ Smith.LState.C
One step of System 1 from a configuration in state A or B decreases the pair `(W, phase)` lexicographically and stays in states A, B.
Rule by rule, after splitting on both neighbours (the left tape empty or not, the
right tape empty or not), the state and the head symbol, and unfolding W and
phase; each case closes by arithmetic. The step B20 raises V by the head
position and lowers W by 1, which is Smith's "decreases to a lower value than
the value it increased from". On the run of p. 47 the source checks by decide
that V is not monotone along the System 0 run while W never increases along
the System 1 run of the same tape.
A lexicographically decreasing measure ends every run: for a machine M
(Definition 2.5.3), a set of configurations P and measures W, phase
such that every step of M from a configuration in P lands in P and decreases
(W, phase) lexicographically, every configuration in P has some n with
lnSteps M c n = none (Definition 2.5.6).
Lean code for Lemma7.3.5●1 theorem
Associated Lean declarations
-
Smith.run_ends_of_measure[complete]
-
Smith.run_ends_of_measure[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.run_ends_of_measure (M : Smith.LMachine) (P : Smith.LConfig → Prop) (W phase : Smith.LConfig → ℕ) (hdec : ∀ (c c' : Smith.LConfig), P c → Smith.lstep M c = some c' → (W c' < W c ∨ W c' = W c ∧ phase c' < phase c) ∧ P c') (w f : ℕ) (c : Smith.LConfig) : P c → W c ≤ w → phase c ≤ f → ∃ n, Smith.lnSteps M c n = none
theorem Smith.run_ends_of_measure (M : Smith.LMachine) (P : Smith.LConfig → Prop) (W phase : Smith.LConfig → ℕ) (hdec : ∀ (c c' : Smith.LConfig), P c → Smith.lstep M c = some c' → (W c' < W c ∨ W c' = W c ∧ phase c' < phase c) ∧ P c') (w f : ℕ) (c : Smith.LConfig) : P c → W c ≤ w → phase c ≤ f → ∃ n, Smith.lnSteps M c n = none
A lexicographically decreasing measure on a set of configurations closed under the step ends every run from the set.
Induction on a bound w for W c, and inside it on a bound f for phase c.
If the step is none the run ends after one step; otherwise the next
configuration is in P with a smaller measure and the induction hypothesis gives
its run length, plus one.
T5 for System 1: from every configuration whose state is not C, the run of
Definition 2.5.10 ends, that is, there is an n with
lnSteps sys1 c n = none (Definition 2.5.6).
Lean code for Theorem7.3.6●1 theorem
Associated Lean declarations
-
Smith.sys1_leaves[complete]
-
Smith.sys1_leaves[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.sys1_leaves (c : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) : ∃ n, Smith.lnSteps Smith.sys1 c n = none
theorem Smith.sys1_leaves (c : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) : ∃ n, Smith.lnSteps Smith.sys1 c n = none
T5 for System 1: every run from a configuration in state A or B leaves the tape.
Lemma 7.3.5 applied to sys1, the set of configurations
not in state C, and the measures W, phase, with Theorem 7.3.4
as the decrease hypothesis and the configuration's own W c and phase c as the
bounds.
System 0 is stuck wherever System 1 is: if lstep sys1 c = none then
lstep sys0 c = none (Definition 2.5.5, Definition 2.5.10,
Definition 2.5.9).
Lean code for Lemma7.3.7●1 theorem
Associated Lean declarations
-
Smith.sys1_none_sys0[complete]
-
Smith.sys1_none_sys0[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.sys1_none_sys0 (c : Smith.LConfig) (h : Smith.lstep Smith.sys1 c = none) : Smith.lstep Smith.sys0 c = none
theorem Smith.sys1_none_sys0 (c : Smith.LConfig) (h : Smith.lstep Smith.sys1 c = none) : Smith.lstep Smith.sys0 c = none
Where System 1 is stuck, System 0 is stuck too: the one-cell rules are the same, and `B2` at the last cell moves System 0 off the tape.
The one-cell rules are the same in both systems, and B2 at the last cell, where
System 1's two-cell rule has no right neighbour, moves System 0 off the tape; by
cases on the state, the head symbol and both neighbours.
A run of the target that ends when the source's run ends: for machines M1, M0
(Definition 2.5.3) such that every step of M1 from c to c' is some
k >= 1 steps of M0 from c to c', and M0 is stuck wherever M1 is, if
lnSteps M1 c n = none for some n then lnSteps M0 c m = none for some m
(Definition 2.5.6).
Lean code for Lemma7.3.8●1 theorem
Associated Lean declarations
-
Smith.run_ends_of_sim[complete]
-
Smith.run_ends_of_sim[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.run_ends_of_sim (M1 M0 : Smith.LMachine) (hstep : ∀ (c c' : Smith.LConfig), Smith.lstep M1 c = some c' → ∃ k, 1 ≤ k ∧ Smith.lnSteps M0 c k = some c') (hnone : ∀ (c : Smith.LConfig), Smith.lstep M1 c = none → Smith.lstep M0 c = none) (c : Smith.LConfig) (n : ℕ) (h : Smith.lnSteps M1 c n = none) : ∃ m, Smith.lnSteps M0 c m = none
theorem Smith.run_ends_of_sim (M1 M0 : Smith.LMachine) (hstep : ∀ (c c' : Smith.LConfig), Smith.lstep M1 c = some c' → ∃ k, 1 ≤ k ∧ Smith.lnSteps M0 c k = some c') (hnone : ∀ (c : Smith.LConfig), Smith.lstep M1 c = none → Smith.lstep M0 c = none) (c : Smith.LConfig) (n : ℕ) (h : Smith.lnSteps M1 c n = none) : ∃ m, Smith.lnSteps M0 c m = none
A run of the target that ends when the source's run ends.
Induction on n. If M1 is stuck at c so is M0; otherwise the M1 step to
c' is k steps of M0, the induction hypothesis gives an m for c', and the
runs concatenate by Lemma 2.5.7 to a run of length k + m that
is none.
T5 for System 0, Wolfram's machine on a finite tape: from every configuration
whose state is not C, the run of Definition 2.5.9 ends, that is, there is an
n with lnSteps sys0 c n = none (Definition 2.5.6).
Lean code for Theorem7.3.9●1 theorem
Associated Lean declarations
-
Smith.sys0_leaves[complete]
-
Smith.sys0_leaves[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.sys0_leaves (c : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) : ∃ n, Smith.lnSteps Smith.sys0 c n = none
theorem Smith.sys0_leaves (c : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) : ∃ n, Smith.lnSteps Smith.sys0 c n = none
T5 for System 0, Wolfram's machine on a finite tape: from every configuration in state A or B the head leaves the tape.
Theorem 7.3.6 gives the end of the System 1 run;
Lemma 7.3.8 transfers it along the 1-or-3 correspondence of
Theorem 7.2.5 (its one-step form Smith.sys1_sys0_step)
with Lemma 7.3.7 for the stuck configurations.
No configuration of Definition 2.5.9 whose state is not C is periodic: for
every period p >= 1, lnSteps sys0 c p is not some c (Definition 2.5.6).
Lean code for Theorem7.3.10●1 theorem
Associated Lean declarations
-
Smith.sys0_not_periodic[complete]
-
Smith.sys0_not_periodic[complete]
-
theoremdefined in Smith/LoopFree.leancomplete
theorem Smith.sys0_not_periodic (c : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) (p : ℕ) (hp : 1 ≤ p) : Smith.lnSteps Smith.sys0 c p ≠ some c
theorem Smith.sys0_not_periodic (c : Smith.LConfig) (hst : c.state ≠ Smith.LState.C) (p : ℕ) (hp : 1 ≤ p) : Smith.lnSteps Smith.sys0 c p ≠ some c
No System 0 configuration in state A or B is periodic.
Suppose lnSteps sys0 c p = some c. Iterating with Lemma 2.5.7,
lnSteps sys0 c (k * p) = some c for every k. But Theorem 7.3.9
gives an n with lnSteps sys0 c n = none, and a run that is none after n
steps is none after any later number of steps (the helper
Smith.lnSteps_none_add); (n + 1) * p >= n + 1 gives the contradiction.
Through the bridge of the chapter on the machine model:
T5 for Wolfram's machine: from every valid configuration cfg
(Definition 2.3.1, Definition 2.4.2) the run of
Definition 2.4.1 (Definition 2.3.4) reaches, after some n steps,
a configuration cfg' with biSize cfg' = biSize cfg + 1
(Definition 2.3.5), that is, with one more explicit cell: the head has
stepped off the initial finite tape.
Lean code for Theorem7.3.11●1 theorem
Associated Lean declarations
-
Smith.wolfram23_leaves[complete]
-
Smith.wolfram23_leaves[complete]
-
theoremdefined in Smith/Wolfram23Bridge.leancomplete
theorem Smith.wolfram23_leaves (cfg : BiTM.Config) (hv : BiTM.IsValidWolfram23Cfg cfg) : ∃ n cfg', BiTM.nSteps BiTM.wolfram23 cfg n = some cfg' ∧ Smith.biSize cfg' = Smith.biSize cfg + 1
theorem Smith.wolfram23_leaves (cfg : BiTM.Config) (hv : BiTM.IsValidWolfram23Cfg cfg) : ∃ n cfg', BiTM.nSteps BiTM.wolfram23 cfg n = some cfg' ∧ Smith.biSize cfg' = Smith.biSize cfg + 1
T5 (PLAN.md), the head leaves every finite interval: from every valid configuration of Wolfram's (2,3) machine the run reaches a configuration with one more explicit cell, that is, the head has stepped off the initial finite tape.
Read cfg as the System 0 configuration Definition 2.6.2 cfg, whose state
is not C (Smith.ofBi_state). Theorem 7.3.9 gives a run of System 0
that ends; the helper Smith.lnSteps_none_decompose splits it into m successful
steps to a configuration c1 at which lstep sys0 is none.
Theorem 2.6.6 transports the m steps to wolfram23 through
Definition 2.6.1, Theorem 2.6.5 gives the wolfram23 step from
toBi c1 onto the blank right of the tape with one more explicit cell, and
Lemma 2.6.3 identifies toBi (ofBi cfg) with cfg (this is where
validity is used). The size bookkeeping is Lemma 8.3.9: a
System 0 run never changes the length of the tape, so biSize (toBi c1) is
biSize cfg. The wolfram23 run has length m + 1.
No valid configuration cfg of Definition 2.4.1
(Definition 2.4.2) is periodic: for every period p >= 1,
BiTM.nSteps wolfram23 cfg p is not some cfg (Definition 2.3.4).
Lean code for Theorem7.3.12●1 theorem
Associated Lean declarations
-
Smith.wolfram23_not_periodic[complete]
-
Smith.wolfram23_not_periodic[complete]
-
theoremdefined in Smith/Wolfram23Bridge.leancomplete
theorem Smith.wolfram23_not_periodic (cfg : BiTM.Config) (hv : BiTM.IsValidWolfram23Cfg cfg) (p : ℕ) (hp : 1 ≤ p) : BiTM.nSteps BiTM.wolfram23 cfg p ≠ some cfg
theorem Smith.wolfram23_not_periodic (cfg : BiTM.Config) (hv : BiTM.IsValidWolfram23Cfg cfg) (p : ℕ) (hp : 1 ≤ p) : BiTM.nSteps BiTM.wolfram23 cfg p ≠ some cfg
No valid configuration of Wolfram's (2,3) machine is periodic: the explicit tape never shrinks and eventually grows.
Suppose the run returns to cfg after p steps; then it returns to cfg after
k * p steps for every k. Theorem 7.3.11 gives an n and a
configuration cfg' after n steps with biSize cfg' = biSize cfg + 1. Take
k = n + 1: the run from cfg' of the remaining (n + 1) * p - n steps reaches
cfg, but Definition 2.3.5 never decreases along a run
(Lemma 2.3.6, iterated in the helper Smith.biSize_nSteps),
contradiction.
From every valid configuration the wolfram23 run reaches a configuration with one
more explicit cell, that is, the head leaves the initial finite tape; and no valid
configuration is periodic, since biSize never decreases along a run. This is the
formal counterpart of the refutations in docs/REVIEW.md section 4.1 (the old
step-faithful predicates needed a periodic configuration) and settles, in Smith's
direction, what the old code base treated as open.
7.4. Notes and caveats
-
T5 is standalone.
grepshowssys0_leaves,wolfram23_leavesandwolfram23_not_periodicare referenced only inSmith/LoopFree.leanandSmith/Wolfram23Bridge.lean. The infinite form does not use T5, because it has explicit exit times. Smith needs T5 because his Conjecture 0 does not come with a schedule. -
The exit time is existential (bounded by the measure); no closed form is stated.
7.5. Depends on
The modules of this chapter are Smith.Lookahead (the machine type, the rule
tables of Systems 0 to 3 and lnSteps_add), Smith.Systems123 (the
relabelings), Smith.LoopFree (the measure and T5 for Systems 1 and 0),
Smith.Wolfram23Bridge (T5 for wolfram23) and BiTM.Wolfram23Valid (the
validity predicate). The relabelings depend on the simulation calculus of the
chapter on cyclic tag to System 5 (ForwardSim,
ForwardSim_comp) and on the machine model of the chapter on the
machine model (LConfig, lstep, lnSteps, sys0 to
sys3, toBi, ofBi, biSize); the bridge theorems also use lnSteps_length
of Smith/Wolfram23Bridge.lean, introduced in the chapter on
Conjecture 0.