Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.AlgebraicValueBounds

Dyadic bounds on polynomial values at real algebraic roots #

The degree bounds and logarithmic coefficient norm bounds on an integer source and test give a dyadic interval for the magnitude of each nonzero test value. Cauchy's root bound controls the evaluation radius, and the reciprocal-root bound for the value resultant separates nonzero values from zero.

Adapted from AlgebraicTestValueBounds in lean-canny at commit 970f28a5ecefc1327402ade16c068aa4b1b2c183.

One exponent controls the reciprocal lower bound and the upper bound for the test magnitude. D and E bound the source and test degrees, and 2 ^ b and 2 ^ c bound their norms.

One dyadic precision for a qualifying test and all derivatives, when both input polynomials have degree at most D and coefficient norm at most 2 ^ b.

theorem Polynomial.eval₂_eq_zero_or_dyadic_bounds {p g : Polynomial ℤ} (hp : p ≠ 0) {D E b c : ℕ} (hD : p.natDegree ≤ D) (hE : g.natDegree ≤ E) (hb : p.coeffNorm1 ≤ 2 ^ b) (hc : g.coeffNorm1 ≤ 2 ^ c) {x : ℝ} (hx : eval₂ (Int.castRingHom ℝ) x p = 0) :
have v := eval₂ (Int.castRingHom ℝ) x g; have R := 2 ^ algebraicValuePrecision D E b c; v = 0 ∨ R⁻¹ ≤ |v| ∧ |v| ≤ R

At a real root of a nonzero integer polynomial, a test value is either zero or its absolute value lies between the reciprocal of the chosen power of two and that power.