Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.TileChildren

Complete native ten-child accumulation #

The actual child loop reads each directory rank and signed child value once. Every intermediate signed sum fits by one mathematical bound on the ten child magnitudes; there is no separate intermediate-fit or execution certificate among the inputs.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_childLoop {w D V c e T p R C : ℕ} (x : WordRAM.Data registers) (b : ℕ → ℤ) (rank : ℕ → ℕ) (hD : x.regs Reg.directory = D) (hV : x.regs Reg.values = V) (hc : x.regs Reg.completion = c) (he : x.regs Reg.stars = e) (hT : x.regs Reg.span = T) (hTpos : 0 < T) (hp : x.regs Reg.starPower = p) (hd : x.regs Reg.term = 0) (hacc : x.regs Reg.accumulator = 0) (h9 : x.regs Reg.nine = 9) (h1 : x.regs Reg.one = 1) (h10 : x.regs Reg.ten = 10) (hrank : ∀ d < 10, x.mem (D + ((e - 1) * T + (c - (9 - d) * p))) = rank d + 1) (hvalue : ∀ d < 10, x.mem (V + rank d) = WordRAM.Signed.encode (b d)) (hrange : ∀ d < 10, rank d ≤ R) (hmag : ∀ d < 10, (b d).natAbs ≤ C) (hsigned : GenericRAM.Signed.Fits w ↑(10 * C)) (hfit : WordRAM.Fits (w + 2) (D + V + c + e * T + 10 * p + R + 30)) :

All ten actual child additions, including loop tests and the final exit, cost at most 312.