Every ancestor work-bank prefix is preserved at every actual cleanup time
ProvedIntMul.TrackedBankCleanup.cleanup_prefix_safealgorithmsfixed-tape-routinginteger-multiplicationturing-machines
For tracked banks initialized with unique local markers and blank tails beyond their tracked extents, every cell strictly before each work-bank offset retains its original ancestor symbol at every physical cleanup time. The statement covers all rewind, erasure, restoration, marker-erasure and later halted steps, arbitrary bank positions and arbitrary retained ancestor prefixes.
Preamble
import Definitions.Def_IntMul_TrackedBankCleanup import Mathlib.Tactic open IntMul IntMul.TrackedBankCleanup
Formal statement
theorem IntMul.TrackedBankCleanup.cleanup_prefix_safe (M : MultitapeTM) (base : (machine M).Cfg)
(offset extent : Fin M.k → ℕ) (c : M.Cfg) (pos : Fin M.k → ℕ)
(unique : ∀ j p, c.cells j p=M.startSym ↔ p=0)
(tail : ∀ j p, extent j < p → c.cells j p=M.blank) :
∀ t j p, p < offset j → ((machine M).step^[t]
(rewindFrame M base offset extent c pos)).cells (BankedSimulation.workTape M j) p=
base.cells (BankedSimulation.workTape M j) p := by sorrySource
Original all-times physical cleanup ancestor-prefix preservation. Written by Codex.