Title:Erdős Problem 141
Statement:Let . Are there consecutive primes in arithmetic progression?
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question |
| Cite as: | NS.01103 [math.CO] · NS.01103v1 for this version |
| Declaration: | Erdos141.erdos_141 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 2c52c28f99424cb5982cb34b8a501aabc9b2ae46b8ea56c7092e4a0feb2e17a2 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/141.lean |
Formal statement
theorem erdos_141 :
∀ k ≥ 3, ∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength kShow the full Challenge.lean (121 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 141
*References:*
- [erdosproblems.com/141](https://www.erdosproblems.com/141)
- [Wikipedia](https://en.wikipedia.org/wiki/Primes_in_arithmetic_progression#Consecutive_primes_in_arithmetic_progression)
-/
@[expose] public section
namespace Erdos141
/--
The predicate that a set `s` consists of `l` consecutive primes (possibly infinite).
This predicate does not assert a specific value for the first term.
-/
def Set.IsPrimeProgressionOfLength (s : Set ℕ) (l : ℕ∞) : Prop :=
∃ a, ENat.card s = l ∧ s = {(a + n).nth Nat.Prime | (n : ℕ) (_ : n < l)}
open Nat Erdos141
/--
The first three odd primes are an example of three consecutive primes.
-/
@[category test, AMS 5 11]
theorem first_three_odd_primes : ({3, 5, 7} : Set ℕ).IsPrimeProgressionOfLength 3 := by
use 1
constructor
· aesop
· norm_num [exists_lt_succ_right, Nat.le_one_iff_eq_zero_or_eq_one]
grind
/--
The predicate that a set `s` is both an arithmetic progression of length `l` and a progression
of `l` consecutive primes.
-/
def Set.IsAPAndPrimeProgressionOfLength (s : Set ℕ) (l : ℕ) :=
s.IsAPOfLength l ∧ s.IsPrimeProgressionOfLength l
/--
There are 3 consecutive primes in arithmetic progression.
-/
@[category test, AMS 5 11]
theorem exists_three_consecutive_primes_in_ap : ∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength 3 := by
use {3, 5, 7}
constructor
· use 3, 2
unfold Set.IsAPOfLengthWith
constructor
· aesop
· norm_num [exists_lt_succ_right, Nat.le_one_iff_eq_zero_or_eq_one]
grind
· exact first_three_odd_primes
/--
Let $k≥3$. Are there $k$ consecutive primes in arithmetic progression?
-/
@[category research open, question, AMS 5 11]
theorem erdos_141 :
∀ k ≥ 3, ∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength k := by
sorry
/--
The existence of such progressions has been verified for $k≤10$.
-/
@[category research solved, AMS 5 11]
theorem erdos_141.variants.first_cases :
(∀ k ≥ 3, k ≤ 10 → ∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength k) := by
sorry
/--
Are there $11$ consecutive primes in arithmetic progression?
-/
@[category research open, question, AMS 5 11]
theorem erdos_141.variants.eleven :
∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength 11 := by
sorry
/--
The set of arithmetic progressions of consecutive primes of length $k$.
-/
def consecutivePrimeArithmeticProgressions (k : ℕ) : Set (Set ℕ) :=
{s | s.IsAPAndPrimeProgressionOfLength k}
/--
It is open, even for $k=3$, whether there are infinitely many such progressions.
-/
@[category research open, question, AMS 5 11]
theorem erdos_141.variants.infinite_three :
(consecutivePrimeArithmeticProgressions 3).Infinite := by
sorry
/--
Fix a $k \geq 3$. Is it true that there are infinitely many arithmetic prime progressions of length $k$?
-/
@[category research open, question, AMS 5 11]
theorem erdos_141.variants.infinite_general_case :
∀ k ≥ 3, (consecutivePrimeArithmeticProgressions k).Infinite := by
sorry
end Erdos141
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos141.erdos_141 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_141 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-141 nosorry submit erdos-141 nosorry/erdos-141/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-141-variants-first-cases — known result
- erdos-141-variants-eleven — open
- erdos-141-variants-infinite-three — open
- erdos-141-variants-infinite-general-case — open
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.