Complete initialized native box-table constructor #
The actual fixed program constructs its shared geometry and one compact signed value table from ordinary headers and encoded leaf arrays. Computed directory ranks, descriptors, values, frame and charged time refer to the same final data witness. The geometry charge remains separate from the linear-in-box-count cost of another tile.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_input {w L m t A B : ℕ} (a b : Fin (10 ^ L) → ℤ) (ha : ∀ (i : Fin (10 ^ L)), (a i).natAbs ≤ A) (hb : ∀ (i : Fin (10 ^ L)), (b i).natAbs ≤ B) (haddr : WordRAM.Fits (w + 2) (addressBound L m t)) (hmag : GenericRAM.Signed.Fits w ↑(magnitudeBound L A B)) :
WordRAM.InputFits (w + 2) (input L m t a b) ∧ ∃ (y : WordRAM.Data registers),
WordRAM.ExecWithin (w + 2) program (WordRAM.State.init (input L m t a b)).data y (timeBound L m t - 1) ∧ WordRAM.Data.Bounded (w + 2) y ∧ y.regs Reg.levels = L ∧ y.regs Reg.height = m - t ∧ y.regs Reg.span = 10 ^ L ∧ y.regs Reg.directory = directoryBase L ∧ y.regs Reg.values = valueBase L m t ∧ y.regs Reg.count = (MatrixMultiplication.Schonhage.boxes L m t).card ∧ (∀ s < (m - t + 1) * 10 ^ L, y.mem (directoryBase L + s) = directoryWord L (m - t) s) ∧ (∀ s < (m - t + 1) * 10 ^ L,
Eligible L (m - t) s →
y.mem (valueBase L m t + Nat.count (Eligible L (m - t)) s) = WordRAM.Signed.encode
(slotValue (fun (τ : MatrixMultiplication.Schonhage.Leaf L) => a (Encoding.leafIndex τ))
(fun (τ : MatrixMultiplication.Schonhage.Leaf L) => b (Encoding.leafIndex τ)) s)) ∧ ∀ (q : ℕ),
¬(directoryBase L ≤ q ∧ q < memoryEnd L m t) →
y.mem q = (WordRAM.State.init (input L m t a b)).data.mem q
Actual initialized construction, with all geometry and value work discharged.