OctoInform Beta

OpenAI preprint, September 2026 · §6. Quantitative transfer and the time lower bound

Lemma 6.1: Diameter-two Weisfeiler-Leman hard graph pairs of prescribed order nn with direct one-tape and random-access machine evaluation

Padded diameter-two graph pairs and consumer reductions.

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 transfer a diagonalization lower bound for one-tape Turing machines into an unconditional running-time lower bound for kk-dimensional Weisfeiler-Leman (WL) equivalence, one must produce hard pairs of nn-vertex graphs at every prescribed vertex count nn above the base construction size, while keeping both graphs connected of diameter two and bounding the cost of feeding their explicit adjacency matrices into a candidate decider. For a fixed one-tape Turing machine MM and time and space digit dimensions d,q∈ℕd, q \in \mathbb{N}, Lemma 6.1 provides three ingredients: padded nn-vertex diameter-two graph pairs whose WL equivalence tracks bounded-time acceptance of MM, a one-tape diagonalizing machine that writes the encoded pair and simulates a multitape Turing machine decider with reversed output, and the direct evaluation of a time-bounded sequential random-access machine (RAM) decider on the encoded pair.

Graphs and Weisfeiler-Leman equivalence

For a natural number nn, an nn-vertex graph GG is a symmetric and irreflexive Boolean-valued adjacency matrix on {0,…,n−1}×{0,…,n−1}\{0, \dots, n - 1\} \times \{0, \dots, n - 1\}. The graph GG has diameter two 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, xx and yy are adjacent, or they share a common neighbor. A graph pair input class pp is either the unrestricted class containing all pairs of nn-vertex graphs or the diameter-two class containing those pairs (G0,G1)(G^0, G^1) in which both G0G^0 and G1G^1 have diameter two.✦

A WL refinement convention cc is either the joint convention or the separate convention.✦ For a convention cc, a dimension k∈ℕk \in \mathbb{N}, and an nn-vertex graph GG, color refinement assigns recursively at each round t∈ℕt \in \mathbb{N} a round-tt tuple color to every kk-tuple of vertices in {0,…,n−1}k\{0, \dots, n - 1\}^k, and forms the round-tt kk-WL color histogram as the multiset of colors over all kk-tuples. Two nn-vertex graphs G0G^0 and G1G^1 are kk-WL equivalent under convention cc, written G0≡k,cG1G^0 \equiv_{k,c} G^1, if their round-tt kk-WL color histograms coincide for every t∈ℕt \in \mathbb{N}.✦

The adjacency matrix encoding of an nn-vertex graph GG is the binary string obtained by flattening the row-major list of its adjacency matrix entries.✦ Using a prefix-free binary encoding of nn, the graph pair encoding enc(G0,G1)∈{0,1}*\mathrm{enc}(G^0, G^1) \in \{0,1\}^* is the concatenation of the prefix-free encoding of nn with the adjacency matrix encodings of G0G^0 and G1G^1.✦

Machine models and deciders

A deterministic multitape Turing machine AA has a positive number of tapes τA\tau_A, at least 33 control states (with state 00 initial, state 11 accepting, and state 22 rejecting), at least 33 tape symbols (with symbol 00 blank and symbols 11 and 22 encoding the Boolean bits false and true), and a transition function that moves each tape head by a displacement in {−1,0,1}\{-1, 0, 1\}.✦ A configuration specifies the current state, head positions, and tape contents; it is halted when its state has index 11 or 22, and halted configurations remain unchanged under subsequent steps. Iterating transitions from the initial configuration on a binary word x∈{0,1}*x \in \{0,1\}^* produces the execution trace after tt steps.✦ The machine AA halts on xx if the trace reaches a halted configuration, accepts xx if it reaches state 11, and has running time timeA(x)∈ℕ\mathrm{time}_A(x) \in \mathbb{N} equal to its step count on xx. A one-tape Turing machine MM is a deterministic Turing machine with a single tape (τM=1\tau_M = 1).✦

A sequential RAM AA consists of a fixed number of registers, a positive number of program locations, a logarithmic word width w(n)>0w(n) > 0 bounded by clog⁡2(n+2)c \log_2(n + 2) for a constant cc, and a finite program of instructions (halting with a Boolean answer, jumping, memory accesses, and word operations on register tuples of w(n)w(n)-bit words in {0,…,2w(n)−1}\{0, \dots, 2^{w(n)} - 1\}). At size parameter n∈ℕn \in \mathbb{N} on a binary input y∈{0,1}*y \in \{0,1\}^*, execution begins from an initial configuration holding yy in packed input words and steps until an answer is set, defining halting, acceptance, and the running time timeA(n,y)∈ℕ\mathrm{time}_A(n, y) \in \mathbb{N}.

