Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complete physical stack push/pop round trip with restored tapes and charged dispatch

Proved
IntMul.TapeStackRoundTrip.round_trip_correct

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

algorithmsfixed-tape-routinginteger-multiplicationturing-machines

For every saved configuration, local source/stack/scratch boundaries and binary word w, one fixed seventeen-state four-tape caller pushes and erases w, physically dispatches to pop, restores w in its original order, erases parked and temporary suffixes, restores every local head and globally halts within 5|w|+9 transitions. The full final frame is proved, and all initial tape contents and head positions are restored. The bound is independent of older stack prefix size and number of ancestors. Prepared source/local separators/fresh suffixes are explicit preconditions; buffer production, allocation and recursive scheduler integration remain separate tasks.

Preamble
import Definitions.Def_IntMul_TapeStackRoundTrip
import Theorems.Thm_IntMul_FiniteCaller_simulate_run
import Mathlib.Data.List.GetD
import Mathlib.Data.List.TakeDrop
import Mathlib.Tactic

open IntMul IntMul.TapeStackRoundTrip
Formal statement
theorem IntMul.TapeStackRoundTrip.round_trip_correct (base : TapeStack.machine.Cfg) (sigma rho tau : ℕ) (w : List Bool) :
    ∃ t : ℕ, t ≤ 5 * w.length + 9 ∧
      machine.step^[t] (initialFrame base sigma rho tau w) = finalFrame base sigma rho tau w := by sorry
Source
Original actual one-way MultitapeTM formalization of the fixed-control stack push/pop strategy in CrocSwap/integer-mult-bounds research/machine-transfer-verification/transfer-proof/tapes/TapeStack*.lean, pinned at 3b6b66891c0ac888521cf591fe306c6286601d4f. 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