Protected work-bank boundaries throughout every physical cleanup phase
ProvedIntMul.TrackedBankCleanup.cleanup_window_safealgorithmsfixed-tape-routinginteger-multiplicationturing-machines
For initialized tracked banks with unique local markers and blank tails beyond their tracked extents, every work head remains at or above its original bank offset at every physical time of cleanup, including all rewind, erasure, restoration and local-marker-erasure transitions, and every later halted step. The statement allows arbitrary retained ancestor prefixes, bank offsets, extents and initial head positions. It proves the complete intermediate trajectory bound, rather than only endpoint preservation.
Preamble
import Definitions.Def_IntMul_TrackedBankCleanup import Mathlib.Tactic open IntMul IntMul.TrackedBankCleanup
Formal statement
theorem IntMul.TrackedBankCleanup.cleanup_window_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, offset j ≤ ((machine M).step^[t]
(rewindFrame M base offset extent c pos)).head (BankedSimulation.workTape M j) := by sorrySource
Original all-times tracked bank cleanup window invariant. Written by Codex.