/machines/1RB0RC_1LC1RB_0RE1LD_0LC1LA_1RF1RA_---0RB/proof.md · raw

1RB0RC_1LC1RB_0RE1LD_0LC1LA_1RF1RA_---0RB (W5-4): never halts (informal proof)

0. Summary

The tape is a bell of 10 pairs with a moving wall 00, followed by a zone that holds a binary counter. The counter's bits sit 3 cells apart, on a lattice anchored at the zone's right end. A zero cell on the lattice is a set bit.

The proof is an invariant on cycle starts s = (n, w, v) (bell n, zone width w, counter value v):

I = { w >= 3,  d = n - 2^(cap(w)+1) >= 2,  M(s) != 0 (mod 3) }  minus the single state (6, 4, 0)

d >= 2 says the bell is long enough for the counter, and M is a mod-3 quantity that every cycle negates. Inside a cycle, every level other than the first phase of the outer cycle starts in a parity class J that cannot reach the halting overflow.

piece status checks (§10)
low-level rules (BR, S, T, W, PS, ZA, PUSH, B1, B0, B0c, H tail) exact TM runs, valid in every context LOW
macro rules (round in 3 cases, B2, nested bite, B1, B0, B0c, H) composed from the low-level rules; counter form MAC, NEST
levels, the stack and the shift law G = F + 1 tape argument (§3.4) NEST, SH
coverage and the phase lemma P proved (§5.2) ABS.P, INV
sign law (Lemma M) proved, one line per rule (§5.4) ABS
Lemmas J, K, A1, Z', Kp; closure of I proved (§5.3, §5.5–5.8) CH, INV
non-halting without termination: one bounded statement U(N), by strong induction on the number of steps proved (§6) its cases are the lemmas above
initial segment, 327 steps exact Z

1. Rule table (busycoq comment-block style)

1RB0RC_1LC1RB_0RE1LD_0LC1LA_1RF1RA_---0RB            (only F0 is undefined)

lattice(w) = { j = w-1-3i : i >= 1, j >= 2 };   bit b of v (b = 0, 1, ...) sits on the b-th smallest lattice cell
enc(w,v)   = 1^w with 0 on the lattice cells of the set bits of v;   L(w) = #lattice(w) = floor(w/3) - 1
cap(w)     = L(w) + [w = 1 mod 3]                    allset(u) = enc(u, 2^L(u) - 1)
R(p,q,Z)   = 0^inf (10)^p 1 C> 0 0 (10)^q Z 0^inf  (p >= 0);   R(-1,q,Z) = 0^inf C> 0 0 (10)^q Z 0^inf  (cycle start)
             (Z never starts with 10: the bell takes every leading 10 pair; Z has no trailing 0)
R_L(p,q,Z) = L 0 0 (10)^p 1 C> 0 0 (10)^q Z 0^inf     (p >= 0, any left context L;  R = R_(0^inf))
R_L(-1,q,Z) = L C> 0 0 (10)^q Z 0^inf                  (only a name for the tape a level pops to)
             no rule is applied to R_L(-1, ..) unless L = 0^inf;  if L = L' 0 0 1 it is the tape R_L'(0, q, Z)

low-level rules (each run reads only the cells shown)
BR   B> 1^k              --> 1^k B>                                    k
S    (01)^k <C           --> <C (01)^k                                 2k       C1 D0
T    (111)^j <C          --> <C (011)^j                                5j       C1 D1 A1 C1 D0
W    C> 00 101010        --> 0101 0011 B>                              10
PS   011 B> (10)^b       --> 0 (10)^b 11 B>                            12b
ZA   00 (10)^a 11 B> 1^f 0  --> C> 0 (01)^(a+1) (011)^j 1              f = 2 mod 3, j = (f+1)/3
                            --> C> 0 (01)^(a+2) 111 (011)^(j-2) 1      f = 1 mod 3, f >= 4, j = (f+2)/3
                            --> C> 0 (01)^a 011111 (011)^(j-1) 1       f = 0 mod 3, f >= 3, j = f/3
PUSH C> 00 1010 (110)^k 111  --> 0101 (001)^k C> 00 101                14+3k   (k >= 0)
B1   00 (10)^p 1 C> 00 10 11 --> C> 00 (10)^(p+3) 1                    2p+15
B0   00 (10)^p 1 C> 00 1^f 0 --> C> 00 (10)^(p+2) 1 (011)^j 1          f = 2 mod 3, j = (f-2)/3
B0c  00 (10)^p 1 C> 00 1^w 0 --> C> 00 (10)^(p+2) 11 allset(w-2)       w = 0 mod 3, w >= 6
     00 (10)^p 1 C> 00 111 00 --> C> 00 (10)^(p+1) 111111              2p+31
Ht   C> 00 101 000       --> 0101 001 F> 0  (F0 undefined)             9

macro rules (Z = enc(w,v), f = position of the first 0 of Z, or w if v = 0; p >= 0 and any left context L;
             the five rounds also hold at p = -1 with L = 0^inf, where they give R(1, ..), §3.2)
R1   R_L(p,q,Z) --> R_L(p+2, q-2, enc(w, v-1))              q >= 3, v >= 1, w = 0,2 mod 3
R2   R_L(p,q,Z) --> R_L(p+2, q-3, enc(w+2, 2v-2))           q >= 3, v >= 1, w = 1 mod 3
O2   R_L(p,q,Z) --> R_L(p+2, q-2, enc(w+1, 2^(L+1)-1))      q >= 3, v = 0,  w = 2 mod 3
O1   R_L(p,q,Z) --> R_L(p+2, q-2, enc(w+1, 2^L-1))          q >= 3, v = 0,  w = 1 mod 3, w >= 4
O0   R_L(p,q,Z) --> R_L(p+2, q-3, enc(w+3, 2^(L+1)-2))      q >= 3, v = 0,  w = 0 mod 3
     (all five = W, PS^(q-3), ZA; 10 + 12(q-3) + f + 1 + 5j + {2(q-2) | 5+2(q-1) | 11+2(q-3)} steps)
