This is an inofficial mirror of http://metamath.tirix.org for personal testing of a visualizer extension only.
Database
ELEMENTARY NUMBER THEORY
Elementary prime number theory
Elementary properties
isprm
Metamath Proof Explorer
Description: The predicate "is a prime number". A prime number is a positive integer
with exactly two positive divisors. (Contributed by Paul Chapman , 22-Jun-2011)
Ref
Expression
Assertion
isprm
⊢ P ∈ ℙ ↔ P ∈ ℕ ∧ n ∈ ℕ | n ∥ P ≈ 2 𝑜
Proof
Step
Hyp
Ref
Expression
1
breq2
⊢ p = P → n ∥ p ↔ n ∥ P
2
1
rabbidv
⊢ p = P → n ∈ ℕ | n ∥ p = n ∈ ℕ | n ∥ P
3
2
breq1d
⊢ p = P → n ∈ ℕ | n ∥ p ≈ 2 𝑜 ↔ n ∈ ℕ | n ∥ P ≈ 2 𝑜
4
df-prm
⊢ ℙ = p ∈ ℕ | n ∈ ℕ | n ∥ p ≈ 2 𝑜
5
3 4
elrab2
⊢ P ∈ ℙ ↔ P ∈ ℕ ∧ n ∈ ℕ | n ∥ P ≈ 2 𝑜