A computation model AA is either a multitape Turing machine or a sequential RAM.✦ The model AA decides kk-WL equivalence under convention cc on an input class pp if, for every n∈ℕn \in \mathbb{N} and every pair (G0,G1)(G^0, G^1) of nn-vertex graphs in pp, AA halts on enc(G0,G1)\mathrm{enc}(G^0, G^1) (at size parameter nn in the RAM case) and accepts if and only if G0≡k,cG1G^0 \equiv_{k,c} G^1. Its worst-case running time TA(n)T_A(n) on pp at vertex count nn is the maximum number of steps taken by AA over all nn-vertex graph pairs in pp.✦

Symbolic graph pairs and the one-tape consumer

Fix a one-tape Turing machine MM and natural numbers dd and qq with d+q≥2d + q \ge 2. From the tape cell states of MM (a tape symbol paired with an optional head state), its local tableau transition rule, blank cell, initial input cells, and accepting cell predicate, the Lean library constructs for each binary word w∈{0,1}mw \in \{0,1\}^m of length m=|w|m = |w| a product circuit schematic of address dimension r=d+q+1r = d + q + 1 over alphabet size mm, built from scalar and two-input gates over 𝔽2\mathbb{F}_2 and product boxes of base-mm digit addresses. Converting this schematic into an arc-consistency instance with subdivided type nodes and links yields paired valuation graphs indexed by parity ε∈{0,1}\varepsilon \in \{0, 1\}, which are marked with leaf multiplicities and enumerated by rectangular descriptors into a common unpadded vertex count, the base graph order N0(M,d,q,m)∈ℕN_0(M, d, q, m) \in \mathbb{N}. For any target vertex count n≥N0(M,d,q,m)n \ge N_0(M, d, q, m), padding by n−N0(M,d,q,m)n - N_0(M, d, q, m) vertices produces the nn-vertex symbolic pair graphs Gw,n0G^0_{w,n} and Gw,n1G^1_{w,n}. The matrix size coefficient Cmat(M,d,q)∈ℕC_{\mathrm{mat}}(M, d, q) \in \mathbb{N} is the leading factor governing the unpadded order as a multiple of m6m^6.

Using arithmetic expressions, predicates, and structured bit-stream writer programs over a finite register set, the Lean library builds a graph-pair matrix writer that outputs enc(Gw,n0,Gw,n1)\mathrm{enc}(G^0_{w,n}, G^1_{w,n}) from ww and nn within the full-writer step budget B(M,d,q,n,m)=17m+3+24(|bits2(n)|+1)(n+1)+(2|encℕ(n)|+1)+charge(M,d,q)(6(Csym(M,d,q,d+q+2)+n+m+2)27+1)8,\begin{aligned} B(M, d, q, n, m) &= 17m + 3 + 24(|\mathrm{bits}_2(n)| + 1)(n + 1) \\ &\quad + (2|\mathrm{enc}_{\mathbb{N}}(n)| + 1) \\ &\quad + \mathrm{charge}(M, d, q)\bigl(6(C_{\mathrm{sym}}(M, d, q, d + q + 2) + n + m + 2)^{27} + 1\bigr)^8, \end{aligned} where |bits2(n)||\mathrm{bits}_2(n)| is the length of the base-22 representation of nn, |encℕ(n)||\mathrm{enc}_{\mathbb{N}}(n)| is the length of its prefix-free encoding, charge(M,d,q)\mathrm{charge}(M, d, q) is the cost bound of the writer body, and Csym(M,d,q,d+q+2)C_{\mathrm{sym}}(M, d, q, d + q + 2) is the symbolic coefficient at d+q+2d + q + 2 (so B(M,d,q,n,m)B(M, d, q, n, m) is polynomial in nn and mm for fixed M,d,qM, d, q). Combining this writer with a multi-stack simulation of a multitape Turing machine AA and compiling the resulting stack machine into a sweep-simulated one-tape Turing machine yields the one-tape diagonalizing Turing machine DM,d,q,A,nD_{M,d,q,A,n} and its consumer time-overhead factor Ccon(M,d,q,A)=8(S(M,d,q)+4+2τA+1)∈ℕC_{\mathrm{con}}(M, d, q, A) = 8(S(M, d, q) + 4 + 2\tau_A + 1) \in \mathbb{N}, where S(M,d,q)S(M, d, q) is the scratch-register bound of the compiled writer program.

The claim

Lemma 6.1. First, let MM be a one-tape Turing machine, let w∈{0,1}mw \in \{0,1\}^m have length m≥2m \ge 2, and let d,q,n∈ℕd, q, n \in \mathbb{N} satisfy d+q≥2d + q \ge 2, 2(md−1)+m+2<mq+12(m^d - 1) + m + 2 < m^{q+1}, and Cmat(M,d,q)m6≤nC_{\mathrm{mat}}(M, d, q)\, m^6 \le n. Then there exist nn-vertex diameter-two graphs G0G^0 and G1G^1 such that G0≡d+q+1,jointG1⇔G0≡d+q+2,separateG1⇔M does not reach state 1 on w in at most md−1 steps.\begin{aligned} G^0 \equiv_{d+q+1,\mathrm{joint}} G^1 &\iff G^0 \equiv_{d+q+2,\mathrm{separate}} G^1 \\ &\iff \text{$M$ does not reach state $1$ on $w$ in at most $m^d - 1$ steps.} \end{aligned}(1)✦

