Metamath Proof Explorer


Theorem dfprm2

Description: The positive irreducible elements of ZZ are the prime numbers. This is an alternative way to define Prime . (Contributed by Mario Carneiro, 5-Dec-2014) (Revised by AV, 10-Jun-2019)

Ref Expression
Hypothesis prmirred.i ⊢ I = Irred ⁡ ℤ ring
Assertion dfprm2 ⊢ ℙ = ℕ ∩ I

Proof

Step Hyp Ref Expression
1 prmirred.i ⊢ I = Irred ⁡ ℤ ring
2 prmnn ⊢ x ∈ ℙ → x ∈ ℕ
3 1 prmirredlem ⊢ x ∈ ℕ → x ∈ I ↔ x ∈ ℙ
4 3 bicomd ⊢ x ∈ ℕ → x ∈ ℙ ↔ x ∈ I
5 2 4 biadanii ⊢ x ∈ ℙ ↔ x ∈ ℕ ∧ x ∈ I
6 elin ⊢ x ∈ ℕ ∩ I ↔ x ∈ ℕ ∧ x ∈ I
7 5 6 bitr4i ⊢ x ∈ ℙ ↔ x ∈ ℕ ∩ I
8 7 eqriv ⊢ ℙ = ℕ ∩ I