Glue facts: phase outputs vs the interpreted step #
Small bridges used when matching the body's phase outputs against
TMDesc.toTM.step:
- a well-formed tape reads
▷exactly at the origin, so the peek flags and the interpreter's sanitization conditions coincide; simReadof the live shadow read recovers the simulated read exactly;- parsed entries' targets are in range, so the interpreter's
min-clamp is the identity on them.
A well-formed tape reads ▷ exactly at cell 0.
theorem
Complexity.TM.UTMBody.writeAndMove_readback_eq_move
{t : Tape}
(hwf : t.StartInvariant)
(d : Dir3)
:
Writing back the read symbol (the interpreter's default action) and moving is just the move, on a well-formed tape.
theorem
Complexity.TM.UTMBody.scratch_cellBit_eq_segBit
{t : Tape}
{seg : List Γw}
{w k : ℕ}
(hk : k < 10)
(hlen : 2 * w + 16 ≤ seg.length)
(h : t.HoldsExact (List.take (w + 10) (List.drop (w + 6) seg)))
:
Scratch cells holding the value slice decode, at the action offsets, to the segment's action bits.