Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.ParameterExclusion

Excluding roots by power-of-two specialization #

For an integer bivariate polynomial, the value cutoff and parameter are powers of two whose exponents depend only on degree and logarithmic coefficient bounds. The chosen value section and a nonzero derivative resultant do not vanish at the chosen parameter.

Adapted from LeanCanny.CountingHierarchy.LargeSpecializationBounds and IntegerAlgebraicThreshold at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183.

A large integer substitution for the outer variable leaves a nonzero polynomial in the inner variable. The original bivariate norm bounds every polynomial row of inner coefficients.

The exponent of the parameter needed to exceed both exclusion-polynomial bounds. D bounds the outer degree, and 2 ^ H bounds the input bivariate coefficient norm.

The chosen parameter exceeds the coefficient norm of the value section plus one.

theorem Polynomial.eval₂_ne_zero_at_parameterExclusion {P : Polynomial (Polynomial ℤ)} {D H : ℕ} (hP : P ≠ 0) (hres : P.resultant (derivative P) ≠ 0) (hD : P.natDegree ≤ D) (hH : P.bivariateCoeffNorm1 ≤ 2 ^ H) :
have a := 2 ^ (H + 1); have u := 2 ^ parameterExclusionExponent D H; eval₂ (Int.castRingHom ℝ) u (eval (C a) P) ≠ 0 ∧ eval₂ (Int.castRingHom ℝ) u (P.resultant (derivative P)) ≠ 0

Choose a value cutoff and parameter at powers of two from degree and norm bounds. At the chosen parameter neither the value section nor the nonzero derivative resultant vanishes.