{
  "id": "3730",
  "ident": "NS.03730",
  "slug": "erdos-948",
  "title": "Erdős Problem 948",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is there a function $f(n)$ and a $k$ such that in any $k$-colouring of the integers there exists a\nsequence $a_1 < a_2 < \\cdots$ such that $a_n < f(n)$ for infinitely many $n$ and the set\n$$\\left\\{ \\sum_{i \\in S} a_i : \\textrm{finite nonempty } S \\right\\}$$\ndoes not contain all colours?\n\nA question of Erdős [Er77c] and Erdős and Galvin [ErGa91]. The answer is no: GPT-5.5 Pro (prompted\nby Price) showed that for every $f$ there is a colouring of the integers such that the finite sums\nof every such sequence use all colours. The linked formal proof (Codex and GPT-5.6 Sol) gives, for\nevery $f$ and $k \\ge 1$, a colouring $c : \\mathbb{Z} \\to \\{0, \\ldots, k - 1\\}$ such that for every\nstrictly increasing $a$ with $a_n < f(n)$ infinitely often and every colour, some nonempty finite\nsum of the $a_i$ has that colour.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos948.erdos_948",
  "statement_lean": "theorem erdos_948 :\n    ¬ ∃ (f : ℕ → ℕ) (k : ℕ), 0 < k ∧ ∀ colouring : ℤ → Fin k,\n      ∃ a : ℕ → ℤ, StrictMono a ∧ {n | a n < f n}.Infinite ∧\n        ∃ c : Fin k, ∀ S : Finset ℕ, S.Nonempty → colouring (∑ i ∈ S, a i) ≠ c",
  "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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 948\n\n*References:*\n- [erdosproblems.com/948](https://www.erdosproblems.com/948)\n- [Er77c] Erdős, Paul, *Problems and results on combinatorial number theory. III*. Number theory day\n  (Proc. Conf., Rockefeller Univ., New York, 1976) (1977), 43-72.\n- [ErGa91] Erdős, P. and Galvin, F., *Some Ramsey-type theorems*. Discrete Math. 87 (1991),\n  261–269.\n-/\n\n@[expose] public section\n\nnamespace Erdos948\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs there a function $f(n)$ and a $k$ such that in any $k$-colouring of the integers there exists a\nsequence $a_1 < a_2 < \\cdots$ such that $a_n < f(n)$ for infinitely many $n$ and the set\n$$\\left\\{ \\sum_{i \\in S} a_i : \\textrm{finite nonempty } S \\right\\}$$\ndoes not contain all colours?\n\nA question of Erdős [Er77c] and Erdős and Galvin [ErGa91]. The answer is no: GPT-5.5 Pro (prompted\nby Price) showed that for every $f$ there is a colouring of the integers such that the finite sums\nof every such sequence use all colours. The linked formal proof (Codex and GPT-5.6 Sol) gives, for\nevery $f$ and $k \\ge 1$, a colouring $c : \\mathbb{Z} \\to \\{0, \\ldots, k - 1\\}$ such that for every\nstrictly increasing $a$ with $a_n < f(n)$ infinitely often and every colour, some nonempty finite\nsum of the $a_i$ has that colour.\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos948.lean#L451\"]\ntheorem erdos_948 :\n    ¬ ∃ (f : ℕ → ℕ) (k : ℕ), 0 < k ∧ ∀ colouring : ℤ → Fin k,\n      ∃ a : ℕ → ℤ, StrictMono a ∧ {n | a n < f n}.Infinite ∧\n        ∃ c : Fin k, ∀ S : Finset ℕ, S.Nonempty → colouring (∑ i ∈ S, a i) ≠ c := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe original question asks for the set of finite sums to be monochromatic. Galvin showed that\nthis fails for $k = 2$, and it fails for every $k \\ge 2$ by the negative answer to `erdos_948`.\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos948.lean#L451\"]\ntheorem erdos_948.variants.monochromatic :\n    ¬ ∃ (f : ℕ → ℕ) (k : ℕ), 2 ≤ k ∧ ∀ colouring : ℤ → Fin k,\n      ∃ a : ℕ → ℤ, StrictMono a ∧ {n | a n < f n}.Infinite ∧\n        ∃ c : Fin k, ∀ S : Finset ℕ, S.Nonempty → colouring (∑ i ∈ S, a i) = c := by\n  sorry\n\nend Erdos948\n",
  "statement_hash": "01c9b7a24fb8441a9a404b8e104914a5f4369b62b2cb322cc1a8933fe54abc3f",
  "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."
}