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)) :
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) :
WordRAM.InputFits W (CountPrime.inputWords n F values)
Original scalar words and all original signed matrix words fit before the first instruction.