The setting
Over an alphabet , a local rule places spaced markers on bi-infinite words, and a bounded search near a seed block selects an endpoint cut or falls back to a periodic continuation when no marker is eligible. The lag locates the seed relative to the starting cut. At a fixed lag, do the finite words from the starting cut to the selected endpoint form a prefix code?
Prefix codes
Denoting the empty word by , a language is a prefix code if and, whenever satisfy that is a prefix of , one has .✦
Word intervals
Two bi-infinite words agree on , for integers and , if for every integer with .✦
A finite word of length occurs at an integer position in a bi-infinite word if for every integer with , where is the letter of at zero-based index .✦
Local marker rules
For a natural number , a natural number is a word period of a word of length over if for all indices satisfying .✦
Given natural numbers and , a local marker rule over with separation and block length consists of an integer radius and a map assigning to each bi-infinite word a marker set that satisfies (1) for all bi-infinite words and all integers , with denoting a word period in the markerless periodicity condition. (1)
A complete episode ends at , where is the position returned by if present and otherwise the first mismatch with the seed’s periodic continuation. A system of canonical episode parameters over consists of an integer modulus , an integer step , a natural number separation , a natural number seed length , an integer seed offset , an integer tail length , and a local marker rule over with separation and block length .✦
Marker searches
For integers , , and , the offset-dependent eligibility radius at integer displacement is (2)✦
Given a marker set , a center , and integers , , and , an integer satisfies the marker eligibility condition at if and as defined in (2).✦
The eligible marker set is the finite set of all integers in the closed interval that satisfy the marker eligibility condition for at .✦
For a marker set , an integer center , and integers , , and , the leftmost eligible marker search with modulus , step , and base radius returns the least element of when that set has a least element and the no-position symbol when it is empty.✦
The canonical marker search is the leftmost eligible marker search on at an integer center with modulus , step , and base radius , for a system of canonical episode parameters and a bi-infinite word .✦
Episode endpoints
Given natural numbers and , a bi-infinite word , and an integer position , a bi-infinite word is a short-period continuation of the block of length starting at in with period bound if agrees with on and there exists an integer period with such that for all .✦
An integer is the first mismatch after the seed of length at an integer , for bi-infinite words and a natural number , if , the words and agree on , and .✦
For natural numbers and , an integer tail length , a bi-infinite word , an integer seed start , and an optional marker position , an integer cut satisfies the episode endpoint condition if either the marker position gives an end anchor with and , or and there exists a short-period continuation of the block of length at in , with period bound , whose first mismatch with after the seed is .✦
Complete episodes
Every bounded search and seed inspection lies inside a complete episode. With canonical episode parameters having separation , modulus , and step , the uniform marker search radius is .✦
For a system of canonical episode parameters with uniform marker search radius , marker radius , and seed length , and for integers , , and , the seed and search window are visible at in when (3)✦
At an integer lag , put . The language of complete episodes consists of all finite words of length for which there exists a bi-infinite word such that occurs at in , the seed and search window are visible at in as in (3), and satisfies the episode endpoint condition on at for , , , and .✦
The claim
Lemma 6.2. Let be a system of canonical episode parameters over an alphabet , and let be a lag. Then the complete episode language satisfies (4)✦
In the paper, the result reads: the language of complete episodes (written here) is a prefix code of nonempty words, and the companion prefix-code lemmas also state invariance of end decisions under extension, with the height-four version including the bounded controls associated with its own construction.
What is checked
Lemma 6.2, displayed in (4), is stated over an alphabet , a system of canonical episode parameters , an integer lag , the complete episode language , and the prefix-code property.