Primality and GCD on pnat #
This file extends the theory of ℕ+
with gcd
, lcm
and Prime
functions, analogous to those on
Nat
.
The canonical map from Nat.Primes
to ℕ+
Instances For
Equations
- Nat.Primes.coePNat = { coe := Nat.Primes.toPNat }
Prime numbers #
Coprime numbers and gcd #
Two pnats are coprime if their gcd is 1.