Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.RootIsolation

Polynomial-Time Bit Complexity of Rational Real-Root Isolation on Multi-Tape Turing Machines #

This module proves that the Sturm-bisection real-root isolators Cslib.RealRoot.isolateRoots and Cslib.RealRoot.isolateRootsTotal on little-endian rational coefficient lists (List ℚ) are computable in polynomial time (Turing.MultiTapeTM.ComputableInPolyTime) on multi-tape Turing machines with respect to the binary rational coefficient-list encoding encRatPoly and the framed interval-list encoding encRootIntervals.

Because Turing.MultiTapeTM.encRat stores every rational in reduced form (q.num, q.den), every intermediate polynomial in Cslib.RealRoot.sturmSeqList cs satisfies the Sylvester/Hadamard coefficient bit-length bound Cslib.RealRoot.hasCoeffBitBound_of_mem_sturmSeqList (O(n³ B) bits), every active bisection frontier has at most 2 * cs.length intervals by Cslib.RealRoot.card_active_sturm_intervals_le, and all bisection depths and dyadic interval endpoints remain polynomially bounded in the input bit-length (encRatPoly cs).length.

Main definitions #

Main results #

References #

The List ℚ Sturm-bisection implementation and its unconditional multi-tape Turing-machine polynomial-time certification (isolateRoots_computableInPolyTime, isolateRootsTotal_computableInPolyTime for all encRatPoly-encoded rational coefficient lists) are this library's own construction, distinct from the mathematical Sturm-counting and root-separation ingredients below; [BPR06], §10.2, Algorithm 10.4 (pp. 373–374, over integer coefficients using Bernstein coefficient variation and returning open rational intervals and singleton rational roots) is related work.

Domain encodings and coefficient bit-length bridges #

theorem Cslib.Complexity.RealAlgebraic.encRootInterval_upper_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → RealRoot.RootInterval} :
theorem Cslib.Complexity.RealAlgebraic.encRootInterval_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → ℚ} {T0 S0 : γ → ℕ} {x1 : γ → ℚ} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encRat T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encRat T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { lower := x0 x, upper := x1 x }) encIn encRootInterval (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
@[reducible, inline]

The tuple of the fields of encRootInterval.

Framed tuple encoding of a rational isolating interval RootInterval as (lower, upper) with each endpoint encoded in reduced signed-binary/binary form by encRat.

theorem Cslib.Complexity.RealAlgebraic.encRootInterval_lower_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → RealRoot.RootInterval} :
theorem Cslib.Complexity.RealAlgebraic.encRootInterval_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 x1 : γ → ℚ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encRat budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encRat budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { lower := x0 x, upper := x1 x }) encIn encRootInterval budget
@[reducible, inline]

Framed list encoding of a rational polynomial's little-endian coefficient list List ℚ, with each coefficient encoded in reduced binary form by encRat.

@[reducible, inline]

Framed list encoding of a rational Sturm sequence List (List ℚ), with each polynomial entry encoded by encRatPoly.

@[reducible, inline]

Framed list encoding of a list of rational isolating intervals List RootInterval, with each interval encoded by encRootInterval.

Every rational coefficient list cs satisfies HasCoeffBitBound (encRatPoly cs).length cs.

Polynomial-time CoeffList operations over ℚ #

Polynomial-time Euclidean division CoeffList.divMod and negMod over ℚ #

Polynomial-time rational Sturm sequence sturmSeqList #

Polynomial-time Horner evaluation and sign variations #

Polynomial-time Cauchy root bound and Mignotte bisection depth #

Polynomial-time left-endpoint refinement and boundary separation #

Polynomial-time Sturm bisection isolateRoots #

Polynomial-time boundary separation separateTouching and isolateRootsTotal #

Certified Sturm-bisection real-root isolation Cslib.RealRoot.isolateRootsTotal (producing pairwise disjoint closed rational intervals J₁.upper < J₂.lower) is computable in polynomial time from encRatPoly to encRootIntervals.