Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

First-operand copy in |x|+2 actual multitape transitions

Proved
IntMul.TapeCopy.copy_first_operand

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

algorithmsfixed-tape-routinginteger-multiplicationturing-machines

For every pair of finite binary words x,yx,yx,y, the explicitly defined two-tape machine, started on the campaign-model input x#yx\#yx#y, is halted after ∣x∣+2|x|+2∣x∣+2 transitions and its output tape is exactly the start marker followed by xxx, then blanks. No equality of operand lengths is required. This includes xxx empty, where the machine produces empty output after two transitions. The alphabet, tape count, states, and transition table are all fixed independently of the input. In particular the routine has a linear transition bound ∣x∣+2≤2(∣x∣+1)|x|+2\le2(|x|+1)∣x∣+2≤2(∣x∣+1). This is a concrete tape-routing primitive, not a high-level list-operation cost assumption or a complete multiplier.

Preamble
import Definitions.Def_IntMul_TapeCopy
import Mathlib.Data.List.GetD
import Mathlib.Data.List.TakeDrop
import Mathlib.Tactic
Formal statement
theorem IntMul.TapeCopy.copy_first_operand (x y : List Bool) :
    IntMul.TapeCopy.machine.HaltsWithOutput x y (x.length + 2) x := by sorry
Source
Auxiliary operand-copy primitive for the integer-multiplication κ campaign. The machine model is IntMul_MultitapeModel: https://prove2.me/theorems/47ff1689-4e87-4af2-9406-674787e32429 , following A. Montanaro, Computational Complexity lecture notes (Cambridge, 2012), §3.4. The literal three-state transition table is this formalization’s implementation of the copy primitive, rather than a state table asserted by the paper.

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