Documentation

Mathlib.Data.Nat.Factorization.PrimePow

Prime powers and factorizations #

This file deals with factorizations of prime powers.

theorem exists_ordCompl_eq_one_iff_isPrimePow {n : ℕ} (hn : n ≠ 1) :
IsPrimePow n ↔ ∃ (p : ℕ), Nat.Prime p ∧ n / p ^ n.factorization p = 1

An equivalent definition for prime powers: n is a prime power iff there is a unique prime dividing it.

theorem isPrimePow_pow_iff {n k : ℕ} (hk : k ≠ 0) :
theorem Nat.Coprime.isPrimePow_dvd_mul {n a b : ℕ} (hab : a.Coprime b) (hn : IsPrimePow n) :
n ∣ a * b ↔ n ∣ a ∨ n ∣ b
theorem Nat.mul_divisors_filter_prime_pow {a b : ℕ} (hab : a.Coprime b) :
{d ∈ (a * b).divisors | IsPrimePow d} = {d ∈ a.divisors ∪ b.divisors | IsPrimePow d}

The canonical equivalence between pairs (p, k) with p a prime and k : ℕ and the set of prime powers given by (p, k) ↦ p^(k+1).

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[simp]
    theorem Nat.Primes.prodNatEquiv_apply (p : Primes) (k : ℕ) :
    prodNatEquiv (p, k) = ⟨↑p ^ (k + 1), ⋯⟩
    @[simp]
    theorem Nat.Primes.coe_prodNatEquiv_apply (p : Primes) (k : ℕ) :
    ↑(prodNatEquiv (p, k)) = ↑p ^ (k + 1)
    theorem Nat.exponent_dvd_of_prime_pow_eq_pow {p a m n : ℕ} (hp : Prime p) (h : p ^ m = a ^ n) :
    n ∣ m
    theorem Nat.exists_base_eq_prime_pow_of_prime_pow_eq_base_pow {p a m n : ℕ} (hp : Prime p) (hn : n ≠ 0) (h : p ^ m = a ^ n) :
    ∃ (k : ℕ), a = p ^ k