Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.CriticalLabelDeterminantEvaluation

Modular evaluation of the critical label determinant #

A single source evaluator supplies the shifted objective, Jacobian and lower relations to the quotient determinant evaluator. The trace bound and prime cutoff are computed from unary arity and binary degree and norm bounds.

Adapted from SourceNormDeterminantEvaluation and NativeNormBounds in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183, using the frontier label and trace bounds.

The prime must exceed the interpolation cutoffs for both coefficient evaluations and the dimension-squared cutoff for characteristic reconstruction.

The binary magnitude exponent for the critical label determinant is computable in polynomial time from unary arity and the binary source bounds.

Evaluate the critical label determinant from the source polynomial callback and the candidate derivative-sign witness and shift.

theorem Cslib.Complexity.RealAlgebraic.criticalLabelDeterminantResidue_lt {p : ℕ} (hp : 0 < p) (n d b e : ℕ) (data : List RootLabelTestCode) (value : List ℕ → ℕ) :
criticalLabelDeterminantResidue p n d b e data value < p

At any positive modulus the evaluator returns a canonical residue.

theorem Cslib.Complexity.RealAlgebraic.criticalLabelDeterminantResidue_cast {p n : ℕ} [Fact (Nat.Prime p)] (d : ℕ) (hd : 1 ≤ d) (b e : ℕ) (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ d + 1) (hb : F.coeffNorm1 ≤ 2 ^ b) (hcut : criticalLabelDeterminantPrimeCutoff n d b < p) (data : List RootLabelTestCode) (value : List ℕ → ℕ) (hv : ∀ (z : List ℕ), ↑(value z) = (MvPolynomial.eval fun (i : Fin n) => ↑(z[↑i]?.getD 0)) ((MvPolynomial.map (Int.castRingHom (ZMod p))) F)) :
let ell := d + 1; let D := ell ^ n; have L := decodeRootLabel ⋯ (n * ell.size) data; ↑(criticalLabelDeterminantResidue p n d b e data value) = ↑(MvPolynomial.CriticalSystem.criticalLabelDeterminant ⋯ b F hF L (e % (D + 1)))

Above the computed prime cutoff, the evaluator represents the integer determinant for the decoded witness and bounded shift used in the real-feasibility criterion.