OctoInform Beta

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 E⊆Σ*E \subseteq \Sigma^*, it consists of all words with no prefix in EE

The final remainder of language EE over alphabet Σ\Sigma complements EΣ*E\Sigma^*.

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 Σ*\Sigma^* be the free monoid of words over an alphabet Σ\Sigma, and write Lc=Σ*\LL^c = \Sigma^* \setminus L for the complement of a language L⊆Σ*L \subseteq \Sigma^*.

The prefix avoidance language

When EE is the language of complete episodes, every word over Σ\Sigma factors uniquely into words from EE followed by a word with no prefix in EE. The prefix avoidance language R(E)R(E) of a language E⊆Σ*E \subseteq \Sigma^*, also called the final remainder, is the language of words over Σ\Sigma with no prefix in EE, as given by (1).✦ R(E)={w∈Σ*∣∀e∈E,e is not a prefix of w}.R(E) = \{w \in \Sigma^* \mid \forall e \in E,\ e \text{ is not a prefix of } w\}.(1)✦

The claim

Theorem. For every language E⊆Σ*E \subseteq \Sigma^*, the prefix avoidance language R(E)R(E) defined in (1) satisfies R(E)=(EΣ*)c.R(E) = (E\Sigma^*)^c.(2)✦

What is checked

The claim (2) is stated for an arbitrary language E⊆Σ*E \subseteq \Sigma^* over an alphabet Σ\Sigma, using the prefix avoidance language R(E)R(E) of (1) and the operations of concatenation and complementation in Σ*\Sigma^*.