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 1187

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

Let k≥3k\geq 3. Is it true that, in any finite colouring of the integers, there are monochromatic arithmetic progressions of primes of length kk?

It follows from the theorem of Green and Tao [GrTa08] (that any set of primes with positive relative density contains arbitrarily long arithmetic progressions) that the answer to the first question is yes for any k≥3k\geq 3.

See also 219.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question, formal_proof
Cite as:NS.00923 [math.CO] · NS.00923v1 for this version
Declaration:Erdos1187.erdos_1187.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:a864939110456c6e1e05eaf9085b8730aa96f4de63174abb8e731605ca446cd6
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1187.lean

Formal statement

theorem erdos_1187.parts.i : ∀ k : ℕ, 3 ≤ k →
    ∀ (κ : Type) [Finite κ] (c : ℤ → κ), ∃ S : Set ℤ, S.IsAPOfLength k ∧
      (∀ n ∈ S, ∃ p : ℕ, p.Prime ∧ (p : ℤ) = n) ∧
        ∃ γ : κ, ∀ n ∈ S, c n = γ
Show the full Challenge.lean (72 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1187

*References:*
- [erdosproblems.com/1187](https://www.erdosproblems.com/1187)
- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.
  (1980), 89-115.
- [GrTa08] Green, Ben and Tao, Terence, *The primes contain arbitrarily long arithmetic
  progressions*. Ann. of Math. (2) (2008), 481-547.
-/

@[expose] public section

namespace Erdos1187

set_option linter.style.formal_proof_palomar false in
/--
Let $k\geq 3$. Is it true that, in any finite colouring of the integers, there are monochromatic
arithmetic progressions of primes of length $k$?

It follows from the theorem of Green and Tao [GrTa08] (that any set of primes with positive
relative density contains arbitrarily long arithmetic progressions) that the answer to the first
question is yes for any $k\geq 3$.

See also [219](https://www.erdosproblems.com/219).
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1187.lean#L246"]
theorem erdos_1187.parts.i : ∀ k : ℕ, 3 ≤ k →
    ∀ (κ : Type) [Finite κ] (c : ℤ → κ), ∃ S : Set ℤ, S.IsAPOfLength k ∧
      (∀ n ∈ S, ∃ p : ℕ, p.Prime ∧ (p : ℤ) = n) ∧
        ∃ γ : κ, ∀ n ∈ S, c n = γ := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Let $k\geq 3$. In any finite colouring of the integers, are there monochromatic arithmetic
progressions of length $k$ whose common difference is a prime?

The answer to the second question is trivially no: colouring the integers by their residue modulo
$4$ creates a colouring in which there is not even any monochromatic pair of integers whose
difference is a prime. Alternatively, one can just use $2$ colours and avoid any $3$-term
progressions whose difference is a prime by colouring $0,1\pmod{4}$ red and $2,3\pmod{4}$ blue.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1187.lean#L246"]
theorem erdos_1187.parts.ii : ¬ ∀ k : ℕ, 3 ≤ k →
    ∀ (κ : Type) [Finite κ] (c : ℤ → κ), ∃ (a : ℤ) (p : ℕ) (S : Set ℤ), p.Prime ∧
      S.IsAPOfLengthWith k a p ∧ ∃ γ : κ, ∀ n ∈ S, c n = γ := by
  sorry

end Erdos1187

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

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