Radix Magnitude #
The magnitude of a nonzero real $x$ is the unique integer $e$ for which $\beta^{e-1}\le|x|<\beta^e$. These bounds are the basic bridge between logarithmic magnitude, canonical exponents, and generic-format rounding.
theorem
FloatLib.Floats.Formats.Flocq.abs_lt_bpow_magnitude
(β : Numerics.Radix)
(x : ℝ)
(hx : x ≠ 0)
:
Strict upper magnitude bound for a nonzero real.
@[simp]
The magnitude of $\beta^e$ is $e+1$.
@[simp]
Radix powers preserve and reflect exponent order.
@[simp]
Radix powers preserve and reflect strict exponent order.
theorem
FloatLib.Floats.Formats.Flocq.magnitude_mono_pos
(β : Numerics.Radix)
{x y : ℝ}
(hx : 0 < x)
(hxy : x ≤ y)
:
Magnitude is monotone on positive real inputs.
theorem
FloatLib.Floats.Formats.Flocq.bpow_eq_natCast_of_nonneg
(β : Numerics.Radix)
(e : ℤ)
(he : 0 ≤ e)
:
A radix power with nonnegative exponent is the cast of a natural number.