Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.CriticalParameterEvaluation

Modular evaluation at the chosen critical parameter #

From unary arity and binary degree and norm data, the parameter exponent is computable in polynomial time. Modular powering computes the parameter directly modulo a nonzero modulus. For primes satisfying the existing finite-residue evaluator bounds, feeding this residue to the coefficient evaluator gives the characteristic coefficient of the integer quotient reduced modulo the prime.

Adapted from NativeCriticalBounds and CriticalNumericEvaluation in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183, using the shared norm allowance and the parameter-exclusion bound for the actual quotient.

The quotient characteristic-polynomial norm budget is computable in binary when the arity is given in unary.

The exponent that avoids the value-section and derivative-resultant roots is polynomial-time computable from binary degree and norm bounds.

Compute the chosen parameter as a residue without expanding the integer power of two.

The chosen parameter modulo p is polynomial-time computable from unary arity and the binary modulus, pure-power degree and input norm exponent.

For a nonzero modulus, the computed residue represents the chosen integer parameter.

theorem Cslib.Complexity.RealAlgebraic.criticalCoefficientValue_at_criticalParameterResidue {p n m b : ℕ} [Fact (Nat.Prime p)] (d : ℕ) (hd : 1 ≤ d) (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ d + 1) (hcut : (d + 1) * ((d + 1) ^ n * (d + 2) + n * d + 1) + 1 < p) (hdegree : (d + 1) ^ n * (d + 1) ^ n < p - 1) (value : List ℕ → ℕ) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (i : Fin n) => ↑(y[↑i]?.getD 0)) ((MvPolynomial.map (Int.castRingHom (ZMod p))) F)) :

The addressed evaluator at the computed parameter gives the coefficient of the integer critical-value polynomial reduced modulo the prime, under the finite-residue bounds.