Documentation

CslibFrontier.Foundations.NumberTheory.CentralBinomPrimes

Erdős's upper bound on the central binomial coefficient #

Erdős's proof of Bertrand's postulate bounds the central binomial coefficient C(2 n, n) by factoring it. Its prime factors are at most 2 n, and the primes in (2 n / 3, n] do not divide it. The primes up to √(2 n) contribute at most 2 n each, the other primes up to 2 n / 3 at most their product, which is below 4 ^ (2 n / 3), and each prime above n at most 2 n. This file keeps the number of primes above n in the bound, which is what a lower bound on the number of primes in a window of ratio two needs.

Main results #

References #

The prime-factorization bound adapts Nat.centralBinom_le_of_no_bertrand_prime from Mathlib/NumberTheory/Bertrand.lean (Apache 2.0, by Patrick Stevens and Bolton Bailey), which is the case k = 0.

theorem Nat.centralBinom_le_pow_card_primes_Ioc (n : ℕ) (hn : 2 < n) :
n.centralBinom ≤ (2 * n) ^ (2 * n).sqrt * 4 ^ (2 * n / 3) * (2 * n) ^ (Finset.filter Prime (Finset.Ioc n (2 * n))).card

Erdős's upper bound on the central binomial coefficient, keeping the primes of (n, 2 n]: C(2 n, n) ≤ (2 n) ^ √(2 n) 4 ^ (2 n / 3) (2 n) ^ k, where k is the number of primes in (n, 2 n]. Mathlib proves the case k = 0 on the way to Bertrand's postulate (Nat.centralBinom_le_of_no_bertrand_prime).

theorem Nat.centralBinom_le_pow_card_primes_Ico (n : ℕ) (hn : 2 < n) :
n.centralBinom ≤ (2 * n) ^ (2 * n).sqrt * 4 ^ (2 * n / 3) * (2 * n) ^ (Finset.filter Prime (Finset.Ico n (2 * n))).card

Erdős's upper bound on the central binomial coefficient with the primes of [n, 2 n): C(2 n, n) ≤ (2 n) ^ √(2 n) 4 ^ (2 n / 3) (2 n) ^ k, where k is the number of primes in [n, 2 n). It follows from Nat.centralBinom_le_pow_card_primes_Ioc, since 2 n is not prime.