Native interval-verifier initialization #
The actual header caches one original weight and computes two original row pointers. Its numeric address bound covers every intermediate product/sum, including empty intervals at the one-past-end boundary. These are internal rules for composing the verifier loop.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.WitnessScan.exec_setup {W : ℕ} (A : Args) (x : WordRAM.Data 32) (v : ℤ) (hx : A.InRegisters x) (ha : A.a < A.n) (hb : A.b < A.n) (hc : A.first + A.length ≤ A.n) (hread : x.mem (A.ab + (A.a * A.n + A.b)) = WordRAM.Signed.encode v) (hfit : WordRAM.Fits W A.addressBound) :
∃ (y : WordRAM.Data 32),
WordRAM.ExecWithin W setup x y 15 ∧ A.InRegisters y ∧ y.mem = x.mem ∧ y.regs Reg.one = 1 ∧ y.regs Reg.zero = 0 ∧ y.regs Reg.found = 0 ∧ y.regs Reg.index = 0 ∧ y.regs Reg.rowB = A.bc + A.b * A.n + A.first ∧ y.regs Reg.rowA = A.ac + A.a * A.n + A.first ∧ y.regs Reg.wab = WordRAM.Signed.encode v
Initialize the actual verifier in fifteen instructions, preserving the original arguments and memory. In particular the weight is loaded from the original A–B array, not supplied as an accepted modular candidate.