Explicit prime counts in a window of ratio two #
For every real x ≥ 4, the half-open window [x/2, x) contains at least c * x / log x primes
for one universal positive constant c. The proof counts prime factors of a central binomial
coefficient, so no prime-number-theorem hypothesis is assumed.
Main results #
Nat.exists_prime_half_le_and_lt: a prime exists in every such window.Nat.exists_forall_mul_div_log_le_card_primes: the uniform counting bound.Nat.exists_forall_mul_sqrt_div_log_le_card_primes: the bound atx = sqrt D, for allD ≥ 16.
References #
Adapted from Anthropic's
PrimesInWindow.lean.
Its concavity estimate adapts Mathlib/NumberTheory/Bertrand.lean, originally by Patrick Stevens
and Bolton Bailey; that source credit is retained. Erdős's bound on the central binomial
coefficient is Nat.centralBinom_le_pow_card_primes_Ioc, in
CslibFrontier/Foundations/NumberTheory/CentralBinomPrimes.lean.
1. The elementary estimate n^6 · (2n)^(6√(2n)) ≤ 2^n for n ≥ 16562 #
2. The count for n ≥ 16562 #
3. Half-open windows [x/2, x) with real endpoints #
There is a c > 0 such that, for every real x ≥ 4, every finite set of natural numbers that
contains all primes p with x/2 ≤ p < x has at least c · x / log x elements. (This form
applies to the set of those primes however it is written down.)
4. The window [√D/2, √D) used in the modular reduction #
There is a c > 0 such that, for every natural number D ≥ 16, every finite set of natural
numbers that contains all primes p with √D/2 ≤ p < √D has at least c · √D / log D
elements.