OctoInform Beta

OpenAI preprint, September 2026 · §6. Complete episodes and their endpoints · §6

Lemma 6.3: A condition using search windows contained in the agreement interval and constant marker returns across nearby origins

When agreeing words share an episode’s cut and timing.

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

An episode in a bi-infinite word over an alphabet Σ\Sigma is a block that starts at a seed of fixed length, and its cut bb follows the end anchor q0q_0 by the tail length LtailL_{\mathrm{tail}}. The end anchor q0q_0 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 qq 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 q0q_0 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 Σ\Sigma be an alphabet, and let f,f′:ℤ→Σf, f' : \mathbb{Z} \to \Sigma be bi-infinite words over Σ\Sigma. For integers ll and l′l', the words ff and f′f' agree on [l,l′)[l, l') if f(x)=f′(x)f(x) = f'(x) for every integer xx with l≤x<l′l \le x < l'.✦ For a natural number KK, a natural number aa is a word period of a word vv of length KK over Σ\Sigma if v(i)=v(j)v(i) = v(j) for all indices 0≤i,j<K0 \le i, j < K satisfying j=i+aj = i + a.✦

For separation 11 and radius KK, taking every integer position as a marker on every bi-infinite word gives a local marker rule. For natural numbers dd and KK, a local marker rule RR over Σ\Sigma with separation dd and seed length KK consists of an integer radius r≥Kr \ge K and a marker assignment MM mapping each bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma to a set M(f)⊆ℤM(f) \subseteq \mathbb{Z} of marker positions. Distinct markers x,y∈M(f)x, y \in M(f) satisfy |x−y|≥d|x - y| \ge d. For any integer position xx and words ff and f′f' that agree on [x−r,x+r)[x - r, x + r), one has x∈M(f)x \in M(f) if and only if x∈M(f′)x \in M(f'). Under translation of the word ff by an integer aa, an integer position x∈ℤx \in \mathbb{Z} is a marker precisely when the corresponding position in ff is a marker, so x∈M(i↦f(i+a))x \in M(i \mapsto f(i + a)) if and only if x+a∈M(f)x + a \in M(f). For every integer position zz with no element of M(f)M(f) in the closed interval [z−d,z+d][z - d, z + d], the block i↦f(z+i)i \mapsto f(z + i) of length KK has a word period aa with 0<a<d0 < a < d.

Canonical episode parameters

A system of canonical episode parameters C=(B,S,d,K,δ,Ltail,R)C = (B, S, d, K, \delta, L_{\mathrm{tail}}, R) over Σ\Sigma consists of an integer modulus B>0B > 0, an integer step S≥0S \ge 0, a marker separation d∈ℕd \in \mathbb{N} with d≥2d \ge 2, a seed length K∈ℕK \in \mathbb{N} with K>3d2K > 3d^2, an integer seed offset δ\delta, an integer tail length Ltail>0L_{\mathrm{tail}} > 0, and a local marker rule RR over Σ\Sigma with separation dd and seed length KK.✦ The uniform marker search radius WW of a system of canonical episode parameters CC with modulus BB, step SS and marker separation dd is the integer given by W=3d+(B−1)SW = 3d + (B - 1)S.✦

Marker searches

For modulus BB, step SS, base radius c∈ℤc \in \mathbb{Z}, and displacement x∈ℤx \in \mathbb{Z}, the offset-dependent eligibility radius is the integer bound c+(xmod⁡B)Sc + (x \bmod B)S.✦ Given a marker set M⊆ℤM \subseteq \mathbb{Z}, a position m∈ℤm \in \mathbb{Z} satisfies the marker eligibility condition at center z∈ℤz \in \mathbb{Z} if m∈Mm \in M and |m−z|≤c+((m−z)mod⁡B)S|m - z| \le c + ((m - z) \bmod B)S.✦ The eligible marker set E(M,B,S,c,z)E(M, B, S, c, z) is the finite set of positions in the closed integer interval [z−(c+(B−1)S),z+(c+(B−1)S)][z - (c + (B - 1)S),\, z + (c + (B - 1)S)] that satisfy the marker eligibility condition at zz.✦ The leftmost eligible marker search on MM centered at zz returns the least element of E(M,B,S,c,z)E(M, B, S, c, z) when this set is nonempty, and returns ⊥\bot otherwise.✦

The canonical marker search ηf(z)\eta_f(z) centered at z∈ℤz \in \mathbb{Z} for canonical episode parameters CC with marker assignment MM and a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma is the leftmost eligible marker search on M(f)M(f) centered at zz with modulus BB, step SS, and base radius dd.✦ The large-radius marker search ζf(z)\zeta_f(z) centered at z∈ℤz \in \mathbb{Z} is the leftmost eligible marker search on M(f)M(f) centered at zz with modulus BB, step SS, and base radius 3d3d.✦

Episode endpoints

A bi-infinite word v:ℤ→Σv : \mathbb{Z} \to \Sigma is a short-period continuation of the block of length KK starting at z∈ℤz \in \mathbb{Z} in f:ℤ→Σf : \mathbb{Z} \to \Sigma (with period bound dd) if vv agrees with ff on [z,z+K)[z, z + K) and satisfies v(x+a)=v(x)v(x + a) = v(x) for all x∈ℤx \in \mathbb{Z} for some natural number aa with 0<a<d0 < a < d.✦ Given ff, vv, and a seed of length KK starting at zz, a position u∈ℤu \in \mathbb{Z} is the first mismatch after the seed between ff and vv if z+K≤uz + K \le u, ff and vv agree on [z,u)[z, u), and f(u)≠v(u)f(u) \ne v(u).✦

