The setting
An episode in a bi-infinite word over an alphabet is a block that starts at a seed of fixed length, and its cut follows the end anchor by the tail length . The end anchor of an episode in a bi-infinite word is the position found at the seed start by the canonical marker search, which seeks the leftmost eligible marker using the marker separation as its base radius, when that search finds a marker, and otherwise the first position after the seed where the word differs from a periodic word that agrees on the seed and has period smaller than the marker separation. The clock anchor of an episode is the position found by the large-radius marker search, which uses three times the marker separation as its base radius and returns a marker within the uniform bound on the distance from the seed start, or the end anchor when that search finds no marker. For a finite set of candidate origins from which the seed positions are measured, Lemma 6.3 gives conditions under which two words that agree on an interval share their cut and clock anchor, and conditions under which constancy of both marker searches gives the hypotheses needed on the comparison word.
Local marker rules
Let be an alphabet, and let be bi-infinite words over . For integers and , the words and agree on if for every integer with .✦ For a natural number , a natural number is a word period of a word of length over if for all indices satisfying .✦
For separation and radius , taking every integer position as a marker on every bi-infinite word gives a local marker rule. For natural numbers and , a local marker rule over with separation and seed length consists of an integer radius and a marker assignment mapping each bi-infinite word to a set of marker positions. Distinct markers satisfy . For any integer position and words and that agree on , one has if and only if . Under translation of the word by an integer , an integer position is a marker precisely when the corresponding position in is a marker, so if and only if . For every integer position with no element of in the closed interval , the block of length has a word period with .
Canonical episode parameters
A system of canonical episode parameters over consists of an integer modulus , an integer step , a marker separation with , a seed length with , an integer seed offset , an integer tail length , and a local marker rule over with separation and seed length .✦ The uniform marker search radius of a system of canonical episode parameters with modulus , step and marker separation is the integer given by .✦
Marker searches
For modulus , step , base radius , and displacement , the offset-dependent eligibility radius is the integer bound .✦ Given a marker set , a position satisfies the marker eligibility condition at center if and .✦ The eligible marker set is the finite set of positions in the closed integer interval that satisfy the marker eligibility condition at .✦ The leftmost eligible marker search on centered at returns the least element of when this set is nonempty, and returns otherwise.✦
The canonical marker search centered at for canonical episode parameters with marker assignment and a bi-infinite word is the leftmost eligible marker search on centered at with modulus , step , and base radius .✦ The large-radius marker search centered at is the leftmost eligible marker search on centered at with modulus , step , and base radius .✦
Episode endpoints
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 satisfies for all for some natural number with .✦ Given , , and a seed of length starting at , a position is the first mismatch after the seed between and if , and agree on , and .✦
Given a bi-infinite word , a seed start , an optional marker position , and a cut , the episode endpoint condition holds at with end anchor if either , or and there exists a short-period continuation of the block of length starting at in such that is the first mismatch after the seed between and .✦
Even when the canonical marker search returns no marker and the endpoint occurs arbitrarily late, the clock anchor stays within a bounded distance of the seed whenever the large-radius marker search succeeds. For canonical episode parameters , a large-radius marker search return and a cut , the clock anchor is the integer position given by (1). (1)✦
The endpoint transfer guard
The endpoint transfer guard requires to contain the seed and the full marker search window at every candidate origin. For canonical episode parameters and integers , the seed and search window are visible in if , , , and .✦
Given a finite set of candidate origins, a reference origin , bounds , and a bi-infinite word , the endpoint transfer guard holds if , the seed and search window at are visible in for every , both and for every , and the episode endpoint condition holds at .✦
The claim
Lemma 6.3. Let be canonical episode parameters over an alphabet , let be a finite set of candidate origins, and let satisfy and . Suppose that for every , the seed and search window at are visible in , and suppose that for a bi-infinite word , the episode endpoint condition holds at .
If , and if for some and some bi-infinite word the endpoint transfer guard holds and agrees with on , then (2)✦
If and every satisfies both and , then (3)✦
In the paper, with as the bound on the absolute size of a shift, the actual suffix of satisfies the paper’s condition if both end searches and at are unchanged by every shift divisible by of absolute value at most .
What is checked
The claims (2) and (3) are stated over an alphabet , local marker rules, canonical episode parameters, leftmost eligible marker searches, short-period continuations, first mismatches after the seed, the episode endpoint condition, the clock anchor (1), seed and search window visibility, and the endpoint transfer guard.