The setting
Let be an alphabet, and let be the set of all words over . Given a language , one seeks to factor an arbitrary word into a finite list of words in followed by a remainder with no prefix in . Two questions arise: when does every word in admit such a factorization, and when does the concatenation of a finite list of words in determine that list uniquely?
Definitions
A factor list in a language is a finite list of words over such that for every .✦
The concatenation of any finite list of words over is the word , equal to the empty word when .
The prefix avoidance language of a language is the subset of consisting of all words such that no word is a prefix of .✦
A language is a prefix code over if it excludes the empty word and satisfies whenever and is a prefix of .✦
The claim
Lemma. Let be a language that excludes the empty word. For every word , there exist a factor list in and a word satisfying (1)✦ If is a prefix code and are factor lists in with , then (2)✦
In the paper, with denoting the set of complete episodes, its Kleene closure, and the language , every word in has a unique factorization into complete episodes followed by a word with no prefix that is a complete episode, with existence written as .
What is checked
The lemma is stated over an alphabet and a language , using factor lists in , their concatenations, and the prefix avoidance language , assuming that excludes the empty word for (1) and that is a prefix code for (2).