Complete physical product normalization with descriptor preparation and exact operand-sum output width
ProvedIntMul.NormalizedProduct.normalized_productLet be finite binary words. Write , for the retained base- operand block counts, using the natural-number ceiling-log convention at zero, and . Suppose and . From the explicit physical caller frame containing the padded convolution coefficients, zero saved carry, retained arithmetic descriptors and desired-width word , a fixed sixteen-tape machine halts in its exact terminal configuration within
actual transitions. Its output is exactly the big-endian -bit representation of , including its leading-zero padding. All carry arithmetic, output ordering, descriptor preparation, width conversion, scratch erasures and three outer caller returns are charged. The original prepared coefficient bank, canonical zero saved carry, retained descriptors and the entire specified work-bank frame are retained or restored as stated by the exact terminal configuration. For equally long operands this returns the required -bit output. Coefficient generation, loading and global initialization remain explicit caller obligations.
import Definitions.Def_IntMul_NormalizedProduct import Mathlib.Tactic import Definitions.Def_IntMul_BinaryAdder import Definitions.Def_IntMul_MultitapeModel import Mathlib.Data.Nat.Bits open IntMul IntMul.NormalizedProduct
theorem IntMul.NormalizedProduct.normalized_product (base : machine.Cfg) (pre x y z l d : List Bool)
(hl : val l+1=CarryProduct.coefficientWidth (CarryStep.blockSize z) x y)
(hd : FixedOutputWidth.width d=x.length+y.length) :
∃ t : ℕ,
t ≤ (DigitConvolution.blockCount (CarryStep.blockSize z) x+
DigitConvolution.blockCount (CarryStep.blockSize z) y)*
(41*CarryProduct.coefficientWidth (CarryStep.blockSize z) x y+32*CarryStep.blockSize z+
21*z.length+4*l.length+126)+10*FixedOutputWidth.width d+6*d.length+63 ∧
machine.step^[t] (initialFrame base pre x y z l d)=finalFrame base pre x y z l d ∧
(machine.step^[t] (initialFrame base pre x y z l d)).state=machine.qHalt ∧
(machine.step^[t] (initialFrame base pre x y z l d)).cells 1=
machine.tapeOf ((bin (x.length+y.length) (val x*val y)).map machine.bitSym) := by sorry