Actual native thin-product execution with the improved finite saving #
The same initialized prefix, charged halt and exact original-order matrix products
satisfy the finite D^(-8/125) instruction bound. Original dimensions, occurrence
sparsity, entry magnitudes and sufficient width are explicit; no backend is supplied.
Polynomial depth factors remain visible, so this is not the final 3SUM exponent.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxProduct.runs_thin {W k N A : ℕ} (bits : Bool) (X : Matrix (Fin N) (Fin (MatrixMultiplication.Schonhage.D (9 * k))) ℤ) (Y : Matrix (Fin (MatrixMultiplication.Schonhage.D (9 * k))) (Fin N) ℤ) (qs : List (Fin N × Fin N)) (hX : ∀ (i : Fin N) (j : Fin (MatrixMultiplication.Schonhage.D (9 * k))), |X i j| ≤ ↑A) (hY : ∀ (i : Fin (MatrixMultiplication.Schonhage.D (9 * k))) (j : Fin N), |Y i j| ≤ ↑A) (hbits :
bits = true →
(∀ (i : Fin N) (j : Fin (MatrixMultiplication.Schonhage.D (9 * k))), 0 ≤ X i j) ∧ ∀ (i : Fin (MatrixMultiplication.Schonhage.D (9 * k))) (j : Fin N), 0 ≤ Y i j) (hN : MatrixMultiplication.Schonhage.D (9 * k) ^ 18 ≤ N) (hQ : qs.length * 2 ^ (9 * k) ≤ N ^ 2) (hW : admissionWidth (189 * k) (9 * k) k N qs.length A ≤ W) :
WordRAM.InputFits W (input bits (189 * k) k X Y qs) ∧ ∃ (y : WordRAM.Data 160) (n : ℕ),
↑(n + 1) ≤ 2621440 * ↑(189 * k + 1) ^ 2 * ↑(9 * k + 1) * ↑(MatrixMultiplication.Schonhage.D (9 * k)) ^ (-(8 / 125)) * ↑N ^ 2 ∧ WordRAM.Runs W ((program bits).program QueriedProduct.Reg.output)
(WordRAM.State.init (input bits (189 * k) k X Y qs)) { pc := (program bits).size, data := y } n ∧ WordRAM.Executes W ((program bits).program QueriedProduct.Reg.output)
(WordRAM.State.init (input bits (189 * k) k X Y qs))
(QueriedProduct.outputBase (189 * k) (9 * k) N qs.length) (n + 1) ∧ WordRAM.Data.Bounded W y ∧ (∀ (i : Fin qs.length),
y.mem (QueriedProduct.outputBase (189 * k) (9 * k) N qs.length + ↑i) = WordRAM.Signed.encode ((X * Y) (qs.get i).1 (qs.get i).2)) ∧ ∀ (p : ℕ),
¬(QueriedProduct.inputEnd (9 * k) N qs.length + 1 ≤ p ∧ p < memoryEnd (189 * k) (9 * k) k N qs.length) →
y.mem p = (WordRAM.State.init (input bits (189 * k) k X Y qs)).data.mem p
One actual initialized native product with finite 0.064 thin-dimension saving,
including the charged halt, raw conversion when selected, and complete input restoration.