Properties of Nat.gcd
, Nat.lcm
, and Nat.Coprime
#
Definitions are provided in batteries.
Generalizations of these are provided in a later file as GCDMonoid.gcd
and
GCDMonoid.lcm
.
Note that the global IsCoprime
is not a straightforward generalization of Nat.Coprime
, see
Nat.isCoprime_iff_coprime
for the connection between the two.
Most of this file could be moved to batteries as well.
gcd
#
Lemmas where one argument consists of addition of a multiple of the other
lcm
#
Coprime
#
See also Nat.coprime_of_dvd
and Nat.coprime_of_dvd'
to prove Nat.Coprime m n
.
@[deprecated Nat.dvdProdDvdOfDvdProd (since := "2025-04-01")]
Alias of Nat.dvdProdDvdOfDvdProd
.
Represent a divisor of m * n
as a product of a divisor of m
and a divisor of n
.