OctoInform Beta

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

Complete episode and endpoint: The language of finite words over an alphabet Σ\Sigma containing the blocks needed to determine an endpoint from a shifted origin

Complete episodes ending past markers or mismatches with periodic continuations.

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

Fix an alphabet Σ\Sigma, and write Σ*\Sigma^* for the set of finite words and Σℤ\Sigma^{\mathbb{Z}} for the set of bi-infinite words over Σ\Sigma. To segment bi-infinite words into canonical factors over Σ\Sigma using local marker rules, one selects an origin shifted by a lag and takes the block beginning there as the seed. A nearby marker can determine the endpoint, and when the marker search returns no position, the first mismatch with a periodic continuation of the seed can determine it. The complete episode language collects the finite words long enough to witness all required inspections up to the endpoint.

Word factors

Two bi-infinite words f,g∈Σℤf, g \in \Sigma^{\mathbb{Z}} agree on the half-open interval [l,r)[l, r), for integers l,r∈ℤl, r \in \mathbb{Z}, if f(x)=g(x)f(x) = g(x) for every x∈ℤx \in \mathbb{Z} satisfying l≤x<rl \le x < r.✦ A bi-infinite word f∈Σℤf \in \Sigma^{\mathbb{Z}} realizes a finite word w∈Σ*w \in \Sigma^* of length |w||w| at s∈ℤs \in \mathbb{Z} if f(s+i)f(s + i) equals the letter of ww at zero-based index ii for every integer 0≤i<|w|0 \le i < |w|.✦ For a word v∈ΣKv \in \Sigma^K of length K∈ℕK \in \mathbb{N}, write viv_i for its letter at zero-based index ii. A word period aa of vv is a natural number a∈ℕa \in \mathbb{N} such that vi=vjv_i = v_j for all zero-based indices 0≤i,j<K0 \le i, j < K satisfying j=i+aj = i + a.✦

Local marker rules

For a separation bound d∈ℕd \in \mathbb{N} and a block length K∈ℕK \in \mathbb{N}, a local marker rule R=(r,M)R = (r, M) over Σ\Sigma consists of an integer radius r≥Kr \ge K and a marker map M:Σℤ→𝒫(ℤ)M \colon \Sigma^{\mathbb{Z}} \to \mathcal{P}(\mathbb{Z}) satisfying separation, locality, translation invariance, and markerless periodicity for all w,w′∈Σℤw, w' \in \Sigma^{\mathbb{Z}} and x,y,z,h∈ℤx, y, z, h \in \mathbb{Z}.✦ Separation requires |x−y|≥d|x - y| \ge d for distinct x,y∈M(w)x, y \in M(w). Locality requires x∈M(w)x \in M(w) if and only if x∈M(w′)x \in M(w') whenever ww and w′w' agree on [x−r,x+r)[x - r, x + r). For the shifted word wh(i)=w(i+h)w_h(i) = w(i + h), translation invariance requires x∈M(wh)x \in M(w_h) if and only if x+h∈M(w)x + h \in M(w). Markerless periodicity requires that if [z−d,z+d][z - d, z + d] contains no point of M(w)M(w), then the length-KK block i↦w(z+i)i \mapsto w(z + i) (0≤i<K0 \le i < K) has a word period a∈ℕa \in \mathbb{N} with 0<a<d0 < a < d.

Marker searches

Given integers B,S,a∈ℤB, S, a \in \mathbb{Z}, the offset-dependent eligibility radius at displacement x∈ℤx \in \mathbb{Z} is ρB,S,a(x)=a+(xmod⁡B)S\rho_{B,S,a}(x) = a + (x \bmod B)S, where xmod⁡Bx \bmod B is the integer remainder of xx modulo BB.✦ For a marker set M⊆ℤM \subseteq \mathbb{Z}, parameters B,S,a∈ℤB, S, a \in \mathbb{Z}, and an origin z∈ℤz \in \mathbb{Z}, a position m∈ℤm \in \mathbb{Z} is eligible if m∈Mm \in M and |m−z|≤ρB,S,a(m−z)|m - z| \le \rho_{B,S,a}(m - z).✦ The eligible marker set FB,S,a(M,z)⊆ℤF_{B,S,a}(M, z) \subseteq \mathbb{Z} is the finite set of all eligible positions m∈ℤm \in \mathbb{Z} satisfying z−(a+(B−1)S)≤m≤z+(a+(B−1)S)z - (a + (B - 1)S) \le m \le z + (a + (B - 1)S).✦ Write ⊥\bot for the return when the search finds no eligible marker. For a marker set M⊆ℤM \subseteq \mathbb{Z}, parameters B,S,a∈ℤB, S, a \in \mathbb{Z}, and an origin z∈ℤz \in \mathbb{Z}, the leftmost eligible marker search search⁡B,S,a(M,z)∈ℤ∪{⊥}\operatorname{search}_{B,S,a}(M, z) \in \mathbb{Z} \cup \{\bot\} returns min⁡FB,S,a(M,z)\min F_{B,S,a}(M, z) when FB,S,a(M,z)F_{B,S,a}(M, z) is nonempty, and ⊥\bot otherwise.✦

Episode endpoints