B2   R_L(p,2,Z) --> R_L(p+2, 1, Z[2:])  re-parsed           Z starts 111, w >= 6    (PUSH k=0)
                (w = 1, bit 0 set: R_L(p+2, 2, enc(w-4, (v-1)/2)); never occurs, Lemma P)
N    R_L(p,2,(110)^k Y) --> R_L(p+2, G^(k-1)(3, Y[3:]))     k >= 1, Y starts 111, |Y| >= 6
H    R_L(p,2,(110)^k 111) --> halts                         k >= 1  (PUSH k, then Ht: 23+3k steps)
                (also k = 0, Z = 111: PUSH 0, then Ht; never occurs, since a bite zone has width >= 5, P1)
B1   R_L(p,1,Z) --> R_L(-1, p+3, Z[1:])  re-parsed          p >= 0, Z starts 11
B0   R_L(p,0,Z) --> R_L(-1, p+3, enc(w-3, (v-2)/2))         w = 0 mod 3, v >= 1 even
                --> R_L(-1, p+2, enc(w-1, (v-1)/2))         w = 0 mod 3, v odd      (never occurs, Lemma P)
B0c  R_L(p,0,1^w) --> R_L(-1, p+2, enc(w, 2^L-2))           w = 0 mod 3, w >= 6;   1^3 --> R_L(-1,p+1,1^6)
     ending bites (B1, B0, B0c) need the 0 0 left of (10)^p 1 and read nothing left of it

levels:  t = (n,w,v);  F(t) = the cycle start R(-1, F t) reached from R(-1, n, enc(w,v));
         the run from R_L(p0, n, enc(w,v)), p0 >= 0, n >= 3, pops at R_L(-1, F(t) + (p0+1, 0, 0))  (L never read);
         G(t) = F(t) + (1,0,0) = where a level started at R_L(0, n, enc(w,v)) pops
