hardy_littlewood_twin_prime
Openanalytic-number-theoryconjecturenumber-theoryprime-numbers
Hardy-Littlewood twin prime conjecture (Conjecture B, 1923): The number of twin primes (p, p+2) up to x is asymptotically C₂·x/(log x)², where C₂ ≈ 1.3203 is the twin prime constant. Stronger than the twin prime conjecture; gives quantitative asymptotics.
Preamble
import Mathlib
Formal statement
import Mathlib
-- Hardy-Littlewood Conjecture B: the number of twin prime pairs (p, p+2) ≤ x
-- is asymptotically C₂ * x / (log x)² where C₂ ≈ 1.3203... is the twin prime constant
theorem hardy_littlewood_twin_prime :
∃ C : ℝ, 0 < C ∧
Filter.Tendsto (fun x : ℝ =>
((Finset.Icc 2 ⌊x⌋₊).filter (fun p => Nat.Prime p ∧ Nat.Prime (p + 2))).card /
(x / (Real.log x)^2))
Filter.atTop
(nhds C) := by
sorrySource