OctoInform Beta

OpenAI preprint, September 2026 · §1. Introduction

Theorem 1.1: Deterministic Turing machines and logarithmic-word RAMs require time nΩ(k)n^{\Omega(k)} even on diameter-two graphs

Unconditional time lower bound for 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

The kk-dimensional Weisfeiler-Leman (kk-WL) algorithm iteratively refines a coloring of the kk-tuples of vertices of a finite graph according to their atomic isomorphism types and the multisets of colors reachable by replacing one coordinate at a time. Two graphs on the same number of vertices are kk-WL equivalent when their kk-tuple color histograms match at every round.✦ Standard algorithms decide kk-WL equivalence on nn-vertex graphs in time nO(k)n^{O(k)}, where the exponent grows linearly with the dimension kk.

Theorem 1.1 addresses whether this exponential dependence on kk is unavoidable for deterministic sequential computation on explicit adjacency-matrix inputs, establishing an unconditional polynomial lower bound whose exponent grows linearly with kk for both multitape Turing machines and logarithmic-word random-access machines (RAMs).

Graphs and Weisfeiler-Leman refinement

A graph GG on nn vertices is a symmetric, irreflexive Boolean adjacency matrix aG:{0,…,n−1}2→{0,1}a_G : \{0, \dots, n - 1\}^2 \to \{0, 1\}, representing a simple undirected uncolored graph on the vertex set {0,…,n−1}\{0, \dots, n - 1\}.✦ Such a graph GG has the diameter-two property 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)=1a_G(x, y) = 1, or there exists a vertex z∈{0,…,n−1}z \in \{0, \dots, n - 1\} with aG(x,z)=1a_G(x, z) = 1 and aG(z,y)=1a_G(z, y) = 1.✦ An input class pp specifies which pairs (G,H)(G, H) of nn-vertex graphs are considered: the unrestricted class contains all pairs (G,H)(G, H), while the diameter-two class contains all pairs (G,H)(G, H) in which both GG and HH satisfy the diameter-two property.

Fix a dimension k∈ℕk \in \mathbb{N} and an nn-vertex graph GG. The kk-WL refinement process assigns to each kk-tuple v=(v0,…,vk−1)∈{0,…,n−1}kv = (v_0, \dots, v_{k-1}) \in \{0, \dots, n - 1\}^k and each round t∈ℕt \in \mathbb{N} a color under either the joint or the separate refinement convention. At round 00, under both conventions, the atomic color χG,0joint(v)=χG,0sep(v)\chi^{\mathrm{joint}}_{G,0}(v) = \chi^{\mathrm{sep}}_{G,0}(v) is the pair of k×kk \times k Boolean matrices whose (i,j)(i, j) entries record whether vi=vjv_i = v_j and whether aG(vi,vj)=1a_G(v_i, v_j) = 1. Writing v[i↦z]v[i \mapsto z] for the tuple obtained from vv by replacing coordinate ii with zz, the round-(t+1)(t + 1) colors are defined inductively by (1): χG,t+1joint(v)=(χG,tjoint(v),{{(χG,tjoint(v[i↦z]))i=0k−1:0≤z<n}}),χG,t+1sep(v)=(χG,tsep(v),({{χG,tsep(v[i↦z]):0≤z<n}})i=0k−1).\begin{aligned} \chi^{\mathrm{joint}}_{G,t+1}(v) &= \bigl(\chi^{\mathrm{joint}}_{G,t}(v),\, \{\!\{ (\chi^{\mathrm{joint}}_{G,t}(v[i \mapsto z]))_{i=0}^{k-1} : 0 \le z < n \}\!\}\bigr), \\ \chi^{\mathrm{sep}}_{G,t+1}(v) &= \bigl(\chi^{\mathrm{sep}}_{G,t}(v),\, (\{\!\{ \chi^{\mathrm{sep}}_{G,t}(v[i \mapsto z]) : 0 \le z < n \}\!\})_{i=0}^{k-1}\bigr). \end{aligned}(1)✦ At round tt, the kk-WL color histogram of GG under a chosen convention is the multiset of round-tt colors of all v∈{0,…,n−1}kv \in \{0, \dots, n - 1\}^k.✦ Two nn-vertex graphs GG and HH are kk-WL equivalent under that convention if their round-tt color histograms agree for every t∈ℕt \in \mathbb{N}.✦

