Rounding an integer-degree root on the coefficient grid #
The integer root of the rational floor brackets the nonnegative real root. Exact powers compare that root with integer coefficients and their midpoints. The degree is any positive natural number.
The nonnegative real root used in the numerical specifications.
Instances For
theorem
FloatLib.Floats.Formats.DecimalInterchange.RoundingMode.rootRound_le_floor_add_one
(mode : RoundingMode)
(s : Bool)
(degree : ℕ)
(x : ℚ)
:
theorem
FloatLib.Floats.Formats.DecimalInterchange.RoundingMode.rootRound_nat_pow
(mode : RoundingMode)
(s : Bool)
{degree : ℕ}
(hn : degree ≠ 0)
(k : ℕ)
:
Exact integer roots stay exact in every mode, with either output sign.
theorem
FloatLib.Floats.Formats.DecimalInterchange.rootRound_error_le_half
(mode : RoundingMode)
(s : Bool)
(hm : mode = RoundingMode.nearestEven ∨ mode = RoundingMode.nearestAway)
{degree : ℕ}
(hn : degree ≠ 0)
{x : ℚ}
(hx : 0 ≤ x)
:
Exact power comparisons imply the nearest-mode half-grid error bound.