Floating-Point Representations #
This module defines FloatRep, a sign/exponent/mantissa representation of
floating-point numbers parameterized by a FloatCfg, together with its rational
interpretation coeQ, negation, validity predicates, and an ordering
floatrepLe proved equivalent to the order on the underlying rationals.
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
theorem
floatrep_of_false₂
{C : FloatCfg}
(P : FloatRep C → FloatRep C → Prop)
(h1 : ∀ (f1 f2 : FloatRep C), P f1.neg f2 → P f1 f2)
(h2 : ∀ (f1 f2 : FloatRep C), P f1 f2.neg → P f1 f2)
(h3 : ∀ (e e' : ℤ) (m m' : ℕ), P { s := false, e := e, m := m } { s := false, e := e', m := m' })
(f1 f2 : FloatRep C)
:
P f1 f2
The full ordering on representations, accounting for signs.