Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.Input

Real original-input header execution and input admission #

The raw input is n,F followed by canonical-signed AB/BC/AC in row-major order. The existing counter input representation is reused only as this two-scalar encoding; F is not interpreted as a supplied prime. All pointers and the workspace boundary are computed by actual code.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.exec_entryHeader {W n F : ℕ} (x : WordRAM.Data 640) (hn : x.mem 1 = n) (hF : x.mem 2 = F) (hfit : WordRAM.Fits W (3 + 3 * (n * n) + 8)) :
∃ (y : WordRAM.Data 640), WordRAM.ExecWithin W entryHeader x y 15 ∧ y.mem = x.mem ∧ y.regs Reg.side = n ∧ y.regs Reg.bound = F ∧ y.regs Reg.ab = 3 ∧ y.regs Reg.bc = 3 + n * n ∧ y.regs Reg.ac = 3 + 2 * (n * n) ∧ y.regs Reg.free = 3 + 3 * (n * n)

Read original n,F, compute all original pointers and deliver the host protocol in15 steps.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.input_fits {W n F : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hW : executionWidth n F (3 + 3 * (n * n)) 3 (3 + n * n) (3 + 2 * (n * n)) values ≤ W) :

Original scalar words and all original signed matrix words fit before the first instruction.