Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.BitBounds

Coefficient Bit-Size and Dyadic Endpoint Bounds for Real-Root Isolation #

This module bounds the Cauchy root bound, cleared-denominator coefficient norm, Mignotte bisection depth, and output rational interval endpoints in terms of input length cs.length and an input coefficient bit-length bound B.

Main definitions #

Main results #

References #

HasCoeffBitBound, DyadicBounded, and mignotteBisectionDepth_le_of_bitBound are this library's own construction on top of the root-separation ingredients below.

Every rational entry q ∈ cs has numerator and denominator bounded by 2 ^ B.

Computable bit-length bound on all numerators and denominators in cs.

Every coefficient list cs satisfies HasCoeffBitBound (coeffBitBound cs) cs.

Upper bound cauchyBoundNat cs ≤ 2 ^ (2 * B) + 2 under HasCoeffBitBound B cs.

Logarithmic bound Nat.clog 4 (cauchyBoundNat cs) ≤ B + 1 under HasCoeffBitBound B cs.

theorem Cslib.RealRoot.lcmDens_le_of_bitBound {B : ℕ} {cs : List ℚ} (hB : HasCoeffBitBound B cs) :
lcmDens cs ≤ 2 ^ (cs.length * B)

lcmDens cs ≤ 2 ^ (cs.length * B) under HasCoeffBitBound B cs.

Upper bound on cleared-denominator sqNormList under HasCoeffBitBound B cs.

Logarithmic bound on sqNormList (clearDenomsList (CoeffList.trim cs)).2 under HasCoeffBitBound B cs.

Unconditional polynomial upper bound on mignotteBisectionDepth cs in terms of cs.length and an input coefficient bit-length bound B.

Predicate asserting that q : ℚ is a dyadic rational z / 2 ^ e with |z| ≤ b * 2 ^ e.

Any natural number (b : ℚ) satisfies DyadicBounded b 0.

-(b : ℚ) satisfies DyadicBounded b 0.

theorem Cslib.RealRoot.DyadicBounded.mono {b e e' : ℕ} {q : ℚ} (hq : DyadicBounded b e q) (he : e ≤ e') :

Monotonicity of DyadicBounded in the exponent e ≤ e'.

theorem Cslib.RealRoot.DyadicBounded.mid {b e : ℕ} {u v : ℚ} (hu : DyadicBounded b e u) (hv : DyadicBounded b e v) :
DyadicBounded b (e + 1) ((u + v) / 2)

Midpoint rule: if u and v satisfy DyadicBounded b e, then (u + v) / 2 satisfies DyadicBounded b (e + 1).

theorem Cslib.RealRoot.DyadicBounded.den_le {b e : ℕ} {q : ℚ} (hq : DyadicBounded b e q) :
q.den ≤ 2 ^ e

Denominator bound q.den ≤ 2 ^ e for any DyadicBounded b e q.

theorem Cslib.RealRoot.DyadicBounded.natAbs_num_le {b e : ℕ} {q : ℚ} (hq : DyadicBounded b e q) :
q.num.natAbs ≤ b * 2 ^ e

Numerator magnitude bound Int.natAbs q.num ≤ b * 2 ^ e for any DyadicBounded b e q.

theorem Cslib.RealRoot.refineLeftLoop_dyadicBounded (t : List ℚ) (seq : List (List ℚ)) (fuel b e : ℕ) (u v : ℚ) (vu : ℕ) :
DyadicBounded b e u → DyadicBounded b e v → have I := refineLeftLoop t seq fuel u v vu; DyadicBounded b (e + fuel) I.lower ∧ DyadicBounded b (e + fuel) I.upper

Dyadic bound for refineLeftLoop: starting from DyadicBounded b e endpoints, fuel steps produce endpoints satisfying DyadicBounded b (e + fuel).

theorem Cslib.RealRoot.refineLeftRoot_dyadicBounded (t : List ℚ) (seq : List (List ℚ)) (fuel b e : ℕ) (u v : ℚ) (vu : ℕ) (hu : DyadicBounded b e u) (hv : DyadicBounded b e v) :
have I := refineLeftRoot t seq fuel u v vu; DyadicBounded b (e + fuel) I.lower ∧ DyadicBounded b (e + fuel) I.upper

Dyadic bound for refineLeftRoot: starting from DyadicBounded b e endpoints, fuel steps produce endpoints satisfying DyadicBounded b (e + fuel).

theorem Cslib.RealRoot.isolateIoc_dyadicBounded (t : List ℚ) (seq : List (List ℚ)) (depthBound fuel b e : ℕ) (u v : ℚ) (vu vv : ℕ) :
DyadicBounded b e u → DyadicBounded b e v → ∀ I ∈ isolateIoc t seq depthBound fuel u v vu vv, DyadicBounded b (e + fuel + depthBound) I.lower ∧ DyadicBounded b (e + fuel + depthBound) I.upper

Dyadic bound for isolateIoc: starting from DyadicBounded b e endpoints, every returned interval has endpoints satisfying DyadicBounded b (e + fuel + depthBound).

Unconditional dyadic endpoint bound: every interval in isolateRoots cs has endpoints of the form z / 2 ^ (2 * mignotteBisectionDepth cs) with Int.natAbs z ≤ cauchyBoundNat cs * 2 ^ (2 * mignotteBisectionDepth cs).