{
  "id": "1265",
  "ident": "NS.01265",
  "slug": "erdos-191",
  "title": "Erdős Problem 191",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $C>0$ be arbitrary. Is it true that, if $n$ is sufficiently large depending on $C$, then in\nany $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$ there exists some $X\\subseteq \\{2,\\ldots,n\\}$\nsuch that $\\binom{X}{2}$ is monochromatic and\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\geq C?$$\n\nThe answer is yes, which was proved by Rödl [Ro03]. In the same article Rödl also proved a lower\nbound for this problem, constructing, for all $n$, a $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$\nsuch that if $X\\subseteq \\{2,\\ldots,n\\}$ is such that $\\binom{X}{2}$ is monochromatic then\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\ll \\log\\log\\log n.$$\nIn the same paper Rödl proves that the answer to the main problem is negative if we consider\n$3$-colourings.\n\nThis bound is best possible, as proved by Conlon, Fox, and Sudakov [CFS13], who proved that, if\n$n$ is sufficiently large, then in any $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$ there exists\nsome $X\\subseteq \\{2,\\ldots,n\\}$ such that $\\binom{X}{2}$ is monochromatic and\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\geq 2^{-8}\\log\\log\\log n.$$\n\nA $2$-colouring of the pairs of $\\{2,\\ldots,n\\}$ is a graph `G` on this vertex set; a\nmonochromatic set is a clique or an independent set of `G`.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos191.erdos_191",
  "statement_lean": "theorem erdos_191 : ∀ C : ℝ, 0 < C → ∀ᶠ n : ℕ in atTop,\n    ∀ G : SimpleGraph (Finset.Icc 2 n), ∃ X : Finset (Finset.Icc 2 n),\n      (G.IsClique X ∨ G.IsIndepSet X) ∧ C ≤ ∑ x ∈ X, 1 / Real.log (x : ℕ)",
  "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 191\n\n*References:*\n- [erdosproblems.com/191](https://www.erdosproblems.com/191)\n- [ErGr79] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory: van der Waerden's theorem and related topics*. Enseign. Math. (1979), 325-344.\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- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.\n  Combinatorica (1981), 25-42.\n- [Er82e] Erdős, Paul, *Some of my favourite problems which recently have been solved*. (1982),\n  59--79.\n- [Ro03] Rödl, Vojtěch, *On homogeneous sets of positive integers*. J. Combin. Theory Ser. A\n  (2003), 229-240.\n- [CFS13] Conlon, David and Fox, Jacob and Sudakov, Benny, *Two extensions of Ramsey's theorem*.\n  Duke Math. J. (2013), 2903-2927.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos191\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $C>0$ be arbitrary. Is it true that, if $n$ is sufficiently large depending on $C$, then in\nany $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$ there exists some $X\\subseteq \\{2,\\ldots,n\\}$\nsuch that $\\binom{X}{2}$ is monochromatic and\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\geq C?$$\n\nThe answer is yes, which was proved by Rödl [Ro03]. In the same article Rödl also proved a lower\nbound for this problem, constructing, for all $n$, a $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$\nsuch that if $X\\subseteq \\{2,\\ldots,n\\}$ is such that $\\binom{X}{2}$ is monochromatic then\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\ll \\log\\log\\log n.$$\nIn the same paper Rödl proves that the answer to the main problem is negative if we consider\n$3$-colourings.\n\nThis bound is best possible, as proved by Conlon, Fox, and Sudakov [CFS13], who proved that, if\n$n$ is sufficiently large, then in any $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$ there exists\nsome $X\\subseteq \\{2,\\ldots,n\\}$ such that $\\binom{X}{2}$ is monochromatic and\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\geq 2^{-8}\\log\\log\\log n.$$\n\nA $2$-colouring of the pairs of $\\{2,\\ldots,n\\}$ is a graph `G` on this vertex set; a\nmonochromatic set is a clique or an independent set of `G`.\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos191.lean#L1272\"]\ntheorem erdos_191 : ∀ C : ℝ, 0 < C → ∀ᶠ n : ℕ in atTop,\n    ∀ G : SimpleGraph (Finset.Icc 2 n), ∃ X : Finset (Finset.Icc 2 n),\n      (G.IsClique X ∨ G.IsIndepSet X) ∧ C ≤ ∑ x ∈ X, 1 / Real.log (x : ℕ) := by\n  sorry\n\n/--\nConlon, Fox, and Sudakov [CFS13] proved that, if $n$ is sufficiently large, then in any\n$2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$ there exists some $X\\subseteq \\{2,\\ldots,n\\}$ such\nthat $\\binom{X}{2}$ is monochromatic and\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\geq 2^{-8}\\log\\log\\log n.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_191.variants.conlon_fox_sudakov : ∀ᶠ n : ℕ in atTop,\n    ∀ G : SimpleGraph (Finset.Icc 2 n), ∃ X : Finset (Finset.Icc 2 n),\n      (G.IsClique X ∨ G.IsIndepSet X) ∧\n        2 ^ (-8 : ℤ) * Real.log (Real.log (Real.log n)) ≤ ∑ x ∈ X, 1 / Real.log (x : ℕ) := by\n  sorry\n\n/--\nRödl [Ro03] constructed, for all $n$, a $2$-colouring of $\\binom{\\{2,\\ldots,n\\}}{2}$ such that\nif $X\\subseteq \\{2,\\ldots,n\\}$ is such that $\\binom{X}{2}$ is monochromatic then\n$$\\sum_{x\\in X}\\frac{1}{\\log x}\\ll \\log\\log\\log n.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_191.variants.rodl_upper : ∃ c : ℝ, ∀ᶠ n : ℕ in atTop,\n    ∃ G : SimpleGraph (Finset.Icc 2 n), ∀ X : Finset (Finset.Icc 2 n),\n      G.IsClique X ∨ G.IsIndepSet X →\n        ∑ x ∈ X, 1 / Real.log (x : ℕ) ≤ c * Real.log (Real.log (Real.log n)) := by\n  sorry\n\n/--\nRödl [Ro03] proved that the answer to [erdős_191](https://www.erdosproblems.com/191) is negative\nif we consider $3$-colourings: there is a constant $C$ such that for every $n$ some $3$-colouring\nof $\\binom{\\{2,\\ldots,n\\}}{2}$ has $\\sum_{x\\in X}\\frac{1}{\\log x} < C$ for every monochromatic\n$X$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_191.variants.three_colours : ∃ C : ℝ, ∀ n : ℕ,\n    ∃ c : Sym2 (Finset.Icc 2 n) → Fin 3, ∀ X : Finset (Finset.Icc 2 n),\n      (∃ i : Fin 3, ∀ x ∈ X, ∀ y ∈ X, x ≠ y → c s(x, y) = i) →\n        ∑ x ∈ X, 1 / Real.log (x : ℕ) < C := by\n  sorry\n\nend Erdos191\n",
  "statement_hash": "6367eedd2592a0725248bdd9b4cf57484011d8cc92583dc1fbf055b793b23add",
  "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."
}