{
  "id": "870",
  "ident": "NS.00870",
  "slug": "erdos-1174",
  "title": "Erdős Problem 1174",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Erdős Problem 1174, part (i)** [Va99, 7.91]. A problem of Erdős and Hajnal:\ndoes there exist a graph $G$ with no $K_4$ such that every edge colouring of $G$\nwith countably many colours contains a monochromatic $K_3$?\n\nFor simplicity the colourings are given on all unordered pairs $\\operatorname{Sym}_2(V)$;\nonly the values on the edges of $G$ matter, since a monochromatic triangle is witnessed by\nedges alone.\n\nShelah proved that a graph with this property can consistently exist, so the\nproblem is not disprovable in ZFC; whether such a graph exists outright remains open.",
  "subjects": [
    "math.LO",
    "math.CO",
    "msc:03",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1174.erdos_1174.parts.i",
  "statement_lean": "theorem erdos_1174.parts.i :\n    ∃ (V : Type) (G : SimpleGraph V), G.CliqueFree 4 ∧\n      ∀ c : Sym2 V → ℕ, ∃ x y z : V,\n        G.Adj x y ∧ G.Adj y z ∧ G.Adj x z ∧\n        c s(x, y) = c s(y, z) ∧ c s(y, z) = c s(x, z)",
  "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 1174\n\n*References:*\n- [erdosproblems.com/1174](https://www.erdosproblems.com/1174)\n- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference\n  \"Paul Erdős and his mathematics\", Budapest, July 1999 (1999), problem 7.91.\n-/\n\n@[expose] public section\n\nopen Cardinal\nopen scoped Cardinal\n\nnamespace Erdos1174\n\n/--\n**Erdős Problem 1174, part (i)** [Va99, 7.91]. A problem of Erdős and Hajnal:\ndoes there exist a graph $G$ with no $K_4$ such that every edge colouring of $G$\nwith countably many colours contains a monochromatic $K_3$?\n\nFor simplicity the colourings are given on all unordered pairs $\\operatorname{Sym}_2(V)$;\nonly the values on the edges of $G$ matter, since a monochromatic triangle is witnessed by\nedges alone.\n\nShelah proved that a graph with this property can consistently exist, so the\nproblem is not disprovable in ZFC; whether such a graph exists outright remains open.\n-/\n@[category research open, question, AMS 3 5]\ntheorem erdos_1174.parts.i :\n    ∃ (V : Type) (G : SimpleGraph V), G.CliqueFree 4 ∧\n      ∀ c : Sym2 V → ℕ, ∃ x y z : V,\n        G.Adj x y ∧ G.Adj y z ∧ G.Adj x z ∧\n        c s(x, y) = c s(y, z) ∧ c s(y, z) = c s(x, z) := by\n  sorry\n\n/--\n**Erdős Problem 1174, part (ii)** [Va99, 7.91]. A problem of Erdős and Hajnal:\ndoes there exist a graph $G$ with no $K_{\\aleph_1}$ (that is, every clique of $G$\nis countable) such that every edge colouring of $G$ with countably many colours\ncontains a monochromatic $K_{\\aleph_0}$ (an infinite clique all of whose edges\nreceive the same colour)?\n\nFor simplicity the colourings are given on all unordered pairs $\\operatorname{Sym}_2(V)$;\nonly the values on the edges of $G$ matter.\n\nShelah proved that a graph with this property can consistently exist, so the\nproblem is not disprovable in ZFC; whether such a graph exists outright remains open.\n-/\n@[category research open, question, AMS 3 5]\ntheorem erdos_1174.parts.ii :\n    ∃ (V : Type) (G : SimpleGraph V),\n      (∀ S : Set V, G.IsClique S → #S ≤ ℵ₀) ∧\n      ∀ c : Sym2 V → ℕ, ∃ S : Set V, G.IsClique S ∧ S.Infinite ∧\n        ∃ k : ℕ, ∀ x ∈ S, ∀ y ∈ S, x ≠ y → c s(x, y) = k := by\n  sorry\n\n/-\n**Shelah's consistency result.** Shelah proved that a graph with either property —\na $K_4$-free graph forcing a monochromatic $K_3$ in every countable edge colouring,\nor a $K_{\\aleph_1}$-free graph forcing a monochromatic $K_{\\aleph_0}$ — can\n*consistently* exist (i.e. in some model of ZFC). Hence neither question above can\nbe answered negatively in ZFC: the problem is \"not disprovable\". Formalizing the\nconsistency statement itself is out of scope here, since it cannot be stated in\nplain ZFC (cf. the prose remark on Larson's MA result in Erdős Problem 601).\n-/\n\n/- ### Sanity checks -/\n\n/-- The complete graph on $\\mathbb{N}$ is *not* $K_4$-free, so it is not a candidate\nfor part (i). -/\n@[category test, AMS 5]\ntheorem top_not_cliqueFree_four : ¬ (⊤ : SimpleGraph ℕ).CliqueFree 4 :=\n  SimpleGraph.IsContained.not_cliqueFree\n    ⟨SimpleGraph.Embedding.toCopy (⟨Fin.valEmbedding, by simp [Fin.val_injective.ne_iff]⟩ :\n      SimpleGraph.completeGraph (Fin 4) ↪g (⊤ : SimpleGraph ℕ))⟩\n\n/-- The empty graph on $\\mathbb{N}$ is trivially $K_4$-free but fails the colouring\nproperty of part (i): it has no triangles at all, so the $K_4$-free condition alone\nis not enough. -/\n@[category test, AMS 5]\ntheorem bot_fails_colouring_property :\n    ¬ ∀ c : Sym2 ℕ → ℕ, ∃ x y z : ℕ,\n        (⊥ : SimpleGraph ℕ).Adj x y ∧ (⊥ : SimpleGraph ℕ).Adj y z ∧\n        (⊥ : SimpleGraph ℕ).Adj x z ∧\n        c s(x, y) = c s(y, z) ∧ c s(y, z) = c s(x, z) := by\n  simp\n\nend Erdos1174\n",
  "statement_hash": "c76448eba15b791ffd93f71611d2c50d7d2bef615b84634782cab4dcba61cb9d",
  "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."
}