OctoInform Beta

OpenAI preprint, September 2026 · §1. Introduction

§1 (setting): Graph inputs as adjacency matrices, deterministic multitape Turing machines, and logarithmic-word random-access machines with running time

Explicit adjacency matrices and sequential machine models.

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-Weisfeiler-Leman equivalence depend on how input graphs are encoded and which sequential operations count as a single computation step. Here graphs are represented by explicit Boolean adjacency matrices, and decision algorithms are modeled either as deterministic multitape Turing machines or as sequential random-access machines whose word length grows logarithmically with the vertex count and whose primitive register operations run in time polynomial in the word length.

Graphs and binary encodings

For n∈ℕn \in \mathbb{N}, a graph representation GG on nn vertices is a Boolean matrix aG:{0,…,n−1}×{0,…,n−1}→{false,true}a_G \colon \{0, \dots, n-1\} \times \{0, \dots, n-1\} \to \{\mathrm{false}, \mathrm{true}\}, called the adjacency matrix of GG, that is symmetric, aG(u,v)=aG(v,u)a_G(u, v) = a_G(v, u) for all u,v∈{0,…,n−1}u, v \in \{0, \dots, n-1\}, and irreflexive, aG(u,u)=falsea_G(u, u) = \mathrm{false} for all u∈{0,…,n−1}u \in \{0, \dots, n-1\}.

Write {false,true}*\{\mathrm{false}, \mathrm{true}\}^* for the set of finite bit strings, |x||x| for the length of a bit string xx, and x⋅yx \cdot y for the concatenation of xx and yy. The prefix-free natural encoding encℕ(m)∈{false,true}*\mathrm{enc}_{\mathbb{N}}(m) \in \{\mathrm{false}, \mathrm{true}\}^* of m∈ℕm \in \mathbb{N} writes the binary digits of mm from least significant to most significant as a bit string dd of length ℓ\ell (empty when m=0m = 0) and outputs trueℓ⋅false⋅d\mathrm{true}^\ell \cdot \mathrm{false} \cdot d.

For a graph representation GG on nn vertices, the adjacency matrix encoding mat(G)∈{false,true}*\mathrm{mat}(G) \in \{\mathrm{false}, \mathrm{true}\}^* is the bit string of length n2n^2 obtained by flattening the rows aG(u,0),…,aG(u,n−1)a_G(u, 0), \dots, a_G(u, n-1) for u=0,…,n−1u = 0, \dots, n-1 in order.✦ The graph pair encoding of two graph representations GG and HH on nn vertices is enc(G,H)=encℕ(n)⋅mat(G)⋅mat(H).\mathrm{enc}(G, H) = \mathrm{enc}_{\mathbb{N}}(n) \cdot \mathrm{mat}(G) \cdot \mathrm{mat}(H).(1)✦

Multitape Turing machines

A tape head move is one of left, stay, or right✦, with displacement −1-1, 00, or 1∈ℤ1 \in \mathbb{Z}, respectively.✦ A deterministic multitape Turing machine MM consists of a positive number of tapes p>0p > 0, a number of states q≥3q \ge 3, a tape alphabet size σ≥3\sigma \ge 3, and a transition function δ:{0,…,q−1}×{0,…,σ−1}p→{0,…,q−1}×{0,…,σ−1}p×{left,stay,right}p.\begin{aligned} \delta \colon {} & \{0, \dots, q-1\} \times \{0, \dots, \sigma-1\}^p \\ \to {} & \{0, \dots, q-1\} \times \{0, \dots, \sigma-1\}^p \\ & \times \{\mathrm{left}, \mathrm{stay}, \mathrm{right}\}^p. \end{aligned}(2)✦ The Boolean tape symbol symM(b)∈{0,…,σ−1}\mathrm{sym}_M(b) \in \{0, \dots, \sigma-1\} maps false\mathrm{false} to 11 and true\mathrm{true} to 22, reserving 00 as the blank symbol.✦

A Turing machine configuration of MM specifies a state s∈{0,…,q−1}s \in \{0, \dots, q-1\}, a head position hi∈ℤh_i \in \mathbb{Z} for each tape i∈{0,…,p−1}i \in \{0, \dots, p-1\}, and a tape content function τi:ℤ→{0,…,σ−1}\tau_i \colon \mathbb{Z} \to \{0, \dots, \sigma-1\} for each tape ii.✦ A configuration is halted if its state is 11 or 22.✦ On an input bit string x∈{false,true}*x \in \{\mathrm{false}, \mathrm{true}\}^*, the initial configuration has state 00, all heads at position 00, tape 00 holding symM(xz)\mathrm{sym}_M(x_z) at each cell z∈{0,…,|x|−1}z \in \{0, \dots, |x|-1\}, and blank symbol 00 at all other cells on all tapes.✦

