Prime numbers #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
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