Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.CriticalJacobianEvaluation

Native evaluation of the actual critical Jacobian #

Second partial derivatives supply a small derivative matrix. Its entries and determinant are constructed from the original polynomial evaluator at one additional counting-function level. The determinant uses the certified polynomial-time integer program after collecting reduced entries; neither a Jacobian evaluator nor a quotient-matrix oracle is assumed.

Ported from LeanCanny.CountingHierarchy.CriticalJacobianEvaluation at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183. This is a step toward the controlled critical-system bounds and real-feasibility endpoints tracked by #6560.

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

Evaluate one entry of the derivative matrix using modular second partials.

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

Evaluate the actual Jacobian through the small integer determinant program.

theorem Cslib.Complexity.RealAlgebraic.criticalJacobianEntryValue_cast {p n : ℕ} [Fact (Nat.Prime p)] (F : MvPolynomial (Fin n) (ZMod p)) (centers : Fin n → ZMod p) (ell u : ℕ) (i j : Fin n) (z : List ℕ) (value : List ℕ → ℕ) (hF : F.totalDegree < p - 1) (hp : 3 < p) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (k : Fin n) => ↑(y[↑k]?.getD 0)) F) :
↑(criticalJacobianEntryValue p n ell u (↑i) (↑j) z value) = (MvPolynomial.eval fun (k : Fin n) => ↑(z[↑k]?.getD 0)) ((MvPolynomial.pderiv j) (MvPolynomial.X i ^ ell - MvPolynomial.CriticalSystem.criticalLower ell centers (↑u) F i))

A Jacobian entry is independent of the centers because their contribution is constant.

theorem Cslib.Complexity.RealAlgebraic.criticalJacobianValue_cast {p n : ℕ} [Fact (Nat.Prime p)] (F : MvPolynomial (Fin n) (ZMod p)) (centers : Fin n → ZMod p) (ell u : ℕ) (z : List ℕ) (value : List ℕ → ℕ) (hF : F.totalDegree < p - 1) (hp : 3 < p) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (k : Fin n) => ↑(y[↑k]?.getD 0)) F) :
↑(criticalJacobianValue p n ell u z value) = (MvPolynomial.eval fun (k : Fin n) => ↑(z[↑k]?.getD 0)) (MvPolynomial.PurePower.jacobian ell (MvPolynomial.CriticalSystem.criticalLower ell centers (↑u) F))

The same modular determinant evaluates the Jacobian for any choice of centers.