OctoInform Beta

OpenAI preprint, September 2026 · §1. Introduction

§1. Machine model and simulators: Single-writable-tape machines with read-only heads, polylogarithmic symbol access, and compiling binary stack machines to Turing machines

Machine model, access condition, and space-bounded simulators.

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

To simulate time-TT computations of a deterministic one-writable-tape machine in space T2/5polylog(T)T^{2/5} \mathrm{polylog}(T), one needs a uniform machine model for the simulated computation, a space-bounded access interface for its initial tape and read-only input heads, and a concrete Turing machine model for the simulator. The simulator algorithms are most convenient to design using finite collections of binary stacks, which are then compiled to multi-tape Turing machines with a constant-factor space overhead.

This page introduces the deterministic single-writable-tape machine with read-only heads, the multi-tape Turing machine model with explicit space windows, the polylogarithmic symbol access condition, and the binary stack machine compiler, together with three foundational guarantees: halted configurations remain fixed, polylogarithmic access yields an explicit uniform space bound in terms of the fifth-root cost function, and stack-height bounds compile to Turing machine space bounds.

Single-tape machines with read-only heads

A head move direction is an element of Dir={L,N,R}\mathrm{Dir} = \{L, N, R\}, with integer displacement δ(L)=−1\delta(L) = -1, δ(N)=0\delta(N) = 0, and δ(R)=1\delta(R) = 1. For any alphabet AA, a write-and-move action is a pair (a,d)∈A×Dir(a, d) \in A \times \mathrm{Dir}.✦ A two-way tape over AA is a pair τ=(p,c)\tau = (p, c) consisting of a head position p∈ℤp \in \mathbb{Z} and a content map c:ℤ→Ac : \mathbb{Z} \to A.✦ The blank tape for a∈Aa \in A has head position 00 and constant content aa.✦ Reading τ\tau returns c(p)c(p)✦, and performing (a,d)(a, d) updates cell pp to aa (leaving all other cells unchanged) and moves the head to p+δ(d)p + \delta(d).✦

Let XX be a public input alphabet. A single-tape machine MM over XX consists of a finite state set QQ with initial state q0∈Qq_0 \in Q and halting predicate halted:Q→{false,true}\mathrm{halted} : Q \to \{\mathrm{false}, \mathrm{true}\}, a finite common tape alphabet AA, a number r∈ℕr \in \mathbb{N} of read-only input heads, a transition program, and a sensor function.✦ The head tag set is Tag={⊥}∪{0,…,r−1}\mathrm{Tag} = \{\bot\} \cup \{0, \dots, r - 1\}, where ⊥\bot identifies the initial writable tape and i∈{0,…,r−1}i \in \{0, \dots, r - 1\} identifies the ii-th read-only head.✦ The sensor function σ:X*×Tag×ℤ→A\sigma : X^* \times \mathrm{Tag} \times \mathbb{Z} \to A gives the symbol σ(x,h,l)\sigma(x, h, l) at integer displacement ll from the origin of tag hh on public input x∈X*x \in X^*. The transition program maps a state q∈Qq \in Q, the writable-tape symbol, and the rr-tuple of read-only head symbols to a transition action consisting of a next state q′∈Qq' \in Q, a write-and-move action in A×DirA \times \mathrm{Dir} for the writable tape, and a direction in Dir\mathrm{Dir} for each read-only head.

