Mathematics / Formalization Note / Algebra, Logic & Quantum
Ordinal Ramsey Theory for omega^(omega^2): Lean 4 Proofs of Erdos Problems 118 and 591
Two Lean 4 ordinal-combinatorics proofs: a height-two pair-game and cut-synchronization proof of omega^(omega^2) -> (omega^(omega^2), 3)^2 (Erdos591Proof.HeightTwoGame), and a word-tape proof of Larson's theorem that pairs an explicit K_5-free coloring (Larson.Pattern.blueGraph, Larson.negative) with an architect pair-game proof of the 3-relation (Larson.PairGame.architectTriangle). The coloring was generated independently; whether it coincides with Larson's own construction has not been checked. The two files share roughly 2,000 lines of game infrastructure, and 467 lines of Nash-Williams machinery in the Erdos 591 file are adapted from TheWaler's merged Erdos 590 proof.
- Author
- Ali Uyar
- Scope
- Direct proof
- Status
- Merged on Left to Solve
- Original theorem
- omega^(omega^2) -> (omega^(omega^2), 3)^2 (Erdos Problem 591), proved independently by Rene Schipperus (thesis 1999, published 2010) and Carl Darby (1999), who also showed that Erdos Problem 118 (Erdos-Hajnal) has a negative answer; omega^(omega^2) -/-> (omega^(omega^2), 5)^2, proved by Jean A. Larson (2000).
- Statement source
- Left to Solve (FormalConjectures / OMA statements)
Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.
Summary
Erdos Problem 591 asks whether omega^(omega^2) -> (omega^(omega^2), 3)^2, and Erdos Problem 118, a question of Erdos and Hajnal, asks whether every partition ordinal alpha -> (alpha, 3)^2 satisfies alpha -> (alpha, n)^2 for all finite n >= 3. Schipperus (1999, 2010) and Darby (1999) independently proved the 591 relation and showed that Problem 118 has a negative answer; Larson (2000) proved omega^(omega^2) -/-> (omega^(omega^2), 5)^2, so the answer is already negative for alpha = omega^(omega^2) and n = 5. Lean 4 proofs of the FormalConjectures statements Erdos591.erdos_591, Erdos118.erdos_118 (the ordinal reading over Ordinal.{0}) and Erdos118.erdos_118.variants.larson close all three as direct root proofs on Left to Solve. The positive relation is proved twice, by a height-two pair game and by an architect pair game on a second word model; the negative relation comes from an explicit K_5-free coloring whose clique-freeness is a 1,734-entry case table checked by kernel evaluation. The three PRs rest on two distinct proof files with 18,388 lines in total (625 and 775 declarations); the third file is a copy of the Larson file with a different final theorem.
Context
Countable ordinal partition calculus combines set theory, infinite Ramsey theory and game-theoretic combinatorics. These proofs check both the positive partition relation for omega^(omega^2) and the n = 5 counterexample in Lean 4, against the FormalConjectures statements and with only the standard axioms.
Root problems on Left to Solve
Credits
Mathematics: Rene Schipperus and Carl Darby (omega^(omega^2) -> (omega^(omega^2), 3)^2; negative answer to Erdos 118), Jean A. Larson (omega^(omega^2) -/-> (omega^(omega^2), 5)^2). Lean: 467 lines of Nash-Williams machinery in the Erdos 591 file (StrictSorted, Accepts, StronglyAccepts, Rejects, Decides, nash_williams) are taken from TheWaler's merged Left to Solve proof of Erdos590.erdos_590.variants.finite_cardinal (PR #4775); the file comment reads 'Nash-Williams on thin families, from the finite-cardinal Erdos 590 proof'. The PR bodies credit no other third party. Proofs produced with AI coding agents operated by the author (t3-code, model gpt-6.2-astra, per the PR bodies).
Pull request ledger (3)
Cite
@misc{uyar2026_ordinal_ramsey_erdos_118_591_lean4,
author = {Uyar, Ali},
title = {Ordinal Ramsey Theory for omega^(omega^2): Lean 4 Proofs of Erdos Problems 118 and 591},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765123},
url = {https://doi.org/10.5281/zenodo.24765123},
note = {Lean 4 formalization technical note (omega^(omega^2) -> (omega^(omega^2), 3)^2 (Erdos Problem 591), proved independently by Rene Schipperus (thesis 1999, published 2010) and Carl Darby (1999), who also showed that Erdos Problem 118 (Erdos-Hajnal) has a negative answer; omega^(omega^2) -/-> (omega^(omega^2), 5)^2, proved by Jean A. Larson (2000).). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/04-ordinal-ramsey-erdos-118-591}
}