Mathlib.Data.Nat.Prime.Int
6 declarations. Mathlib docs · Source
theorem Nat.prime_iff_prime_int E1 #
∀ {p : ℕ}, Nat.Prime p ↔ Prime ↑p
theorem Nat.Prime.pow_inj E1 #
∀ {p q m n : ℕ}, Nat.Prime p → Nat.Prime q → p ^ (m + 1) = q ^ (n + 1) → p = q ∧ m = n
Two prime powers with positive exponents are equal only when the primes and the exponents are equal.
theorem Nat.Prime.pow_inj' E1 #
∀ {p q m n : ℕ}, Nat.Prime p → Nat.Prime q → m ≠ 0 → n ≠ 0 → p ^ m = q ^ n → p = q ∧ m = n
Version of Nat.Prime.pow_inj with an explicit nonzero assumption on the exponents.
theorem Int.prime_ofNat_iff E0 #
∀ {n : ℕ}, Prime (OfNat.ofNat n) ↔ Nat.Prime (OfNat.ofNat n)
theorem Int.prime_two E1 #
Prime 2
theorem Int.prime_three E1 #
Prime 3