The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.Nat.Prime.Infinite

2 declarations and 1 deprecated aliases. Mathlib docs · Source

Infinitude of the primes

Main statements

  • Nat.exists_infinite_primes: Euclid's theorem that there exist infinitely many prime numbers. This also appears as Nat.not_bddAbove_setOfPred_prime and Nat.infinite_setOfPred_prime (the latter in Data.Nat.PrimeFin).

theorem Nat.exists_infinite_primes E3 #

∀ (n : ℕ), ∃ p, n ≤ p ∧ Nat.Prime p

Euclid's theorem on the infinitude of primes. Here given in the form: for every n, there exists a prime number p ≥ n.

theorem Nat.not_bddAbove_setOfPred_prime E3 #

¬BddAbove {p | Nat.Prime p}

A version of Nat.exists_infinite_primes using the BddAbove predicate.

Deprecated aliases

NameNew nameSince
Nat.not_bddAbove_setOf_primeNat.not_bddAbove_setOfPred_prime2026-07-09