Primality and GCD on pnat #
This file extends the theory of ℕ+ with gcd, lcm and Prime functions, analogous to those on
Nat.
The greatest common divisor (gcd) of two positive natural numbers, viewed as positive natural number.
Equations
Instances For
The least common multiple (lcm) of two positive natural numbers, viewed as positive natural number.
Equations
Instances For
Prime numbers #
Coprime numbers and gcd #
Two pnats are coprime if their gcd is 1.
Equations
Instances For
@[deprecated PNat.gcd_eq_left_iff_dvd (since := "2025-11-14")]
Alias of the reverse direction of PNat.gcd_eq_left_iff_dvd.