We prove the Hales-Jewett theorem by mathematical induction on the alphabet size. A combinatorial line has a nonempty active coordinate set, with one common letter in all those coordinates. More generally, a -dimensional combinatorial subspace has disjoint nonempty active coordinate sets, each with an independently variable letter.
First prove the alphabet insensitivity lemma, rather than assume it. Fix distinct letters , colors, and dimension . Partition the coordinates into consecutive blocks of lengths , chosen from left to right. Put and choose
Construct the variable blocks from right to left. When working on block , the later blocks have already become -parameter words, while all earlier coordinates remain unrestricted. For each , take the color vector of the word having in block , indexed by every earlier word and every assignment to the later parameters. There are entries and hence at most different vectors. The pigeonhole principle gives with identical vectors. Fix the first positions of this block to , fix its last positions to , and make the intervening positions a new variable block. Substituting or there gives exactly the two equal color vectors.
This equality holds for every earlier word and every later parameter assignment. Restricting the earlier coordinates in subsequent steps therefore preserves it. Likewise, the insensitivity already proved in a later block survives every restriction of earlier coordinates. At the end, we obtain a -dimensional combinatorial subspace whose induced finite coloring is unchanged whenever any parameter switches between and , with all other parameters fixed. Multiple switches preserve the color by successive single switches. This is the alphabet insensitivity lemma in full.
For alphabet size , one coordinate is already a monochromatic combinatorial line. Suppose the Hales-Jewett theorem has been proved for alphabet size , and let . Apply the proved alphabet insensitivity lemma with letters to get a -dimensional combinatorial subspace in . Restrict its parameter words to . The induction hypothesis gives a monochromatic combinatorial line in these parameters. The union of its active parameter blocks is nonempty, so its image is a combinatorial line in the original coordinates. Its additional point with active letter has the same color as the point with active letter , by insensitivity. Therefore all points have one color, proving
The construction supplies a finite recursive bound; optimal bounds are not needed.
Use the product topology on , with discrete, and the left shift . A basic cylinder set specifies finitely many coordinates. This is a compact metric space, and is a homeomorphism. Write for the forward orbit closure. A minimal point means that is a minimal dynamical system, equivalently that every point of has a dense forward orbit in ; it need not be a fixed point.
There is a convention needed in the source: the bounded-gaps property concerns every finite integer interval , hence every finite word over an alphabet. Literally allowing would make the displayed condition impossible for finite , although a constant coloring is a minimal point. Under the standard finite-word interpretation, the property is precisely uniform recurrence.
Suppose first that is a minimal dynamical system. Its nonempty compact forward-invariant subset must equal . As the ambient left shift is invertible, all integer translates of belong to . Let have length , and let . This is a nonempty clopen set. Each forward orbit in meets , so covers . By compactness, finitely many suffice; let be the largest index in this finite cover. For any integer , the point lies in , so some satisfies . The prescribed word therefore occurs at positions , entirely inside . Taking proves the bounded-gaps property for every interval of length at least .
Conversely suppose is uniformly recurrent. Every finite word from any integer translate of occurs arbitrarily far to the right, so every such translate belongs to . Moreover, the property that every length- block contains a specified word of passes to every : a finite block of is a limit of blocks of forward translates of , and the finite discrete alphabet forces eventual exact agreement on that block. Given , look for its word inside . An occurrence starts at for some , so agrees with on . Taking for arbitrarily large proves that belongs to the forward orbit closure of every . That closure is a closed forward-invariant subset of , so it also contains every forward translate of and hence all of . Every forward orbit is therefore dense in , proving
The same conclusion holds if orbit closure is defined using all integer iterates: the bounded-gaps condition makes the forward and two-sided closures equal.
Let be a word length supplied by the Hales-Jewett theorem for alphabet and two colors. For , embed into by the coordinate duplication for combinatorial lines map
Pull back any two-color finite coloring to this word space. The Hales-Jewett theorem gives a monochromatic combinatorial line with nonempty active set . Its image is a combinatorial line whose active set is
and hence has size , a positive even integer. Therefore
The empty set's presence in the family causes no difficulty: the line just constructed has at least two active coordinates.
Hales–Jewett and the arithmetic-progression consequence. For a finite alphabet and a positive integer , the Hales-Jewett theorem gives an integer such that every -color finite coloring of contains a monochromatic combinatorial line. A combinatorial line has a nonempty active coordinate set: all those coordinates receive the same freely varying letter, and the remaining coordinates are fixed.
We first prove the alphabet insensitivity lemma. Fix two letters , with , and a desired dimension . There is a combinatorial subspace of dimension on which changing to in any variable coordinate, with all other variable coordinates arbitrary, preserves the color.
For the construction, divide the coordinates into consecutive blocks. Choose their lengths from left to right by
Process the blocks from right to left. When processing block , the later blocks already form a -dimensional combinatorial subspace. Color each word in block by the vector of its original colors for every prefix word of length and every assignment to those later variables. There are contexts, and at most such color vectors.
The words , , contain two, indexed by , with the same vector by the pigeonhole principle. Fix the first coordinates to , the coordinates after to , and make coordinates the active set of one new variable. Its values now have identical colors for every prefix and later-variable context. The active set is nonempty. Insensitivity already obtained in later blocks survives, because it held for every unrestricted earlier prefix. After all blocks have been processed, changing in any of the variables preserves the color. This proves the lemma.
Now induct on . For , a one-coordinate combinatorial line is automatically monochromatic. For , let be a length supplied by the theorem for alphabet and colors. Apply the alphabet insensitivity lemma for the letters to obtain a -dimensional combinatorial subspace. Restrict its variables to . Induction gives a monochromatic combinatorial line in those variables. Its values have the same color, and its value has the same color as its value by successively switching the active variables. Lifting this line to the original coordinates proves
For the Van der Waerden theorem, fix a progression length and use the alphabet . Pull back an -color finite coloring of along
A combinatorial line with active set maps to the arithmetic progression , where and its common difference is . The Hales-Jewett theorem makes this progression monochromatic. Length one is trivial, so every finite coloring of the positive integers contains monochromatic arithmetic progressions of every finite length.
The active-coordinate obstruction. Color a word red when its first coordinate is , and blue otherwise. Any combinatorial line whose active coordinate set contains has a red word at variable value and a blue word at variable value , since . Thus
Here adequacy is the adequate family of active coordinate sets property; an active coordinate set is always nonempty.
An alphabet is a finite nonempty set of symbols. A word over an alphabet is a finite sequence of symbols from , including the empty word ; the set of all words is . A formal language over is any subset .
A regular expression is defined recursively from , , and the individual symbols by the operations of finite union, concatenation, and Kleene star. Its language is defined by
There are only countably many regular expressions: each is a finite word over a finite collection of symbols and punctuation. On the other hand, for every nonempty finite alphabet, is countably infinite, so its power set is uncountable by the Cantor theorem. Thus there are uncountably many languages but only countably many languages denoted by regular expressions. Consequently
A context-free grammar is a quadruple consisting of a finite set of nonterminal symbols, a disjoint finite alphabet of terminal symbols, a start symbol , and a finite set of productions with and . A sentence is a terminal word over an alphabet with , and the generated formal language is .
The first language is context-free. For example, the productions
generate exactly : each recursive production adds two s to the left and two s to the right.
The source is reliably encodable at rate if, for each block length , there are an encoder with at most outputs and a decoder such that the block error probability
tends to zero as .
Its information rate is the limiting information entropy per source symbol,
when this limit exists.
Let be probability mass functions on a finite alphabet, with absolutely continuous with respect to . A decision region accepts the null law . Write
for its type-I and type-II errors. Stein's lemma states that for every fixed ,
where logarithms and relative entropy use base two.
For achievability, let
Under , the normalized log-likelihood ratio converges in probability to by the weak law of large numbers, so . On , , whence .
For the converse, let
Again . If , then
The final factor has positive lower limit at least . Taking exponential rates and then proves the converse and the lemma.
Uniform recurrence 2026-10-05
A two-sided sequence over a finite alphabet is uniformly recurrent if every finite word over an alphabet occurring in it occurs with bounded gaps. More precisely, for each such word some ensures that every length- interval contains a complete occurrence. This is equivalent to being a minimal point of the full shift: a finite cover of the orbit closure by preimages of a word's cylinder set bounds its return gaps; conversely, bounded gaps pass to all points of the orbit closure and make every forward orbit dense there. The property concerns finite words, not infinite integer intervals.