Lines and subspaces #
Constructions on Mathlib's Combinatorics.Line and Combinatorics.Subspace used in Shelah's proof
of the Hales--Jewett theorem.
Main definitions #
Combinatorics.Line.reindex: change the index type of a line.Combinatorics.Subspace.prodLine: the subspace spanned by a subspace and a line on disjoint sets of coordinates.Combinatorics.Subspace.compLine: a line of the parameter cube of a subspace, as a line of the ambient cube.
Main results #
Combinatorics.Line.exists_map_eq_of_card_le: in a cube of dimensionNcolored with at mostNcolors, some line has the same color at two given letters.
theorem
Combinatorics.Line.exists_map_eq_of_card_le
{α : Type u_2}
{κ : Type u_5}
[Finite κ]
{N : ℕ}
(hN : Nat.card κ ≤ N)
(a b : α)
(C : (Fin N → α) → κ)
:
If a cube of dimension N is colored with at most N colors, then for any two letters a and
b some line has the same color at a and at b.
The N + 1 words that are a on an initial segment of the coordinates and b afterwards cannot
have distinct colors. Two of them with the same color are the points at a and at b of the line
whose wildcards are the coordinates on which they differ.