Original matrix-function clients of the assembled native caller #
The existing host supplies three signed arrays and mathematical readback functions. This rule derives the proof-only row-major list used to index the established resource ledger; it neither copies that list nor supplies it to the program. Every actual load still uses the caller's original pointers. Arbitrary unused old words remain unrestricted.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.exec_matrices {W n F ap bp cp b : ℕ} (x : WordRAM.Data 640) (A B C : Fin n → Fin n → ℤ) (xn : x.regs Reg.side = n) (xF : x.regs Reg.bound = F) (xap : x.regs Reg.ab = ap) (xbp : x.regs Reg.bc = bp) (xcp : x.regs Reg.ac = cp) (xb : x.regs Reg.free = b) (hab : ap + n * n ≤ b) (hbc : bp + n * n ≤ b) (hac : cp + n * n ≤ b) (vab : ∀ (i j : Fin n), x.mem (ap + ↑i * n + ↑j) = WordRAM.Signed.encode (A i j)) (vbc : ∀ (i j : Fin n), x.mem (bp + ↑i * n + ↑j) = WordRAM.Signed.encode (B i j)) (vac : ∀ (i j : Fin n), x.mem (cp + ↑i * n + ↑j) = WordRAM.Signed.encode (C i j)) (hA : ∀ (i j : Fin n), |A i j| ≤ ↑F) (hB : ∀ (i j : Fin n), |B i j| ≤ ↑F) (hC : ∀ (i j : Fin n), |C i j| ≤ ↑F) (hW : 123357 * Nat.clog 2 (b + F + n + 2) ≤ W) :
∃ (values : List ℤ) (p : ℕ) (mem : ℕ → ℕ) (y : WordRAM.Data 640),
values.length = 3 * (n * n) ∧ (∀ z ∈ values, z.natAbs ≤ F) ∧ (∀ (i j : Fin n), values.getD (Matrix.pairIndex (i, j)) 0 = A i j) ∧ (∀ (i j : Fin n), values.getD (n * n + Matrix.pairIndex (i, j)) 0 = B i j) ∧ (∀ (i j : Fin n), values.getD (2 * (n * n) + Matrix.pairIndex (i, j)) 0 = C i j) ∧ WordRAM.ExecWithin W program x y (timeBound n p values mem) ∧ (y.regs Reg.result = 0 ∨ y.regs Reg.result = 1) ∧ (y.regs Reg.result = 1 ↔ ExactTriangle.HasZeroTriangle A B C) ∧ (0 < ExactTriangle.ParameterChoice.blocks n →
ExactTriangle.IsSelectedPrime A B C (ExactTriangle.ParameterChoice.window n) p) ∧ (¬0 < ExactTriangle.ParameterChoice.blocks n → p = 0) ∧ (∀ (q : ℕ), q < b ∨ workspaceEnd n b values ≤ q → y.mem q = x.mem q) ∧ y.regs Reg.side = n ∧ y.regs Reg.bound = F ∧ y.regs Reg.ab = ap ∧ y.regs Reg.bc = bp ∧ y.regs Reg.ac = cp ∧ y.regs Reg.free = b
Complete native matrix-function caller, using exactly the original host ABI. The derived list and reference memory index an actual charge, never algorithm arguments.