Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 238

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

Let c₁, c₂ > 0. Is it true that for any sufficiently large x, there exists more than c₁ * log x many consecutive primes ≤ x such that the difference between any two is > c₂?

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

Formal statement

theorem erdos_238 : ∀ᵉ (c₁ > 0) (c₂ > 0), ∀ᶠ (x : ℝ) in atTop, ∃ (k : ℕ),
    c₁ * log x < k ∧ ∃ f : Fin k → ℕ, ∃ m, (∀ i, f i ≤ x ∧ f i = (m + i.1).nth Nat.Prime)
    ∧ ∀ i : Fin (k - 1), c₂ < primeGap (m + i.1)
Show the full Challenge.lean (54 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 238

*Reference:* [erdosproblems.com/238](https://www.erdosproblems.com/238)
-/

@[expose] public section

open scoped Topology
open Set Filter Real

namespace Erdos238

/--
Let `c₁, c₂ > 0`. Is it true that for any sufficiently large `x`, there exists more than
`c₁ * log x` many consecutive primes `≤ x` such that the difference between any two is `> c₂`?
-/
@[category research open, question, AMS 11]
theorem erdos_238 : ∀ᵉ (c₁ > 0) (c₂ > 0), ∀ᶠ (x : ℝ) in atTop, ∃ (k : ℕ),
    c₁ * log x < k ∧ ∃ f : Fin k → ℕ, ∃ m, (∀ i, f i ≤ x ∧ f i = (m + i.1).nth Nat.Prime)
    ∧ ∀ i : Fin (k - 1), c₂ < primeGap (m + i.1) := by
  sorry

/--
It is well-known that the conjecture above is true when `c₁` is sufficiently small.
-/
@[category research solved, AMS 11]
theorem erdos_238.variants.small_c1 : ∀ c₂ > 0, ∀ᶠ c₁ in 𝓝[>] 0, ∀ᶠ (x : ℝ) in atTop, ∃ (k : ℕ),
    c₁ * log x < k ∧ ∃ f : Fin k → ℕ, ∃ m, (∀ i, f i ≤ x ∧ f i = (m + i.1).nth Nat.Prime)
    ∧ ∀ i : Fin (k - 1), c₂ < primeGap (m + i.1) := by
  sorry


end Erdos238

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

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