OpenAI preprint, September 2026 · §10. Component expressions and the final remainder · §10 · Finite Monoid Computations and a Uniform Generalized Star-Height Bound, §8 · Generalized Star Height at Most Four, §7
Final remainder:For every language
,
it consists of all words with no prefix in
The final remainder of language
over alphabet
complements
.
Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its
declaration both in Lean and in words.
The setting
Let be the free monoid of words over an alphabet , and write for the complement of a language .
The prefix avoidance language
When is the language of complete episodes, every word over factors uniquely into words from followed by a word with no prefix in .The prefix avoidance language of a language , also called the final remainder, is the language of words over with no prefix in , as given by (1).✦(1)✦
The claim
Theorem. For every language , the prefix avoidance language defined in (1) satisfies (2)✦
What is checked
The claim (2) is stated for an arbitrary language over an alphabet , using the prefix avoidance language of (1) and the operations of concatenation and complementation in .