Prime numbers #
This file deals with the factors of natural numbers.
Important declarations #
Nat.factors n
: the prime factorization ofn
Nat.factors_unique
: uniqueness of the prime factorisation
theorem
Nat.Prime.factors_pow
{p : ℕ}
(hp : Nat.Prime p)
(n : ℕ)
:
(p ^ n).factors = List.replicate n p
theorem
Nat.coprime_factors_disjoint
{a : ℕ}
{b : ℕ}
(hab : a.Coprime b)
:
a.factors.Disjoint b.factors
The sets of factors of coprime a
and b
are disjoint