Complete input-derived canonical width descriptor from global initialization with linear clock
ProvedIntMul.CanonicalWidthDescriptor.canonical_width_descriptorLet be binary operand words with . One fixed fifteen-tape machine starts from the ordinary initial configuration on , with every work tape empty and every head at its start marker. It physically constructs a finite big-endian descriptor satisfying
and halts in its exact complete terminal configuration after at most
actual transitions. Output contains exactly , the original input is retained read-only and every scratch bank is empty. No width word or length is supplied in advance. The theorem includes the actual binary count, source scans, counter growth, marker rewinds, physical seek to the counter blank, output reversal, scratch erasures and every caller return. It provides the input-derived width descriptor required for exact padded multiplication output.
import Definitions.Def_IntMul_CanonicalWidthDescriptor import Mathlib.Tactic open IntMul IntMul.CanonicalWidthDescriptor
theorem IntMul.CanonicalWidthDescriptor.canonical_width_descriptor (x y : List Bool) (hp : 0< x.length+y.length) :
∃ t : ℕ, t≤ 15*(x.length+y.length)+15 ∧
machine.step^[t] (initialFrame x y)=finalFrame x y ∧
(machine.step^[t] (initialFrame x y)).state=machine.qHalt ∧
(machine.step^[t] (initialFrame x y)).cells machine.inTape=(initialFrame x y).cells machine.inTape ∧
(machine.step^[t] (initialFrame x y)).cells machine.outTape=
machine.tapeOf ((descriptorWord x y).map machine.bitSym) ∧
val (descriptorWord x y)+1=x.length+y.length := by sorry