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 · not_first_and_secondHardyLittlewoodConjecture

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/First_Hardy%E2%80%93Littlewood_conjecture
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

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.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.07993 [math.NT] · NS.07993v1 for this version
Declaration:HardyLittlewood.not_first_and_secondHardyLittlewoodConjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; 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 not_first_and_secondHardyLittlewoodConjecture :
    (∀ {k : ℕ} (m : Fin k.succ → ℕ), FirstHardyLittlewoodConjectureFor m) →
      ¬(∀ {x y : ℕ} (hx : 2 ≤ x) (hy : 2 ≤ y), SecondHardyLittlewoodConjectureFor x y)
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.not_first_and_secondHardyLittlewoodConjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_not_first_and_secondHardyLittlewoodConjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

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

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.