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
Lemmas where one argument consists of an addition of the other
Lemmas where one argument consists of a subtraction of the other
lcm
#
Coprime
#
See also Nat.coprime_of_dvd
and Nat.coprime_of_dvd'
to prove Nat.Coprime m n
.
Represent a divisor of m * n
as a product of a divisor of m
and a divisor of n
.
See exists_dvd_and_dvd_of_dvd_mul
for the more general but less constructive version for other
GCDMonoid
s.
Equations
- One or more equations did not get rendered due to their size.