Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:First Hardy–Littlewood conjecture

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/First_Hardy%E2%80%93Littlewood_conjecture
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Let P=(m1,…,mk)P = (m_1, \dots, m_k) be a tuple of distinct positive even integers. Let πP(n)\pi_P(n) denote the number of primes p≤np\leq n such that (p,p+m1,…,p+mk)(p, p + m_1, \dots, p + m_k) forms an admissible prime constellation. Let w(q;m1,…,mk)w(q; m_1, \dots, m_k) denote the number of distinct residues of 0,m1,…,mk0, m_1, \dots, m_k modulo qq, and let CP=2k∏q primeq≥31−w(q;m1,…,mk)q(1−1q)k+1. C_P = 2 ^ k\prod_{\substack{q\ \text{prime} \\ q\geq 3}} \frac{1 - \frac{w(q; m_1, \dots, m_k)}{q}}{\left(1 - \frac{1}{q}\right)^{k+1}}. Then πP(n)∼CP∫2ndtlog⁡k+1t. \pi_P(n)\sim C_P\int_2^n\frac{dt}{\log^{k+1}t}.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.07991 [math.NT] · NS.07991v1 for this version
Declaration:HardyLittlewood.first_hardy_littlewood_conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:08817b7b670c3cfb227789f1c63e8df9ae5448ba8e5e43cfa87503f1541088a2
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/HardyLittlewood.lean

Formal statement

theorem first_hardy_littlewood_conjecture {k : ℕ} (m : Fin k.succ → ℕ) :
    FirstHardyLittlewoodConjectureFor m
Show the full Challenge.lean (127 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# First Hardy–Littlewood conjecture

*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/First_Hardy%E2%80%93Littlewood_conjecture)
-/

@[expose] public section

open Asymptotics Filter

open scoped Nat.Prime

/-  ## First Hardy-Littlewood Conjecture -/

namespace HardyLittlewood

/--
A prime constellation is a tuple $(p, p + m_1, \dots, p + m_k)$ such that the $m_i$ are
all positive even integers and every entry is a prime number.
-/
def IsPrimeConstellation {k : ℕ} (m : Fin k.succ → ℕ) (p : ℕ) : Prop :=
  m 0 = 0 ∧ (∀ i ≠ 0, 0 < m i ∧ Even (m i)) ∧ (∀ i, p + m i |>.Prime)

/--
A prime constellation is said to be admissible if its elements do not form a complete
set of residue classes with respect to any prime.
-/
def IsAdmissiblePrimeConstellation {k : ℕ} (m : Fin k.succ → ℕ) (p : ℕ) : Prop :=
  IsPrimeConstellation m p ∧ ∀ (q : ℕ), q.Prime → ¬(fun i => (p + m i : ZMod q)).Surjective

/--
The number of distinct residue classes amongst a tuple $(m_0, \dots, m_k)$ for a prime $q$.
-/
noncomputable def Nat.numResidues (q : ℕ) {k : ℕ} (m : Fin k.succ → ℕ) : ℕ :=
  Set.range (fun i => (m i : ZMod q)) |>.ncard

/--
For a given tuple $(m_1, \dots, m_k)$, this counts number of admissible
prime constellations $(p, p + m_1, \dots, p + m_k)$ where $p \leq n$.
-/
noncomputable def Nat.primeTupleCounting {k : ℕ} (m : Fin k.succ → ℕ) (n : ℕ) : ℕ :=
  open scoped Classical in
  Nat.count (IsAdmissiblePrimeConstellation m) n.succ

/--
The first Hardy–Littlewood conjecture for the tuple $(m_0, m_1, \dots, m_k)$: if $m_0 = 0$,
the $m_i$ ($i \neq 0$) are positive even integers, and the $m_i$ are pairwise distinct, then
$$
  \pi_P(n)\sim C_P\int_2^n\frac{dt}{\log^{k+1}t}.
$$
-/
def FirstHardyLittlewoodConjectureFor {k : ℕ} (m : Fin k.succ → ℕ) : Prop :=
  m 0 = 0 → (∀ i ≠ 0, Even (m i)) → Function.Injective m →
    let C : ℝ :=
      2 ^ k * ∏' (q : { q : ℕ // q.Prime ∧ 3 ≤ q}),
        (1 - (Nat.numResidues q m : ℝ) / q) / (1 - 1 / q) ^ k.succ
    let π_P : ℕ → ℝ := fun n => (Nat.primeTupleCounting m n : ℝ)
    π_P ~[atTop] fun n => C * ∫ t in (2)..n, 1 / t.log ^ k.succ

/--
Let $P = (m_1, \dots, m_k)$ be a tuple of distinct positive even integers. Let
$\pi_P(n)$ denote the number of primes $p\leq n$ such that $(p, p + m_1, \dots, p + m_k)$
forms an admissible prime constellation. Let $w(q; m_1, \dots, m_k)$ denote the
number of distinct residues of $0, m_1, \dots, m_k$ modulo $q$, and let
$$
  C_P = 2 ^ k\prod_{\substack{q\ \text{prime} \\ q\geq 3}}
    \frac{1 - \frac{w(q; m_1, \dots, m_k)}{q}}{\left(1 - \frac{1}{q}\right)^{k+1}}.
$$
Then
$$
  \pi_P(n)\sim C_P\int_2^n\frac{dt}{\log^{k+1}t}.
$$
-/
@[category research open, AMS 11]
theorem first_hardy_littlewood_conjecture {k : ℕ} (m : Fin k.succ → ℕ) :
    FirstHardyLittlewoodConjectureFor m := by
  sorry

-- Wikipedia URL: https://en.wikipedia.org/wiki/Second_Hardy%E2%80%93Littlewood_conjecture
/-  ## Second Hardy-Littlewood Conjecture -/
def SecondHardyLittlewoodConjectureFor (x y : ℕ) : Prop :=
  π (x + y) ≤ π x + π y

/--
For integers $x, y \geq 2$,
$$
  \pi(x + y) \leq \pi(x) + \pi(y),
$$
where $\pi(z)$ denotes the prime-counting function, giving the number of primes up to
and including $z$.
-/
@[category research open, AMS 11]
theorem second_hardy_littlewood_conjecture {x y : ℕ} (hx : 2 ≤ x) (hy : 2 ≤ y) :
    SecondHardyLittlewoodConjectureFor x y := by
  sorry

/-- Richards [Ri74] showed that only one of the two Hardy-Littlewood conjectures can be true.

[Ri74] Richards, Ian (1974). _On the Incompatibility of Two Conjectures Concerning Primes_. Bull. Amer. Math. Soc. 80: 419–438.
-/
@[category research solved, AMS 11]
theorem not_first_and_secondHardyLittlewoodConjecture :
    (∀ {k : ℕ} (m : Fin k.succ → ℕ), FirstHardyLittlewoodConjectureFor m) →
      ¬(∀ {x y : ℕ} (hx : 2 ≤ x) (hy : 2 ≤ y), SecondHardyLittlewoodConjectureFor x y) := by
  sorry

end HardyLittlewood

To prove it: keep every definition of Challenge.lean unchanged and prove HardyLittlewood.first_hardy_littlewood_conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_first_hardy_littlewood_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk wikipedia-hardylittlewood      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-hardylittlewood
nosorry submit wikipedia-hardylittlewood nosorry/wikipedia-hardylittlewood/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.