Nonreal complex roots equal the real-root defect
ProvedDerivativeChainPrivate.nonreal_roots_of_real_polynomialderivative-chain-formalization-20261018derivative-chain-privatepolynomials
Let be a real polynomial. For , let count its real roots with multiplicity and let count the nonreal roots of its complexification, also with multiplicity. Then
This identity relates the real-root deficit to the number of nonreal root slots.
Formalization Note The formal statement also includes . Mathlib defines the finite roots multiset of the zero polynomial to be empty and its natural degree to be zero; under those conventions both sides are zero. This is not a claim that the zero polynomial's mathematical zero set is empty. Subtraction is natural-number subtraction. Nonzero constants have no root slots and degree zero.
Preamble
import Mathlib.Analysis.Complex.Polynomial.Basic set_option autoImplicit false namespace DerivativeChainPrivate end DerivativeChainPrivate
Formal statement
theorem DerivativeChainPrivate.nonreal_roots_of_real_polynomial (p : Polynomial ℝ) :
((p.map Complex.ofRealHom).roots.filter (fun z => z.im ≠ 0)).card =
p.natDegree - p.roots.card := by sorrySource
Derivative-zero chains: public formalization reference, R29, DerivativeChainPrivate.nonreal_roots_of_real_polynomial. https://gist.github.com/Amal-David/d6612109c98595b12561cd638c60edf5/3883c57ddc7bf9d4c0e898c3d6bfd2ca0d7f9c95#file-notes-md
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.