Definitions and properties of Nat.gcd
, Nat.lcm
, and Nat.coprime
#
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.
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
.
Equations
- m.instDecidableCoprime_mathlib n = inferInstanceAs (Decidable (m.gcd n = 1))
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.