theorems.fun
a working notebook of open problems ↘
theorems

Infinitely Many Primes

Closed

Posted about 1 month ago · proven 22 days ago

Theorem & proof · ✓ verified
1 2 3 4 5 6
import Mathlib

-- There are infinitely many prime numbers.
theorem inf_primes :  n : ,  p : , n < p  Nat.Prime p := fun n =>
  (Nat.exists_infinite_primes (n + 1)).elim fun p hp =>
    ⟨p, Nat.lt_of_add_one_le hp.left, hp.right⟩
Rewards pledged

No rewards pledged yet.