Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Physical stack push and source erasure in 2n+2 steps independent of ancestors

Proved
IntMul.TapeStack.push_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, the literal four-tape stack machine pushes w into the fresh parked suffix, appends its delimiter, physically erases the source and restores the source head in exactly 2|w|+2 transitions. Equality of full configurations is proved. The root input, older stack prefix, source prefix and entire prepared temporary tape are retained; no older frame is scanned. Empty words and arbitrary boundary positions are included. Prepared source, local separators and fresh suffixes are explicit frame preconditions; their creation is a separate caller task.

Preamble
import Definitions.Def_IntMul_TapeStack
import Mathlib.Data.List.GetD
import Mathlib.Data.List.TakeDrop
import Mathlib.Tactic

open IntMul IntMul.TapeStack
Formal statement
theorem IntMul.TapeStack.push_correct (base : machine.Cfg) (sigma rho tau : ℕ) (w : List Bool) :
    machine.step^[2 * w.length + 2] (pushFrame base sigma rho tau w 0) =
      pushDoneFrame 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