Chebyshev's Bounds for π(n)
Statement
Chebyshev's bounds (1852): there exist explicit constants such that for all sufficiently large ,
where is the number of primes up to . Chebyshev's constants are and , giving
This implies up to a constant factor, a precursor to the Prime Number Theorem (which gives ).
Visualization
Comparison of (exact count), the Chebyshev lower bound , and the asymptotic approximation :
| ratio | |||
|---|---|---|---|
| 10 | 4 | 4 | 1.00 |
| 100 | 25 | 21 | 1.19 |
| 1000 | 168 | 144 | 1.17 |
| 10000 | 1229 | 1085 | 1.13 |
| 100000 | 9592 | 8685 | 1.10 |
The ratio converges to as , which is the content of the Prime Number Theorem. Chebyshev's weaker result shows the ratio is bounded between and .
Proof Sketch
- Upper bound via . The product of all primes in divides . Taking logarithms gives the Chebyshev -function bound .
- Lower bound from Bertrand. By Bertrand's PostulateBertrand's PostulateFor every positive integer n there is always a prime p with n < p ≤ 2nRead more →, there is always a prime in . Iterating: primes , , ... give at least primes up to . A tighter argument using gives .
- Counting argument. Primes each appear in to a bounded power; summing and comparing with closes the bound.
Connections
Chebyshev's bounds are a direct consequence of Bertrand's PostulateBertrand's PostulateFor every positive integer n there is always a prime p with n < p ≤ 2nRead more → and a precursor to the Prime Counting Function π(n)Prime Counting Function π(n)π(n) counts primes up to n and satisfies π(n) ~ n/ln(n) by the Prime Number TheoremRead more → asymptotics. The central binomial coefficient argument also appears in Lagrange's Four-Square TheoremLagrange's Four-Square TheoremEvery natural number is the sum of four perfect squaresRead more → and in the Binomial TheoremBinomial TheoremExpanding powers of a sum via binomial coefficientsRead more →.
Lean4 Proof
import Mathlib.Data.Nat.Prime.Basic
import Mathlib.Data.Finset.Basic
/-- There are at least 4 primes ≤ 10: {2, 3, 5, 7}. -/
theorem at_least_4_primes_le_10 :
(Finset.filter Nat.Prime (Finset.range 11)).card ≥ 4 := by decide
/-- There are exactly 4 primes ≤ 10. -/
theorem exactly_4_primes_le_10 :
(Finset.filter Nat.Prime (Finset.range 11)).card = 4 := by decide
/-- There are exactly 25 primes ≤ 100. -/
theorem exactly_25_primes_le_100 :
(Finset.filter Nat.Prime (Finset.range 101)).card = 25 := by decideReferenced by
- Prime Counting Function π(n)Number Theory
- Prime Counting Function π(n)Number Theory
- Mertens' TheoremsNumber Theory
- Bertrand's PostulateNumber Theory