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 6 · variants.increasing

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Variant of:Erdős Problem 6
Statement:

For all mm, there are infinitely many nn such that dn<dn+1<⋯<dn+md_n < d_{n+1} < \dots < d_{n+m}, where dd denotes the prime gap function.

Proved by Banks, Freiberg, and Turnage-Butterbaugh [BFT15] with an application of the Maynard-Tao machinery concerning bounded gaps between primes [Ma15]

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.02574 [math.NT] · NS.02574v1 for this version
Declaration:Erdos6.erdos_6.variants.increasing
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:43c7c19f0eab12d179c8c2c0c7b74b3b0a15abab3fcc776a26267ef963851d6b
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/6.lean

Formal statement

theorem erdos_6.variants.increasing (m : ℕ) :
    {n | ∀ i ∈ Finset.range m, primeGap (n + i) < primeGap (n + i + 1)}.Infinite
Show the full Challenge.lean (69 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 6

*References:*
- [erdosproblems.com/6](https://www.erdosproblems.com/6)
- [BFT15] Banks, William D. and Freiberg, Tristan and Turnage-Butterbaugh, Caroline L., Consecutive primes in tuples. Acta Arith. (2015), 261-266.
- [Ma15] Maynard, James, Small gaps between primes. Ann. of Math. (2) (2015), 383-413.
-/

@[expose] public section

namespace Erdos6

set_option linter.style.formal_proof_palomar false in
/--
There are infinitely many $n$ such that $d_n < d_{n+1} < d_{n+2}$, where $d$
denotes the prime gap function.
-/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos6.lean#L154"]
theorem erdos_6 :
    {n | primeGap n < primeGap (n + 1) ∧ primeGap (n + 1) < primeGap (n + 2)}.Infinite := by
  sorry

/--
For all $m$, there are infinitely many $n$ such that $d_n < d_{n+1} < \dots < d_{n+m}$,
where $d$ denotes the prime gap function.

Proved by Banks, Freiberg, and Turnage-Butterbaugh [BFT15] with an application of the
Maynard-Tao machinery concerning bounded gaps between primes [Ma15]
-/
@[category research solved, AMS 11]
theorem erdos_6.variants.increasing (m : ℕ) :
    {n | ∀ i ∈ Finset.range m, primeGap (n + i) < primeGap (n + i + 1)}.Infinite := by
  sorry


/--
For all $m$, there are infinitely many $n$ such that $d_n > d_{n+1} > \dots > d_{n+m}$,
where $d$ denotes the prime gap function.

Proved by Banks, Freiberg, and Turnage-Butterbaugh [BFT15] with an application of the
Maynard-Tao machinery concerning bounded gaps between primes [Ma15]
-/
@[category research solved, AMS 11]
theorem erdos_6.variants.decreasing (m : ℕ) :
    {n | ∀ i ∈ Finset.range m, primeGap (n + i) > primeGap (n + i + 1)}.Infinite := by
  sorry

end Erdos6

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

nosorry desk erdos-6--erdos-6-variants-increasing      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-6--erdos-6-variants-increasing
nosorry submit erdos-6--erdos-6-variants-increasing nosorry/erdos-6--erdos-6-variants-increasing/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.