For every alphabet size , number of colors , and dimension , some has the property that every -coloring of contains a monochromatic -dimensional combinatorial subspace. It follows from the Hales-Jewett theorem by identifying with the word space over the alphabet .
The Hales-Jewett theorem says that, for every finite alphabet and number of colors , there is such that every -coloring of contains a monochromatic combinatorial line.
We use the standard insensitivity lemma. Assuming the Hales-Jewett theorem for alphabets of size , fix two letters in an -letter alphabet. For every and , there is such that each -coloring of has a -dimensional combinatorial subspace on which changing any selection of variable coordinates from to , or from to , leaves the color unchanged.
Here is the finite fusion proof of the lemma. Choose the sizes of successive coordinate blocks backwards. On the last block, omit and color a word over by the vector of all colors obtained after filling the previously chosen blocks in every possible way and then replacing any chosen occurrences of by . This is a finite derived coloring. The induction hypothesis supplies a combinatorial line on which that entire vector is constant. Treat its active coordinates as one new variable block and repeat. After repetitions, each replacement of by can be pushed into the last block where it was created, and equality of the derived color vectors shows that it does not alter the original color. This proves the insensitivity lemma.
Now induct on . The case is immediate. For , choose the target dimensions backwards and apply the insensitivity lemma successively to the pairs
At every step pass to the resulting nested combinatorial subspace, so the insensitivities already obtained are retained. On the final positive-dimensional subspace, replacing by any other letter does not change the color. Any two words can be connected by such replacements, so the whole subspace is monochromatic. It contains a combinatorial line, completing the induction and the proof.
The Gallai theorem for an integer lattice says that, for every finite and every finite coloring of , there are and such that the homothetic copy
is monochromatic.
Write and apply the Hales-Jewett theorem to the alphabet . Color a word by the color of
where a fixed positive vector keeps the image in under either convention for the natural numbers. On a monochromatic combinatorial line, let be the active coordinate set. The fixed coordinates contribute a vector , while the word whose active letter is maps to
These points form a monochromatic copy , proving Gallai's theorem.
Let be an alphabet. A combinatorial line in is obtained by choosing a nonempty set of active coordinates, fixing every other coordinate, and putting the same variable letter in all active coordinates. The Hales-Jewett theorem states that, for every pair of positive integers , some makes every -coloring of contain a monochromatic combinatorial line.
We prove it by mathematical induction on . The case is immediate. Suppose the result is known for the alphabet , with any finite number of colors. Order each line by its variable letter, and call its last point its focus. Say that lines are color-focused when they share a focus, each line with its focus removed is monochromatic, and those punctured lines have different colors.
We claim that for every there is such that every -coloring of contains either a monochromatic line or color-focused lines. For , restrict a coloring to with . A monochromatic line there becomes a punctured line over after adjoining the point obtained by putting in every active coordinate. It is either already monochromatic or is one color-focused line.
Assume works for , and put
View as . For , record the entire color pattern
This is a coloring with at most colors, so the induction hypothesis on the alphabet supplies a line on which this pattern is constant. Adjoin its focus , whose active coordinates contain the letter , and write for the resulting line over . Thus is independent of for every . It defines a -coloring of .
If has a monochromatic line, fixing any gives one for . Otherwise there are color-focused lines for , with common focus . Couple the active coordinates of each of those lines with the active coordinates of ; this produces punctured lines focused at . The line obtained by fixing the first component at and varying along supplies one more. Its punctured color differs from the preceding colors, since equality with one of them would make the corresponding -line monochromatic. Hence there are color-focused lines. The claim follows by induction on .
Take . The common focus has one of the colors, so it completes the punctured line of that color to a monochromatic line. This proves the Hales-Jewett theorem.
A -dimensional combinatorial subspace has disjoint nonempty active coordinate sets, one for each independent variable. The Extended Hales-Jewett theorem says that, given , every -coloring of contains such a monochromatic subspace when is large enough. To deduce it, choose
and identify
A monochromatic combinatorial line over the alphabet becomes a monochromatic -parameter set over : within every active block, its first coordinates form the first variable set, its second coordinates form the second, and so on. Thus suffices.