A configuration of MM is a triple (q,τ,ρ)(q, \tau, \rho) consisting of a state q∈Qq \in Q, a two-way tape τ\tau over AA, and read-only head positions ρ:{0,…,r−1}→ℤ\rho : \{0, \dots, r - 1\} \to \mathbb{Z}.✦ On public input x∈X*x \in X^*, the initial configuration has state q0q_0, writable tape (0,l↦σ(x,⊥,l))(0, l \mapsto \sigma(x, \bot, l)), and all read-only heads at 00.✦ The halting-aware transition leaves the state, writable symbol, and all heads stationary when halted(q)=true\mathrm{halted}(q) = \mathrm{true}, and otherwise applies the transition program.✦ One step from (q,τ,ρ)(q, \tau, \rho) reads the writable symbol and the symbols σ(x,i,ρ(i))\sigma(x, i, \rho(i)), applies the halting-aware transition, updates the writable tape, and adds δ(di)\delta(d_i) to each read-only head position ρ(i)\rho(i).✦ Iterating this step n∈ℕn \in \mathbb{N} times from the initial configuration yields the configuration ConfM(x,n)\mathrm{Conf}_M(x, n).✦ An outcome of MM is a pair (q,b)∈Q×{false,true}(q, b) \in Q \times \{\mathrm{false}, \mathrm{true}\}✦; the outcome at step nn is OutM(x,n)=(qn,halted(qn))\mathrm{Out}_M(x, n) = (q_n, \mathrm{halted}(q_n)), where qnq_n is the state of ConfM(x,n)\mathrm{Conf}_M(x, n), and false\mathrm{false} indicates that MM is still running.✦

Multi-tape Turing machines and space bounds

For any alphabet AA, the endmarked alphabet is Mark(A)={⊢,⊣}∪A\mathrm{Mark}(A) = \{\vdash, \dashv\} \cup A, where ⊢\vdash and ⊣\dashv are the left and right endmarkers.✦ Given a finite word w∈A*w \in A^* and position p∈ℕp \in \mathbb{N}, the symbol observed at pp is ⊢\vdash if p=0p = 0, the (p−1)(p - 1)-st symbol of ww (zero-indexed) if 1≤p≤|w|1 \le p \le |w|, and ⊣\dashv if p>|w|p > |w|.✦ Moving from pp on ww in direction d∈Dird \in \mathrm{Dir} leaves pp unchanged for NN, yields max⁡(p−1,0)\max(p - 1, 0) for LL, and yields pp if p>|w|p > |w| or p+1p + 1 if p≤|w|p \le |w| for RR.✦

For a public alphabet XX and an argument index set JJ, a read-only input is a pair i=(x,(argj)j∈J)i = (x, (\mathrm{arg}_j)_{j \in J}) consisting of a public word x∈X*x \in X^* and binary argument words argj∈{0,1}*\mathrm{arg}_j \in \{0, 1\}^*.✦ In particular, given x∈X*x \in X^* and f:J→ℕf : J \to \mathbb{N}, the binary-encoded input binaryIn(x,f)\mathrm{binaryIn}(x, f) has public word xx and each argj\mathrm{arg}_j equal to the little-endian binary bit list of f(j)f(j) (with 00 encoded as the empty word).✦ An input head state consists of positions px∈ℕp_x \in \mathbb{N} and pj∈ℕp_j \in \mathbb{N} for j∈Jj \in J, initially all 00.✦ Reading the input heads produces an observation in Mark(X)×(Mark({0,1}))J\mathrm{Mark}(X) \times (\mathrm{Mark}(\{0, 1\}))^J, and an input head movement tuple (dx,(dj)j∈J)∈Dir×DirJ(d_x, (d_j)_{j \in J}) \in \mathrm{Dir} \times \mathrm{Dir}^J updates each position via the endmarked walk rule on its word.

Given a partial transition map f:Σ→Y⊔Σf : \Sigma \to Y \sqcup \Sigma and a predicate PP on a configuration space Σ\Sigma, a halting transition run from s∈Σs \in \Sigma to t∈Σt \in \Sigma with output y∈Yy \in Y within PP is defined inductively: if P(s)P(s) holds and f(s)=yf(s) = y, then there is a run from ss to ss outputting yy; if P(s)P(s) holds, f(s)=s′∈Σf(s) = s' \in \Sigma, and there is a run from s′s' to tt outputting yy, then there is a run from ss to tt outputting yy.✦

A multi-tape Turing machine 𝒯\mathcal{T} with public alphabet XX, argument index set JJ, and output type YY consists of a finite state set Q𝒯Q_{\mathcal{T}} with start state q𝒯,0q_{\mathcal{T},0}, a finite work-tape index set KK, a finite work-tape alphabet WkW_k with blank symbol bk∈Wkb_k \in W_k for each k∈Kk \in K, and a transition table mapping a state, an input observation, and a tuple of work-tape symbols either to an output y∈Yy \in Y or to a next state, an input head movement tuple, and a write-and-move action in Wk×DirW_k \times \mathrm{Dir} for each k∈Kk \in K.✦ A configuration consists of a state, input head positions, and a two-way tape over WkW_k for each k∈Kk \in K✦; the initial configuration starts at q𝒯,0q_{\mathcal{T},0} with all input heads at 00 and each work tape blank for bkb_k.✦ One step evaluates the transition table on the observed symbols and either halts with yy or updates the state, input heads, and work tapes.✦

