OctoInform Beta

OpenAI preprint, September 2026 · §4. Encoding computations by short consistency instances

Theorem 4.3: Diameter-two nn-vertex graphs whose Weisfeiler-Leman equivalence captures non-acceptance of a one-tape Turing machine

Encoding one-tape Turing machine computations in Weisfeiler-Leman equivalence.

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

Unconditional time lower bounds for kk-dimensional Weisfeiler-Leman (kk-WL) graph equivalence rely on encoding the acceptance problem of a deterministic one-tape Turing machine into the inequivalence of two small graphs. Given a binary input word ww of length mm and a time-bounded one-tape machine MM, the reduction produces a pair of simple uncolored graphs of diameter at most two on a common vertex count nn that grows as a constant multiple of m6m^6, such that MM accepts ww if and only if kk-WL refinement distinguishes the two graphs.

The refinement dimension kk is governed by two natural-number digit exponents dd and qq whose sum satisfies d+q≥2d + q \ge 2. The exponent dd sets the time capacity at md−1m^d - 1 steps, while qq sets the tape-span threshold at mq+1m^{q+1}. The resulting graph pair captures acceptance at dimension k=d+q+1k = d + q + 1 under the joint refinement convention and at dimension k=d+q+2k = d + q + 2 under the separate refinement convention.

Graphs and Weisfeiler-Leman equivalence

For a natural number nn, a graph GG on nn vertices is a symmetric, irreflexive Boolean function aG:{0,…,n−1}2→{false,true}a_G \colon \{0, \dots, n-1\}^2 \to \{\text{false}, \text{true}\}, satisfying aG(x,y)=aG(y,x)a_G(x, y) = a_G(y, x) and aG(x,x)=falsea_G(x, x) = \text{false} for all x,y∈{0,…,n−1}x, y \in \{0, \dots, n-1\}.✦ The function aGa_G is the adjacency matrix of GG.✦ An nn-vertex graph GG is a diameter-two graph if n>0n > 0 and for every pair of vertices x,y∈{0,…,n−1}x, y \in \{0, \dots, n-1\}, either x=yx = y, aG(x,y)=truea_G(x, y) = \text{true}, or there exists a vertex z∈{0,…,n−1}z \in \{0, \dots, n-1\} with aG(x,z)=truea_G(x, z) = \text{true} and aG(z,y)=truea_G(z, y) = \text{true}.✦

A WL refinement convention is a choice c∈{joint,separate}c \in \{\text{joint}, \text{separate}\}.✦ Fix a dimension k∈ℕk \in \mathbb{N} and an nn-vertex graph GG. Writing {{⋅}}\{\!\{ \cdot \}\!\} for a multiset and v[i↦z]v[i \mapsto z] for the kk-tuple obtained from v=(v0,…,vk−1)∈{0,…,n−1}kv = (v_0, \dots, v_{k-1}) \in \{0, \dots, n-1\}^k by replacing coordinate ii with z∈{0,…,n−1}z \in \{0, \dots, n-1\}, the round tt tuple color χtc,k(G,v)\chi^{c,k}_t(G, v) is defined recursively over t∈ℕt \in \mathbb{N} in (1): χ0c,k(G,v)=((vi=vj)i,j,(aG(vi,vj))i,j),χt+1joint,k(G,v)=(χtjoint,k(G,v),{{(χtjoint,k(G,v[i↦z]))i=0k−1:z∈{0,…,n−1}}}),χt+1separate,k(G,v)=(χtseparate,k(G,v),({{χtseparate,k(G,v[i↦z]):z∈{0,…,n−1}}})i=0k−1).\begin{aligned} \chi^{c,k}_0(G, v) &= \bigl( (v_i = v_j)_{i,j}, \; (a_G(v_i, v_j))_{i,j} \bigr), \\ \chi^{\text{joint}, k}_{t+1}(G, v) &= \Bigl( \chi^{\text{joint}, k}_t(G, v), \\ &\qquad \bigl\{\!\bigl\{ (\chi^{\text{joint}, k}_t(G, v[i \mapsto z]))_{i=0}^{k-1} : z \in \{0, \dots, n-1\} \bigr\}\!\bigr\} \Bigr), \\ \chi^{\text{separate}, k}_{t+1}(G, v) &= \Bigl( \chi^{\text{separate}, k}_t(G, v), \\ &\qquad \bigl(\bigl\{\!\bigl\{ \chi^{\text{separate}, k}_t(G, v[i \mapsto z]) : z \in \{0, \dots, n-1\} \bigr\}\!\bigr\}\bigr)_{i=0}^{k-1} \Bigr). \end{aligned}(1)✦ The values of χtc,k(G,v)\chi^{c,k}_t(G, v) lie in the recursively defined space of WL colors at round tt: atomic equality-and-adjacency pairs at t=0t = 0, paired at t+1t + 1 with either a multiset of kk-tuples of round-tt colors under the joint convention or a kk-tuple of multisets of round-tt colors under the separate convention.✦