Given a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma, a seed start z∈ℤz \in \mathbb{Z}, an optional marker position η∈ℤ∪{⊥}\eta \in \mathbb{Z} \cup \{\bot\}, and a cut b∈ℤb \in \mathbb{Z}, the episode endpoint condition holds at (f,z,η,b)(f, z, \eta, b) with end anchor q0=b−Ltailq_0 = b - L_{\mathrm{tail}} if either η=q0∈ℤ\eta = q_0 \in \mathbb{Z}, or η=⊥\eta = \bot and there exists a short-period continuation vv of the block of length KK starting at zz in ff such that q0q_0 is the first mismatch after the seed between ff and vv.✦

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 CC, a large-radius marker search return ζ∈ℤ∪{⊥}\zeta \in \mathbb{Z} \cup \{\bot\} and a cut b∈ℤb \in \mathbb{Z}, the clock anchor q(ζ,b)q(\zeta, b) is the integer position given by (1). q(ζ,b)={ζ,ζ≠⊥,b−Ltail,ζ=⊥.q(\zeta, b) = \begin{cases} \zeta, & \zeta \ne \bot,\\ b - L_{\mathrm{tail}}, & \zeta = \bot. \end{cases}(1)✦

The endpoint transfer guard

The endpoint transfer guard requires [s,b)[s,b) to contain the seed and the full marker search window at every candidate origin. For canonical episode parameters CC and integers s,b,z∈ℤs, b, z \in \mathbb{Z}, the seed [z,z+K)[z, z + K) and search window [z−W−r,z+W+r)[z - W - r, z + W + r) are visible in [s,b)[s, b) if s≤z−W−rs \le z - W - r, z+W+r≤bz + W + r \le b, s≤zs \le z, and z+K≤bz + K \le b.✦

Given a finite set O⊆ℤO \subseteq \mathbb{Z} of candidate origins, a reference origin t0∈ℤt_0 \in \mathbb{Z}, bounds s,b∈ℤs, b \in \mathbb{Z}, and a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma, the endpoint transfer guard 𝒢(O,t0,s,b,f)\mathcal{G}(O, t_0, s, b, f) holds if t0∈Ot_0 \in O, the seed and search window at t′+δt' + \delta are visible in [s,b)[s, b) for every t′∈Ot' \in O, both ηf(t′+δ)=ηf(t0+δ)\eta_f(t' + \delta) = \eta_f(t_0 + \delta) and ζf(t′+δ)=ζf(t0+δ)\zeta_f(t' + \delta) = \zeta_f(t_0 + \delta) for every t′∈Ot' \in O, and the episode endpoint condition holds at (f,t0+δ,ηf(t0+δ),b)(f, t_0 + \delta, \eta_f(t_0 + \delta), b).✦

The claim

Lemma 6.3. Let C=(B,S,d,K,δ,Ltail,R)C = (B, S, d, K, \delta, L_{\mathrm{tail}}, R) be canonical episode parameters over an alphabet Σ\Sigma, let O⊆ℤO \subseteq \mathbb{Z} be a finite set of candidate origins, and let t0,t,s,b∈ℤt_0, t, s, b \in \mathbb{Z} satisfy |t−t0|<K|t - t_0| < K and d2≤K−|t−t0|d^2 \le K - |t - t_0|. Suppose that for every t′∈Ot' \in O, the seed and search window at t′+δt' + \delta are visible in [s,b)[s, b), and suppose that for a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma, the episode endpoint condition holds at (f,t+δ,ηf(t+δ),b)(f, t + \delta, \eta_f(t + \delta), b).

If t∈Ot \in O, and if for some b′∈ℤb' \in \mathbb{Z} and some bi-infinite word g:ℤ→Σg : \mathbb{Z} \to \Sigma the endpoint transfer guard 𝒢(O,t0,s,b′,g)\mathcal{G}(O, t_0, s, b', g) holds and ff agrees with gg on [s,min⁡{b,b′})[s, \min\{b, b'\}), then b=b′andq(ζf(t+δ),b)=q(ζg(t0+δ),b′).b = b' \quad\text{and}\quad q\bigl(\zeta_f(t + \delta), b\bigr) = q\bigl(\zeta_g(t_0 + \delta), b'\bigr).(2)✦

If t0∈Ot_0 \in O and every t′∈Ot' \in O satisfies both ηf(t′+δ)=ηf(t+δ)\eta_f(t' + \delta) = \eta_f(t + \delta) and ζf(t′+δ)=ζf(t+δ)\zeta_f(t' + \delta) = \zeta_f(t + \delta), then 𝒢(O,t0,s,b,f).\mathcal{G}(O, t_0, s, b, f).(3)✦

In the paper, with ww as the bound on the absolute size of a shift, the actual suffix of ff satisfies the paper’s condition if both end searches ηf\eta_f and ζf\zeta_f at tt are unchanged by every shift divisible by BB of absolute value at most ww.

What is checked

The claims (2) and (3) are stated over an alphabet Σ\Sigma, 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.