For m∈ℕm \in \mathbb{N}, let bitlen(m)\mathrm{bitlen}(m) be its binary length (00 if m=0m = 0, and ⌊log⁡2m⌋+1\lfloor \log_2 m \rfloor + 1 if m≥1m \ge 1). A space window for 𝒯\mathcal{T} is a pair of bounds w=(ℓk,hk)k∈Kw = (\ell_k, h_k)_{k \in K} with ℓk,hk∈ℕ\ell_k, h_k \in \mathbb{N}.✦ A configuration lies inside ww if every work-tape head position pkp_k satisfies −ℓk≤pk≤hk-\ell_k \le p_k \le h_k.✦ The symbol bit width wkw_k of tape kk and the bit width bits(w)\mathrm{bits}(w) of ww are given by wk=max⁡(1,bitlen(|Wk|−1)),bits(w)=∑k∈K(ℓk+hk+1)wk.\begin{aligned} w_k &= \max\bigl(1, \mathrm{bitlen}(|W_k| - 1)\bigr), \\ \mathrm{bits}(w) &= \sum_{k \in K} (\ell_k + h_k + 1)\, w_k. \end{aligned}(1) The machine 𝒯\mathcal{T} computes y∈Yy \in Y on input ii within space S∈ℕS \in \mathbb{N} if there exist a space window ww with bits(w)≤S\mathrm{bits}(w) \le S and a terminal configuration tt such that there is a halting run of 𝒯\mathcal{T} on ii from the initial configuration to tt outputting yy whose configurations all lie inside ww.✦

Polylogarithmic symbol access

For a time cap T∈ℕT \in \mathbb{N} and an exponent parameter u∈ℕu \in \mathbb{N}, the integer bit length lg⁡(T)\lg(T), fifth-root exponent power(T)\mathrm{power}(T), block parameter K(T)K(T), shifted binary logarithm Log(T)\mathrm{Log}(T), and space bound function bound(u,T)\mathrm{bound}(u, T) are defined by lg⁡(T)=bitlen(T)+1,power(T)=⌊(bitlen(T)+4)/5⌋,K(T)=2power(T),Log(T)=ln⁡(T+2)ln⁡2,bound(u,T)=K(T)2lg⁡(T)u+2.\begin{aligned} \lg(T) &= \mathrm{bitlen}(T) + 1, \\ \mathrm{power}(T) &= \lfloor (\mathrm{bitlen}(T) + 4) / 5 \rfloor, \\ K(T) &= 2^{\mathrm{power}(T)}, \\ \mathrm{Log}(T) &= \frac{\ln(T + 2)}{\ln 2}, \\ \mathrm{bound}(u, T) &= K(T)^2 \, \lg(T)^{u + 2}. \end{aligned}(2)

Fix a single-tape machine MM over XX with tape alphabet AA and tag set Tag\mathrm{Tag}. Fix a canonical bijection from each finite set UU to {0,…,|U|−1}\{0, \dots, |U| - 1\}, writing code(a)∈ℕ\mathrm{code}(a) \in \mathbb{N} for the index of a∈Ua \in U.✦ Let Arg={cap,tag,minus,magnitude}\mathrm{Arg} = \{\mathrm{cap}, \mathrm{tag}, \mathrm{minus}, \mathrm{magnitude}\}. For T∈ℕT \in \mathbb{N}, h∈Tagh \in \mathrm{Tag}, and l∈ℤl \in \mathbb{Z}, the encoded sensor query arg(T,h,l):Arg→ℕ\mathrm{arg}(T, h, l) : \mathrm{Arg} \to \mathbb{N} maps cap↦T\mathrm{cap} \mapsto T, tag↦code(h)\mathrm{tag} \mapsto \mathrm{code}(h), minus↦1\mathrm{minus} \mapsto 1 if l<0l < 0 and 00 otherwise, and magnitude↦|l|\mathrm{magnitude} \mapsto |l|.✦ A sensor accessor for MM is a multi-tape Turing machine 𝒮\mathcal{S} with public alphabet XX, argument index set Arg\mathrm{Arg}, and output type AA.✦

