Thom signs for real polynomial roots #
Agreement of the signs of a polynomial and its derivatives at ordered endpoints forces agreement throughout the interval. For a nonzero polynomial this distinguishes all real roots using only the positive derivative orders through a degree bound.
Adapted from LeanCanny.Algebra.ThomEncoding at
970f28a5ecefc1327402ade16c068aa4b1b2c183.
The sign of the k-th derivative at x, with order zero giving the sign of p(x).
theorem Polynomial.injOn_derivativeSign_roots (p : Polynomial ℝ) (hp : p ≠ 0) {D : ℕ} (hD : p.natDegree ≤ D) :
On the real roots of a nonzero polynomial, the derivative signs of orders 1 through
any upper bound on the degree determine the root uniquely.
theorem Polynomial.exists_short_derivativeSign_selector (p : Polynomial ℝ) (hp : p ≠ 0) {D N : ℕ} (hD : p.natDegree ≤ D) (hDN : D ≤ 2 ^ N) {S : Finset ℝ} (hS : S.Nonempty) (hroots : ∀ x ∈ S, p.IsRoot x) :
In any nonempty finite subset of the real roots, at most N derivative sign tests
select one root when the degree is bounded by D ≤ 2 ^ N. Index i : Fin D tests
derivative order i + 1.