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 218

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

The set of indices nn for which a prime gap is followed by a larger or equal prime gap has a natural density of 12\frac 1 2.

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

Formal statement

theorem erdos_218.variants.le : {n | primeGap n ≤ primeGap (n + 1)}.HasDensity <| 1 / 2
Show the full Challenge.lean (56 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 218

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

@[expose] public section

namespace Erdos218

/--
The set of indices $n$ for which a prime gap is followed by a larger or equal prime gap has a
natural density of $\frac 1 2$.
-/
@[category research open, AMS 11]
theorem erdos_218.variants.le : {n | primeGap n ≤ primeGap (n + 1)}.HasDensity <| 1 / 2 := by
  sorry

/--
The set of indices $n$ for which a prime gap is preceded by a larger or equal prime gap has a
natural density of $\frac 1 2$.
-/
@[category research open, AMS 11]
theorem erdos_218.variants.ge : {n | primeGap (n + 1) ≤ primeGap n}.HasDensity <| 1 / 2 := by
  sorry

/--
There are infinitely many indices $n$ such that the prime gap at $n$ is equal to the prime gap
at $n+1$. This is equivalent to the existence of infinitely many arithmetic progressions of
length $3$, see `erdos_141.variants.infinite_three`.
-/
@[category research open, AMS 11]
theorem erdos_218.variants.infinite_equal_prime_gap : {n | primeGap n = primeGap (n + 1)}.Infinite := by
  sorry

end Erdos218

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

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