Actual recursive body and cleanup prefix lies strictly before every native halt clock
ProvedIntMul.EndParkRecursiveEvaluation.native_prefix_clockalgorithmsfixed-tape-routinginteger-multiplicationturing-machines
For a finite evaluation of the fixed body on native input and any actual native halt clock H of the optimized recursive machine, there are actual bootstrap and complete body/cleanup times b and q with b ≤ 5|x#y|+12, q ≤ budget and b+q < H. Both reached configurations are given exactly: the initialized native body frame and the fully cleaned root stack-inspection frame. Thus the body/cleanup clock q is bounded by the actual native clock with coefficient one, even when the logical evaluation budget is conservative. This is a native prefix theorem; transfer of the same physical trace to an arbitrary interior child bank is separate.
Preamble
import Definitions.Def_IntMul_EndParkRecursiveExecution import Theorems.Thm_IntMul_EndParkRecursiveEvaluation_evaluates_correct import Theorems.Thm_IntMul_FixedTapeExtension_simulate_run import Theorems.Thm_IntMul_TrackedBankPreparation_setup_correct import Theorems.Thm_IntMul_TrackedRootInputCopy_copy_correct import Mathlib.Data.List.GetD import Mathlib.Tactic open IntMul IntMul.EndParkRecursiveEvaluation IntMul.EndParkRecursiveScheduler IntMul.TrackedBankPreparation
Formal statement
theorem IntMul.EndParkRecursiveEvaluation.native_prefix_clock (M : MultitapeTM) (labels : ℕ)
(request : M.K → Option (Fin labels)) (resume : Fin labels → M.K)
(x y w : List Bool) (budget H : ℕ)
(evaluation : Evaluates M labels request resume (initialExtent M x y)
(M.initCfg x y) [] w budget)
(halt : ((machine M labels request resume).step^[H]
((machine M labels request resume).initCfg x y)).state=
(machine M labels request resume).qHalt) :
∃ b q : ℕ, b≤5*(inputWord M x y).length+12 ∧ q≤budget ∧ b+q<H ∧
(machine M labels request resume).step^[b] ((machine M labels request resume).initCfg x y)=
bodyFrame M labels request resume (nativeBase M labels request resume x y) 1 1
(fun _ => 1) (initialExtent M x y) (M.initCfg x y) [] ∧
(machine M labels request resume).step^[q]
(bodyFrame M labels request resume (nativeBase M labels request resume x y) 1 1
(fun _ => 1) (initialExtent M x y) (M.initCfg x y) [])=
EndParkRecursiveReturn.inspectionFrame M labels request resume
(nativeBase M labels request resume x y) 1 1 (fun _ => 1) w := by sorrySource
Original exact native-prefix clock domination theorem for recursive integer-multiplication foundations. Written by Codex.