Bertrand's postulate
ProvedFamousTheorems.bertrandmathlibnumber-theory
There is always a prime between and .
For every there is a prime with .
Conjectured by Bertrand in 1845 on numerical evidence up to and proved by Chebyshev in 1852. Erd\H{o}s gave an elementary proof at nineteen, in his first paper, using the prime factorisation of the central binomial coefficient : primes in divide it exactly once, primes above not at all, and the contribution of small primes is too small to account for its size unless a prime in the interval exists.
It is much weaker than the prime number theorem but entirely elementary, and strong enough for many applications where only the existence of a nearby prime matters.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems theorem bertrand : ∀ n : ℕ, n ≠ 0 → ∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n := by sorry end FamousTheorems
Source
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.