Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.Flat

Actual initialized halting parameter-selecting ExactTriangle execution #

Original raw n,F and the three signed matrices are the complete input. The program computes all parameters and its prime, executes the valid large or actual exhaustive small branch, and returns the exact original ET verdict. Prefix, halt, restored arguments and frame all refer to the same final state. No aggregate exponent or execution/selection oracle is assumed.

Numerical original-input threshold for the actual header and complete assembled program.

One fixed initialized standard-native program; header, complete body and halt are included.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.runs_input {W n F : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (hW : inputWidth n F values ≤ W) :
have V := fun (q : ℕ) => values.getD q 0; have A := fun (i j : Fin n) => V (Matrix.pairIndex (i, j)); have B := fun (i j : Fin n) => V (n * n + Matrix.pairIndex (i, j)); have C := fun (i j : Fin n) => V (2 * (n * n) + Matrix.pairIndex (i, j)); WordRAM.InputFits W (CountPrime.inputWords n F values) ∧ ∃ (p : ℕ) (mem : ℕ → ℕ) (y : WordRAM.Data 640) (t : ℕ), t + 1 ≤ timeBound n p values mem + 16 ∧ WordRAM.Runs W (entryProgram.program Reg.result) (WordRAM.State.init (CountPrime.inputWords n F values)) { pc := entryProgram.size, data := y } t ∧ WordRAM.Executes W (entryProgram.program Reg.result) (WordRAM.State.init (CountPrime.inputWords n F values)) (y.regs Reg.result) (t + 1) ∧ WordRAM.Data.Bounded W y ∧ (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 < 3 + 3 * (n * n) ∨ workspaceEnd n (3 + 3 * (n * n)) values ≤ q → y.mem q = (WordRAM.Data.init (CountPrime.inputWords n F values)).mem q) ∧ 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)

Actual initialized execution at every admitted width, including zero vertices and the entire small regime. The returned prime is real selection on the fast branch and zero otherwise.