Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.CallableFixedPrime.Prefix

Physical-width-independent prefixes of the caller-safe fixed-prime program #

The actual minimum-width solver execution controls every prefix at every larger admitted width. The initial raw dirty-word bound P applies before any remainder instruction. It is a hypothesis about the original caller data, not a supplied execution certificate or an algorithm argument. New address support is bounded independently of physical width; original outside memory is kept.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.CallableFixedPrime.original_bounded {W n d g p T b P : ℕ} (x : WordRAM.Data 640) (hregs : ∀ (i : Fin 640), x.regs i ≤ P) (hmem : ∀ (q : ℕ), x.mem q ≤ P) (hW : admissionWidth n d g p T b P ≤ W) :

Original raw words fit at every admitted width, including dirty loads before reduction.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.CallableFixedPrime.bounded_reachable_caller {W m n g p b P k : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : p ∈ (MatrixMultiplication.Schonhage.D m).sqrtPrimeWindow) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (x : WordRAM.Data 640) (xn : x.regs Reg.n = n) (xD : x.regs Reg.dimension = MatrixMultiplication.Schonhage.D m) (xg : x.regs Reg.groups = g) (xp : x.regs Reg.prime = p) (xb : x.regs Reg.base = b) (hab : x.regs Reg.ab + n * n ≤ b) (hbc : x.regs Reg.bc + n * n ≤ b) (hac : x.regs Reg.ac + n * n ≤ b) (vab : ∀ q < n * n, x.mem (x.regs Reg.ab + q) = WordRAM.Signed.encode (values.getD q 0)) (vbc : ∀ q < n * n, x.mem (x.regs Reg.bc + q) = WordRAM.Signed.encode (values.getD (n * n + q) 0)) (vac : ∀ q < n * n, x.mem (x.regs Reg.ac + q) = WordRAM.Signed.encode (values.getD (2 * (n * n) + q) 0)) (hregs : ∀ (i : Fin 640), x.regs i ≤ P) (hmem : ∀ (q : ℕ), x.mem q ≤ P) (hW : admissionWidth n (MatrixMultiplication.Schonhage.D m) g p (rawTotal n values) b P ≤ W) {s : WordRAM.State 640} (hr : WordRAM.Runs W (program.program Reg.found) { pc := 0, data := x } s k) :
(∀ (i : Fin 640), s.data.regs i < wordBound n (MatrixMultiplication.Schonhage.D m) g p (rawTotal n values) b P) ∧ (∀ (q : ℕ), s.data.mem q < wordBound n (MatrixMultiplication.Schonhage.D m) g p (rawTotal n values) b P) ∧ ∀ (q : ℕ), wordBound n (MatrixMultiplication.Schonhage.D m) g p (rawTotal n values) b P ≤ q → s.data.mem q = x.mem q

Every actual caller prefix has an original-input envelope. The complete concrete solver supplies the comparison run; no run, layout, witness or resource certificate is a premise.

Initialized execution, including every reused dirty workspace prefix, has finite support independent of physical width. The concrete minimum-width run supplies the comparison.