Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.ThomSign

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.

noncomputable def Polynomial.derivativeSign (p : Polynomial ℝ) (x : ℝ) (k : ℕ) :

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) :
Set.InjOn (fun (x : ℝ) (k : Fin D) => p.derivativeSign x (↑k + 1)) {x : ℝ | p.IsRoot x}

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) :
∃ (L : List (Fin D × SignType)), L.length ≤ N ∧ ∃ x ∈ S, ∀ y ∈ S, (∀ c ∈ L, p.derivativeSign y (↑c.1 + 1) = c.2) ↔ y = 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.