Documentation

Mathlib.Data.Dyadic.Basic

Dyadic rationals form an ordered ring #

We provide instances of LinearOrder Dyadic, CommRing Dyadic, and IsOrderedRing Dyadic.

@[simp]
theorem Dyadic.toRat_one :
toRat 1 = 1
@[simp]
theorem Dyadic.natCast_zero :
↑0 = 0
@[simp]
theorem Dyadic.natCast_one :
↑1 = 1
theorem Dyadic.natCast_add (a b : ℕ) :
↑(a + b) = ↑a + ↑b
@[simp]
theorem Dyadic.intCast_zero :
↑0 = 0
@[simp]
theorem Dyadic.intCast_one :
↑1 = 1
theorem Dyadic.intCast_add (a b : ℤ) :
↑(a + b) = ↑a + ↑b
@[simp]
theorem Dyadic.intCast_natCast (n : ℕ) :
↑↑n = ↑n
theorem Dyadic.intCast_neg (a : ℤ) :
↑(-a) = -↑a
@[instance_reducible]
Equations
  • One or more equations did not get rendered due to their size.
@[instance_reducible]
Equations
  • One or more equations did not get rendered due to their size.