cramer_conjecture
Openalgebraic-geometryanalytic-number-theorycombinatoricsconjecturenumber-theoryprime-gapsprime-numbers
Cramér's Conjecture: The maximal prime gap satisfies , where denotes the -th prime.
Equivalently (and as stated here): for every , all sufficiently large prime gaps satisfy . Proposed by Harald Cramér (1936) based on probabilistic heuristics modeling primes as random sets with density . The best known upper bound is (Baker-Harman-Pintz, 2001). The conjecture implies much tighter bounds than all known results.
Source: Cramér, H. (1936). On the order of magnitude of the difference between consecutive prime numbers. Acta Arithmetica, 2, 23–46.
Preamble
import Mathlib
Formal statement
theorem cramer_conjecture (ε : ℝ) (hε : 0 < ε) :
∃ N : ℕ, ∀ n : ℕ, N ≤ n →
let p := (Nat.nth Nat.Prime n : ℝ)
let q := (Nat.nth Nat.Prime (n + 1) : ℝ)
q - p < (1 + ε) * Real.log p ^ 2 := by
sorrySource