Inputs are presented as finite bit strings. The prefix-free encoding enc⁡(n)\operatorname{enc}(n) of a natural number nn takes the binary digits bb of nn in least-significant-bit-first order (empty when n=0n = 0) and forms |b||b| ones, followed by a zero, followed by bb.✦ The adjacency matrix encoding of an nn-vertex graph GG is the n2n^2-bit string listing the entries aG(i,j)a_G(i, j) for 0≤i,j<n0 \le i, j < n in row-major order.✦ The encoding enc⁡(G,H)\operatorname{enc}(G, H) of a pair of nn-vertex graphs is the concatenation of enc⁡(n)\operatorname{enc}(n) with the adjacency matrix encodings of GG and HH.✦

Machine models and running time

A multitape Turing machine MM consists of d>0d > 0 tapes, q≥3q \ge 3 states {0,…,q−1}\{0, \dots, q - 1\}, σ≥3\sigma \ge 3 tape symbols {0,…,σ−1}\{0, \dots, \sigma - 1\}, and a deterministic transition function mapping the current state and the dd-tuple of scanned symbols to a next state, a dd-tuple of symbols to write, and a dd-tuple of head moves in {left,stay,right}\{\text{left}, \text{stay}, \text{right}\} with displacements −1-1, 00, and +1+1.✦ A configuration records the current state, an integer head position on each tape, and the symbol at every integer cell of every tape.✦ Tape symbols 11 and 22 represent the Booleans 00 and 11, while symbol 00 is blank.✦ On an input bit string ss, MM begins in state 00 with all heads at cell 00, the symbols of ss placed in cells 0,…,|s|−10, \dots, |s| - 1 of tape 00, and symbol 00 elsewhere.✦ States 11 and 22 are the accepting and rejecting halting states.✦ Each transition step leaves a halted configuration unchanged and otherwise updates the state, writes the new symbols under the heads, and shifts each head by its move displacement✦; the configuration after tt steps is the tt-fold iterate of this step.✦ The machine MM halts on ss if some step reaches state 11 or 22✦, and accepts ss if some step reaches state 11.✦ Its running time on ss is the least step count at which MM halts on ss, and 00 if MM does not halt.✦ The machine MM outputs a bit string uu on input ss if MM halts on ss and, at its halting time, cells 0,…,|u|−10, \dots, |u| - 1 of tape 00 hold the symbols of uu.✦

A binary word of length w∈ℕw \in \mathbb{N} is an integer in {0,…,2w−1}\{0, \dots, 2^w - 1\}✦, encoded as a ww-bit string in least-significant-bit-first order✦; a bank of RR registers is encoded by concatenating the ww-bit encodings of its RR words.✦ A logarithmic word width is a function w:ℕ→ℕw : \mathbb{N} \to \mathbb{N} with w(n)>0w(n) > 0 for all nn and a constant B∈ℕB \in \mathbb{N} satisfying (2) for every n∈ℕn \in \mathbb{N}: w(n)≤B(⌊log⁡2(n+2)⌋+1).w(n) \le B\bigl(\lfloor \log_2(n + 2) \rfloor + 1\bigr).(2)✦ A word operation on RR registers is a family of functions mapping RR-tuples of ww-bit words to RR-tuples of ww-bit words for each w∈ℕw \in \mathbb{N}, together with a multitape Turing machine MM and constants C,e∈ℕC, e \in \mathbb{N} such that for every word length ww and every register bank 𝒓\mathbf{r}, MM outputs the bit encoding of the updated register bank on input enc⁡(w)\operatorname{enc}(w) concatenated with the encoding of 𝒓\mathbf{r} in time at most C(w+1)eC(w + 1)^e.✦