Second, let MM be a one-tape Turing machine, let d,q∈ℕd, q \in \mathbb{N} satisfy d+q≥2d + q \ge 2, let AA be a deterministic multitape Turing machine with τA\tau_A tapes, let w∈{0,1}mw \in \{0,1\}^m have length m≥1m \ge 1, and let n∈ℕn \in \mathbb{N} satisfy N0(M,d,q,m)≤nN_0(M, d, q, m) \le n. Put y=enc(Gw,n0,Gw,n1)y = \mathrm{enc}(G^0_{w,n}, G^1_{w,n}). If there exists v∈ℕv \in \mathbb{N} such that AA is halted after vv steps on yy, then the one-tape diagonalizing machine D=DM,d,q,A,nD = D_{M,d,q,A,n} halts on ww, accepts ww if and only if AA does not accept yy, and satisfies timeD(w)≤Ccon(M,d,q,A)⋅(m+B(M,d,q,n,m)+5|y|+(8τA+2)v+3)2.\begin{aligned} \mathrm{time}_D(w) &\le C_{\mathrm{con}}(M, d, q, A) \\ &\quad \cdot \bigl(m + B(M, d, q, n, m) + 5|y| + (8\tau_A + 2)v + 3\bigr)^2. \end{aligned}(2)✦

Third, let MM be a one-tape Turing machine, let d,q,k,n,α∈ℕd, q, k, n, \alpha \in \mathbb{N} satisfy d+q≥2d + q \ge 2, let w∈{0,1}mw \in \{0,1\}^m be a binary word with N0(M,d,q,m)≤nN_0(M, d, q, m) \le n, let cc be a WL refinement convention, let pp be a graph pair input class, and let AA be a sequential RAM with word width wAw_A that decides kk-WL equivalence under convention cc on pp with worst-case running time TA(n)≤nαT_A(n) \le n^\alpha. Assume that for every n′∈ℕn' \in \mathbb{N} and every pair (G0,G1)(G^0, G^1) of n′n'-vertex graphs, the encoding length satisfies |enc(G0,G1)|≤wA(n′)⋅2wA(n′)|\mathrm{enc}(G^0, G^1)| \le w_A(n') \cdot 2^{w_A(n')} (so every encoded graph pair fits into the 2wA(n′)2^{w_A(n')} addressable wA(n′)w_A(n')-bit memory words). Put y=enc(Gw,n0,Gw,n1)y = \mathrm{enc}(G^0_{w,n}, G^1_{w,n}). Then at size parameter nn on input yy, AA halts and satisfies timeA(n,y)≤nα,A accepts y at size n⇔Gw,n0≡k,cGw,n1.\begin{aligned} \mathrm{time}_A(n, y) &\le n^\alpha, \\ A \text{ accepts } y \text{ at size } n &\iff G^0_{w,n} \equiv_{k,c} G^1_{w,n}. \end{aligned}(3)✦

In the paper, the result reads: for every sufficiently large fixed address dimension rr, there is an integer m0(r)m_0(r) such that given a binary word ww of length m≥m0(r)m \ge m_0(r) and any vertex count nn in the interval Im=[m20,(m+1)20)I_m = [m^{20}, (m + 1)^{20}), a standalone multitape reduction constructs in Or(n4)O_r(n^4) multitape time the explicit adjacency matrices of two simple connected uncolored nn-vertex graphs of diameter at most two that are kk-WL inequivalent if and only if ww belongs to the diagonalized hard language HsH_s. In the Lean library, this reduction is split into the existence of padded nn-vertex diameter-two graph pairs for a general one-tape machine MM in (1), the direct one-tape composition of the matrix writer with a multitape decider in (2), and the evaluation of a time-bounded RAM decider on the encoded pair in (3).

What is checked

Lemma 6.1 is stated over one-tape Turing machines MM, binary words ww, time and space digit dimensions d,q∈ℕd, q \in \mathbb{N} with d+q≥2d + q \ge 2, prescribed vertex counts nn, padded diameter-two symbolic graph pairs (Gw,n0,Gw,n1)(G^0_{w,n}, G^1_{w,n}), joint and separate Weisfeiler-Leman equivalence, deterministic multitape Turing machines, and sequential RAM deciders on unrestricted or diameter-two input classes. For the underlying circuit constructions, the Lean library establishes that test gates in the box tableau circuit schematic are terminal✦ and that the coordinate maps on edges of a product circuit schematic are injective✦.