Ordinary input tapes satisfy the polylogarithmic access condition for every time cap by storing the requested coordinate and rescanning to that position or an endmarker. A coordinate l∈ℤl \in \mathbb{Z} lies in the cap-TT range if −T≤l≤T-T \le l \le T.✦ Given p,q∈ℝp, q \in \mathbb{R}, x∈X*x \in X^*, and T∈ℕT \in \mathbb{N}, the polylogarithmic access condition holds for (𝒮,p,q,x,T)(\mathcal{S}, p, q, x, T) if for every tag h∈Tagh \in \mathrm{Tag} and every integer ll with −T≤l≤T-T \le l \le T, there exists s∈ℕs \in \mathbb{N} with s≤p(Log(T))qs \le p\,(\mathrm{Log}(T))^q such that 𝒮\mathcal{S} computes σ(x,h,l)\sigma(x, h, l) on binaryIn(x,arg(T,h,l))\mathrm{binaryIn}(x, \mathrm{arg}(T, h, l)) within space ss.✦ The accessor 𝒮\mathcal{S} provides uniform space-SS access on (x,T)(x, T) for S∈ℕS \in \mathbb{N} if for every h∈Tagh \in \mathrm{Tag} and every integer ll with −T≤l≤T-T \le l \le T, 𝒮\mathcal{S} computes σ(x,h,l)\sigma(x, h, l) on binaryIn(x,arg(T,h,l))\mathrm{binaryIn}(x, \mathrm{arg}(T, h, l)) within space SS.✦

Binary stack machines and compilation

A stack operation is an element of StOp={keep,push(0),push(1),pop}\mathrm{StOp} = \{\mathrm{keep}, \mathrm{push}(0), \mathrm{push}(1), \mathrm{pop}\}.✦ Applied to a bit list s∈{0,1}*s \in \{0, 1\}^*, keep\mathrm{keep} leaves ss unchanged, push(b)\mathrm{push}(b) prepends bb to ss, and pop\mathrm{pop} removes the head bit of ss (leaving the empty list empty).✦ For an argument index set JJ and a stack index set KK, a store consists of input head positions on (X,J)(X, J) and a stack sk∈{0,1}*s_k \in \{0, 1\}^* for each k∈Kk \in K.✦ The initial store places all input heads at 00 and sets every stack empty.✦ Reading the store returns the top bit of each stack (or ⊥\bot if empty).✦ A store update consists of an input head movement tuple and a family of stack operations (opsk)k∈K(\mathrm{ops}_k)_{k \in K}✦; performing it advances the input heads and applies each opsk\mathrm{ops}_k to sks_k.✦ A store satisfies height bound B∈ℕB \in \mathbb{N} if |sk|≤B|s_k| \le B for every k∈Kk \in K.✦

A binary stack machine NN over (X,J,K,Y)(X, J, K, Y) consists of a finite state set QNQ_N, a start state qN,0∈QNq_{N,0} \in Q_N, and a transition table mapping a state, an input observation, and the top-of-stack observations in ({0,1}∪{⊥})K(\{0, 1\} \cup \{\bot\})^K either to an output y∈Yy \in Y or to a next state and a store update.✦ A configuration is a pair (q,s)(q, s) of a state and a store✦; one step evaluates the transition table and either halts with yy or updates the state and store.✦ A space-bounded execution of NN on input ii with height bound BB from store ss to store tt outputting yy is a halting run from (qN,0,s)(q_{N,0}, s) to (q,t)(q, t) for some state q∈QNq \in Q_N in which every visited store satisfies height bound BB.✦