The kk-WL color histogram of GG under convention cc at round tt is the multiset Htc,k(G)={{χtc,k(G,v):v∈{0,…,n−1}k}}H^{c,k}_t(G) = \{\!\{ \chi^{c,k}_t(G, v) : v \in \{0, \dots, n-1\}^k \}\!\}.✦ Two nn-vertex graphs GG and HH are kk-WL equivalent under convention cc, written G≡kcHG \equiv^{c}_k H, if Htc,k(G)=Htc,k(H)H^{c,k}_t(G) = H^{c,k}_t(H) for every t∈ℕt \in \mathbb{N}.✦

Turing machines and one-tape execution

A tape head move is an element μ∈{left,stay,right}\mu \in \{\text{left}, \text{stay}, \text{right}\}✦, with head move displacement Δ(μ)∈ℤ\Delta(\mu) \in \mathbb{Z} given by Δ(left)=−1\Delta(\text{left}) = -1, Δ(stay)=0\Delta(\text{stay}) = 0, and Δ(right)=1\Delta(\text{right}) = 1.✦ A Turing machine NN consists of a positive number of tapes τ≥1\tau \ge 1, a number of states Q≥3Q \ge 3, a tape alphabet size Σ≥3\Sigma \ge 3, and a transition function δN\delta_N mapping a state in {0,…,Q−1}\{0, \dots, Q-1\} and a τ\tau-tuple of scanned symbols in {0,…,Σ−1}τ\{0, \dots, \Sigma-1\}^\tau to a next state, a τ\tau-tuple of written symbols, and a τ\tau-tuple of tape head moves.✦

A Turing machine configuration of NN is a triple (s,h,α)(s, h, \alpha) specifying a current state s∈{0,…,Q−1}s \in \{0, \dots, Q-1\}, head positions h:{0,…,τ−1}→ℤh \colon \{0, \dots, \tau-1\} \to \mathbb{Z}, and tape contents α:{0,…,τ−1}×ℤ→{0,…,Σ−1}\alpha \colon \{0, \dots, \tau-1\} \times \mathbb{Z} \to \{0, \dots, \Sigma-1\}.✦ A configuration is halted if s∈{1,2}s \in \{1, 2\}.✦ The Boolean tape symbol σ:{0,1}→{0,…,Σ−1}\sigma \colon \{0, 1\} \to \{0, \dots, \Sigma-1\} maps 00 to 11 and 11 to 22, leaving 00 as the blank symbol.✦ On a binary word w=(w0,…,wm−1)∈{0,1}mw = (w_0, \dots, w_{m-1}) \in \{0,1\}^m, the initial TM configuration of NN has state 00, all heads at position 00, tape 00 holding σ(wz)\sigma(w_z) at each integer cell 0≤z<m0 \le z < m and 00 elsewhere, and every other tape holding 00 everywhere.✦

The TM transition step of NN leaves a halted configuration unchanged; on a non-halted configuration (s,h,α)(s, h, \alpha), it applies δN\delta_N to ss and the scanned symbols (α(a,h(a)))a=0τ−1(\alpha(a, h(a)))_{a=0}^{\tau-1}, updates the state, adds Δ(μa)\Delta(\mu_a) to each head position h(a)h(a), and overwrites cell h(a)h(a) on each tape aa with the written symbol.✦ The TM execution trace run⁡N(w,t)\operatorname{run}_N(w, t) is the configuration reached after iterating this transition step tt times from the initial TM configuration on ww, and sN(w,t)s_N(w, t) denotes its state.✦ Machine NN accepts ww if there exists t∈ℕt \in \mathbb{N} such that sN(w,t)=1s_N(w, t) = 1.✦

