Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.RatPoly

Computable Rational Sturm Evaluation, Cauchy Bounds, and Mignotte Depth #

Building on the general coefficient-list polynomial arithmetic and Euclidean division in Polynomial.CoeffList, this module provides computable Sturm sequences (sturmSeqList), rational sign-variation counting (sturmVariationsList), Cauchy root bounds (cauchyBoundNat), integer denominator clearing (clearDenomsList), and Mignotte bisection-depth computation (mignotteBisectionDepth) on List ℚ, and proves their correspondence with Mathlib's Polynomial and Polynomial.sturmVariations over ℝ.

Main definitions #

Main results #

References #

Fuel-bounded computable Sturm sequence on trimmed lists.

Computable Sturm sequence of a rational coefficient list cs.

sturmSeqList cs represents Polynomial.sturmSeq (ofCoeffList cs) (derivative (ofCoeffList cs)) elementwise under ofCoeffList.

Length bound (sturmSeqList cs).length ≤ (ofCoeffList cs).natDegree + 1.

Entry length bound: every list in sturmSeqList cs has length at most (CoeffList.trim cs).length.

Rational Sturm sign variations of a precomputed Sturm sequence at x : ℚ.

sturmVariationsList (sturmSeqList cs) x equals the real Sturm sign-variation count Polynomial.sturmVariations ((ofCoeffList cs).map (algebraMap ℚ ℝ)) (x : ℝ).

Maximum absolute value among a list of rational numbers (0 on []).

The recursive absolute maximum is the maximum fold over the mapped entries.

Every indexed entry l.getD i 0 has absolute value at most maxAbsList l.

Computable positive integer upper bound strictly greater than the absolute value of every real root of ofCoeffList cs.

Every real root r of (ofCoeffList cs).map (algebraMap ℚ ℝ) (when nonzero) satisfies |r| < cauchyBoundNat cs.

Lowest common multiple of all denominators in a rational coefficient list.

lcmDens cs is always positive (1 ≤ lcmDens cs).

theorem Cslib.RealRoot.dvd_lcmDens {cs : List ℚ} {q : ℚ} (hq : q ∈ cs) :

Every element's denominator divides lcmDens cs.

Clear denominators of cs : List ℚ, returning (D, ns) with 1 ≤ D and ns.map (↑) = cs.map (D * ·).

(clearDenomsList cs).2 represents (clearDenomsList cs).1 * ofCoeffList cs over ℚ[X].

The clearing multiplier (clearDenomsList cs).1 is always at least 1.

Sum of squares of an integer coefficient list.

coeffSqNorm (ofCoeffList ns) is bounded above by sqNormList ns.

Mignotte squared-separation denominator d ^ (d + 2) * sqNormList ns ^ (d - 1).

Computable Mignotte bisection depth K ensuring dyadic width 2 * B / 2 ^ K is strictly smaller than any root gap when 2 ≤ deg p (0 when deg p ≤ 1).

For nonzero ofCoeffList cs, the cleared-denominator integer coefficient squared norm is at least 1.

Dyadic bisection at depth mignotteBisectionDepth cs shrinks the interval width 2 * cauchyBoundNat cs / 2 ^ K strictly below the Mignotte separation between any two distinct real roots of separable ofCoeffList cs (2 ≤ natDegree).