Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.CriticalPolynomialEvaluation

Native evaluators for the critical objective and lower relations #

Construct modular evaluations of the actual deformed potential and its pure-power critical relations from uniform evaluation access to the input polynomial. The objective preserves its counting level; first derivatives cost one additional level. No critical-relation evaluator is assumed of the construction. Correctness has the stated finite-field degree and prime bounds.

Ported from LeanCanny.CountingHierarchy.CriticalPolynomialEvaluation at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183. This constructs the generic critical-system component; controlled-family bounds and full feasibility endpoints remain #6560.

For relative characteristic coefficients, zeroObjectiveValue evaluates the zero-centered objective. zeroObjectiveValue_mem preserves the source evaluator's counting level with the encInstancePoint input encoding, and zeroObjectiveValue_cast proves agreement with the actual polynomial over a prime field. These come from LeanCanny.CountingHierarchy.ZeroCenterEvaluation and ZeroCenterCorrectness at the same commit.

noncomputable def Cslib.Complexity.RealAlgebraic.criticalLowerValue (p n ell u i : ℕ) (z : List ℕ) (value : List ℕ → ℕ) :

Evaluate a constructed pure-power lower relation by modular arithmetic.

noncomputable def Cslib.Complexity.RealAlgebraic.criticalObjectiveValue (p n ell u : ℕ) (z : List ℕ) (value : List ℕ → ℕ) :

Evaluate the deformed objective using the input polynomial evaluator.

Evaluate the zero-centered deformed objective using the input polynomial evaluator.

@[reducible, inline]

A framed instance followed by the native list encoding of its binary coordinates.

theorem Cslib.Complexity.RealAlgebraic.criticalLowerValue_cast {p n : ℕ} [Fact (Nat.Prime p)] (F : MvPolynomial (Fin n) (ZMod p)) (ell u : ℕ) (i : Fin n) (z : List ℕ) (value : List ℕ → ℕ) (hF : F.totalDegree < p - 1) (hp : 2 < p) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (j : Fin n) => ↑(y[↑j]?.getD 0)) F) :
↑(criticalLowerValue p n ell u (↑i) z value) = (MvPolynomial.eval fun (j : Fin n) => ↑(z[↑j]?.getD 0)) (MvPolynomial.CriticalSystem.criticalLower ell (fun (j : Fin n) => ↑(MvPolynomial.CriticalSystem.separatedCenters ell j)) (↑u) F i)
theorem Cslib.Complexity.RealAlgebraic.criticalObjectiveValue_cast {p n : ℕ} [Fact (Nat.Prime p)] (F : MvPolynomial (Fin n) (ZMod p)) (ell u : ℕ) (z : List ℕ) (value : List ℕ → ℕ) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (j : Fin n) => ↑(y[↑j]?.getD 0)) F) :
↑(criticalObjectiveValue p n ell u z value) = (MvPolynomial.eval fun (j : Fin n) => ↑(z[↑j]?.getD 0)) (MvPolynomial.CriticalSystem.deformedPolynomial ell (fun (j : Fin n) => ↑(MvPolynomial.CriticalSystem.separatedCenters ell j)) (↑u) F)
theorem Cslib.Complexity.RealAlgebraic.zeroObjectiveValue_cast {p n : ℕ} [Fact (Nat.Prime p)] (F : MvPolynomial (Fin n) (ZMod p)) (ell u : ℕ) (hell : 1 ≤ ell) (z : List ℕ) (value : List ℕ → ℕ) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (j : Fin n) => ↑(y[↑j]?.getD 0)) F) :
↑(zeroObjectiveValue p n ell u z value) = (MvPolynomial.eval fun (j : Fin n) => ↑(z[↑j]?.getD 0)) (MvPolynomial.CriticalSystem.deformedPolynomial ell (fun (x : Fin n) => 0) (↑u) F)

Over the prime field, the residue gives the value of the zero-centered deformed polynomial.