A logarithmic-word RAM consists of RR registers, P>0P > 0 program locations {0,…,P−1}\{0, \dots, P - 1\}, a logarithmic word width ww, and a program assigning to each location an instruction.✦ Each instruction is a finite decision tree whose leaves either halt with a Boolean answer or jump to a location in {0,…,P−1}\{0, \dots, P - 1\}, and whose internal nodes apply a word operation to the registers, load the memory word at the address held in one register into another, store a register value into memory at the address held in another, or branch on whether a register equals 00.✦ The word width must accommodate every graph-pair input in memory, meaning |enc⁡(G,H)|≤w(n)2w(n)|\operatorname{enc}(G, H)| \le w(n) 2^{w(n)} for all n∈ℕn \in \mathbb{N} and all nn-vertex graphs G,HG, H. At vertex count nn, a configuration holds a program counter in {0,…,P−1}\{0, \dots, P - 1\}, RR registers of w(n)w(n)-bit words, a memory mapping w(n)w(n)-bit addresses to w(n)w(n)-bit words, and an optional Boolean answer.✦ On input ss, the machine starts with program counter 00, all registers 00, no answer, and each memory address α∈{0,…,2w(n)−1}\alpha \in \{0, \dots, 2^{w(n)} - 1\} holding the w(n)w(n)-bit word whose ii-th bit (0≤i<w(n)0 \le i < w(n)) is bit w(n)α+iw(n)\alpha + i of ss (or 00 when w(n)α+i≥|s|w(n)\alpha + i \ge |s|).✦ Each step leaves a configuration unchanged once an answer is set, and otherwise executes the instruction tree at the current program counter✦; the configuration after tt steps is the tt-fold iterate of this step.✦ The RAM halts on ss at parameter nn if some step sets an answer✦, and accepts if some step sets the answer to true✦; its running time is the least step count at which an answer is set, and 00 if it never halts.✦

A computation model AA is either a multitape Turing machine or a logarithmic-word RAM, inheriting its halting predicate, acceptance predicate, and running time.✦ The machine AA decides kk-WL equivalence under a refinement convention on an input class pp if for every n∈ℕn \in \mathbb{N} and every pair (G,H)(G, H) of nn-vertex graphs in pp, AA halts on enc⁡(G,H)\operatorname{enc}(G, H) and accepts if and only if GG and HH are kk-WL equivalent under that convention.✦ For a fixed input class pp, the worst-case running time TA(n)T_A(n) of AA at vertex count nn is the maximum running time of AA on enc⁡(G,H)\operatorname{enc}(G, H) over all pairs (G,H)(G, H) of nn-vertex graphs in pp, and 00 if no such pair exists.✦

The claim

Theorem 1.1. There exist a real constant c>0c > 0 and a natural number k0k_0 such that for every integer k≥k0k \ge k_0, every refinement convention (joint or separate), every input class (unrestricted or diameter-two), and every multitape Turing machine or logarithmic-word RAM AA that decides kk-WL equivalence under that convention on that input class, there exists n0∈ℕn_0 \in \mathbb{N} such that the worst-case running time TA(n)T_A(n) of AA on that input class satisfies TA(n)≥nckT_A(n) \ge n^{c k}(3)✦ for every integer n≥n0n \ge n_0.

What is checked

In the Lean library, Theorem 1.1 states the time lower bound (3) over simple undirected uncolored graphs encoded by explicit adjacency matrices, kk-WL equivalence under both the joint and separate refinement conventions, both the unrestricted and diameter-two input classes, and deterministic deciders modeled as multitape Turing machines or logarithmic-word RAMs with polynomial-time word operations and finite instruction trees.