Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Number theory

Bertrand's Postulate

For every positive natural number n, at least one prime lies strictly above n and no higher than twice n.

Exact theorem

Exact Mathlib statement

theorem Nat.exists_prime_lt_and_le_two_mul (n : ℕ) (hn0 : n ≠ 0) : ∃ p : ℕ, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n

The theorem at a glance

Bertrand's Postulate — a prime between n and 2n

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

A central-binomial contradiction settles all sufficiently large n, and an explicit descending prime cover completes the positive cases. Explanatory diagram.
Detailed visual description

The theorem's exact interval leads into the checked Erdős-style architecture: factor the central binomial coefficient, upper-bound it under a no-prime assumption, collide that with an exponential lower bound for n at least 512, then cover the remaining finite range with explicit primes.

Statement structure

From hypotheses to conclusion

Statement map for Bertrand's PostulateEvery positive natural number n has a prime p in the half-open interval n < p ≤ 2n. The pinned upstream declaration is Nat.exists_prime_lt_and_le_two_mul. The exact checked statement is theorem Nat.exists_prime_lt_and_le_two_mul (n : ℕ) (hn0 : n ≠ 0) : ∃ p : ℕ, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n.Mathematical readingEvery positive naturalnumber n has a prime pin the half-openinterval n < p ≤ 2n.Pinned declarationmathlib ·Nat.exists_prime_lt_and_le_two_mulExact checked formtheoremNat.exists_prime_lt_and_le_two_mul(n : ℕ) (hn0 : n ≠ 0) :∃ p : ℕ, Nat.Prime p ∧ n< p ∧ p ≤ 2 * nStatement map for Bertrand's PostulateEvery positive natural number n has a prime p in the half-open interval n < p ≤ 2n. The pinned upstream declaration is Nat.exists_prime_lt_and_le_two_mul. The exact checked statement is theorem Nat.exists_prime_lt_and_le_two_mul (n : ℕ) (hn0 : n ≠ 0) : ∃ p : ℕ, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n.Mathematical readingEvery positive naturalnumber n has a prime pin the half-openinterval n < p ≤ 2n.Pinned declarationmathlib ·Nat.exists_prime_lt_and_le_two_mulExact checked formtheoremNat.exists_prime_lt_and_le_two_mul(n : ℕ) (hn0 : n ≠ 0) :∃ p : ℕ, Nat.Prime p ∧ n< p ∧ p ≤ 2 * n

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

For every positive n, some prime lies strictly after n and at or before 2n. Explanatory diagram.
Detailed visual description

A semi-open interval preserves the strict lower and inclusive upper inequalities. The central binomial coefficient forms the source-visible bridge: assuming no prime in the interval makes its prime-factor contribution too small to meet the required lower bound.

Why it matters

A mathematical landmark

Bertrand's postulate is a classical guarantee that primes occur in every interval from a positive integer to its double. Mathlib retains the distinctive Erdős proof through central binomial coefficients and an explicit finite tail.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This target indexes Mathlib's positive-natural form: for n ≠ 0, there exists a prime p with n < p and p ≤ 2n. The lower endpoint is strict and the upper endpoint is inclusive. It does not assert uniqueness, a prime-counting estimate, or a smaller universal interval.

Source and local evidence

Where the theorem comes from

Existing declaration
Nat.exists_prime_lt_and_le_two_mul in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.bertrand-postulate.v001
Source
Open the pinned upstream reference