Further lemmas for the Rational Numbers #
theorem
Rat.den_mk
(n : ℤ)
(d : ℤ)
:
(Rat.divInt n d).den = if d = 0 then 1 else Int.natAbs d / Int.gcd n d
theorem
Rat.num_div_eq_of_coprime
{a : ℤ}
{b : ℤ}
(hb0 : 0 < b)
(h : Nat.Coprime (Int.natAbs a) (Int.natAbs b))
:
theorem
Rat.den_div_eq_of_coprime
{a : ℤ}
{b : ℤ}
(hb0 : 0 < b)
(h : Nat.Coprime (Int.natAbs a) (Int.natAbs b))
:
theorem
Rat.div_int_inj
{a : ℤ}
{b : ℤ}
{c : ℤ}
{d : ℤ}
(hb0 : 0 < b)
(hd0 : 0 < d)
(h1 : Nat.Coprime (Int.natAbs a) (Int.natAbs b))
(h2 : Nat.Coprime (Int.natAbs c) (Int.natAbs d))
(h : ↑a / ↑b = ↑c / ↑d)
:
@[deprecated Rat.intCast_div_self]
Alias of Rat.intCast_div_self
.
@[deprecated Rat.natCast_div_self]
Alias of Rat.natCast_div_self
.
@[deprecated Rat.intCast_div]
Alias of Rat.intCast_div
.
@[deprecated Rat.natCast_div]
Alias of Rat.natCast_div
.
@[deprecated Rat.inv_intCast_num_of_pos]
Alias of Rat.inv_intCast_num_of_pos
.
@[deprecated Rat.inv_natCast_num_of_pos]
Alias of Rat.inv_natCast_num_of_pos
.
@[deprecated Rat.inv_intCast_den_of_pos]
Alias of Rat.inv_intCast_den_of_pos
.
@[deprecated Rat.inv_natCast_den_of_pos]
Alias of Rat.inv_natCast_den_of_pos
.
@[deprecated Rat.inv_intCast_num]
Alias of Rat.inv_intCast_num
.
@[deprecated Rat.inv_natCast_num]
Alias of Rat.inv_natCast_num
.
@[deprecated Rat.inv_intCast_den]
Alias of Rat.inv_intCast_den
.
@[deprecated Rat.inv_natCast_den]
Alias of Rat.inv_natCast_den
.
@[simp]