The setting
Consider an alphabet and a state set equipped with a state update map assigning a transformation on to each word over . An episode over an alphabet is a word used to specify a state update.
Episode sequences
Given an alphabet and a language , a finite sequence of words in has all episodes in if for every .✦
For an alphabet and a state update map on a state set , write for the transformation that assigns to a word . For a state and a finite sequence of words in , the iterated episode update is the state in obtained from by applying in reading order.✦ (1)✦
The definition
Definition. A language over an alphabet is a prefix code if does not contain the empty word and no word in is a proper prefix of any word in : (2)✦
The graph language from to , for a language , a state update map on a state set , and states , consists of all concatenations of finite sequences with all episodes in whose iterated episode update (1) sends to : (3)✦
What is checked
The definition of a prefix code (2) is stated for a language over an alphabet , and the graph language (3) is stated for a language , a state update map on a state set , and states , built from the predicate of having all episodes in and the iterated episode update (1).