OctoInform Beta

OpenAI preprint, September 2026 · §10. Component expressions and the final remainder · §10 · Finite Monoid Computations and a Uniform Generalized Star-Height Bound, Lemma 8.3 · Generalized Star Height at Most Four, Lemma 7.3

Lemma 10.3 (factorization): For languages excluding the empty word, factorization with a remainder exists, and concatenation is injective if no word properly prefixes another

Factorization with a remainder and injectivity of concatenation.

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 an alphabet, and let Σ*\Sigma^* be the set of all words over Σ\Sigma. Given a language E⊆Σ*E \subseteq \Sigma^*, one seeks to factor an arbitrary word w∈Σ*w \in \Sigma^* into a finite list of words in EE followed by a remainder with no prefix in EE. Two questions arise: when does every word in Σ*\Sigma^* admit such a factorization, and when does the concatenation of a finite list of words in EE determine that list uniquely?

Definitions

A factor list 𝒆=(e1,…,ek)\mathbf{e} = (e_1, \dots, e_k) in a language D⊆Σ*D \subseteq \Sigma^* is a finite list of words over Σ\Sigma such that ei∈De_i \in D for every 1≤i≤k1 \le i \le k.✦

The concatenation π(𝒆)\pi(\mathbf{e}) of any finite list 𝒆=(e1,…,ek)\mathbf{e} = (e_1, \dots, e_k) of words over Σ\Sigma is the word e1⋯eke_1 \cdots e_k, equal to the empty word when k=0k = 0.

The prefix avoidance language R(E)R(E) of a language E⊆Σ*E \subseteq \Sigma^* is the subset of Σ*\Sigma^* consisting of all words ww such that no word e∈Ee \in E is a prefix of ww.✦

A language E⊆Σ*E \subseteq \Sigma^* is a prefix code over Σ\Sigma if it excludes the empty word and satisfies e=fe = f whenever e,f∈Ee, f \in E and ee is a prefix of ff.✦

The claim

Lemma. Let E⊆Σ*E \subseteq \Sigma^* be a language that excludes the empty word. For every word w∈Σ*w \in \Sigma^*, there exist a factor list 𝒆\mathbf{e} in EE and a word r∈R(E)r \in R(E) satisfying w=π(𝒆)r.w = \pi(\mathbf{e}) r.(1)✦ If EE is a prefix code and 𝒆,𝒇\mathbf{e}, \mathbf{f} are factor lists in EE with π(𝒆)=π(𝒇)\pi(\mathbf{e}) = \pi(\mathbf{f}), then 𝒆=𝒇.\mathbf{e} = \mathbf{f}.(2)✦

In the paper, with EE denoting the set of complete episodes, E*E^* its Kleene closure, and FF the language R(E)R(E), every word in Σ*\Sigma^* has a unique factorization into complete episodes followed by a word with no prefix that is a complete episode, with existence written as Σ*=E*F\Sigma^* = E^* F.

What is checked

The lemma is stated over an alphabet Σ\Sigma and a language E⊆Σ*E \subseteq \Sigma^*, using factor lists in EE, their concatenations, and the prefix avoidance language R(E)R(E), assuming that EE excludes the empty word for (1) and that EE is a prefix code for (2).