Given a period bound d∈ℕd \in \mathbb{N} and a block length K∈ℕK \in \mathbb{N}, a bi-infinite word v∈Σℤv \in \Sigma^{\mathbb{Z}} is a short-period continuation of the length-KK block starting at z∈ℤz \in \mathbb{Z} in w∈Σℤw \in \Sigma^{\mathbb{Z}} if vv agrees with ww on [z,z+K)[z, z + K) and has a period a∈ℕa \in \mathbb{N} with 0<a<d0 < a < d, meaning v(x+a)=v(x)v(x + a) = v(x) for all x∈ℤx \in \mathbb{Z}.✦ For bi-infinite words w,v∈Σℤw, v \in \Sigma^{\mathbb{Z}}, a seed start z∈ℤz \in \mathbb{Z}, and a seed length K∈ℕK \in \mathbb{N}, a position q0∈ℤq_0 \in \mathbb{Z} is the first mismatch of ww with vv after the seed if q0≥z+Kq_0 \ge z + K, w(q0)≠v(q0)w(q_0) \ne v(q_0), and ww agrees with vv on [z,q0)[z, q_0).✦

When the marker search returns no position, a finite word supplies no complete episode until a mismatch with the seed’s periodic continuation occurs. Given d,K∈ℕd, K \in \mathbb{N}, a tail length Ltail∈ℤL_{\mathrm{tail}} \in \mathbb{Z}, a bi-infinite word w∈Σℤw \in \Sigma^{\mathbb{Z}}, an origin z∈ℤz \in \mathbb{Z}, and a search return η∈ℤ∪{⊥}\eta \in \mathbb{Z} \cup \{\bot\}, a position b∈ℤb \in \mathbb{Z} satisfies the endpoint condition ℰd,K,Ltail(w,z,η,b)\mathcal{E}_{d,K,L_{\mathrm{tail}}}(w, z, \eta, b) if either η=q0∈ℤ\eta = q_0 \in \mathbb{Z} (with end anchor q0q_0) and b=q0+Ltailb = q_0 + L_{\mathrm{tail}}, or η=⊥\eta = \bot and there exists a short-period continuation v∈Σℤv \in \Sigma^{\mathbb{Z}} of the length-KK block starting at zz in ww with period bound dd such that the end anchor q0=b−Ltailq_0 = b - L_{\mathrm{tail}} is the first mismatch of ww with vv after the seed.✦

Canonical episode parameters

A tuple of canonical episode parameters over Σ\Sigma is a septuple (B,S,d,K,o,Ltail,R)(B, S, d, K, o, L_{\mathrm{tail}}, R) consisting of integers B>0B > 0, S≥0S \ge 0, o∈ℤo \in \mathbb{Z}, and Ltail>0L_{\mathrm{tail}} > 0, natural numbers d≥2d \ge 2 and K>3d2K > 3d^2, and a local marker rule R=(r,M)R = (r, M) over Σ\Sigma with separation dd and block length KK.✦ The uniform marker search radius associated with canonical episode parameters (B,S,d,K,o,Ltail,R)(B, S, d, K, o, L_{\mathrm{tail}}, R) is the integer W=3d+(B−1)SW = 3d + (B - 1)S, and for any f∈Σℤf \in \Sigma^{\mathbb{Z}} and z∈ℤz \in \mathbb{Z}, the canonical marker search is ηf(z)=search⁡B,S,d(M(f),z)∈ℤ∪{⊥}\eta_f(z) = \operatorname{search}_{B,S,d}(M(f), z) \in \mathbb{Z} \cup \{\bot\}.✦

For canonical episode parameters (B,S,d,K,o,Ltail,R)(B, S, d, K, o, L_{\mathrm{tail}}, R) with uniform marker search radius WW and rule radius rr, seed and search window visibility is the condition V(s,b,z)V(s, b, z) on a start ss, an end cut bb, and an origin zz, with s,b,z∈ℤs, b, z \in \mathbb{Z}, that the inequalities in (1) are satisfied. 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.(1)✦

The definition

Definition. Let (B,S,d,K,o,Ltail,R)(B, S, d, K, o, L_{\mathrm{tail}}, R) be canonical episode parameters over Σ\Sigma, and let ℓ∈ℤ\ell \in \mathbb{Z} be an integer lag. With origin z=ℓ+oz = \ell + o, the complete episode language Eℓ⊆Σ*E_\ell \subseteq \Sigma^* is Eℓ={w∈Σ*:∃f∈Σℤ such that f realizes w at 0,V(0,|w|,z), and ℰd,K,Ltail(f,z,ηf(z),|w|)},E_\ell = \bigl\{ w \in \Sigma^* : \exists f \in \Sigma^{\mathbb{Z}} \text{ such that } f \text{ realizes } w \text{ at } 0, V(0, |w|, z), \text{ and } \mathcal{E}_{d,K,L_{\mathrm{tail}}}(f, z, \eta_f(z), |w|) \bigr\},(2)✦ where V(0,|w|,z)V(0, |w|, z) is the visibility condition (1) and ℰd,K,Ltail(f,z,ηf(z),|w|)\mathcal{E}_{d,K,L_{\mathrm{tail}}}(f, z, \eta_f(z), |w|) is the endpoint condition.

In the paper, an episode beginning at ss with a shift LL from its start has origin t=s+Lt = s + L (with tt in place of zz) and endpoint b=q0+Ltailb = q_0 + L_{\mathrm{tail}}, where in the markerless branch the end anchor q0q_0 is the first mismatch at or beyond the right end of the seed.

What is checked

The definition (2) of the complete episode language EℓE_\ell is stated over an alphabet Σ\Sigma, an integer lag ℓ∈ℤ\ell \in \mathbb{Z}, canonical episode parameters (B,S,d,K,o,Ltail,R)(B, S, d, K, o, L_{\mathrm{tail}}, R) with B>0B > 0, S≥0S \ge 0, d≥2d \ge 2, K>3d2K > 3d^2, Ltail>0L_{\mathrm{tail}} > 0, and a local marker rule RR of radius r≥Kr \ge K, together with word realization, seed and search window visibility (1), leftmost eligible marker search, and the endpoint condition.