Complete parameter-selecting native caller execution #
Only original n,F,pointers/workspace and the actual original signed array words are premises. The real parameter program determines the regime, the real selector determines its prime, and the real concrete solver or exhaustive block determines the verdict. Both verdict directions and original-argument/memory frames are established in the same actual final state. General arbitrary-old-data execution does not assert physical bounds on unused old words; original-admission prefix theorems impose those resource hypotheses separately.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.ParameterSelecting.exec_at {W n F ap bp cp b : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hv : ∀ z ∈ values, z.natAbs ≤ F) (x : WordRAM.Data 640) (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 : ∀ q < n * n, x.mem (ap + q) = WordRAM.Signed.encode (values.getD q 0)) (vbc : ∀ q < n * n, x.mem (bp + q) = WordRAM.Signed.encode (values.getD (n * n + q) 0)) (vac : ∀ q < n * n, x.mem (cp + q) = WordRAM.Signed.encode (values.getD (2 * (n * n) + q) 0)) (hW : executionWidth n F b ap bp cp 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));
∃ (p : ℕ) (mem : ℕ → ℕ) (y : WordRAM.Data 640),
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
Actual complete ET caller on original arrays. The selected prime and source-reference memory are derived witnesses of real calls, never algorithm inputs or assumed contracts.