The signs of a polynomial near a point and near infinity #
Candidates for Mathlib.Analysis.Polynomial.Order: over a linearly ordered normed field with the
order topology, such as โ, a nonzero polynomial has, far right, the sign of its leading
coefficient and, far left, that sign times (-1) ^ deg (Polynomial.eventually_atTop_sign_eval,
Polynomial.eventually_atBot_sign_eval); near a point it keeps a nonzero sign
(Polynomial.eventually_sign_eval_eq), near a root x where its derivative does not vanish it has
the sign of (y - x) p'(x) at y (Polynomial.eventually_sign_eval_eq_sign_sub_mul), and just
right of a point x where it or its derivative does not vanish it has the sign of p(x), or of
p'(x) when p(x) = 0, and just left of x that of p(x), or of -p'(x) when p(x) = 0
(Polynomial.eventually_sign_eval_nhdsGT, Polynomial.eventually_sign_eval_nhdsLT). By the
intermediate value theorem, opposite signs of a real polynomial at two points give a root between
them (Polynomial.exists_isRoot_of_eval_mul_eval_neg), a negative sign just right of the left end
of an interval without a root holds on the whole interval
(Polynomial.eval_neg_of_forall_not_isRoot), and a nonzero real polynomial of degree n changes
its sign at most n times along increasing points
(Polynomial.length_le_natDegree_add_one_of_isChain).
Implementation notes #
The file imports its sibling Mathlib.Analysis.Polynomial.Order, the sibling's private import
Mathlib.Topology.Algebra.Polynomial for the continuity of polynomials, and, publicly,
Mathlib.Algebra.Polynomial.Derivative, which the statements just right and just left of a point
name and the sibling's public imports lack.
The lemmas that rest on the intermediate value theorem are stated over โ, as the sibling's are:
they need a conditionally complete, densely ordered field.
The signs just right and just left of a point are stated by the case distinction on p(x) = 0,
without a definition of their own; compare Polynomial.signRight of Mathlib pull request #44248,
the sign just right of a point as a limit, for every p.
Near a point where it does not vanish, a polynomial keeps its sign.
Far right, a nonzero polynomial has the sign of its leading coefficient.
Far left, a nonzero polynomial has the sign of (-1) ^ deg times its leading coefficient.
Near a root x of p with p'(x) โ 0, p(y) has the sign of (y - x) p'(x).
Just right of a point x where p(x) โ 0 or p'(x) โ 0, a polynomial p has the sign of
p(x), or of p'(x) when p(x) = 0.
Just left of a point x where p(x) โ 0 or p'(x) โ 0, a polynomial p has the sign of
p(x), or of -p'(x) when p(x) = 0.
An interval (l, r) without a root of a real polynomial p, on which p is negative just
right of l, holds no x with p(x) โฅ 0.
A nonzero real polynomial p of degree n changes its sign at most n times along a strictly
increasing list of points.