Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.Geometry

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.

The existing power routine computes the actual native span with unchanged memory.

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)) :
∃ (y : WordRAM.Data registers), WordRAM.ExecWithin w geometrySetup x y 6 ∧ CatalogueParameters L (m - t) D (D + (m - t + 1) * 10 ^ L) y ∧ y.regs Reg.slot = 0 ∧ y.regs Reg.count = 0 ∧ y.mem = x.mem

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.