{
  "id": "886",
  "ident": "NS.00886",
  "slug": "erdos-118",
  "title": "Erdős Problem 118",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "**Erdős Problem 118** (problem of Erdős and Hajnal). Let $\\alpha$ be such that\n$\\alpha \\to (\\alpha, 3)^2$. For every $n \\ge 3$, must $\\alpha \\to (\\alpha, n)^2$?\n\nThe original question is asked for cardinals, ordinals, and order types; we state the\nordinal version, which is the standard reading: ordinals $\\alpha$ with\n$\\alpha \\to (\\alpha, 3)^2$ are called *partition ordinals*.\n\nThe answer is **no**, shown independently by Schipperus [Sc99, Sc10] and Darby [Da99].\nLarson [La00] gave the concrete counterexample $\\alpha = \\omega^{\\omega^2}$, for which\n$\\alpha \\to (\\alpha, 3)^2$ holds yet $\\alpha \\not\\to (\\alpha, 5)^2$. See Chapter 2.9 of\n[HST10] for further background.",
  "subjects": [
    "math.LO",
    "msc:03"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/118",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos118.erdos_118",
  "statement_lean": "theorem erdos_118 :\n    ¬ ∀ α : Ordinal.{0}, OrdinalRamsey α α 3 →\n      ∀ n : ℕ, 3 ≤ n → OrdinalRamsey α α 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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 118\n\n*Reference:* [erdosproblems.com/118](https://www.erdosproblems.com/118)\n\n*References:*\n- [Sc99] Schipperus, R. *Countable partition ordinals.* Thesis, University of Colorado (1999).\n- [Sc10] Schipperus, R. *Countable partition ordinals.* Ann. Pure Appl. Logic 161 (2010),\n  1195–1215.\n- [Da99] Darby, C. *Negative partition relations for ordinals $\\omega^{\\omega^\\delta}$.*\n  J. Combin. Theory Ser. B 76 (1999), 205–222.\n- [La00] Larson, J. A. *An ordinal partition avoiding pentagrams.* J. Symbolic Logic 65\n  (2000), 969–978.\n- [HST10] Hajnal, A.; Larson, J. A. *Partition relations.* Handbook of set theory,\n  Springer (2010), 129–213.\n-/\n\n@[expose] public section\n\nopen Cardinal Ordinal\nopen scoped Cardinal\n\nnamespace Erdos118\n\nuniverse u\n\n/-- Local copy of the binary ordinal Ramsey predicate $\\alpha \\to (\\beta, \\gamma)^2$:\nevery 2-coloring of pairs from $\\alpha$ admits a red clique of order type $\\beta$ or a\nblue clique of order type $\\gamma$.\n\nWill be replaced by `OrdinalRamsey` from `FormalConjecturesForMathlib/SetTheory/Ordinal/\nPartitionRelation.lean` once that lands (see PR #4195). -/\ndef OrdinalRamsey (α β γ : Ordinal.{u}) : Prop :=\n  ∀ red blue : SimpleGraph α.ToType, IsCompl red blue →\n    (∃ s, red.IsClique s ∧ typeLT s = β) ∨\n    (∃ s, blue.IsClique s ∧ typeLT s = γ)\n\n/- ### The main problem -/\n\n/--\n**Erdős Problem 118** (problem of Erdős and Hajnal). Let $\\alpha$ be such that\n$\\alpha \\to (\\alpha, 3)^2$. For every $n \\ge 3$, must $\\alpha \\to (\\alpha, n)^2$?\n\nThe original question is asked for cardinals, ordinals, and order types; we state the\nordinal version, which is the standard reading: ordinals $\\alpha$ with\n$\\alpha \\to (\\alpha, 3)^2$ are called *partition ordinals*.\n\nThe answer is **no**, shown independently by Schipperus [Sc99, Sc10] and Darby [Da99].\nLarson [La00] gave the concrete counterexample $\\alpha = \\omega^{\\omega^2}$, for which\n$\\alpha \\to (\\alpha, 3)^2$ holds yet $\\alpha \\not\\to (\\alpha, 5)^2$. See Chapter 2.9 of\n[HST10] for further background.\n-/\n@[category research solved, question, AMS 3]\ntheorem erdos_118 :\n    ¬ ∀ α : Ordinal.{0}, OrdinalRamsey α α 3 →\n      ∀ n : ℕ, 3 ≤ n → OrdinalRamsey α α n := by\n  sorry\n\n/- ### Known results -/\n\nnamespace erdos_118.variants\n\n/--\n**Larson (2000).** The ordinal $\\alpha = \\omega^{\\omega^2}$ is a partition ordinal,\n$\\omega^{\\omega^2} \\to (\\omega^{\\omega^2}, 3)^2$, yet\n$\\omega^{\\omega^2} \\not\\to (\\omega^{\\omega^2}, 5)^2$ [La00], so the answer to the\nErdős–Hajnal question is negative already at $n = 5$.\n-/\n@[category research solved, AMS 3]\ntheorem larson : OrdinalRamsey (ω ^ ω ^ (2 : Ordinal)) (ω ^ ω ^ (2 : Ordinal)) 3 ∧\n    ¬ OrdinalRamsey (ω ^ ω ^ (2 : Ordinal)) (ω ^ ω ^ (2 : Ordinal)) 5 := by\n  sorry\n\nend erdos_118.variants\n\n/- ### Sanity checks -/\n\n/-- **Monotonicity in the blue side.** If the ordinal Ramsey relation holds with blue\ntarget $\\gamma$, it holds with any smaller blue target $\\gamma' \\le \\gamma$. In\nparticular, a failure of $\\alpha \\to (\\alpha, 3)^2$ implies a failure of\n$\\alpha \\to (\\alpha, n)^2$ for every $n \\ge 3$. -/\n@[category test, AMS 3]\ntheorem ordinalRamsey_mono_blue {α β γ γ' : Ordinal.{u}}\n    (hγ : γ' ≤ γ) (h : OrdinalRamsey α β γ) :\n    OrdinalRamsey α β γ' := by\n  intro red blue hCompl\n  obtain (⟨s, hred, htype⟩ | ⟨s, hblue, htype⟩) := h red blue hCompl\n  · exact Or.inl ⟨s, hred, htype⟩\n  · -- s has type γ; find a sub-clique of type γ'.\n    rw [← Ordinal.type_toType γ'] at hγ\n    obtain ⟨g⟩ := Ordinal.type_le_iff'.mp (htype ▸ hγ)\n    let t : Set α.ToType := Set.range (Subtype.val ∘ g)\n    refine Or.inr ⟨t, ?_, ?_⟩\n    · -- t is a blue clique\n      rintro _ ⟨a, rfl⟩ _ ⟨b, rfl⟩ hne\n      apply hblue (g a).2 (g b).2\n      intro h\n      apply hne\n      simp [h]\n    · -- typeLT t = γ'\n      let emb : (· < · : γ'.ToType → γ'.ToType → Prop) ↪r (· < · : ↑t → ↑t → Prop) :=\n        { toFun := fun a => ⟨(g a).val, a, rfl⟩\n          inj' := fun a b heq =>\n            g.injective (Subtype.ext (congr_arg (fun x : ↑t => x.val) heq))\n          map_rel_iff' := g.map_rel_iff }\n      have hsurj : Function.Surjective emb :=\n        fun ⟨_, hy⟩ => ⟨hy.choose, Subtype.ext hy.choose_spec⟩\n      exact (Ordinal.type_eq.mpr ⟨RelIso.ofSurjective emb hsurj |>.symm⟩).trans\n        (Ordinal.type_toType γ')\n\nend Erdos118\n",
  "statement_hash": "d648ab2ba71431b7a7ba1e4603bb60dfdf2d9d372af6007dbe8645e3d14c4888",
  "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."
}