OctoInform Beta

OpenAI preprint, September 2026 · §6. Complete episodes and their endpoints · §6 · Finite Monoid Computations and a Uniform Generalized Star-Height Bound, Lemma 4.5 · Generalized Star Height at Most Four, Lemma 5.4

Lemma 6.2: For canonical episode parameters and a fixed integer lag, the words containing the seed and its search window and ending at the prescribed cut

Complete episodes form a prefix code.

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

Over an alphabet Σ\Sigma, 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 ε\varepsilon, a language E⊆Σ*E \subseteq \Sigma^* is a prefix code if ε∉E\varepsilon \notin E and, whenever u,v∈Eu, v \in E satisfy that uu is a prefix of vv, one has u=vu = v.✦

Word intervals

Two bi-infinite words f,g:ℤ→Σf, g : \mathbb{Z} \to \Sigma agree on [l,r)[l, r), for integers ll and rr, if f(x)=g(x)f(x) = g(x) for every integer xx with l≤x<rl \le x < r.✦

A finite word w∈Σ*w \in \Sigma^* of length nn occurs at an integer position ss in a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma if f(s+i)=wif(s + i) = w_i for every integer ii with 0≤i<n0 \le i < n, where wiw_i is the letter of ww at zero-based index ii.✦

Local marker rules

For a natural number KK, a natural number aa is a word period of a word vv of length KK over Σ\Sigma if vi=vjv_i = v_j for all indices i,j∈{0,…,K−1}i, j \in \{0, \ldots, K - 1\} satisfying i+a=ji + a = j.✦

