Context
Cutting each mutable work tape at its head turns it into two persistent stacks plus one scanned symbol in finite control.
Hypotheses and scope
- The source machine is deterministic, finite, and strict real time: exactly one global transition consumes each input symbol.
- There is no input-length advice, endmarker transition, epsilon step, or post-input computation.
- For the published LMR application, the number of tapes is positive and all alphabets and control carriers are finite.
Proof or evidence
Lean proves the stack compiler, clean-empty invariant, tape zipper, all-prefix simulation, full tape reconstruction at every integer offset, structural distance and SELF constraints, and language equality. Independent mutation tests exercise the published scaffold interface on a four-stack machine.
Verification notes
The theorem inventory checks 23 Lean files with no proof holes, identifies the empty-pop invariant omitted by the early informal argument, and records exhaustive and mutation-based corroboration.
Limitations
- The result covers the stated strict model, not arbitrary online or multitape machines with delayed work.
- Finiteness is an external specialization at the LMR boundary rather than a premise carried by the polymorphic Lean structures.
- The theorem transfers languages through a specific zipper representation; it is not a lower bound or a model equivalence in the reverse direction.
Notes
The machine-to-scaffold compiler, CleanEmpty invariant, stack simulation, tape zipper, run correspondence, and language equality are formalized in Lean 4.30.0 without Mathlib or admitted proofs. The formal endpoint reconstructs each source tape from the scaffold and proves equality through Tape.get at every integer offset. The separate Python harness instantiates the published scaffold interface on a four-stack middle-bit machine and catches eight deliberate mutations. The separate FPRD-T110 development now formalizes the published scaffold-to-PEG sufficient direction; the historical palindrome machines remain outside Lean.