Documentation

LeanPool.NashWilliams.Combinatorics.Ramsey.Infinite

The infinite Ramsey theorem #

This file proves the infinite Ramsey theorem for finite colourings of the r-element subsets of , for arbitrary arity r, and derives the classical pairs (RT²) and triples (RT³) cases in their relational form.

Main results #

The Finset colouring interface follows B. Mehta's Lean 3 inf_ramsey.lean. See also the standalone project https://github.com/yannpequignot/lean-infinite-ramsey.

Two proofs of infinite Ramsey #

The proof here is direct and self-contained. Front.ramsey_seq_of_nashWilliams, in NashWilliams.Combinatorics.Front.NashWilliams, proves the same statement a second way, by instantiating the Nash-Williams theorem at the uniform front [M]^k. Both are kept, and neither file imports the other: they share only the generic helpers in NashWilliams.Data.

theorem infinite_ramsey {κ : Type u_1} [Finite κ] (r : ) (c : Finset κ) {M : Set } (hM : M.Infinite) :
NM, N.Infinite ∃ (col : κ), ∀ (t : Finset ), tNt.card = rc t = col
theorem infinite_ramsey_seq {κ : Type u_1} [Finite κ] (r : ) (c : Finset κ) :
∃ (e : ), StrictMono e ∃ (col : κ), ∀ (t : Finset ), tSet.range et.card = rc t = col
theorem infinite_ramsey_pairs {κ : Type u_2} [Finite κ] (c : (m n : ) → m < nκ) :
∃ (e : ) (he : StrictMono e) (k : κ), ∀ (i j : ) (h : i < j), c (e i) (e j) = k

The infinite Ramsey theorem for pairs (RT²), in relational form: for a finite colouring c of the ordered pairs m < n, there is a strictly monotone e and a colour k with c (e i) (e j) = k for all i < j. Derived from infinite_ramsey_seq at arity 2.

theorem infinite_ramsey_triples {κ : Type u_2} [Finite κ] (c : (m n l : ) → m < n n < lκ) :
∃ (e : ) (he : StrictMono e) (k : κ), ∀ (h i j : ) (hs : h < i i < j), c (e h) (e i) (e j) = k

The infinite Ramsey theorem for triples (RT³), in relational form, derived from infinite_ramsey_seq at arity 3 (colour a 3-subset by c of its least, middle and greatest element).