One transition step leaves a halted configuration unchanged; from a non-halted configuration, it applies δ\delta to the current state and the pp-tuple of scanned symbols (τ0(h0),…,τp−1(hp−1))(\tau_0(h_0), \dots, \tau_{p-1}(h_{p-1})), updates the state, writes each new symbol at cell hih_i of tape ii while leaving all other cells unchanged, and shifts each head hih_i by the displacement of its move.✦ The execution trace of MM on xx at step t∈ℕt \in \mathbb{N} is the configuration obtained by iterating the transition step tt times from the initial configuration.✦ The machine MM halts on xx if some step t∈ℕt \in \mathbb{N} reaches a halted configuration.✦ Its running time tM(x)∈ℕt_M(x) \in \mathbb{N} is the least step t∈ℕt \in \mathbb{N} at which MM reaches a halted configuration on xx, and 00 if MM does not halt on xx.✦ The machine MM outputs a bit string y∈{false,true}*y \in \{\mathrm{false}, \mathrm{true}\}^* on input xx if MM halts on xx and, in the configuration at step tM(x)t_M(x), cell zz of tape 00 holds symM(yz)\mathrm{sym}_M(y_z) for every z∈{0,…,|y|−1}z \in \{0, \dots, |y|-1\}.✦

Logarithmic-word random-access machines

A logarithmic word width is a function ω:ℕ→ℕ\omega \colon \mathbb{N} \to \mathbb{N} together with a constant C∈ℕC \in \mathbb{N} such that for every n∈ℕn \in \mathbb{N}, 0<ω(n)≤C(⌊log⁡2(n+2)⌋+1).0 < \omega(n) \le C\bigl(\lfloor \log_2(n + 2) \rfloor + 1\bigr).(3)✦ For w∈ℕw \in \mathbb{N}, a binary word of length ww is an element of {0,…,2w−1}\{0, \dots, 2^w - 1\}.✦ The word bit encoding bitsw(a)\mathrm{bits}_w(a) of a ww-bit word aa is the bit string of length ww whose ii-th bit is the ii-th binary digit of aa from least significant to most significant.✦ For R∈ℕR \in \mathbb{N}, the register bank encoding regw(r)\mathrm{reg}_w(r) of a register assignment r:{0,…,R−1}→{0,…,2w−1}r \colon \{0, \dots, R-1\} \to \{0, \dots, 2^w - 1\} is the concatenation bitsw(r(0))⋅⋯⋅bitsw(r(R−1))\mathrm{bits}_w(r(0)) \cdot \cdots \cdot \mathrm{bits}_w(r(R-1)).✦

A word operation on RR registers consists of a family of maps opw:{0,…,2w−1}R→{0,…,2w−1}R\mathrm{op}_w \colon \{0, \dots, 2^w - 1\}^R \to \{0, \dots, 2^w - 1\}^R indexed by w∈ℕw \in \mathbb{N}, together with a Turing machine MM and constants c,d∈ℕc, d \in \mathbb{N} such that for every w∈ℕw \in \mathbb{N} and every register assignment r∈{0,…,2w−1}Rr \in \{0, \dots, 2^w - 1\}^R, the machine MM outputs regw(opw(r))\mathrm{reg}_w(\mathrm{op}_w(r)) on input encℕ(w)⋅regw(r)\mathrm{enc}_{\mathbb{N}}(w) \cdot \mathrm{reg}_w(r) and satisfies tM(encℕ(w)⋅regw(r))≤c(w+1)d.t_M\bigl(\mathrm{enc}_{\mathbb{N}}(w) \cdot \mathrm{reg}_w(r)\bigr) \le c (w + 1)^d.(4)✦

For R,P∈ℕR, P \in \mathbb{N}, a random-access machine instruction is a finite tree whose leaves either halt with a Boolean answer b∈{false,true}b \in \{\mathrm{false}, \mathrm{true}\} or jump to a program location j∈{0,…,P−1}j \in \{0, \dots, P-1\}, and whose internal nodes perform one of four actions before continuing to a child instruction: applying a word operation on RR registers; loading memory at the address in a register addr\mathrm{addr} into a register dest\mathrm{dest}; storing a register src\mathrm{src} into memory at the address in a register addr\mathrm{addr}; or branching on whether a register reg\mathrm{reg} equals 00.✦

