Documentation

TauCeti.Data.Nat.Factorization.Basic

Removing prime-power factors #

The least prime belongs to the prime factors of a natural number greater than one, and removing its full multiplicity gives a smaller number. Removing the p-part erases p from the prime factors. These facts support induction by successively removing prime-power blocks.

theorem Nat.minFac_mem_primeFactors {n : ℕ} (hn : 1 < n) :

For 1 < n the least prime factor of n is one of its primes.

theorem Nat.ordCompl_minFac_lt {n : ℕ} (hn : 1 < n) :

Peeling the block at the least prime factor makes n strictly smaller.

@[simp]

Removing the p-part of a natural number removes p from its prime factors.