Given natural numbers dd and KK, a local marker rule RR over Σ\Sigma with separation dd and block length KK consists of an integer radius r≥Kr \ge K and a map PP assigning to each bi-infinite word w:ℤ→Σw : \mathbb{Z} \to \Sigma a marker set P(w)⊆ℤP(w) \subseteq \mathbb{Z} that satisfies (1) for all bi-infinite words w,w′:ℤ→Σw, w' : \mathbb{Z} \to \Sigma and all integers x,y,z,ax, y, z, a, with cc denoting a word period in the markerless periodicity condition. (separation)x,y∈P(w),x≠y⟹|x−y|≥d,(locality)w and w′ agree on [x−r,x+r)⟹(x∈P(w)⇔x∈P(w′)),(translation)x∈P(i↦w(i+a))⇔x+a∈P(w),(markerless periodicity)(∀u∈[z−d,z+d]∩ℤ,u∉P(w))⟹(w(z+i))0≤i<K has word period 0<c<d.\begin{aligned} &\text{(separation)} && x, y \in P(w),\ x \ne y \implies |x - y| \ge d, \\ &\text{(locality)} && w \text{ and } w' \text{ agree on } [x - r, x + r) \implies \bigl(x \in P(w) \iff x \in P(w')\bigr), \\ &\text{(translation)} && x \in P(i \mapsto w(i + a)) \iff x + a \in P(w), \\ &\text{(markerless periodicity)} && \bigl(\forall u \in [z - d, z + d] \cap \mathbb{Z},\ u \notin P(w)\bigr) \implies \bigl(w(z + i)\bigr)_{0 \le i < K} \text{ has word period } 0 < c < d. \end{aligned}(1)

A complete episode ends at b=q0+tb=q_0+t, where q0q_0 is the position returned by ηC(f,z)\eta_C(f,z) if present and otherwise the first mismatch with the seed’s periodic continuation. A system of canonical episode parameters CC over Σ\Sigma consists of an integer modulus B>0B > 0, an integer step S≥0S \ge 0, a natural number separation d≥2d \ge 2, a natural number seed length K>3d2K > 3d^2, an integer seed offset δ\delta, an integer tail length t>0t > 0, and a local marker rule RR over Σ\Sigma with separation dd and block length KK.✦

Marker searches

For integers BB, SS, and aa, the offset-dependent eligibility radius at integer displacement xx is ρB,S,a(x)=a+(xmod⁡B)S.\rho_{B,S,a}(x) = a + (x \bmod B)S.(2)✦

Given a marker set M⊆ℤM \subseteq \mathbb{Z}, a center z∈ℤz \in \mathbb{Z}, and integers BB, SS, and aa, an integer mm satisfies the marker eligibility condition at zz if m∈Mm \in M and |m−z|≤ρB,S,a(m−z)|m - z| \le \rho_{B,S,a}(m - z) as defined in (2).✦

The eligible marker set FB,S,a(M,z)F_{B,S,a}(M, z) is the finite set of all integers mm in the closed interval [z−(a+(B−1)S),z+(a+(B−1)S)][z - (a + (B - 1)S), z + (a + (B - 1)S)] that satisfy the marker eligibility condition for MM at zz.✦

For a marker set M⊆ℤM \subseteq \mathbb{Z}, an integer center zz, and integers BB, SS, and aa, the leftmost eligible marker search with modulus BB, step SS, and base radius aa returns the least element of FB,S,a(M,z)F_{B,S,a}(M, z) when that set has a least element and the no-position symbol ⊥\bot when it is empty.✦

The canonical marker search ηC(f,z)∈ℤ∪{⊥}\eta_C(f, z) \in \mathbb{Z} \cup \{\bot\} is the leftmost eligible marker search on P(f)P(f) at an integer center zz with modulus BB, step SS, and base radius dd, for a system of canonical episode parameters CC and a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma.✦

Episode endpoints

Given natural numbers dd and KK, a bi-infinite word w:ℤ→Σw : \mathbb{Z} \to \Sigma, and an integer position zz, a bi-infinite word v:ℤ→Σv : \mathbb{Z} \to \Sigma is a short-period continuation of the block of length KK starting at zz in ww with period bound dd if vv agrees with ww on [z,z+K)[z, z + K) and there exists an integer period aa with 0<a<d0 < a < d such that v(x+a)=v(x)v(x + a) = v(x) for all x∈ℤx \in \mathbb{Z}.✦

An integer pp is the first mismatch after the seed of length KK at an integer zz, for bi-infinite words w,v:ℤ→Σw, v : \mathbb{Z} \to \Sigma and a natural number KK, if z+K≤pz + K \le p, the words ww and vv agree on [z,p)[z, p), and w(p)≠v(p)w(p) \ne v(p).✦

For natural numbers dd and KK, an integer tail length tt, a bi-infinite word w:ℤ→Σw : \mathbb{Z} \to \Sigma, an integer seed start zz, and an optional marker position η∈ℤ∪{⊥}\eta \in \mathbb{Z} \cup \{\bot\}, an integer cut bb satisfies the episode endpoint condition if either the marker position gives an end anchor q0q_0 with η=q0∈ℤ\eta = q_0 \in \mathbb{Z} and b=q0+tb = q_0 + t, or η=⊥\eta = \bot and there exists a short-period continuation v:ℤ→Σv : \mathbb{Z} \to \Sigma of the block of length KK at zz in ww, with period bound dd, whose first mismatch with ww after the seed is b−tb - t.✦

Complete episodes

Every bounded search and seed inspection lies inside a complete episode. With canonical episode parameters CC having separation dd, modulus BB, and step SS, the uniform marker search radius is W=3d+(B−1)SW = 3d + (B - 1)S.✦

For a system of canonical episode parameters CC with uniform marker search radius WW, marker radius rr, and seed length KK, and for integers ss, bb, and zz, the seed and search window are visible at zz in [s,b)[s, b) when s≤z−W−r,z+W+r≤b,s≤z,z+K≤b.s \le z - W - r, \qquad z + W + r \le b, \qquad s \le z, \qquad z + K \le b.(3)✦

At an integer lag ℓ\ell, put z=ℓ+δz = \ell + \delta. The language of complete episodes Eℓ⊆Σ*E_\ell \subseteq \Sigma^* consists of all finite words ww of length bb for which there exists a bi-infinite word f:ℤ→Σf : \mathbb{Z} \to \Sigma such that ww occurs at 00 in ff, the seed and search window are visible at zz in [0,b)[0, b) as in (3), and bb satisfies the episode endpoint condition on ff at zz for dd, KK, tt, and ηC(f,z)\eta_C(f, z).✦

The claim

Lemma 6.2. Let CC be a system of canonical episode parameters over an alphabet Σ\Sigma, and let ℓ∈ℤ\ell \in \mathbb{Z} be a lag. Then the complete episode language EℓE_\ell satisfies ε∉Eℓand(u,v∈Eℓ with u a prefix of v⟹u=v).\varepsilon \notin E_\ell \quad\text{and}\quad \bigl(u, v \in E_\ell \text{ with } u \text{ a prefix of } v \implies u = v\bigr).(4)✦

In the paper, the result reads: the language EE of complete episodes (written EℓE_\ell 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 Σ\Sigma, a system of canonical episode parameters CC, an integer lag ℓ\ell, the complete episode language EℓE_\ell, and the prefix-code property.