Title:Erdős Problem 689
Statement:Let
nbe sufficiently large. Is there some choice of congruence classa_pfor all primes2 ≤ p ≤ nsuch that every integer in[1,n]satisfies at least two of the congruences≡ a_p (mod p)?Yes: this follows from the greedy-matching reduction of Chojecki [Ch26] combined with an unconditional Fourier-analytic proof of the required three-prime counting estimate.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.02877 [math.NT] · NS.02877v1 for this version |
| Declaration: | Erdos689.erdos_689 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 8237c1d8af3750646f89a5efe6a4a47f85c36e19e33031c8bb895af0561eebe1 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/689.lean |
Formal statement
theorem erdos_689 :
∀ᶠ n in .atTop, ∃ a : ℕ → ℕ, ∀ m ∈ Finset.Icc 1 n,
2 ≤ (Finset.Icc 1 n |>.filter fun p => p.Prime ∧ a p ≡ m [MOD p]).cardShow the full Challenge.lean (50 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 689
*References:*
- [erdosproblems.com/689](https://www.erdosproblems.com/689)
- [Ben Green's Open Problem 45](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.45)
- [Ch26] Chojecki, P., *A greedy matching proof of Erdős's two-fold residue-class problem*.
[ulam.ai/research/erdos689.pdf](https://www.ulam.ai/research/erdos689.pdf) (April 2026).
- [PALOMAR-2026-09-20-000002](https://palomar-registry.org/entry.html?id=PALOMAR-2026-09-20-000002&version=1)
-/
@[expose] public section
namespace Erdos689
set_option linter.style.formal_proof_palomar false in
/--
Let `n` be sufficiently large. Is there some choice of congruence class `a_p` for all primes
`2 ≤ p ≤ n` such that every integer in `[1,n]` satisfies at least two of the congruences
`≡ a_p (mod p)`?
Yes: this follows from the greedy-matching reduction of Chojecki [Ch26] combined with an
unconditional Fourier-analytic proof of the required three-prime counting estimate.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/54f272582dd71321ab9d458663d675edd3d0a463/erdos-689/Solution.lean#L18"]
theorem erdos_689 :
∀ᶠ n in .atTop, ∃ a : ℕ → ℕ, ∀ m ∈ Finset.Icc 1 n,
2 ≤ (Finset.Icc 1 n |>.filter fun p => p.Prime ∧ a p ≡ m [MOD p]).card := by
sorry
end Erdos689
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos689.erdos_689 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_689 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-689 nosorry submit erdos-689 nosorry/erdos-689/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.