Dyadic.toReal is the rational cast of toRat. A plain-import restatement
of the definition, so downstream modules that do not import all this file can
still bridge Dyadic.toReal to the ℚ-valued endpoints of an isolation.
The real cast of an executable integer polynomial.
Equations
Instances For
The complex cast of an executable integer polynomial.
Equations
Instances For
The real value of an integer dyadic is the integer cast.
Hex.twoPow k has real value 2 ^ k.
The real value of a left shift is multiplication by a power of two.
The real value of a right shift is multiplication by a negative power of two.
The real value of the dyadic n / 2ⁱ (an integer shifted right by i bits).
ceilLog2Nat m is a base-two ceiling: m ≤ 2 ^ (ceilLog2Nat m).
The List.range fold used by rootBound to compute the maximum absolute
non-leading coefficient equals the corresponding Finset.sup.
Evaluating the real cast at x is the degree-indexed sum of the integer
coefficients cast to ℝ. For a literal ofCoeffs this unfolds via
Finset.sum_range_succ into an explicit polynomial in x; combined with
Polynomial.IsRoot, it turns a root goal into a plain equation
ring/norm_num can discharge.
Coefficients of the complex cast are the complex casts of the integer coefficients.
The complex cast preserves the natural degree.
The complex cast preserves the leading coefficient.
The complex cast is the map of the integer polynomial.
The power-of-two Cauchy bound Hex.rootBound p dominates Cauchy's bound.
Cauchy root bound. Every real root of a nonzero toPolyℝ p lies strictly
inside the power-of-two bound Hex.rootBound p.
Compatibility forwarding theorem for the off-diagonal root-product identity.
Compatibility forwarding theorem for the discriminant/Vandermonde identity.
The closed-form separation exponent dominates the analytic bound:
√n^{n+2} · L^{n-1} ≤ 2^E where E = ((n+2)·⌈log₂ n⌉ + 1)/2 + (n-1)·⌈log₂ L⌉.
Mahler's separation bound. For a p whose rational image is separable
(equivalently squarefree over ℚ; squareFreeRat_iff discharges this from
Hex.SquareFreeRat), any two distinct complex roots of toPolyℂ p are more than
4 · 2^{-sepPrec p} apart. Vacuous for degree ≤ 1 (where sepPrec = 0 and there
is at most one root), so the content is the degree ≥ 2 case.