Metamath Proof Explorer


Theorem infpn

Description: There exist infinitely many prime numbers: for any positive integer N , there exists a prime number j greater than N . (See infpn2 for the equinumerosity version.) (Contributed by NM, 1-Jun-2006)

Ref Expression
Assertion infpn ⊢ N ∈ ℕ → ∃ j ∈ ℕ N < j ∧ ∀ k ∈ ℕ j k ∈ ℕ → k = 1 ∨ k = j

Proof

Step Hyp Ref Expression
1 eqid ⊢ N ! + 1 = N ! + 1
2 1 infpnlem2 ⊢ N ∈ ℕ → ∃ j ∈ ℕ N < j ∧ ∀ k ∈ ℕ j k ∈ ℕ → k = 1 ∨ k = j