First-operand copy in |x|+2 actual multitape transitions
ProvedIntMul.TapeCopy.copy_first_operandalgorithmsfixed-tape-routinginteger-multiplicationturing-machines
For every pair of finite binary words , the explicitly defined two-tape machine, started on the campaign-model input , is halted after transitions and its output tape is exactly the start marker followed by , then blanks. No equality of operand lengths is required. This includes 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 . 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 sorrySource
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.