Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Actual recursive body and cleanup prefix lies strictly before every native halt clock

Proved
IntMul.EndParkRecursiveEvaluation.native_prefix_clock

by raresbuhai · Oct 10, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithmsfixed-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 sorry
Source
Original exact native-prefix clock domination theorem for recursive integer-multiplication foundations. Written by Codex.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me