Actual fresh child-bank reservation preserving parent cells with exact maximum-distance clock
ProvedIntMul.TrackedBankReservation.reserve_correctalgorithmsfixed-tape-routinginteger-multiplicationturing-machines
From a tracked parent frame whose heads are at most one past its visited extents and whose unvisited tails are genuinely blank, one fixed finite shared-tape routine physically finds every bank first fresh cell in exactly max_j(E_j+1-pos_j)+1 actual transitions. The full parent cells and all visited flags are unchanged; root input, caller buffer and their heads remain fixed; each work head is parked at oldOffset_j+E_j+1. Every suffix from that new physical boundary is fresh tagged blank, so child-bank reservation does not assume a free address oracle or free seek. The source proves the coarser max(E)+2 bound. Saved ancestor prefixes are retained; subsequent actual preparation writes child markers and copies the caller input.
Preamble
import Definitions.Def_IntMul_TrackedBankReservation import Mathlib.Tactic open IntMul.BankedSimulation (workTape) open IntMul.TrackedBankCleanup (span) open IntMul IntMul.TrackedBankReservation
Formal statement
theorem IntMul.TrackedBankReservation.reserve_correct (M : MultitapeTM) (base : (machine M).Cfg) (offset extent : Fin M.k → ℕ)
(c : M.Cfg) (near : ∀ j, c.head j ≤ extent j + 1)
(tail : ∀ j p, extent j < p → c.cells j p = M.blank) :
(machine M).step^[span M (distance M extent c.head) + 1] (initialFrame M base offset extent c) =
finalFrame M base offset extent c ∧
(∀ j p, newOffsets M offset extent j ≤ p →
(finalFrame M base offset extent c).cells (workTape M j) p = some (M.blank,false)) ∧
(∀ j, (finalFrame M base offset extent c).head (workTape M j) = newOffsets M offset extent j) := by sorrySource
Original physical tracked fresh-suffix reservation for integer-multiplication shared foundations. Written by Codex.