Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Same-clock interior execution of a complete recursive body and cleanup trace

Proved
IntMul.EndParkRecursiveRelocation.relocate_execution

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

algorithmsfixed-tape-routinginteger-multiplicationturing-machines

A complete physical body-and-cleanup trace of the actual optimized recursive scheduler, from unit-offset body banks to the exact cleaned root inspection frame, is replayed in arbitrary positive interior work, shared-buffer and stack windows with EXACTLY the same number T of transitions. The resulting whole configuration is the exact interior child return/inspection frame, preserving every ancestor prefix and the outer input tape. The two outer input heads may have different positions and different payloads, but must scan the same symbol. Input actions are stationary along the source trace, and each noninput source head is at least one before every transition. These explicit protected-window conditions remain premises. No new machine, address oracle, depth-dependent control or multiplied child clock is introduced.

Preamble
import Definitions.Def_IntMul_EndParkRecursiveRelocation
import Mathlib.Tactic

open IntMul IntMul.EndParkRecursiveRelocation IntMul.EndParkRecursiveScheduler IntMul.EndParkRecursiveReturn

Formal statement
theorem IntMul.EndParkRecursiveRelocation.relocate_execution (M : MultitapeTM) (n : ℕ)
    (request : M.K → Option (Fin n)) (resume : Fin n → M.K)
    (base source : (machine M n request resume).Cfg) (rho sigma : ℕ)
    (offset extent : Fin M.k → ℕ) (c : M.Cfg) (v w : List Bool) (T : ℕ)
    (hrho : 1 ≤ rho) (hsigma : 1 ≤ sigma) (hoffset : ∀ j, 1 ≤ offset j)
    (root_reads : base.cells (machine M n request resume).inTape
      (base.head (machine M n request resume).inTape)=
      source.cells (machine M n request resume).inTape
        (source.head (machine M n request resume).inTape))
    (root_quiet : ∀ t, t < T →
      let d := (machine M n request resume).step^[t]
        (bodyFrame M n request resume source 1 1 (fun _ => 1) extent c v)
      (((machine M n request resume).δ d.state (fun i => d.cells i (d.head i))).2
        (machine M n request resume).inTape).2=Move.stay)
    (inside : ∀ t, t < T → ∀ i, i≠(machine M n request resume).inTape →
      1 ≤ ((machine M n request resume).step^[t]
        (bodyFrame M n request resume source 1 1 (fun _ => 1) extent c v)).head i)
    (run : (machine M n request resume).step^[T]
      (bodyFrame M n request resume source 1 1 (fun _ => 1) extent c v)=
      inspectionFrame M n request resume source 1 1 (fun _ => 1) w) :
    (machine M n request resume).step^[T]
      (bodyFrame M n request resume base rho sigma offset extent c v)=
      inspectionFrame M n request resume base rho sigma offset w := by sorry
Source
Original exact native-to-interior physical recursive trace framing theorem. 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