Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.IntervalSign

Kernel-checked sign conditions for rational polynomials on intervals #

For a rational coefficient list cs and a closed rational interval [a, b], or a half-line [a, ∞) (hi = none), two Boolean checks decide sign conditions of the real polynomial p = (ofCoeffList cs).map (algebraMap ℚ ℝ) on the whole interval from finitely many rational evaluations of p, p' and the Sturm sequence Cslib.RealRoot.sturmSeqList cs.

The Sturm count is the general form of Sturm's theorem, Polynomial.sturmVariations_sub_eq_card_roots_Ioc_of_gcd_eval_ne_zero, which needs no squarefree hypothesis: it applies because the multiple-root divisor gcd p p' does not vanish at an endpoint where p or p' does not.

For the half-line, the right endpoint is b = max (a + 1) B (or max a B for rootFreeOn) with the Cauchy bound B = Cslib.RealRoot.cauchyBoundNat cs, beyond which p has no root (Cslib.RealRoot.abs_lt_cauchyBoundNat_of_isRoot), and the sign at b decides the sign on [b, ∞).

Main definitions #

Main results #

The interval [a, b], or [a, ∞) when hi = none, as a set of reals.

@[reducible]

The value at x of the polynomial with coefficient list cs, as a rational.

Whether x is not a multiple root of cs: the value or the derivative is nonzero there.

The check of rootFreeOn on a closed interval [a, b].

The check of nonnegOn on a closed interval [a, b].

No root on an interval. Whether the polynomial with coefficient list cs has no real root on [a, b], or on [a, ∞) when hi = none.

Nonnegativity on an interval. Whether the polynomial with coefficient list cs is nonnegative on [a, b], or on [a, ∞) when hi = none.

Soundness #

Soundness of rootFreeOn. An accepted check proves that the real polynomial has no root on [a, b], or on [a, ∞) when hi = none.

Soundness of nonnegOn. An accepted check proves that the real polynomial is nonnegative on [a, b], or on [a, ∞) when hi = none.