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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 233

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

A conjecture by Heath-Brown: The sum of squares of the first NN gaps between consecutive primes behaves like N∗(logN)2N * (log N)^2.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.01409 [math.NT] · NS.01409v1 for this version
Declaration:Erdos233.erdos_233
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:45efa69d4b158c01ca9243891396d6ef95bb067d64aadd0e555d6035028efad1
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/233.lean

Formal statement

theorem erdos_233 :
    (fun N => ((∑ n ∈ Finset.range N, (primeGap n) ^ 2) : ℝ)) =O[atTop] fun N => N * (log N)^2
Show the full Challenge.lean (66 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 233

*References:*
  - [erdosproblems.com/233](https://www.erdosproblems.com/233)
  - [A74741](https://oeis.org/A74741)
  - [Wikipedia](https://en.wikipedia.org/wiki/Cram%C3%A9r%27s_conjecture)
-/

@[expose] public section

open Filter Real

namespace Erdos233

/--
A conjecture by Heath-Brown:
The sum of squares of the first $N$ gaps between consecutive primes behaves like $N * (log N)^2$.
-/
@[category research open, AMS 11]
theorem erdos_233 :
    (fun N => ((∑ n ∈ Finset.range N, (primeGap n) ^ 2) : ℝ)) =O[atTop] fun N => N * (log N)^2 := by
  sorry

/--
Cramér proved an upper bound of $O(N(\log N)^4)$ conditional on the Riemann hypothesis.
-/
@[category research solved, AMS 11]
theorem erdos_233.variants.upper_bound (h : RiemannHypothesis) :
    (fun N => ((∑ n ∈ Finset.range N, (primeGap n) ^ 2) : ℝ)) =O[atTop] fun N => N * (log N)^4 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The prime number theorem immediately implies a lower bound of $\gg N(\log N)^2$ for the sum of
squares of gaps between consecutive primes.

Formal proof linked here provided by AlphaProof.
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectures/blob/032848c62fdf4c422bb0ee6663dc8d009d456c2c/FormalConjectures/ErdosProblems/233.lean#L57"]
theorem erdos_233.variants.lower_bound :
    (fun (N : ℕ) => N * (log N)^2) =O[atTop]
    (fun N => ((∑ n ∈ Finset.range N, (primeGap n) ^ 2) : ℝ)) := by
  sorry

end Erdos233

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

nosorry fetch erdos-233
nosorry submit erdos-233 nosorry/erdos-233/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.