A deterministic one-tape Turing machine MM consists of Q≥3Q \ge 3 states, Σ≥3\Sigma \ge 3 tape symbols, and a transition function δM\delta_M mapping {0,…,Q−1}×{0,…,Σ−1}\{0, \dots, Q-1\} \times \{0, \dots, \Sigma-1\} to {0,…,Q−1}×{0,…,Σ−1}×{left,stay,right}\{0, \dots, Q-1\} \times \{0, \dots, \Sigma-1\} \times \{\text{left}, \text{stay}, \text{right}\}.✦ It embeds as a one-tape instance Mˆ\widehat{M} of a general Turing machine with τ=1\tau = 1 tape and the same states, symbols, and transitions.✦

For any index set JJ, a one-tape configuration of MM over JJ is a triple (s,h,α)(s, h, \alpha) with s∈{0,…,Q−1}s \in \{0, \dots, Q-1\}, head position h∈Jh \in J, and tape α:J→{0,…,Σ−1}\alpha \colon J \to \{0, \dots, \Sigma-1\}.✦ The halting-aware transition action returns (s,a,stay)(s, a, \text{stay}) when s∈{1,2}s \in \{1, 2\} and δM(s,a)\delta_M(s, a) otherwise.✦ Given a bijection π:J→J\pi \colon J \to J, a head move μ\mu acts on JJ along π\pi as π−1\pi^{-1} for left, the identity for stay, and π\pi for right.✦ The one-tape transition step along π\pi applies the halting-aware transition action to (s,α(h))(s, \alpha(h)), updates the state, moves hh along π\pi, and overwrites α(h)\alpha(h) with the written symbol✦; iterating it tt times from a configuration CC gives the one-tape execution trace run⁡M,π(C,t)\operatorname{run}_{M,\pi}(C, t).✦ On J=ℤJ = \mathbb{Z}, the integer line shift is the bijection πℤ(z)=z+1\pi_{\mathbb{Z}}(z) = z + 1✦, and the one-tape initial configuration C0(w)C_0(w) has state 00, head at 00, and tape holding σ(wz)\sigma(w_z) for 0≤z<m0 \le z < m and 00 elsewhere.✦

In the computation reduction, the unpadded graphs have order scaling as the sixth power of the input length with a leading constant determined by the machine and address exponents. For a deterministic one-tape Turing machine MM with QQ states and Σ\Sigma tape symbols, let 𝒜={0,…,Σ−1}×({⊥}∪{0,…,Q−1})\mathcal{A} = \{0, \dots, \Sigma - 1\} \times (\{\bot\} \cup \{0, \dots, Q - 1\}) be the cell alphabet, of size |𝒜|=Σ(Q+1)|\mathcal{A}| = \Sigma(Q + 1), with Σ\Sigma accepting cells (those carrying state 11). Given natural numbers d,q∈ℕd, q \in \mathbb{N}, define the counts of tableau gates, box-tableau labels for parameters (d,q+1)(d, q + 1), schematic nodes (gates, buffer nodes indexed by LL, and one dummy node), and schematic edges (three copies of LL, seeds indexed by 𝒜⊔{0,…,q−1}\mathcal{A} \sqcup \{0, \dots, q - 1\}, and tests indexed by accepting cells) by |Gate|=|𝒜|+2|𝒜|3,|L|=|𝒜|3(2d(q+2)+d+2),|P|=|Gate|+|L|+1,|E|=3|L|+|𝒜|+q+Σ.\begin{aligned} |\mathrm{Gate}| &= |\mathcal{A}| + 2|\mathcal{A}|^3, \\ |L| &= |\mathcal{A}|^3\bigl(2d(q + 2) + d + 2\bigr), \\ |P| &= |\mathrm{Gate}| + |L| + 1, \\ |E| &= 3|L| + |\mathcal{A}| + q + \Sigma. \end{aligned}(2) The matrix size coefficient CM(d,q)∈ℕC_M(d, q) \in \mathbb{N} associated to MM, dd, and qq is CM(d,q)=((d+q+1)(|P|+|E|(8(d+q+2)+1))⋅44+1)3.C_M(d, q) = \bigl((d + q + 1)\bigl(|P| + |E|(8(d + q + 2) + 1)\bigr) \cdot 4^4 + 1\bigr)^3.(3)✦

