Title:Erdős Problem 1202
Statement:Let . Does there exist such that, for every , any primes and any sets of residue classes modulo , the number of that avoid for every is at most ?
The answer is negative: according to erdosproblems.com/1202, Price (with GPT-5.4 Pro) gave a construction in which the are intervals of residues and at least integers in survive. The large sieve gives a positive answer when instead. See also
Green44for a related special case.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.00984 [math.NT] · NS.00984v1 for this version |
| Declaration: | Erdos1202.erdos_1202 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | c62f1422a1f9ba2fd30e3342630961f1eb064b2c13fa1efb0823da1bf010e972 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1202.lean |
Formal statement
theorem erdos_1202 :
¬ ∀ ε : ℝ, 0 < ε → ∃ k : ℕ, ∀ (n : ℕ) (p : Fin k → ℕ) (A : (i : Fin k) → Finset (ZMod (p i))),
(∀ i, (p i).Prime) →
StrictMono p →
(∀ i, (p i : ℝ) < (n : ℝ) ^ (1 - ε)) →
(∀ i, (A i).card = (p i - 1) / 2) →
((((Finset.Icc 1 n).filter (fun m => ∀ i, (m : ZMod (p i)) ∉ A i)).card : ℕ) : ℝ) ≤ ε * nShow the full Challenge.lean (58 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1202
*References:*
- [erdosproblems.com/1202](https://www.erdosproblems.com/1202)
- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.
(1980), 89-115.
- [Gr24] [Ben Green's 100 Open Problems, Problem 44](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.44)
-/
@[expose] public section
namespace Erdos1202
set_option linter.style.formal_proof_palomar false in
/--
Let $\epsilon > 0$. Does there exist $k$ such that, for every $n$, any primes
$p_1 < \cdots < p_k < n^{1-\epsilon}$ and any sets $A_i$ of $\frac{p_i - 1}{2}$ residue classes
modulo $p_i$, the number of $m \le n$ that avoid $A_i \pmod{p_i}$ for every $i$ is at most
$\epsilon n$?
The answer is negative: according to [erdosproblems.com/1202](https://www.erdosproblems.com/1202),
Price (with GPT-5.4 Pro) gave a construction in which the $A_i$ are intervals of residues and at
least $(1/2 - c) n$ integers in $[1, n]$ survive. The large sieve gives a positive answer when
$p_k < n^{1/2}$ instead. See also `Green44` for a related special case.
-/
@[category research solved, AMS 11,
formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1202.lean"]
theorem erdos_1202 :
¬ ∀ ε : ℝ, 0 < ε → ∃ k : ℕ, ∀ (n : ℕ) (p : Fin k → ℕ) (A : (i : Fin k) → Finset (ZMod (p i))),
(∀ i, (p i).Prime) →
StrictMono p →
(∀ i, (p i : ℝ) < (n : ℝ) ^ (1 - ε)) →
(∀ i, (A i).card = (p i - 1) / 2) →
((((Finset.Icc 1 n).filter (fun m => ∀ i, (m : ZMod (p i)) ∉ A i)).card : ℕ) : ℝ) ≤ ε * n := by
sorry
end Erdos1202
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1202.erdos_1202 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_1202 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-1202 nosorry submit erdos-1202 nosorry/erdos-1202/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.