Reusable layer: real polynomials and their real roots #
Stable names for results on real-rooted real polynomials and on counting real roots. Every
statement uses Mathlib concepts only: real-rootedness is Polynomial.Splits (the archive
predicate MSS.RealRooted is that by definition, realRooted_iff_splits), Sturm's chain is
Mathlib's Polynomial.sturmSeq, and sign variations are Mathlib's List.signVariations. Each
theorem is proved by the archive theorem it re-exposes (no proof is copied); where the archive
uses its own sign-variation counter, the re-exposition only rewrites it into Mathlib's by the
archive's bridge lemmas.
This module imports no paper of the archive: only the four general modules of
Formalizations.Analysis.Polynomial.RealRoots it re-exposes.
Main results #
Formalizations.Reusable.chebyshev_S_docagne: d'Ocagne's identityS p · S (q − 1) − S q · S (p − 1) = − S (p − q − 1)for the Vieta–Fibonacci polynomials (archive:Orbit.S_docagne).Formalizations.Reusable.splits_of_alternating_sign: alternating signs atn + 1points and degree at mostngiveSplits(archive:MSS.realRooted_of_alternating).Formalizations.Reusable.card_roots_toFinset_ge_of_alternating_sign: alternating signs atn + 1points give at leastndistinct real roots (archive:MSS.card_roots_ge_of_alternating).Formalizations.Reusable.splits_of_isRoot_mem_Ioo_of_gaps: a root in each of thengaps and degree at mostngiveSplits(archive:MSS.realRooted_of_root_per_gap).Formalizations.Reusable.sturm_signVariations_sub_eq_card_roots: Sturm's theorem withPolynomial.sturmSeq p (derivative p)(archive:Sturm.sturm).Formalizations.Reusable.budan_fourier_card_roots_le: the Budan–Fourier theorem withList.signVariationsof the derivative tower (archive:BudanFourier.budan_fourier).Formalizations.Reusable.newton_inequality_esymm_roots: Newton's inequalities for the roots of a monic real-rooted polynomial (archive:Newton.newton_inequality).Formalizations.Reusable.splits_derivative,Formalizations.Reusable.splits_reverse:Splitsoverℝis stable underderivativeandreverse(archive:Newton.RealRooted.derivative,Newton.RealRooted.reverse).
The archive predicate MSS.RealRooted is Mathlib's Polynomial.Splits over ℝ, by
definition. This is the bridge that lets the results of this module be stated with Mathlib
concepts only.
Real-rootedness from sign alternation. A nonzero real polynomial h of degree at most n
that alternates sign at n + 1 strictly increasing points x 0 < x 1 < ⋯ < x n
(h (x i) · h (x (i+1)) < 0) splits over ℝ: the intermediate value theorem gives a root in each
of the n gaps, and the degree bound leaves no room for non-real roots. This is the step in which
the method of interlacing polynomials (Marcus–Spielman–Srivastava) concludes real-rootedness.
- Archive:
MSS.realRooted_of_alternating(Formalizations.Analysis.Polynomial.RealRoots.RealRooted, a tool for the Heilmann–Lieb theorem on matching polynomials in the same archive); restated withPolynomial.SplitsthroughrealRooted_iff_splits. - Classical reference: S. Fisk, Polynomials, roots, and interlacing, arXiv:math/0612833; A. W. Marcus, D. A. Spielman, N. Srivastava, Ann. of Math. 182 (2015) 307–325.
- Example: for
h = X² − 1,n = 2and the points−2 < 0 < 2, the signs are+, −, +, sosplits_of_alternating_signshows thatX² − 1splits.
Counting real roots by sign alternation. If a nonzero real polynomial h takes strictly
alternating signs at n + 1 strictly increasing points (h (x i) · h (x (i+1)) < 0), it has at
least n distinct real roots: the intermediate value theorem puts one in each open gap, and the
gaps are disjoint. No degree hypothesis is needed.
- Archive:
MSS.card_roots_ge_of_alternating(Formalizations.Analysis.Polynomial.RealRoots.RealRooted, a tool for the Heilmann–Lieb theorem in the same archive); the module cites no paper DOI of ours. - Classical reference: S. Fisk, Polynomials, roots, and interlacing, arXiv:math/0612833.
- Example:
X³ − Xhas signs−, +, −, +at−2, −1/2, 1/2, 2, socard_roots_toFinset_ge_of_alternating_signgives at least3distinct real roots.
Real-rootedness from one root per gap. If a nonzero real polynomial f of degree at most
n has a root in each of the n open gaps (x i, x (i+1)) between n + 1 strictly increasing
points, then f splits over ℝ. This is the closing step of the interlacing proofs of
real-rootedness (orthogonal polynomials through their three-term recurrence; Cauchy interlacing of
characteristic polynomials).
- Archive:
MSS.realRooted_of_root_per_gap(Formalizations.Analysis.Polynomial.RealRoots.RealRooted); restated withPolynomial.SplitsthroughrealRooted_iff_splits. The module cites no paper DOI of ours. - Classical reference: S. Fisk, Polynomials, roots, and interlacing, arXiv:math/0612833.
- Example:
X² − 1has degree2and roots in(−2, 0)and(0, 2), sosplits_of_isRoot_mem_Ioo_of_gapsshows that it splits.
Sturm's theorem. For a squarefree real polynomial p and a < b with p a ≠ 0 and
p b ≠ 0, the number of sign variations of Mathlib's Sturm chain
Polynomial.sturmSeq p (derivative p) evaluated at a, minus the number at b, is the number of
distinct real roots of p in (a, b]. Sign variations are Mathlib's List.signVariations
(zeros are skipped).
- Archive:
Sturm.sturm(Formalizations.Analysis.Polynomial.RealRoots.Sturm), restated with Mathlib's chain and counter through the archive bridgesSturm.sturmSeq_eqandSturm.signVarAt_eq_signVariations. Mathlib'sPolynomial.sturmSeqcontains only the algebraic properties of the chain; this is the theorem it is defined for. - Classical reference: C. Sturm (1829); S. Basu, R. Pollack, M.-F. Roy, Algorithms in Real Algebraic Geometry, ch. 2.
- Example: for
p = X² − 2on[0, 2], the theorem counts the single root√2.
The Budan–Fourier theorem. For a nonzero real polynomial p and a < b with p a ≠ 0
and p b ≠ 0, let V x be the number of sign variations (Mathlib's List.signVariations, zeros
skipped) of the derivative tower p, p', p'', …, p^{(deg p)} evaluated at x. Then the number of
real roots of p in (a, b], counted with multiplicity, is at most V a − V b, and the
difference is even. Descartes' rule of signs is the case (0, ∞).
- Archive:
BudanFourier.budan_fourier(Formalizations.Analysis.Polynomial.RealRoots.BudanFourier), restated withList.signVariationsthrough the archive bridgesBudanFourier.fourierVar_eq_signVarAtandSturm.signVarAt_eq_signVariations. - Classical reference: F. D. Budan (1807), J. Fourier (1820); S. Basu, R. Pollack, M.-F. Roy, Algorithms in Real Algebraic Geometry, ch. 2.
- Example: for
p = X² − 1on(0, 2], the theorem bounds the number of roots (one, at1) by the drop of sign variations of(X² − 1, 2X, 2)from0to2, which is1.
Newton's inequalities. Let p be a monic real polynomial of degree n that splits over
ℝ, with roots (with multiplicity) p.roots, and let e_j = p.roots.esymm j be their elementary
symmetric functions. For 1 ≤ k ≤ n − 1,
e_k² · C(n, k−1) · C(n, k+1) ≥ e_{k−1} · e_{k+1} · C(n, k)²; that is, the normalized
E_k = e_k / C(n, k) satisfy E_k² ≥ E_{k−1} E_{k+1}. The proof differentiates and reverses the
polynomial down to a real-rooted quadratic.
- Archive:
Newton.newton_inequality(Formalizations.Analysis.Polynomial.RealRoots.NewtonInequalities), restated withPolynomial.SplitsthroughrealRooted_iff_splits; the module cites no paper DOI of ours. - Classical reference: I. Newton, Arithmetica universalis (1707); G. H. Hardy, J. E. Littlewood, G. Pólya, Inequalities, 2nd ed. (1952), ch. II.
- Example: for
p = (X − 1)(X − 2)(X − 3)andk = 1, it givese_1² · 1 · 3 ≥ e_0 e_2 · 9, that is36 · 3 ≥ 11 · 9.
Real-rootedness is stable under differentiation. If a real polynomial p splits over ℝ,
so does its derivative: Rolle's theorem puts a root of p' between consecutive roots of p, and
a multiple root of p stays a root of p', which accounts for all deg p − 1 roots of p'.
Mathlib has the counting step (Polynomial.card_roots_le_derivative) but no Splits statement.
- Archive:
Newton.RealRooted.derivative(Formalizations.Analysis.Polynomial.RealRoots.NewtonInequalities, step (1) of the proof of Newton's inequalities), restated withPolynomial.SplitsthroughrealRooted_iff_splits; the module cites no paper DOI of ours. - Classical reference: a consequence of Rolle's theorem; Q. I. Rahman, G. Schmeisser, Analytic Theory of Polynomials (2002).
- Example: by Rodrigues' formula, iterating
splits_derivativeon(X² − 1)ⁿshows that the Legendre polynomials have only real roots.
Real-rootedness is stable under reversal. If a real polynomial p splits over ℝ, so does
its reverse p.reverse = Xᵈᵉᵍ ᵖ · p(1/X) (Mathlib's Polynomial.reverse): the nonzero roots are
inverted, and a vanishing constant term only lowers the degree. With splits_derivative, it
reduces statements about the middle coefficients of a real-rooted polynomial to a real-rooted
quadratic.
- Archive:
Newton.RealRooted.reverse(Formalizations.Analysis.Polynomial.RealRoots.NewtonInequalities), restated withPolynomial.SplitsthroughrealRooted_iff_splits; the module cites no paper DOI of ours. - Classical reference: the reversal step of the classical proof of Newton's inequalities; G. H. Hardy, J. E. Littlewood, G. Pólya, Inequalities, 2nd ed. (1952), ch. II.
- Example:
X · (X − 2)splits, so its reverse1 − 2Xsplits.
d'Ocagne's identity for the Vieta–Fibonacci polynomials. For Mathlib's Polynomial.Chebyshev.S (the
rescaled Chebyshev polynomials of the second kind, indexed by ℤ) over a commutative ring R, and all
p q : ℤ, S p · S (q − 1) − S q · S (p − 1) = − S (p − q − 1). The case q = p + 1 is the Cassini-type
identity Polynomial.Chebyshev.S_sq_add_S_sq; at X = 1 it is d'Ocagne's identity for Fibonacci numbers.
- Archive:
Orbit.S_docagne(Formalizations.RingTheory.Polynomial.Chebyshev.Docagne); the module cites no paper DOI of ours. - Classical reference: d'Ocagne's identity for Fibonacci numbers, named after M. d'Ocagne; stated, e.g., in E. W. Weisstein, d'Ocagne's Identity, MathWorld.
- Example: at
p = 2,q = 1:S 2 · S 0 − S 1 · S 1 = −S 0, that isX² − 1 − X² = −1.