A random-access machine BB specifies a register count R∈ℕR \in \mathbb{N}, a positive number of program locations P>0P > 0, a logarithmic word width ω\omega, a program assigning an instruction to each location in {0,…,P−1}\{0, \dots, P-1\}, and the capacity condition that for every n∈ℕn \in \mathbb{N} and all graph representations G,HG, H on nn vertices, |enc(G,H)|≤ω(n)2ω(n).|\mathrm{enc}(G, H)| \le \omega(n) \, 2^{\omega(n)}.(5)✦ For w∈ℕw \in \mathbb{N}, an input bit string x∈{false,true}*x \in \{\mathrm{false}, \mathrm{true}\}^*, and an address a∈{0,…,2w−1}a \in \{0, \dots, 2^w - 1\}, the packed input word is packw(x,a)=(∑i=0w−1bi2i)mod⁡2w,\mathrm{pack}_w(x, a) = \biggl(\sum_{i=0}^{w-1} b_i \, 2^i\biggr) \bmod 2^w,(6)✦ where bi=1b_i = 1 if wa+i<|x|wa + i < |x| and xwa+i=truex_{wa + i} = \mathrm{true}, and bi=0b_i = 0 otherwise.

A random-access machine configuration of BB at size parameter n∈ℕn \in \mathbb{N} consists of a program counter in {0,…,P−1}\{0, \dots, P-1\}, a register bank of RR words of length ω(n)\omega(n), a memory map from ω(n)\omega(n)-bit addresses to ω(n)\omega(n)-bit words, and an optional Boolean answer.✦ The initial configuration on (n,x)(n, x) sets the program counter to 00, all registers to 00, memory at each address aa to packω(n)(x,a)\mathrm{pack}_{\omega(n)}(x, a), and the answer to none.✦ Instruction execution evaluates an instruction tree on a configuration by recording the answer on halt, setting the program counter on jump, updating the register bank via opω(n)\mathrm{op}_{\omega(n)} on a word operation, updating the destination register or memory cell on a load or store, and following the corresponding branch on a zero test.✦ One transition step leaves a configuration with an answer unchanged and otherwise executes the instruction at the current program counter.✦ The execution trace of BB on (n,x)(n, x) at step t∈ℕt \in \mathbb{N} iterates the transition step tt times from the initial configuration.✦ The machine BB halts on (n,x)(n, x) if some step t∈ℕt \in \mathbb{N} reaches a configuration with an answer✦, and its running time tBRAM(n,x)∈ℕt_B^{\mathrm{RAM}}(n, x) \in \mathbb{N} is the least step t∈ℕt \in \mathbb{N} at which BB reaches a configuration with an answer on (n,x)(n, x), and 00 if BB does not halt on (n,x)(n, x).✦

A computation model AA is either a deterministic multitape Turing machine MM or a logarithmic-word random-access machine BB.✦

The definition

Definition. Let n∈ℕn \in \mathbb{N}, and let GG be a graph representation on nn vertices with adjacency matrix aGa_G. The underlying simple graph Simple(G)\mathrm{Simple}(G) on the vertex set {0,…,n−1}\{0, \dots, n-1\} is the simple graph whose adjacency relation is given for u,v∈{0,…,n−1}u, v \in \{0, \dots, n-1\} by u∼Simple(G)v⇔aG(u,v)=true.u \sim_{\mathrm{Simple}(G)} v \iff a_G(u, v) = \mathrm{true}.(7)✦ Symmetry and irreflexivity of ∼Simple(G)\sim_{\mathrm{Simple}(G)} follow from the symmetry and zero-diagonal conditions on aGa_G.

For a computation model AA, a size parameter n∈ℕn \in \mathbb{N}, and an input bit string x∈{false,true}*x \in \{\mathrm{false}, \mathrm{true}\}^*, the model running time tA(n,x)∈ℕt_A(n, x) \in \mathbb{N} is defined by tA(n,x)={tM(x)if A is a Turing machine M,tBRAM(n,x)if A is a random-access machine B.t_A(n, x) = \begin{cases} t_M(x) & \text{if } A \text{ is a Turing machine } M, \\ t_B^{\mathrm{RAM}}(n, x) & \text{if } A \text{ is a random-access machine } B. \end{cases}(8)✦

What is checked

In the Lean library, these definitions are stated over symmetric irreflexive Boolean adjacency matrices on {0,…,n−1}\{0, \dots, n-1\}, deterministic multitape Turing machines with at least three states and three symbols, logarithmic-word random-access machines equipped with polynomial-time word operations and input-fitting capacity, and the disjoint union computation model combining both machine classes.