Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact work-bank subroutine simulation with preserved caller tapes and prefixes

Proved
IntMul.BankedSimulation.simulate_run

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

algorithmsfixed-tape-routinginteger-multiplicationturing-machines

For every multitape subroutine M, arbitrary outer base configuration, positive bank offsets, child configuration whose cell-zero start markers are intact, and step count T, the single literal bank simulator performs exactly T outer transitions and reaches precisely the embedded T-step child configuration. The complete global input and output tape contents and heads stay equal to the base configuration. Every work-tape cell before its bank offset, including the outer global marker cell, is preserved. This is a generic exact execution compiler for prepared banks, not a free bank-initialization, head-seek, dispatch, or recursive scheduling operation.

Preamble
import Definitions.Def_IntMul_BankedSimulation
import Mathlib.Tactic

open IntMul IntMul.BankedSimulation
Formal statement
theorem IntMul.BankedSimulation.simulate_run (M : MultitapeTM) (base : (machine M).Cfg)
    (offset : Fin M.k → ℕ) (positive : ∀ j, 1 ≤ offset j)
    (c : M.Cfg) (T : ℕ) (marker : ∀ j, c.cells j 0 = M.startSym) :
    let final := (machine M).step^[T] (embed M base offset c)
    final = embed M base offset (M.step^[T] c) ∧
      (∀ i : Fin (M.k + 2), i.val < 2 →
        final.cells i = base.cells i ∧ final.head i = base.head i) ∧
      (∀ j : Fin M.k, ∀ p : ℕ, p < offset j →
        final.cells (workTape M j) p = base.cells (workTape M j) p) ∧
      (∀ j : Fin M.k, final.cells (workTape M j) 0 = base.cells (workTape M j) 0) := by sorry
Source
Original literal compiler foundation for the integer-multiplication campaign's clocked recursive multiplier and fixed-tape routing. 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