An automatic structure for a group consists of a finite generating alphabet , a surjective representative regular language , and finite-state automata accepting the padded convolutions of words in satisfying for each . Symmetry of and uniqueness of representatives are additional conditions, not part of this definition.
Concatenation of formal languages Created 2026-10-05 Updated 2026-10-06
For formal languages over the same alphabet, concatenate each word over an alphabet in with each word over an alphabet in . This operation is associative, has identity and absorbing element the empty language.
Full shift 2026-10-05
The two-sided full shift on a finite alphabet consists of all functions , with the product topology and the left shift. It is a compact metric space. A compatible metric is
Agreement on increasingly large finite coordinate sets is equivalent to convergence in this topology. The metric above is compatible but is not invariant under the left shift.
Gibbs variational principle for relative entropy Created 2026-09-24 Updated 2026-09-24
For a probability mass function of full support on a finite alphabet and a real function ,
where uses natural logarithms. The unique maximizing probability mass function is the exponential tilt .
Method of types Created 2026-09-24 Updated 2026-09-28
For a finite alphabet , there are at most length- types, and under an i.i.d. law the probability of the type class is at most when logarithms use base two.
The padded convolution of words reads two finite words over an alphabet in parallel, extending the shorter with a fresh padding symbol until the longer ends. Its length is . Padding may only occur as a suffix, and a column is excluded. This encodes synchronous two-tape relations as formal languages over a finite paired alphabet.
Fix a finite alphabet . A regular expression is built recursively from , , and the letters , using union, concatenation, and Kleene star. Its interpretation is a formal language: the basic expressions denote , , and , while , , and denote , , and all finite concatenations of members of , including the empty concatenation. In particular, and are different expressions with different meanings.
Kleene theorem identifies exactly the languages described by regular expressions with those recognized by finite-state automata. Start with a deterministic finite automaton (DFA) having states , initial state , accepting set , and transition function . Let describe paths from to whose internal states lie among . At stage zero use the union of letters labelling direct transitions from to , with added if ; use if there are no such possibilities. Define the finite-state path expressions recursively by
A path either avoids internally or decomposes at its visits to : an initial piece into , any number of return pieces at , and a final piece out. Each piece has no internal occurrence of . This proves the recursion by induction, including paths with or , where empty pieces are permitted. Thus
is a regular expression for the DFA's accepted formal language. An empty accepting set gives the expression . This is the path form of state elimination for finite automata.
A nondeterministic finite automaton (NFA) replaces a single successor state by a set of possible successors. It accepts if there exists an accepting run with and . Rejection means that no accepting run exists, rather than that some run rejects. For an Epsilon-NFA, transitions labelled consume no symbol; acceptance means a path whose non-epsilon labels spell . In particular, acceptance of the empty word is tested using the epsilon closure of the initial state.
The same Kleene theorem holds for nondeterministic finite automata. For an NFA without epsilon transitions, the powerset construction has state set , initial state , transition on letter , and accepting subsets meeting . Induction on word length shows that its state is exactly the set of possible current NFA states. For an Epsilon-NFA, start from , where is epsilon closure, and use
This subset construction with epsilon transitions preserves the accepted formal language and gives a DFA with at most states. The already proved direction of Kleene theorem therefore gives a regular expression for every NFA language.
For the converse, recursively construct an Epsilon-NFA with a designated initial state and final state for a regular expression. Use two states with no connecting path for , one epsilon edge for , and one edge labelled for . Keep component state sets disjoint. Union uses a fresh initial state with epsilon edges into both components, and epsilon edges from their finals to a fresh final. Concatenation joins the first final to the second initial by an epsilon edge. For Kleene star, use fresh initial and final states, an epsilon edge directly between them for zero iterations, an edge into the old initial, and epsilon edges from the old final both back to the old initial and out to the new final. Each construction has exactly the intended union, concatenation, or iteration semantics. Induction on the regular expression proves correctness; the subset construction with epsilon transitions then gives a DFA. This proves both directions of Kleene theorem.
Yes: regular languages are closed under the shuffle of formal languages. The construction must allow letters common to both alphabets to be assigned to either input word.
Take complete deterministic finite automata recognizing . Construct a nondeterministic finite automaton on over . Its initial state is and its accepting states form . On a letter , its possible moves from are
Both moves are allowed when belongs to both alphabets. They may coincide; that causes no difficulty.
For every run, record whether each move updated the first or the second coordinate. The letters assigned to each coordinate, in their original order, form two words . The final coordinate states are exactly the states reached by reading in . Thus an accepting run expresses the input as an interleaving of a word of and a word of .
Conversely, given such an interleaving, assign each input position to the word from which it came. The corresponding choices of transitions form a run ending in . This proves equality between the recognized formal language and the shuffle of formal languages, in both directions. No assumption of disjoint alphabets is needed. If one contributing word is the empty word, no move need update that coordinate; the initial pair is accepting exactly when both empty words are accepted.
Apply the powerset construction to this nondeterministic finite automaton to obtain a deterministic finite automaton. In particular,
The minimal deterministic finite automaton is unique up to an isomorphism preserving the initial state, transitions and accepting states. We use complete deterministic finite automata over the fixed alphabet; the PDF's abbreviation FDA has this meaning. State names themselves cannot be unique.
For words , introduce the Myhill-Nerode equivalence
It is an equivalence relation, and appending the same letter to equivalent words preserves it: a suffix after is the suffix after . Since is a regular language, take any recognizing deterministic finite automaton. Words reaching the same state are equivalent, since every further suffix gives the same computation. Thus has finite index.
The canonical residual automaton has one state for each class, initial state , transition , and accepting states those with . These choices are well-defined by Myhill-Nerode equivalence. Induction on the input length shows that reading reaches , so the deterministic finite automaton recognizes , and all its states are accessible states of a deterministic finite automaton. The same state can be described by the left quotient of a formal language
Two states are different precisely when some suffix distinguishes their acceptance behavior.
Every recognizing deterministic finite automaton has at least as many states as there are classes: pick a representative from each class; two different representatives cannot reach the same state. The canonical residual automaton attains this bound, and therefore is a minimal deterministic finite automaton.
For uniqueness, let be any minimal deterministic finite automaton. All its states are accessible, since removing inaccessible states leaves a complete recognizing deterministic finite automaton with fewer states. Map a state reached by to . This is well-defined because two words reaching the same state are equivalent. It is surjective because every class has a representative. Both sets have the minimal number of states, so it is a bijection. It preserves the initial state and transitions by construction, and preserves accepting states by taking the empty word as the suffix. This is the required isomorphism with the canonical residual automaton, proving
The empty word is included throughout, and empty or universal regular languages have the corresponding one-state complete deterministic finite automata.
Use the synchronous group multiplier automata belonging to the automatic structure for a group. Write for the padded convolution of words: the shorter tape is completed with a symbol outside the alphabet, and reading stops when both words over an alphabet have ended. Our convention is
Let be at least the number of states of each of these finite-state automata, including .
Choose a shortest representative of . In the first orientation, accepts ; in the other orientation it accepts . If , the accepting run has more than transitions after the tape containing has ended. Two states in that suffix coincide. Delete the intervening nonempty loop. Every deleted column contains on the fixed tape and a genuine letter on the tape containing , so the resulting input remains a valid padded convolution of words. The group multiplier automaton still accepts, giving a shorter representative of the same . This contradicts minimality. Thus a representative can always be chosen with
This argument does not require a symmetric alphabet: the second orientation uses the same with its tapes interchanged in the input, rather than a presumed .
Fix the first tape of the group multiplier automaton to be . Construct its possible runs by dynamic programming, one column at a time. A record consists of a state and a flag indicating whether the output tape has ended. At column , the first symbol is and the second symbol may be any letter of the alphabet, or ; after the second tape first uses it must continue to use . At later columns the first symbol is , and an additional column must have a genuine letter on the second tape. Never add a column.
Keep one predecessor record and its output symbol for each reachable state-and-flag pair in each layer. Two runs reaching the same record have exactly the same possible future completions, so this merging loses no accepting output. The merged dead state of a finite automaton can be discarded. At each layer , test whether a reached state is accepting; the initial layer is included when . Upon success, follow predecessor records backwards and omit padding symbols to recover .
The automatic structure for a group supplies a representative in of , so an accepted padded convolution of words exists and this search terminates. The output is the required representative:
The search uses only the finite transition table; it does not presuppose a solution to the word problem for a group.
The regular language is nonempty because it represents every element of the group. Find any accepted word using Breadth-first search in its finite-state automaton. If is the empty word, it already represents the identity.
Otherwise begin with and repeatedly apply the linear-time multiplication in an automatic structure to the letters
These letters belong to by symmetry of the alphabet. All intermediate words lie in , and the final word represents
Hence an identity representative can be constructed effectively:
This is a finite preliminary computation depending only on the fixed automatic structure for a group; it uses no test for whether an arbitrary word represents the identity.
A run of a word is a maximal consecutive block of equal letters. For every , use the following finite coloring of , with at most nine colors:
We show that this run-count obstruction to interval-active lines excludes every monochromatic combinatorial line with an interval active set . If , its three words already have different first coordinates, so their colors differ. Suppose and denote the letter immediately to the left by . All contributions to away from the two possible boundaries of are independent of its active letter ; no internal active boundary contributes a change.
If , the only variable contribution is , which is at and at another letter. If , write for the letter immediately to the right. The variable contribution is
When , its values are and . When , it equals at or , and equals at the third letter. In every case these values are distinct modulo . Hence no dimension works for alphabet size three and nine colors, which disproves the proposed universal strengthening. For the PDF's illustrative line, choosing either adjacent letter merges one active run with a neighboring run, while choosing any other letter merges neither; this is exactly the boundary effect measured above. Recording the first letter also handles active intervals meeting the beginning, including the entire coordinate set.
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.