stack:   N = PUSH k, then the innermost level R_L1(0,1,Y[2:]) --B1--> (3, Y[3:]); level i pops into
         level i+1 (R_L(-1, ..) of level i = R_L'(0, ..) of level i+1); level k pops into R(p+2, ..)

invariant:  d(t) = n - 2^(cap(w)+1);  M(t) = n + 2v - 2^(cap+2) (w = 0,2) | n + v - 2^(cap+2) (w = 1)  (mod 3)
   K = { w >= 3, d >= 2 };   I = { t in K : M(t) != 0 } minus (6,4,0)
   J = { w >= 3, n >= 3, n odd if w = 1,2 mod 3 }               (inner phase starts)
   H* = { w = 2: n = 2v+4 } u { w = 1: v = 0, n = 2^(L+1)+4 }    (the phase starts that halt)
   s in I  ->  the cycle from s never halts, and if it ends, F(s) is in I   (M(F s) = -M(s))
start:  c0 -->(327) R(-1, 6, 11111) = (6,5,0),  d = 4, M = 2:  in I

2. Notation and families

3. Rules

3.1 Low-level rules (exact TM runs)

The transitions are A0 = 1RB, A1 = 0RC, B0 = 1LC, B1 = 1RB, C0 = 0RE, C1 = 1LD, D0 = 0LC, D1 = 1LA, E0 = 1RF, E1 = 1RA, F1 = 0RB; F0 is undefined.

Every rule below is a finite run that reads only the cells it shows, so it holds for every context left and right of them. Check LOW runs each one inside random context and verifies that the head never leaves the pattern.

rule statement steps transitions
BR B> 1^k → 1^k B> k B1
S (01)^k <C → <C (01)^k 2k (C1 D0)^k
T (111)^j <C → <C (011)^j 5j (C1 D1 A1 C1 D0)^j
W C> 00 101010 → 0101 0011 B> 10 C0 E0 F1 B0 C0 E1 A1 C0 E1 A0
PS 011 B> (10)^b → 0 (10)^b 11 B> 12b per pair: B1 B0 T C0 E0 F1 B1 B1
PUSH C> 00 1010 (110)^k 111 → 0101 (001)^k C> 00 101 14+3k C0 E0 F1 B0 C0 E1 A1 (C0 E1 A1)^(k+1) S^2
B1 00 (10)^p 1 C> 00 10 11 → C> 00 (10)^(p+3) 1 2p+15 C0 E0 F1 B0 C0 E1 A1 S^(p+4)
Ht C> 00 101 000: F reads a 0 after 9 steps 9 C0 E0 F1 B0 C0 E1 A1 C0 E0

Pair step PS, one pair. 0 1 1 B> 1 0: B1, then B0 writes 1 and C reads the third 1 of 111. T leaves <C 0 1 1 1 with C on the leading 0. C0 E0 F1 B1 B1 then give 0 1 0 1 1 B>. Induction on b.

Zone arrival ZA. Start: 00 (10)^a 11 B> 1^f 0, f ≥ 2. BR runs over 1^f, and B0 writes 1 on the 0. That leaves 00 (10)^a 1^(f+2) <C 1. Then T^j consumes the 1s in threes from the right. What is left depends on f+2 mod 3:

f mod 3 after T^j finish result steps
2 (j = (f+1)/3) 0 1 <C S^(a+1) back to the wall C> 0 (01)^(a+1) (011)^j 1 f+1+5j+2(a+1)
1, f ≥ 4 (j = (f+2)/3) 0 <C C0 E0 F1 B1 B0, then S^(a+2) C> 0 (01)^(a+2) 111 (011)^(j-2) 1 f+1+5j+5+2(a+2)
0, f ≥ 3 (j = f/3) 0 1 1 <C C1 D1 A0 B1 B1 B0 T, then S^a C> 0 (01)^a 011111 (011)^(j-1) 1 f+1+5j+11+2a

Here 0 (01)^m reads as 00 (10)^(m-1) 1. So in each result C stands on the first 0 of a new wall.

Bites at q = 0. B0 and B0c are the same arrival with the wall itself as the start: C> 00 1^f 0 runs C0 E0 F1 BR^(f-1) B0, then T^j, then the sweep S over the left part.

rule transitions steps
B0 (f ≡ 2) C0 E0 F1 B^(f-1) B0 T^((f-2)/3) S^(p+3) f+3+5j+2(p+3)
B0c (w ≡ 0, w ≥ 6) C0 E0 F1 B^(w-1) B0 T^((w-3)/3) C1 D1 A0 B1 B1 B0 T S^(p+2) w+5j+2p+18
B0c on 111 C0 E0 F1 B^2 B0 C1 D1 A0 B^3 B0 T C1 D1 A0 B^2 B0 T S^(p+1) 2p+31

Ending sweeps. In B1, B0 and B0c the last S runs through the left part (10)^p 1 (= 1 (01)^p read leftwards). Then D reads the second 0 of the 00 left of it, and C stops on the first one. So an ending bite needs those two cells to be 0 and reads nothing further left.

3.2 The round (R1, R2, O0, O1, O2)

For q ≥ 3 and Z = 1^f 0 r, the round is W, then PS^(q-3), then ZA with a = q - 3. Reading the ZA result as a family member gives three cases by f mod 3:

f = 2 (mod 3):          R_L(p, q, 1^f 0 r) --> R_L(p+2, q-2, (110)^((f-2)/3) 111 r)
f = 1 (mod 3), f >= 4:  R_L(p, q, 1^f 0 r) --> R_L(p+2, q-2, 1111 (011)^((f-4)/3) 1 r)
f = 0 (mod 3), f >= 3:  R_L(p, q, 1^f 0 r) --> R_L(p+2, q-3, 11111 (011)^((f-3)/3) 1 r)

Left context. The round reads nothing left of the wall. It turns the wall and the first pair into 0101 (W), so for every L

L C> 0 0 (10)^q Z   -->   L 0101 C> 0 0 (10)^q' Z'

Counter form. For a zone enc(w, v), the first 0 is at the lowest set bit, and that bit's cell is ≡ w-1 (mod 3). When v = 0, f = w. Rewriting the three outputs:

rule condition output zone q'
R1 v ≥ 1, w ≡ 0, 2 enc(w, v-1) (the decrement: clear cell f, set f-3, f-6, … ≥ 2) q-2
R2 v ≥ 1, w ≡ 1 11·enc(w, v-1) = enc(w+2, 2v-2) q-3
O2 v = 0, w ≡ 2 enc(w+1, 2^(L+1)-1), all set, L+1 bits q-2
O1 v = 0, w ≡ 1, w ≥ 4 enc(w+1, 2^L-1), all set, L bits q-2
O0 v = 0, w ≡ 0 11·allset(w+1) = enc(w+3, 2^(L+1)-2) q-3

Rounds with q-2 are 2-rounds; R2 and O0 are 3-rounds. A round never outputs a zone starting with 10, so no reparse is needed.

3.3 Bites

rule from to (counter form) proof
B2 R_L(p, 2, Z), Z starts 111, w ≥ 6 R_L(p+2, 1, Z[2:]) re-parsed. w ≡ 0: enc(w-2, v/2); w ≡ 2: enc(w-2, v); w ≡ 1: enc(w-2, v/2) if bit 0 is clear, else R_L(p+2, 2, enc(w-4, (v-1)/2)) PUSH, k = 0
N R_L(p, 2, (110)^k Y), k ≥ 1, Y starts 111, Y ≠ 111 R_L(p+2, G^(k-1)(3, Y[3:])) §3.4
H R_L(p, 2, (110)^k 111), k ≥ 1 (k = 0: Z = 111) halts after 23+3k steps PUSH k, then Ht
B1 R_L(p, 1, Z), p ≥ 0 R_L(-1, p+3, Z[1:]) re-parsed. w ≡ 0: (p+3, enc(w-1, v>>1)) if bit 0 is clear, (p+4, enc(w-3, v>>1)) if set; w ≡ 1, 2: (p+3, enc(w-1, v)) B1
B0 R_L(p, 0, Z), w ≡ 0 bit 0 clear, v ≥ 1: (p+3, enc(w-3, (v-2)/2)); bit 0 set: (p+2, enc(w-1, (v-1)/2)) B0
B0c R_L(p, 0, 1^w), w ≡ 0 w ≥ 6: (p+2, enc(w, 2^L-2)); w = 3: (p+1, enc(6, 0)) B0c

At q = 2, a zone starting 110 has its bit 0 set, so w ≡ 0. Then Z = (110)^k Y, where k is the number of low set bits and Y = Z[3k:]. Y starts with 111 (its first lattice bit is clear), or it is 111 exactly (all bits of Z set). An enc zone of width ≡ 0 that starts with 111 and is not 111 has width ≥ 6.

The zone 111 itself (w = 3, k = 0) halts at q = 2: PUSH 0 leaves R_L(p+2, 1, 1), and Ht follows. It never occurs, because a bite zone has width ≥ 5 (P1). B2 at w = 4 or 5 would need w ≢ 0 at q = 2, which never occurs either (P3).

3.4 Levels, the stack, and the shift law

Levels. A level is a run of the family started at R_L(0, n, Z) (an inner level, any L) or at R(-1, n, Z) (the outer level, blank left side), with n ≥ 3. It applies macro rules until its first ending bite, which leaves it at R_L(-1, n', Z'), the pop.

Shift law. Rounds, B2 and N read nothing left of the wall and add 2 to p. They hold for p ≥ 0 with any L, and the rounds also at p = -1 with the blank left side (§3.2). The ending bites need p ≥ 0. They output q' = p + const, plus a reparse that does not depend on p. Which rule applies depends on (q, Z) only. So:

The only TM fact used is that an ending bite reads the two cells left of (10)^p 1 and nothing beyond. For L = 0^inf they are blank. For an inner level they are the 00 of its 001 block (below). Check SH runs the TM from L 0 0 (10)^p0 1 C> 0 0 (10)^n Z with random L and p0, and confirms that it pops at F(t) + (p0 + 1) without visiting L.

The stack (rule N). Take R_L(p, 2, (110)^k Y) with k ≥ 1, Y starting 111, Y ≠ 111.

  1. PUSH k gives L 00 (10)^(p+2) 1 (001)^k C> 00 10 Y[2:]. - Write L_i = L 00 (10)^(p+2) 1 (001)^(k-i). Then this is R_{L_1}(0, 1, Y[2:]): level 1, the innermost.
  2. Level 1 is one B1 bite (Y[2:] starts 11). It pops at R_{L_1}(-1, 3, Y[3:]). - Y[3:] starts 11, so no reparse.
  3. Since L_1 = L_2 0 0 1, the configuration R_{L_1}(-1, q, Z) is the same tape as R_{L_2}(0, q, Z). So each pop is the next level's start. - Level i ≥ 2 starts at R_{L_i}(0, t_i), with t_2 = (3, Y[3:]) and t_(i+1) = G(t_i) by (SL2).
  4. Level k pops at R_{L_k}(-1, t_(k+1)), and L_k = L 00 (10)^(p+2) 1. So that tape is R_L(p+2, t_(k+1)). - The outer level continues from there with t_(k+1) = G^(k-1)(3, Y[3:]). For k = 1 this is B2': R_L(p+2, 3, Y[3:]).
  5. A nested bite inside a level does the same with that level's own L. Formally the stack is an induction on the length of the computation, since every inner level is a strictly shorter run.

Check NEST runs the TM on random nested bites: the level starts (10)^(p+2) 1 (001)^(k-i+1) C> 00 (10)^(n_i) Z_i occur in order, then the exit. With Y = 111 the innermost level is R(0, 1, 1), and Ht halts: that is H.

Composite form of a cycle with a continuation. Let the first N bite of the outer level from s happen at R(p_c, 2, Z_c), with k low set bits and L_c = L(|Z_c|) bits. Here p_c is in the outer frame, where p = -1 at the cycle start.

F(s) = (p_c + 2) + t_(k+2),     t_2 = (3, Z_c[3k+3:]),  t_(i+1) = G(t_i),     so  d(F s) = p_c + 2 + d(t_(k+2))

By the stack, the outer level resumes at R(p_c + 2, t_(k+1)). By (SL3) the rest pops at F(t_(k+1)) + (p_c + 3) = t_(k+2) + (p_c + 2). Later N bites of the outer level lie inside this last G-step. The cap of t_2 is L_c - k - 1: its zone drops the k+1 low bits.

The same argument for a level started at R_L(0, t), with the first N bite at R_L(p_c, 2, Z_c) and p_c in the level's own frame (p = 0 at the level start), gives

G(t) = (p_c + 2) + t_(k+2)

In the frame of the cycle from t (p = -1 at the start) that bite is at p_c - 1, and the formula reads F(t) = (p_c + 1) + t_(k+2). Check INV (CF-J) tests the own-frame form.

4. Cycle arithmetic

Levels of a phase. Fix a phase start (n, w, v) with w ≡ 0 or 2. Let c = L(w) (= cap(w)) and e = [w ≡ 2].

E_i = E_0 + i - e - (2^(c+i+2) - 2^(c+2))        (i >= 1)

and overflows again (O0) iff E_i ≥ 3. That gives E_(i+1) = E_i + 1 - 2^(c+i+2).

Position at the bite. Count the decrements of q: n - q_b = 2·(#2-rounds) + 3·(#3-rounds), and the only 3-rounds are the m - e O0 overflows (m ≥ 1). Each round adds 2 to p, so

p_b = n - 1 - q_b - (m - e)        (outer level, p starts at -1)

Reductions for w ≡ 1 (check CH.EQ1, CH.EQ2).

5. The invariant

5.1 Definitions

d(t) = n - 2^(cap(w)+1)          M(t) = n + 2v - 2^(cap+2)  (w = 0,2 mod 3);   n + v - 2^(cap+2)  (w = 1)   (mod 3)
K  = { w >= 3, d >= 2 }          I = { t in K : M(t) != 0 } minus (6,4,0)
J  = { w >= 3, n >= 3, n odd when w = 1 or 2 mod 3 }
H* = { w = 2 mod 3, n = 2v + 4 }  u  { w = 1 mod 3, v = 0, n = 2^(L+1) + 4 }
T_c = (2^(c+1)+2, 3c+5, 2^c - 1)        (w = 2 mod 3, d = 2, all set)

A state t is zone-dominated if d(t) ≤ 1, and K-like if d(t) ≥ 2.

H* ∩ K = {T_c : c ≥ 0} ∪ {(6,4,0)}.

M(T_c) = 0: 2^(c+1) + 2 + 2^(c+1) - 2 - 2^(c+2) = 0. Also H* ∩ J = ∅, because H* has n even and w ≢ 0.

5.2 Lemma P (phase lemma, and coverage)

Take a phase start with q = n ≥ 3 and zone enc(w, v), w ≥ 3, that lies in J or in K. Then:

Checks ABS.P.* test (P3) and (P5) on every rule application of random K and J cycles. INV.hstar tests (P4) on the exhaustive windows.

5.3 Lemma J (inner phases)

Lemma J. If t ∈ J, the level from t never halts, never reaches a configuration without a rule, and (if it pops) pops into J. The same holds for every phase of the level.

Proof.

No termination is claimed. A level that never pops is still a run without a halt. □

The induction "on the length of the run" here, and in §5.4 (N) and §5.7, is made exact in §6: Lemmas J, K, Z', Kp and M (for one level) are one bounded statement U(N), proved by strong induction on the number of steps N.

5.4 Lemma M (sign law)

Extend M to every family member, with σ = +1 for w ≡ 1 and σ = -1 otherwise:

Q(p, q, Z) = q - (p+1) + σ v - (-1)^cap(w)    (mod 3)

At p = -1, Q = M, because 2^(cap+2) ≡ (-1)^cap and 2v ≡ -v.

Lemma M. Rounds, B2 and N keep Q. The ending bites negate it. So M(F s) ≡ -M(s).

All congruences are mod 3, with 2^x ≡ (-1)^x, 2 ≡ -1 and v/2 ≡ -v for even v. Write L = L(w).

Rounds (Q' is computed at p+2):

rule Q before Q' after why equal
R1 (w ≡ 0, 2) q-p-1-v-(-1)^L (q-2)-(p+3)-(v-1)-(-1)^L differs by -3
R2 (w ≡ 1, cap L+1) q-p-1+v+(-1)^L (q-3)-(p+3)-(2v-2)+(-1)^L (w+2 ≡ 0, cap L+1) differs by -3-3v
O2 (w ≡ 2, v = 0) q-p-1-(-1)^L (q-2)-(p+3)-(2^(L+1)-1)+(-1)^L ≡ q-p-4+2(-1)^L -4 ≡ -1, 2 ≡ -1
O1 (w ≡ 1, v = 0) q-p-1+(-1)^L (q-2)-(p+3)-(2^L-1)-(-1)^L ≡ q-p-4-2(-1)^L same
O0 (w ≡ 0, v = 0) q-p-1-(-1)^L (q-3)-(p+3)-(2^(L+1)-2)+(-1)^L ≡ q-p-4+2(-1)^L same

Bites that keep Q (B2, at q = 2, Q' computed at p+2, q' = 1):

case Q before Q' after
B2, w ≡ 0 (v even) 1-p-v-(-1)^L 1-(p+3)+v/2-(-1)^L ≡ -p-2-v-(-1)^L (w-2 ≡ 1, cap L)
B2, w ≡ 2 1-p-v-(-1)^L 1-(p+3)-v-(-1)^L (w-2 ≡ 0, cap L)

Ending bites (Q' computed at p = -1; the claim is Q' ≡ -Q):

case Q before Q' after
B1, w ≡ 0 (b0 = bit 0) -p-v-(-1)^L (p+3+b0)-(v-b0)/2+(-1)^L ≡ p+v+(-1)^L (cap L-1)
B1, w ≡ 2 -p-v-(-1)^L (p+3)+v+(-1)^L (w-1 ≡ 1, cap L+1)
B1, w ≡ 1 -p+v+(-1)^L (p+3)-v-(-1)^L (w-1 ≡ 0, cap L)
B0, w ≡ 0, bit 0 clear -p-1-v-(-1)^L (p+3)-(v-2)/2+(-1)^L ≡ p+v+1+(-1)^L (cap L-1)
B0, w ≡ 0, bit 0 set -p-1-v-(-1)^L (p+2)-(v-1)/2+(-1)^L ≡ p+1+v+(-1)^L (cap L-1)
B0c, w ≥ 6 -p-1-(-1)^L (p+2)-(2^L-2)-(-1)^L ≡ p+1+(-1)^L (cap L)
B0c on 111 -p-2 (p+1)+1 = p+2 (zone 1^6, cap 1)

N (induction on depth). Let X_i be Q at the start of level i (p = 0). Each level keeps Q until its ending bite, which negates it. The pop (p = -1) has Q = -X_i, and the next level's start has Q one smaller (p+1 goes from 0 to 1). So

X_(i+1) = -X_i - 1,   i.e.   X_(i+1) - 1 = -(X_i - 1)     (mod 3)

Level 1 starts at R(0, 1, Y[2:]), where Y[2:] has w ≡ 1, value v_Y/2 and cap L - k. So X_1 ≡ -v_Y - (-1)^(L-k).

The outer level resumes with Q_out = -X_k - (p+3), and Q_in = 1 - p - v - (-1)^L with v = 2^k - 1 + 2^k v_Y. Substituting X_k = 1 + (-1)^(k-1)(X_1 - 1), both sides equal -p - 1 - (-1)^k(1 + v_Y) - (-1)^L. So Q_out = Q_in. □

5.5 Lemma K, plain cycles

Lemma K. Let s ∈ K, s ∉ {T_c, (6,4,0)}. The cycle from s does not halt, and if it ends, F(s) ∈ K. T_c and (6,4,0) halt (they are in H*).

Halting. The outer first phase halts iff s ∈ H* (P4), i.e. iff s is T_c or (6,4,0). Every later phase starts in J (Lemma J). So the cycle does not halt.

The bound, w ≡ 0 or 2 (c = L(w), e = [w ≡ 2]).

ending n' d'
E1: q_b = 1, B1 p_b + 3 + b0 n + 1 - m + e + b0 - 2^(c+m)
E2: q_b = 2, b0 = 0, B2 then B1 p_b + 5 n + 2 - m + e - 2^(c+m)
E0: q_b = 0, B0 p_b + 3 n + 2 - m + e - 2^(c+m)

Here b0 is bit 0 of u. B0c cannot end an outer K cycle: it needs u = 0, so c + m = 1, but q_b = 0 needs m ≥ 2 (next item).

n = E_0 + 2v >= q_b + 4 - m + e + 2^(c+m+1) - 2^(c+2) + 2v

Substituting into the table gives

d' >= X_m + 2e + 2v + [b0 in E1] + [2 in E2],     X_m = 2^(c+m) - 2^(c+2) - 2m + 6

X_2 = 2. For m ≥ 3, X_m ≥ 4(2^(m-2) - 1) - 2m + 6 = 2^m - 2m + 2 ≥ 4. So d' ≥ 2.

w ≡ 1, v ≥ 1 (cap c = L+1). Use (EQ1) with s~ = (n-1, w+2, 2v-1): w+2 ≡ 0, e = 0, cap c, v~ ≥ 1, d~ = d - 1.

w ≡ 1, v = 0. Use (EQ2) with s' = (n-2, w+1, 2^(c-1)-1): w+1 ≡ 2, all set, cap c - 1, d(s') = d + 2^c - 2 ≥ 2. s' = T_(c-1) only when n = 2^c + 4, which with n ≥ 2^(c+1) + 2 means c = 1, s = (6,4,0). Otherwise d(F s) = d(F s') + 2 ≥ 4.

Check CH tests E_0 ≥ d+2, m ≥ 1, the bite zone (w ≡ 0, c+m bits), p_b, the n' and cap' formulas, E0 ⇒ m ≥ 2, and the stated d' bound, on every plain cycle of the window. For w ≡ 1 it tests E_0~ ≥ 7 and the shared bite of s and s~, and E_0' ≥ 4 with m(s) = m(s') + 1 (EQ2, below).

5.6 Lemma A1 (the bell at the first continuation)

A1. If the outer cycle from s ∈ K has an N bite, the first one is at R(p_c, 2, Z_c) with p_c ≥ 2^(L_c) - 3.

Proof. It happens at level m, with q_b = 2 and b0 = 1, so p_c = p_b = n - 3 - m + e and L_c = c + m.

5.7 Lemmas Z' and Kp (inner levels), and Lemma K for continuation cycles

Kp. If t ∈ J, d(t) ≥ 2 and the level from t pops, then d(G t) ≥ 3.

Proof. t ∈ K, and t is neither T_c nor (6,4,0): both have even n and w ≢ 0, so they are not in J. Lemma K gives d(F t) ≥ 2, and G = F + 1. □

Z'. If t ∈ J, d(t) ≤ 1 and the level from t pops, then d(G t) ≥ 2 or cap(G t) ≤ cap(t) + 1.

Proof, w ≡ 0 or 2.

Proof, w ≡ 1 (n odd).

Lemma K, continuation case. Let s ∈ K \ {T_c, (6,4,0)} have an N bite and let its cycle end. By the composite form, d(F s) = p_c + 2 + d(t_(k+2)), with t_2, …, t_(k+2) ∈ J (Lemma J).

d(F s) >= (2^(L_c) - 3) + 2 + 3 - 2^(L_c) = 2.

w(F s) = w(t_(k+2)) ≥ 3, so F(s) ∈ K. The data minimum is d(F s) = 5 on continuation cycles.

Induction. Lemmas K (for K), Z' and Kp (for J) refer to runs that pop. Their proofs use the same lemmas for the inner levels of an N bite, and for the rest of the level after it. Each of these is a run that starts later, so it is shorter. §6 states Lemmas J, K, Z', Kp and M (for one level) as one bounded statement U(N) and proves it by strong induction on the number of steps N. The proofs above are its induction step.

5.8 Closure of I

Let s ∈ I. Then:

(NB) Every cycle from s ∈ K that ends has

n(F s) >= n - m     and     2^(m-1) <= n
n >= E_0 >= 2^(c+m+1) - 2^(c+2) + 4 - m + e >= 2^(m+1) - m >= 2^m

So n(F s) = 6 needs n ≤ 6 + m with 2^(m-1) ≤ n, which leaves n ≤ 10.

Check INV runs F on every s ∈ K with n ≤ 12 and w ≤ 30 (K needs c ≤ 2 there): none maps to (6,4,0). Check CH tests each part of NB (the chain bound for m ≥ 2, the plain and continuation n' bounds, and the w ≡ 1 reductions), and INV tests NB itself on every cycle of its windows.

So F(s) ∈ I.

6. Non-halting: induction on the number of steps

The argument is one strong induction on the number of TM steps. Lemma K's bound is used only for cycles that end within the steps considered. So termination of levels is never needed.

Runs. Let t = (n, w, v) with n ≥ 3. Let L be a left side and p0 ≥ 0, or p0 = -1 with L = 0^inf. Write run(L, p0, t) for the TM run from R_L(p0, n, enc(w, v)).

The statement U(N). For every t ∈ J ∪ K' and every L, p0 as above: in its first N steps, run(L, p0, t) does not halt before its pop. If it pops within N steps, then

(U1)  t in J               ->  G(t) in J                                  (Lemma J)
(U2)  t in K'              ->  F(t) in K                                  (Lemma K)
(U3)  t in J, d(t) <= 1    ->  d(G t) >= 2  or  cap(G t) <= cap(t) + 1    (Lemma Z')
(U4)  M(F t) = -M(t)                                                       (Lemma M)

(U4) is Lemma M for one level: Q starts at M(t) - (p0 + 1) and ends at M(F t) + (p0 + 1), and the level negates it. Kp is a case of (U2). A t ∈ J with d(t) ≥ 2 lies in K', because J contains no T_c and not (6,4,0). So d(G t) = d(F t) + 1 ≥ 3.

U(N) holds for every N. Assume U(N') for all N' < N, and take t, L and p0.

  1. First phase. By (SL1) it applies the rules of §3, with p shifted by p0 + 1. By (P1)–(P3) every configuration has a rule. t is not in H, since H ∩ J = ∅ and H* ∩ K = {T_c} ∪ {(6,4,0)}. So by (P4) the phase does not reach H, and every other rule is a finite run that does not halt.
  2. A plain end. If the first bite is an ending bite (B1, B0, B0c), or B2 followed by B1, that ending bite is the pop. Then (U1)–(U4) are arithmetic on the first phase: (P5) as in Lemma J, the plain cases of §5.5, the plain cases of Z', and the per-rule tables of Lemma M.
  3. An N bite. Otherwise the first bite is an N bite with k low set bits, at R_L(p_c, 2, Z_c). PUSH takes 14 + 3k ≥ 17 steps. Then come, one after the other: - the innermost level, one B1 bite, which leads to t_2 ∈ J; - level i = 2, …, k, which is run(L_i, 0, t_i); - the rest of the level, which is run(L, p_c + 2, t_(k+1)), from the tape where level k pops (SL3).

Each of them starts after at least 17 steps, so U(N') with N' < N applies to it for the steps that are left. - If one of them does not pop within the steps left, the run has neither halted nor popped within N steps. - Otherwise each t_(i+1) is in J, (U1)–(U4) hold for each t_i (i = 2, …, k+1), and the pop of the rest is the pop of the run. (U1)–(U4) then follow from the composite form (§3.4), A1, and the N-bite cases of Lemma J, Lemma K, Z' and Lemma M (the N row of §5.4 uses (U4) for the inner levels). 4. w ≡ 1. The cases of §5.5 and §5.7 for w ≡ 1 go through EQ1 and EQ2. - EQ1 changes only the first round. After it, the run is the same as the run from t~ after its first round, and steps 1–3 apply to it. - After the O1 of EQ2, the run is run(L, p0 + 2, t'), and U(N') applies to it for some N' < N.

Non-halting. Let s ∈ I. For every N, the run from R(-1, s) does not halt within N steps. By strong induction on N:

By §7, the blank run reaches (6,5,0) ∈ I at step 327. So the machine never halts.

Why F0 is never read. F is entered only by E0. In every low-level rule except Ht, that E0 is followed by F1. Ht is the end of H, and H needs a phase start in H*.

7. Initial segment (exact)

c0 = 0^inf A> 0^inf  -->(4)   R(-1,0,11)   -->(13) R(-1,1,11)   -->(26) R(-1,2,1)    -->(55) R(-1,3,111)
                     -->(116) R(-1,3,111111) -->(175) R(-1,4,111111) -->(244) R(-1,4,11110111)
                     -->(327) R(-1,6,11111) = (6,5,0)

The numbers are absolute step counts at the left records. At (6,5,0): w = 5, cap = 0, d = 6 - 2 = 4, M = 6 - 4 = 2. So it is in I.

The earlier states are outside K: they have w ≤ 2, or d < 2, or n ≤ 2. They are run by direct simulation in init. Check Z confirms the 8 cycle starts and then I along 20,000 abstract cycles.

8. Conclusion

8.1 Non-halting

By §7, the run reaches (6,5,0) ∈ I at step 327. By §6 (strong induction on the number of steps), from a cycle start in I the run does not halt within N steps, for every N: each cycle does not halt before it ends, and each cycle that ends starts the next one in I (§5.8). So the machine never halts.

8.2 Why it is not a cryptid

The rules are counter arithmetic: decrement, refill, and bites that drop 1 to 3 low cells. The nested bites are the same rules on a sub-zone.

The chaotic level-up transients (zones eaten to 5–12 cells, nesting depth up to 24) never need exact tracking. They are inside I: the bound d ≥ 2 and the mod-3 class M ≠ 0 are all the proof uses.

9. Lemma plan for Rocq (template: W4-2)

step busycoq notes
tape families R p q Z := const 0 <* [0;1]^^p <* [1] {{C}}> [0;0] *> [1;0]^^q *> Z *> const 0 for p : nat (left lists outward from the head); the cycle start R0 q Z := const 0 {{C}}> [0;0] *> [1;0]^^q *> Z *> const 0; RL l p q Z for p : nat with an arbitrary left side l Z as list Sym built from enc; the walls of the stack as [1;0;0] blocks of L. The pop tape l {{C}}> [0;0] *> … gets no rule lemma for arbitrary l (§3.2): the outer pop is R0, and an inner pop has l = l' <* [1;0;0] and is RL l' 0 q Z
BR, S, T, PS Lemma … : … -->* … by ind/induction with one IH use each shift rules; W4-2's RS and L1 have the same shape
W, PUSH, B1, Ht, B0, B0c, ZA finite es runs after the shift rules ZA in three lemmas by f mod 3; f = 3j+r as the induction variable of T
macro rules R1–O0, B2, B1, B0, B0c one BigStep-style lemma per rule, follow the low-level lemmas the counter forms (§3.2–3.3) are list identities on enc, proved once
the stack, N induction on depth with the left side abstracted (RL) the shift law is free if every non-ending lemma is stated for all l
bounded level lemma U(N) of §6, for all N by strong_induction the arithmetic of §4–§5 as lemmas on (n, w, v); no abstract map F is needed (below)
non-halting ~ halts tm c0 from forall N, ~ halts_in tm c0 N (§6, route 3) the 327-step prefix by es/execute

Formalization route. §6 needs no termination. In busycoq, halts tm c is exists n, halts_in tm c n, and progress_nonhalt' in TM.v is itself a strong induction on n. Three routes:

  1. Stack invariant with history. Run progress_nonhalt_cond over a stack invariant on macro boundaries. It must carry a partial derivation of the outer cycle (PartialLev s c), closed into a completed run at the cycle end, because Lemma K at a cycle end uses the whole cycle (A1, the chain t_2, …, t_(k+2)).
  2. Termination. Prove that every level from J pops and every cycle from K ends. Then progress_nonhalt_cond runs over cycle starts in I with F directly, as in W4-2. No termination proof is known; the data has every cycle ending (3e7 cycles).
  3. Bounded lemmas (recommended). Prove U(N) for every N by strong induction, exactly as in §6. In Rocq form, for all N, t ∈ J ∪ K', l and p0: either ~ halts_in tm (RL l p0 t) k for every k ≤ N (R0 t in place of RL l p0 t for the outer cycle), or the run reaches the pop tape of some t' + (p0 + 1, 0, 0) at a step m ≤ N, with (U1)–(U4) for (t, t'). The second case gives t' directly, so no abstract map F and no uniqueness of the pop are needed. TM.v's preceeds_halt and exceeds_halt split a run at an intermediate configuration. Then ~ halts tm c0 follows by a last strong induction over cycles, as in §6.

Route 3 needs neither termination nor history in an invariant. It is the recommended route.

10. Evidence (python3 -B check_proof.py [--seed S] [--quick | --full] [--only SECTIONS])

Self-contained: its own TM simulator and abstract model, no other scripts. Logs: work/check_proof_seed1.log (default), work/check_proof_quick_seed1.log and work/check_proof_quick_seed2.log (--quick), work/check_proof_full_seed1.log and work/check_proof_full_seed1_INV.log (--full, partial: T to CH and the first INV window, all PASS; the second INV window, the random states and Z did not finish). The number of named checks varies slightly by seed, because MAC.TM and ABS report one line per rule kind that the random sample meets.

section what is checked size (default run)
T transition table; F0 the only undefined transition; byte-exact on the 740 list
LOW BR, S, T, W, PS, ZA (3 cases), PUSH, B1, B0, B0c, H tail: exact runs with step counts, inside random context, head never outside the pattern k, j, b ≤ 39; ZA a ≤ 11, f ≤ 39; p ≤ 39
MAC composed round (W, PS^(q-3), ZA) = the counter form of R1/R2/O2/O1/O0; the enc forms of every round and bite; bite outputs are enc zones; the round with no left part: L C> 00 (10)^q Z → L 0101 C> 00 (10)^q' Z' for random L, reading nothing left of the wall (§3.2); every macro rule (H, N included) = end-to-end TM run with random left context, which is never read (ending bites: never left of the 00); step formula of the round zones w ≤ 39; 450 runs at p = -1 (195 with L ending in 1); 1,500 random TM runs
NEST nested bites on the TM: the level starts (10)^(p+2) 1 (001)^(k-i+1) C> 00 (10)^(n_i) Z_i in order, then the exit R(p+2, G^(k-1)(3, Y[3:])); Y = 111 halts 160 random bites, k ≤ 5
SH (SL1) on the TM: the run from L 0 0 (10)^p0 1 C> … pops at F(t) + (p0 + 1) without visiting L (random L; p0 = 0, i.e. G(t), in 112 cases, p0 ≤ 8 otherwise); G = F + 1; F = the TM's next left-record cycle start 170 J states, 130 K states, n ≤ 400
ABS Lemma P (q = 2 only with w ≡ 0; all-set zone at q = 2 only after O2 at q = 4; q = 0 only after R2/O0 at q = 3; B0 has f ≥ 5; bite zones of width ≥ 6 at q = 0, 2, ≥ 5 at a phase bite, ≥ 4 after B2; pops with w' ≡ 1, 2 have n' ≡ p+1); sign law per rule every rule application of 4,000 random K/J cycles
CH EQ1, EQ2; E_0 ≥ d+2 ≥ 4; m ≥ 1; bite zone w ≡ 0 with c+m bits; p_b; plain n', cap' and d' bounds; q_b = 0 ⇒ m ≥ 2; zone-dominated ⇒ m ≤ 1; w ≡ 1: E_0~ ≥ 7 and the same bite as s~ (EQ1), E_0' ≥ 4 and m(s) = m(s') + 1 (EQ2); the parts of NB (chain bound n ≥ 2^m for m ≥ 2, plain n' ≥ n + 1 - m, continuation n' ≥ n + 2 - m + e) every state of the window w ≤ 21, n < 2^(cap+4)
INV H* = halting set; J1, Z', Kp; Lemma K; M(F s) = -M(s); closure of I; NB (n' ≥ n - m, 2^(m-1) ≤ n); A1 (min slack 0), composite form CF (outer frame) and CF-J (a level's own frame), A2; no predecessor of (6,4,0) in K with n ≤ 12 windows w ≤ 18, n < 2^(cap+4) and w ≤ 12, n < 2^(cap+9) (--full: w ≤ 24 / w ≤ 14, n < 2^(cap+11)); 6,000 random states up to w = 60, n ~ 2^(cap+6)
Z the 8 blank-tape cycle starts to step 327; (6,5,0) ∈ I; I along the abstract orbit 20,000 cycles

Earlier, larger checks of the same lemmas with the stage scripts (notes.md, funded stage): H* on 1.2M states, J/Z'/Kp on 2.4M, 685,028 continuation cycles, Lemma K on 10.4M states of K, 200,000 random states up to w = 75, the closed-rule model against the direct run at all 4,197 cycle starts to 1e11 steps.

11. What is not proved

12. Checkpoint B (Dennis)

Pending (non-blocking).

Review log