The claim

Theorem 4.3. Let MM be a deterministic one-tape Turing machine with embedded Turing machine Mˆ\widehat{M}, let w∈{0,1}mw \in \{0, 1\}^m be a binary word of length m≥2m \ge 2, and let d,q,n∈ℕd, q, n \in \mathbb{N} satisfy d+q≥2d + q \ge 2 and n≥CM(d,q)m6n \ge C_M(d, q)\, m^6, where CM(d,q)C_M(d, q) is the matrix size coefficient defined in (3).

  1. Suppose T∈ℕT \in \mathbb{N} satisfies T≤md−1T \le m^d - 1 and 2T+m+2<mq+12T + m + 2 < m^{q+1}, and suppose the state of run⁡M,πℤ(C0(w),T)\operatorname{run}_{M,\pi_{\mathbb{Z}}}(C_0(w), T) is 11 or 22. Then there exist diameter-two graphs GG and HH on nn vertices such that G≢d+q+1jointH⇔Mˆ accepts w,G≢d+q+2separateH⇔Mˆ accepts w.\begin{aligned} G \not\equiv^{\text{joint}}_{d+q+1} H &\iff \widehat{M} \text{ accepts } w, \\ G \not\equiv^{\text{separate}}_{d+q+2} H &\iff \widehat{M} \text{ accepts } w. \end{aligned}(4)✦

  2. Suppose 2(md−1)+m+2<mq+12(m^d - 1) + m + 2 < m^{q+1}. Then there exist diameter-two graphs GG and HH on nn vertices such that G≢d+q+1jointH⇔∃t≤md−1 with sMˆ(w,t)=1,G≢d+q+2separateH⇔∃t≤md−1 with sMˆ(w,t)=1.\begin{aligned} G \not\equiv^{\text{joint}}_{d+q+1} H &\iff \exists\, t \le m^d - 1 \text{ with } s_{\widehat{M}}(w, t) = 1, \\ G \not\equiv^{\text{separate}}_{d+q+2} H &\iff \exists\, t \le m^d - 1 \text{ with } s_{\widehat{M}}(w, t) = 1. \end{aligned}(5)✦

In the paper, the result reads: for a fixed deterministic one-tape Turing machine MM, an integer r≥3r \ge 3, and d=⌊r/3⌋d = \lfloor r/3 \rfloor, whenever m≥2m \ge 2 and MM halts on every input w∈{0,1}mw \in \{0, 1\}^m within T0(m)T_0(m) steps satisfying T0(m)<md−1T_0(m) < m^d - 1 and 2T0(m)+m+2<mr−d2T_0(m) + m + 2 < m^{r-d}, a single effective construction depending only on MM and rr maps ww to two simple uncolored graphs of common order Or,M(m6)O_{r,M}(m^6) that are inequivalent in the (r+1)(r+1)-pebble bijective game (and hence under joint rr-WL) if and only if MM accepts ww, and for sufficiently large such mm the graphs can be padded to any common order n≥m20n \ge m^{20} with explicit adjacency matrices constructible in Or,M(n4)O_{r,M}(n^4) multitape time (where rr corresponds to d+q+1d + q + 1).

What is checked

Theorem 4.3 is stated in the Lean library over finite simple graphs given by Boolean adjacency matrices, diameter-two graphs, kk-WL equivalence under both the joint and separate refinement conventions, deterministic one-tape Turing machines with their integer-tape execution traces and embeddings into general Turing machines, and the two-exponent parameterization (d,q)(d, q) with the matrix size coefficient CM(d,q)C_M(d, q) bounding the vertex count n≥CM(d,q)m6n \ge C_M(d, q)\, m^6, giving both the halting-computation encoding (4) and the bounded-time encoding (5).