{
  "id": "984",
  "ident": "NS.00984",
  "slug": "erdos-1202",
  "title": "Erdős Problem 1202",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\epsilon > 0$. Does there exist $k$ such that, for every $n$, any primes\n$p_1 < \\cdots < p_k < n^{1-\\epsilon}$ and any sets $A_i$ of $\\frac{p_i - 1}{2}$ residue classes\nmodulo $p_i$, the number of $m \\le n$ that avoid $A_i \\pmod{p_i}$ for every $i$ is at most\n$\\epsilon n$?\n\nThe answer is negative: according to [erdosproblems.com/1202](https://www.erdosproblems.com/1202),\nPrice (with GPT-5.4 Pro) gave a construction in which the $A_i$ are intervals of residues and at\nleast $(1/2 - c) n$ integers in $[1, n]$ survive. The large sieve gives a positive answer when\n$p_k < n^{1/2}$ instead. See also `Green44` for a related special case.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1202.erdos_1202",
  "statement_lean": "theorem erdos_1202 :\n    ¬ ∀ ε : ℝ, 0 < ε → ∃ k : ℕ, ∀ (n : ℕ) (p : Fin k → ℕ) (A : (i : Fin k) → Finset (ZMod (p i))),\n      (∀ i, (p i).Prime) →\n      StrictMono p →\n      (∀ i, (p i : ℝ) < (n : ℝ) ^ (1 - ε)) →\n      (∀ i, (A i).card = (p i - 1) / 2) →\n      ((((Finset.Icc 1 n).filter (fun m => ∀ i, (m : ZMod (p i)) ∉ A i)).card : ℕ) : ℝ) ≤ ε * n",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 1202\n\n*References:*\n- [erdosproblems.com/1202](https://www.erdosproblems.com/1202)\n- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.\n  (1980), 89-115.\n- [Gr24] [Ben Green's 100 Open Problems, Problem 44](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.44)\n-/\n\n@[expose] public section\n\nnamespace Erdos1202\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\epsilon > 0$. Does there exist $k$ such that, for every $n$, any primes\n$p_1 < \\cdots < p_k < n^{1-\\epsilon}$ and any sets $A_i$ of $\\frac{p_i - 1}{2}$ residue classes\nmodulo $p_i$, the number of $m \\le n$ that avoid $A_i \\pmod{p_i}$ for every $i$ is at most\n$\\epsilon n$?\n\nThe answer is negative: according to [erdosproblems.com/1202](https://www.erdosproblems.com/1202),\nPrice (with GPT-5.4 Pro) gave a construction in which the $A_i$ are intervals of residues and at\nleast $(1/2 - c) n$ integers in $[1, n]$ survive. The large sieve gives a positive answer when\n$p_k < n^{1/2}$ instead. See also `Green44` for a related special case.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1202.lean\"]\ntheorem erdos_1202 :\n    ¬ ∀ ε : ℝ, 0 < ε → ∃ k : ℕ, ∀ (n : ℕ) (p : Fin k → ℕ) (A : (i : Fin k) → Finset (ZMod (p i))),\n      (∀ i, (p i).Prime) →\n      StrictMono p →\n      (∀ i, (p i : ℝ) < (n : ℝ) ^ (1 - ε)) →\n      (∀ i, (A i).card = (p i - 1) / 2) →\n      ((((Finset.Icc 1 n).filter (fun m => ∀ i, (m : ZMod (p i)) ∉ A i)).card : ℕ) : ℝ) ≤ ε * n := by\n  sorry\n\nend Erdos1202\n",
  "statement_hash": "c62f1422a1f9ba2fd30e3342630961f1eb064b2c13fa1efb0823da1bf010e972",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}