Complete physical output reversal with retained caller frame and cleared scratch
ProvedIntMul.CanonicalOutput.canonical_outputalgorithmsfixed-tape-routinginteger-multiplicationturing-machines
Let be a finite binary word physically present on the output tape at its end cursor, with an empty scratch tape at its start marker. A fixed fifteen-tape machine reverses , clears scratch, retains every other caller tape and head, and halts in its exact terminal configuration after at most
actual transitions. The bound includes both physical copies, both erasures, real marker seeking and four caller returns, and holds for empty . This supplies the output-order return required after low-to-high digit processing. Incoming tape contents and cursor positions are explicit caller obligations.
Preamble
import Definitions.Def_IntMul_CanonicalOutput import Mathlib.Tactic import Theorems.Thm_IntMul_TapeBankErase_erase_bank import Theorems.Thm_IntMul_FiniteCaller_simulate_run open IntMul IntMul.CanonicalOutput
Formal statement
theorem IntMul.CanonicalOutput.canonical_output (base : machine.Cfg) (w : List Bool) :
∃ t : ℕ, t ≤ 8*w.length+16 ∧
machine.step^[t] (initialFrame base w)=finalFrame base w ∧
(machine.step^[t] (initialFrame base w)).state=machine.qHalt := by sorrySource
Original complete physical output order repair. Owns actual copying, full caller frame preservation, both workspace erasures, and the complete linear clock proof. Written by Codex.