Complete shared native box geometry #
The actual program computes its power, directory extent, compact count and value-table base from the original scalar parameters. It assigns every directory slot and writes exactly the catalogue records counted by the existing finite box family.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_span {w L : ℕ} (x : WordRAM.Data registers) (hL : x.regs Reg.levels = L) (h10 : x.regs Reg.ten = 10) (hfit : WordRAM.Fits w (10 ^ L + L + 2)) :
The existing power routine computes the actual native span with unchanged memory.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_constants {w : ℕ} (x : WordRAM.Data registers) (hfit : WordRAM.Fits w 10) :
∃ (y : WordRAM.Data registers),
WordRAM.ExecWithin w constants x y 5 ∧ y.regs Reg.nil = 0 ∧ y.regs Reg.one = 1 ∧ y.regs Reg.ten = 10 ∧ y.regs Reg.nine = 9 ∧ y.regs Reg.three = 3 ∧ y.mem = x.mem ∧ ∀ (i : Fin registers),
i ≠ Reg.nil → i ≠ Reg.one → i ≠ Reg.ten → i ≠ Reg.nine → i ≠ Reg.three → y.regs i = x.regs i
Explicit scalar initialization, also valid when every old temporary is dirty.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_geometrySetup {w L m t D : ℕ} (x : WordRAM.Data registers) (hL : x.regs Reg.levels = L) (hm : x.regs Reg.inner = m) (ht : x.regs Reg.threshold = t) (hD : x.regs Reg.directory = D) (hT : x.regs Reg.span = 10 ^ L) (h1 : x.regs Reg.one = 1) (h10 : x.regs Reg.ten = 10) (h9 : x.regs Reg.nine = 9) (h3 : x.regs Reg.three = 3) (h0 : x.regs Reg.nil = 0) (hfit : WordRAM.Fits w (D + (m - t + 1) * 10 ^ L + m + 12)) :
Actual extent setup and its complete persistent parameter readback.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_geometry {w L m t D : ℕ} (x : WordRAM.Data registers) (hL : x.regs Reg.levels = L) (hm : x.regs Reg.inner = m) (ht : x.regs Reg.threshold = t) (hD : x.regs Reg.directory = D) (hfit : WordRAM.Fits w (D + (D + (m - t + 1) * 10 ^ L) + 6 * ((m - t + 1) * 10 ^ L) + 10 ^ L + L + m + 12)) :
∃ (y : WordRAM.Data registers),
WordRAM.ExecWithin w geometry x y (4 * L + 20 + (11 * L + 28) * ((m - t + 1) * 10 ^ L)) ∧ CatalogueParameters L (m - t) D (D + (m - t + 1) * 10 ^ L) y ∧ y.regs Reg.count = (MatrixMultiplication.Schonhage.boxes L m t).card ∧ y.regs Reg.values = D + (m - t + 1) * 10 ^ L + 3 * (MatrixMultiplication.Schonhage.boxes L m t).card ∧ CataloguePrefix L (m - t) D (D + (m - t + 1) * 10 ^ L) ((m - t + 1) * 10 ^ L) x.mem y.mem
Actual shared setup, including all digit scans and descriptor writes.