Actual physical product recovery from a prepared convolution coefficient frame
ProvedIntMul.CarryProduct.carry_productLet be finite binary operand words. Write , let be their retained base- block counts, and let with the natural-number ceiling-log convention at zero. Suppose the supplied width descriptor satisfies . From the explicit prepared caller frame containing the product convolution coefficients padded to width , a zero carry of width , and the retained descriptors, a fixed fifteen-tape machine halts in its exact terminal configuration after at most
physical transitions. Its output is exactly the big-endian binary representation of padded to bits, and its saved carry tape contains the canonical -bit zero word. All arithmetic, carry traversal, temporary-bank erasures, output reversal and finite-caller returns are included. This realizes the complete physical product-recovery stage; the incoming coefficient generation and loading costs remain separate caller obligations.
import Definitions.Def_IntMul_BinaryAdder import Definitions.Def_IntMul_MultitapeModel import Mathlib.Data.Nat.Bits import Mathlib.Tactic import Definitions.Def_IntMul_CarryProduct open IntMul IntMul.CarryProduct
theorem IntMul.CarryProduct.carry_product (pre x y z l : List Bool)
(hl : val l+1=coefficientWidth (CarryStep.blockSize z) x y) :
∃ t : ℕ,
t ≤ (DigitConvolution.blockCount (CarryStep.blockSize z) x+
DigitConvolution.blockCount (CarryStep.blockSize z) y)*
(41*coefficientWidth (CarryStep.blockSize z) x y+21*CarryStep.blockSize z+
21*z.length+4*l.length+126)+21 ∧
machine.step^[t] (initialFrame pre x y z l)=finalFrame pre x y z l ∧
(machine.step^[t] (initialFrame pre x y z l)).state=machine.qHalt ∧
(machine.step^[t] (initialFrame pre x y z l)).cells 1=
machine.tapeOf ((bin (CarryStep.blockSize z*
(DigitConvolution.blockCount (CarryStep.blockSize z) x+
DigitConvolution.blockCount (CarryStep.blockSize z) y)) (val x*val y)).map machine.bitSym) ∧
(machine.step^[t] (initialFrame pre x y z l)).cells 12=
machine.tapeOf ((bin (coefficientWidth (CarryStep.blockSize z) x y) 0).map machine.bitSym) := by sorry