Mathlib.Algebra.IsPrimePow
21 declarations and 1 deprecated aliases. Mathlib docs · Source
def IsPrimePow E1 #
{R : Type u_1} → [CommMonoidWithZero R] → R → Prop
n is a prime power if there is a prime p and a positive natural k such that n can be
written as p^k.
theorem isPrimePow_def E0 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] (n : R), IsPrimePow n ↔ ∃ p k, Prime p ∧ 0 < k ∧ p ^ k = n
theorem isPrimePow_iff_pow_succ E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] (n : R), IsPrimePow n ↔ ∃ p k, Prime p ∧ p ^ (k + 1) = n
An equivalent definition for prime powers: n is a prime power iff there is a prime p and a
natural k such that n can be written as p^(k+1).
theorem not_isPrimePow_zero E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsReduced R], ¬IsPrimePow 0
theorem IsPrimePow.not_isUnit E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : R}, IsPrimePow n → ¬IsUnit n
theorem IsUnit.not_isPrimePow E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : R}, IsUnit n → ¬IsPrimePow n
theorem not_isPrimePow_one E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R], ¬IsPrimePow 1
theorem Prime.isPrimePow E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] {p : R}, Prime p → IsPrimePow p
theorem IsPrimePow.pow E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : R}, IsPrimePow n → ∀ {k : ℕ}, k ≠ 0 → IsPrimePow (n ^ k)
theorem IsPrimePow.ne_zero E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsReduced R] {n : R}, IsPrimePow n → n ≠ 0
theorem IsPrimePow.ne_one E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : R}, IsPrimePow n → n ≠ 1
theorem isPrimePow_nat_iff E0 #
∀ (n : ℕ), IsPrimePow n ↔ ∃ p k, Nat.Prime p ∧ 0 < k ∧ p ^ k = n
theorem Nat.Prime.isPrimePow E1 #
∀ {p : ℕ}, Nat.Prime p → IsPrimePow p
theorem isPrimePow_nat_iff_bounded E1 #
∀ (n : ℕ), IsPrimePow n ↔ ∃ p ≤ n, ∃ k ≤ n, Nat.Prime p ∧ 0 < k ∧ p ^ k = n
theorem isPrimePow_nat_iff_bounded_log E1 #
∀ (n : ℕ), IsPrimePow n ↔ ∃ k ≤ Nat.log 2 n, 0 < k ∧ ∃ p ≤ n, n = p ^ k ∧ Nat.Prime p
theorem isPrimePow_nat_iff_bounded_log_minFac E1 #
∀ (n : ℕ), IsPrimePow n ↔ ∃ k ≤ Nat.log 2 n, 0 < k ∧ n = n.minFac ^ k
instance instDecidableIsPrimePowNat E0 #
{n : ℕ} → Decidable (IsPrimePow n)
theorem IsPrimePow.dvd E1 #
∀ {n m : ℕ}, IsPrimePow n → m ∣ n → m ≠ 1 → IsPrimePow m
theorem IsPrimePow.two_le E1 #
∀ {n : ℕ}, IsPrimePow n → 2 ≤ n
theorem IsPrimePow.pos E1 #
∀ {n : ℕ}, IsPrimePow n → 0 < n
theorem IsPrimePow.one_lt E1 #
∀ {n : ℕ}, IsPrimePow n → 1 < n
Deprecated aliases
| Name | New name | Since |
|---|---|---|
IsPrimePow.not_unit | IsPrimePow.not_isUnit | 2026-08-02 |