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 #
infinite_ramsey: for every finite colouringc : Finset ℕ → κof ther-subsets and every infiniteM ⊆ ℕ, there is an infiniteN ⊆ Mall of whoser-subsets get one colour. Proved by induction onr(the "fan" argument).infinite_ramsey_seq: the enumeration form — the monochromatic set is the range of a strictly monotonee : ℕ → ℕ.infinite_ramsey_pairs,infinite_ramsey_triples: the classical RT²/RT³ statements for colourings of ordered pairsm < nand triplesm < n < l, obtained frominfinite_ramsey_seqat arity2and3by colouring a finite set through its least/greatest (and, for triples, middle) element.
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.
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.
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).