Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 118

Source:Erdős Problems · erdosproblems.com/118
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Erdős Problem 118 (problem of Erdős and Hajnal). Let α\alpha be such that α→(α,3)2\alpha \to (\alpha, 3)^2. For every n≥3n \ge 3, must α→(α,n)2\alpha \to (\alpha, n)^2?

The original question is asked for cardinals, ordinals, and order types; we state the ordinal version, which is the standard reading: ordinals α\alpha with α→(α,3)2\alpha \to (\alpha, 3)^2 are called partition ordinals.

The answer is no, shown independently by Schipperus [Sc99, Sc10] and Darby [Da99]. Larson [La00] gave the concrete counterexample α=ωω2\alpha = \omega^{\omega^2}, for which α→(α,3)2\alpha \to (\alpha, 3)^2 holds yet α↛(α,5)2\alpha \not\to (\alpha, 5)^2. See Chapter 2.9 of [HST10] for further background.

Subjects:Logic (math.LO)
MSC classes:03
Tags:question
Cite as:NS.00886 [math.LO] · NS.00886v1 for this version
Declaration:Erdos118.erdos_118
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:d648ab2ba71431b7a7ba1e4603bb60dfdf2d9d372af6007dbe8645e3d14c4888
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/118.lean

Formal statement

theorem erdos_118 :
    ¬ ∀ α : Ordinal.{0}, OrdinalRamsey α α 3 →
      ∀ n : ℕ, 3 ≤ n → OrdinalRamsey α α n
Show the full Challenge.lean (132 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 118

*Reference:* [erdosproblems.com/118](https://www.erdosproblems.com/118)

*References:*
- [Sc99] Schipperus, R. *Countable partition ordinals.* Thesis, University of Colorado (1999).
- [Sc10] Schipperus, R. *Countable partition ordinals.* Ann. Pure Appl. Logic 161 (2010),
  1195–1215.
- [Da99] Darby, C. *Negative partition relations for ordinals $\omega^{\omega^\delta}$.*
  J. Combin. Theory Ser. B 76 (1999), 205–222.
- [La00] Larson, J. A. *An ordinal partition avoiding pentagrams.* J. Symbolic Logic 65
  (2000), 969–978.
- [HST10] Hajnal, A.; Larson, J. A. *Partition relations.* Handbook of set theory,
  Springer (2010), 129–213.
-/

@[expose] public section

open Cardinal Ordinal
open scoped Cardinal

namespace Erdos118

universe u

/-- Local copy of the binary ordinal Ramsey predicate $\alpha \to (\beta, \gamma)^2$:
every 2-coloring of pairs from $\alpha$ admits a red clique of order type $\beta$ or a
blue clique of order type $\gamma$.

Will be replaced by `OrdinalRamsey` from `FormalConjecturesForMathlib/SetTheory/Ordinal/
PartitionRelation.lean` once that lands (see PR #4195). -/
def OrdinalRamsey (α β γ : Ordinal.{u}) : Prop :=
  ∀ red blue : SimpleGraph α.ToType, IsCompl red blue →
    (∃ s, red.IsClique s ∧ typeLT s = β) ∨
    (∃ s, blue.IsClique s ∧ typeLT s = γ)

/- ### The main problem -/

/--
**Erdős Problem 118** (problem of Erdős and Hajnal). Let $\alpha$ be such that
$\alpha \to (\alpha, 3)^2$. For every $n \ge 3$, must $\alpha \to (\alpha, n)^2$?

The original question is asked for cardinals, ordinals, and order types; we state the
ordinal version, which is the standard reading: ordinals $\alpha$ with
$\alpha \to (\alpha, 3)^2$ are called *partition ordinals*.

The answer is **no**, shown independently by Schipperus [Sc99, Sc10] and Darby [Da99].
Larson [La00] gave the concrete counterexample $\alpha = \omega^{\omega^2}$, for which
$\alpha \to (\alpha, 3)^2$ holds yet $\alpha \not\to (\alpha, 5)^2$. See Chapter 2.9 of
[HST10] for further background.
-/
@[category research solved, question, AMS 3]
theorem erdos_118 :
    ¬ ∀ α : Ordinal.{0}, OrdinalRamsey α α 3 →
      ∀ n : ℕ, 3 ≤ n → OrdinalRamsey α α n := by
  sorry

/- ### Known results -/

namespace erdos_118.variants

/--
**Larson (2000).** The ordinal $\alpha = \omega^{\omega^2}$ is a partition ordinal,
$\omega^{\omega^2} \to (\omega^{\omega^2}, 3)^2$, yet
$\omega^{\omega^2} \not\to (\omega^{\omega^2}, 5)^2$ [La00], so the answer to the
Erdős–Hajnal question is negative already at $n = 5$.
-/
@[category research solved, AMS 3]
theorem larson : OrdinalRamsey (ω ^ ω ^ (2 : Ordinal)) (ω ^ ω ^ (2 : Ordinal)) 3 ∧
    ¬ OrdinalRamsey (ω ^ ω ^ (2 : Ordinal)) (ω ^ ω ^ (2 : Ordinal)) 5 := by
  sorry

end erdos_118.variants

/- ### Sanity checks -/

/-- **Monotonicity in the blue side.** If the ordinal Ramsey relation holds with blue
target $\gamma$, it holds with any smaller blue target $\gamma' \le \gamma$. In
particular, a failure of $\alpha \to (\alpha, 3)^2$ implies a failure of
$\alpha \to (\alpha, n)^2$ for every $n \ge 3$. -/
@[category test, AMS 3]
theorem ordinalRamsey_mono_blue {α β γ γ' : Ordinal.{u}}
    (hγ : γ' ≤ γ) (h : OrdinalRamsey α β γ) :
    OrdinalRamsey α β γ' := by
  intro red blue hCompl
  obtain (⟨s, hred, htype⟩ | ⟨s, hblue, htype⟩) := h red blue hCompl
  · exact Or.inl ⟨s, hred, htype⟩
  · -- s has type γ; find a sub-clique of type γ'.
    rw [← Ordinal.type_toType γ'] at hγ
    obtain ⟨g⟩ := Ordinal.type_le_iff'.mp (htype ▸ hγ)
    let t : Set α.ToType := Set.range (Subtype.val ∘ g)
    refine Or.inr ⟨t, ?_, ?_⟩
    · -- t is a blue clique
      rintro _ ⟨a, rfl⟩ _ ⟨b, rfl⟩ hne
      apply hblue (g a).2 (g b).2
      intro h
      apply hne
      simp [h]
    · -- typeLT t = γ'
      let emb : (· < · : γ'.ToType → γ'.ToType → Prop) ↪r (· < · : ↑t → ↑t → Prop) :=
        { toFun := fun a => ⟨(g a).val, a, rfl⟩
          inj' := fun a b heq =>
            g.injective (Subtype.ext (congr_arg (fun x : ↑t => x.val) heq))
          map_rel_iff' := g.map_rel_iff }
      have hsurj : Function.Surjective emb :=
        fun ⟨_, hy⟩ => ⟨hy.choose, Subtype.ext hy.choose_spec⟩
      exact (Ordinal.type_eq.mpr ⟨RelIso.ofSurjective emb hsurj |>.symm⟩).trans
        (Ordinal.type_toType γ')

end Erdos118

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos118.erdos_118 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_118 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-118
nosorry submit erdos-118 nosorry/erdos-118/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.