When KK is finite, NN compiles to a multi-tape Turing machine NTMN_{\mathrm{TM}} over (X,J,Y)(X, J, Y) with state set QN⊔(QN×StOpK)Q_N \sqcup \bigl(Q_N \times \mathrm{StOp}^K\bigr), work-tape index set KK, cell alphabet {0,1,⊥}\{0, 1, \bot\} with blank ⊥\bot on every tape, and start state inl(qN,0)\mathrm{inl}(q_{N,0}).✦ Each step of NN is simulated in two phases. In the first phase, from inl(q)\mathrm{inl}(q), NTMN_{\mathrm{TM}} queries the table of NN; if NN halts with yy, then NTMN_{\mathrm{TM}} halts with yy, and otherwise it advances the input heads as NN does, transitions to inr(q′,ops)\mathrm{inr}(q', \mathrm{ops}), and on each tape kk with current cell rr performs: write rr and stay for keep\mathrm{keep}; write rr and move right for push(b)\mathrm{push}(b); write ⊥\bot and move left if r≠⊥r \ne \bot (or stay if r=⊥r = \bot) for pop\mathrm{pop}. In the second phase, from inr(q′,ops)\mathrm{inr}(q', \mathrm{ops}), NTMN_{\mathrm{TM}} keeps all input heads stationary, transitions to inl(q′)\mathrm{inl}(q'), and on each tape kk stays in place, writing bb for push(b)\mathrm{push}(b) and keeping rr otherwise. The stack-to-tape space multiplier of NN is μ(N)=∑k∈Kwk,\mu(N) = \sum_{k \in K} w_k,(3)✦ where wkw_k is the symbol bit width of tape kk of NTMN_{\mathrm{TM}} from (1).

The claim

Theorem. Let XX be an alphabet and let MM be a single-tape machine over XX.

  1. For every public input x∈X*x \in X^* and n∈ℕn \in \mathbb{N}, if the halting flag of OutM(x,n)\mathrm{Out}_M(x, n) is true\mathrm{true}, then for every m∈ℕm \in \mathbb{N}, ConfM(x,n+m)=ConfM(x,n).\mathrm{Conf}_M(x, n + m) = \mathrm{Conf}_M(x, n).(4)✦

  2. For every sensor accessor 𝒮\mathcal{S} for MM and real numbers p,qp, q with p≥1p \ge 1, there exist u,c∈ℕu, c \in \mathbb{N} such that for every public input x∈X*x \in X^* and time cap T∈ℕT \in \mathbb{N}, whenever the polylogarithmic access condition holds for (𝒮,p,q,x,T)(\mathcal{S}, p, q, x, T), the accessor 𝒮\mathcal{S} provides uniform space-SS access on (x,T)(x, T) with S=c(bound(u,T)+1).S = c\bigl(\mathrm{bound}(u, T) + 1\bigr).(5)✦

  3. Let JJ and YY be sets, let KK be a finite set, and let NN be a binary stack machine over (X,J,K,Y)(X, J, K, Y). If NN has a space-bounded execution on a read-only input ii from the initial store to some store tt outputting y∈Yy \in Y with stack height bound B∈ℕB \in \mathbb{N}, then its compiled Turing machine NTMN_{\mathrm{TM}} computes yy on ii inside a space window ww satisfying bits(w)≤μ(N)(B+1).\mathrm{bits}(w) \le \mu(N)(B + 1).(6)✦

In the paper, the result reads: a fixed deterministic machine has one two-sided writable tape, a fixed number of read-only input heads with cap-independent symbol functions σh(x,q)\sigma_h(x, q) (written σ(x,h,q)\sigma(x, h, q) above), and a deterministic space-bounded accessor that returns σh(x,q)\sigma_h(x, q) for |q|≤T|q| \le T using at most C0log⁡C1(T+2)C_0 \log^{C_1}(T + 2) work-space bits. In the Lean library, all tapes share one common finite alphabet AA with coordinates given as integer displacements from fixed origins, and simulator algorithms are expressed as binary stack machines compiled to multi-tape Turing machines.

What is checked

In the Lean library, the claims (4), (5), and (6) are stated over the single-tape machine model MM with sensor interface σ\sigma, the multi-tape Turing machine model with explicit space windows (1), the cost functions (2) and polylogarithmic access condition, and the two-phase stack-to-Turing compilation NTMN_{\mathrm{TM}} with multiplier (3).