{
  "id": "889",
  "ident": "NS.00889",
  "slug": "erdos-1180",
  "title": "Erdős Problem 1180",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\epsilon>0$. Does there exist a constant $C_\\epsilon$ such that, for all primes $p$, every\nresidue modulo $p$ is the sum of at most $C_\\epsilon$ many elements of\n$$\\{ n^{-1} : 1\\leq n\\leq p^\\epsilon\\}$$\nwhere $n^{-1}$ denotes the inverse of $n$ modulo $p$?\n\nThe original question was answered in the affirmative by Shparlinski [Sh02], who proved that\n$\\ll \\epsilon^{-3}$ summands suffice for all sufficiently large primes. This was improved to\n$\\ll \\epsilon^{-2}$ by Glibichuk [Gl06]. It is trivial that at least $\\gg \\epsilon^{-1}$\nsummands are required, and it may be that $C_\\epsilon\\leq \\epsilon^{-1-o(1)}$ is possible.\n\nSee also [540](https://www.erdosproblems.com/540).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1180.erdos_1180",
  "statement_lean": "theorem erdos_1180 : ∀ ε : ℝ, 0 < ε → ∃ C : ℕ, ∀ p : ℕ, p.Prime → ∀ a : ZMod p,\n    ∃ s : Multiset ℕ, s.card ≤ C ∧ Represents ε p a s",
  "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 1180\n\n*References:*\n- [erdosproblems.com/1180](https://www.erdosproblems.com/1180)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [Sh02] Shparlinski, Igor E., *On a question of Erdős and Graham*. Arch. Math. (Basel) (2002),\n  445-448.\n- [Gl06] Glibichuk, A. A., *Combinatorial properties of sets of residues modulo a prime and the\n  Erdős-Graham problem*. Mat. Zametki (2006), 384-395.\n- [PALOMAR-2026-10-12-000005](https://palomar-registry.org/entry.html?id=PALOMAR-2026-10-12-000005&version=1)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos1180\n\n/--\n`Represents ε p a s` says that the multiset `s` of denominators `n` with `1 ≤ n ≤ p^ε` and\n`n` coprime to `p` has `∑ n⁻¹ = a` in `ZMod p`.\n-/\ndef Represents (ε : ℝ) (p : ℕ) (a : ZMod p) (s : Multiset ℕ) : Prop :=\n  (∀ n ∈ s, 1 ≤ n ∧ (n : ℝ) ≤ (p : ℝ) ^ ε ∧ n.Coprime p) ∧\n    (s.map fun n : ℕ ↦ (n : ZMod p)⁻¹).sum = a\n\n/--\n`C ε` is the least `C` such that, for all primes `p`, every residue modulo `p` is the sum of at\nmost `C` elements of `{n⁻¹ : 1 ≤ n ≤ p^ε}` (or `0` if no such `C` exists).\n-/\nnoncomputable def C (ε : ℝ) : ℕ :=\n  sInf {C | ∀ p : ℕ, p.Prime → ∀ a : ZMod p, ∃ s : Multiset ℕ, s.card ≤ C ∧ Represents ε p a s}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\epsilon>0$. Does there exist a constant $C_\\epsilon$ such that, for all primes $p$, every\nresidue modulo $p$ is the sum of at most $C_\\epsilon$ many elements of\n$$\\{ n^{-1} : 1\\leq n\\leq p^\\epsilon\\}$$\nwhere $n^{-1}$ denotes the inverse of $n$ modulo $p$?\n\nThe original question was answered in the affirmative by Shparlinski [Sh02], who proved that\n$\\ll \\epsilon^{-3}$ summands suffice for all sufficiently large primes. This was improved to\n$\\ll \\epsilon^{-2}$ by Glibichuk [Gl06]. It is trivial that at least $\\gg \\epsilon^{-1}$\nsummands are required, and it may be that $C_\\epsilon\\leq \\epsilon^{-1-o(1)}$ is possible.\n\nSee also [540](https://www.erdosproblems.com/540).\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1180.lean#L1249\"]\ntheorem erdos_1180 : ∀ ε : ℝ, 0 < ε → ∃ C : ℕ, ∀ p : ℕ, p.Prime → ∀ a : ZMod p,\n    ∃ s : Multiset ℕ, s.card ≤ C ∧ Represents ε p a s := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nShparlinski [Sh02] proved that $\\ll \\epsilon^{-3}$ summands suffice for every residue modulo\nevery sufficiently large prime, where the threshold on $p$ may depend on $\\epsilon$. No bound\npolynomial in $\\epsilon^{-1}$ can hold for all primes, since when $p^\\epsilon < 2$ the only\nadmissible denominator is $1$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/ba96303b34a95ac458958c1eb0bbdee54733484a/erdos-1180/Solution.lean#L89\"]\ntheorem erdos_1180.variants.shparlinski : ∃ K : ℝ, ∀ ε : ℝ, 0 < ε → ε ≤ 1 →\n    ∃ P : ℕ, ∀ p : ℕ, P ≤ p → p.Prime → ∀ a : ZMod p,\n      ∃ s : Multiset ℕ, (s.card : ℝ) ≤ K * ε⁻¹ ^ 3 ∧ Represents ε p a s := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nGlibichuk [Gl06] improved the bound to $\\ll \\epsilon^{-2}$ summands, again for every\nsufficiently large prime.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/ba96303b34a95ac458958c1eb0bbdee54733484a/erdos-1180/Solution.lean#L83\"]\ntheorem erdos_1180.variants.glibichuk : ∃ K : ℝ, ∀ ε : ℝ, 0 < ε → ε ≤ 1 →\n    ∃ P : ℕ, ∀ p : ℕ, P ≤ p → p.Prime → ∀ a : ZMod p,\n      ∃ s : Multiset ℕ, (s.card : ℝ) ≤ K * ε⁻¹ ^ 2 ∧ Represents ε p a s := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- It is trivial that at least $\\gg \\epsilon^{-1}$ summands are required. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/ba96303b34a95ac458958c1eb0bbdee54733484a/erdos-1180/Solution.lean#L95\"]\ntheorem erdos_1180.variants.lower_bound : ∃ K : ℝ, 0 < K ∧ ∀ ε : ℝ, 0 < ε → ε ≤ 1 →\n    K * ε⁻¹ ≤ C ε := by\n  sorry\n\n/--\nIs $C_\\epsilon\\leq \\epsilon^{-1-o(1)}$? Here $C_\\epsilon$ is the number of summands needed for\nevery sufficiently large prime, as in `erdos_1180.variants.shparlinski` and\n`erdos_1180.variants.glibichuk`. For all primes no such bound holds, since when $p^\\epsilon < 2$\nthe only admissible denominator is $1$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1180.variants.optimal : ∀ δ : ℝ, 0 < δ →\n    ∀ᶠ ε : ℝ in nhdsWithin 0 (Set.Ioi 0), ∃ P : ℕ, ∀ p : ℕ, P ≤ p → p.Prime → ∀ a : ZMod p,\n      ∃ s : Multiset ℕ, (s.card : ℝ) ≤ ε⁻¹ ^ (1 + δ) ∧ Represents ε p a s := by\n  sorry\n\nend Erdos1180\n",
  "statement_hash": "3d98513273334fd647708778a4dadf51e234ba6b437bbc9816eeaaa94bd5d797",
  "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."
}