Euclid's theorem: there are infinitely many primes
ProvedFamousTheorems.exists_infinite_primesmathlibnumber-theory
There are infinitely many primes.
For every there is a prime .
Euclid's argument: given any finite list of primes, leaves remainder on division by each , so any prime factor of is new. Stated as above — for each a prime at least — it avoids the common misreading that the proof is by contradiction; it is constructive.
This is Proposition IX.20 of the Elements and the starting point of analytic number theory.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems theorem exists_infinite_primes : ∀ n : ℕ, ∃ p, n ≤ p ∧ Nat.Prime p := by sorry end FamousTheorems
Source
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.