The setting
To establish an unconditional time lower bound for -dimensional Weisfeiler-Leman equivalence, one constructs a computation that diagonalizes against every deterministic one-tape Turing machine running within a polynomial time bound at every sufficiently large input length , and then reduces that diagonal computation to Weisfeiler-Leman inequivalence on a pair of simple uncolored graphs.
Two ingredients carry this diagonalization in the Lean library. First, any one-tape Turing machine can be encoded as a prefix-free binary string so that padding the string with arbitrary data and trailing zeros to any target length preserves unique decoding. Second, compiling a step-bounded universal simulator into a one-tape Turing machine and feeding it into the symbolic pair-graph construction yields pairs of graphs whose -Weisfeiler-Leman inequivalence cannot be decided by any one-tape Turing machine in time at most on words prefixed by its own designation.
One-tape Turing machines
A one-tape Turing machine consists of a finite state set of size at least , a finite tape alphabet of size at least , and a transition function mapping each state-symbol pair to a next state, a written symbol, and a head move (left with displacement , stay with displacement , or right with displacement ).✦ State is the initial state, state is the accepting halting state, and state is the rejecting halting state; symbol is the blank symbol, while symbols and encode the input bits and .
Embedding as a single-tape Turing machine defines its computation on a binary word . The initial configuration places in state with its head at position , the encoded bits of on tape cells , and blanks on all other integer cells.✦ Each transition step leaves any halted configuration (one in state or ) unchanged and otherwise updates the state, scanned cell, and head position according to the transition function.✦ The execution trace iterates this step from the initial configuration✦: halts on if some step reaches a halted configuration✦, accepts if some step reaches state ✦, and denotes the least step count at which reaches a halted configuration on if halts on , and otherwise.✦
Machine designations
Each one-tape Turing machine has a raw bit description encoding its state count, symbol count, and transition table, from which its length-prefixed machine encoding is formed. The designated machine parser maps a binary string to the one-tape Turing machine decoded from a valid designation prefix of , when one exists, and is undefined otherwise.✦
The universal simulator
For each natural number , the step-bounded universal program is a structured typed stack program over a finite set of universal simulator registers of cardinality , using additional scratch stacks. Compiling this program to a typed stack machine, then to an untyped stack machine, and simulating all stacks by multi-track sweeps on a single tape produces the step-bounded universal one-tape Turing machine .
Symbolic pair graphs
A graph on vertices is a symmetric, irreflexive Boolean adjacency relation on .✦ Fix a Weisfeiler-Leman refinement convention (joint or separate) and a dimension . At round , the color of a -tuple of vertices records its atomic equality and adjacency pattern; at round , the color pairs the round- color with the replacement-color multiset of -component vectors under the joint convention or with the coordinatewise replacement-color multisets under the separate convention.✦ Two -vertex graphs and are -WL equivalent under convention , written , if their -WL color histograms match at every round .✦ The convention dimension shift relates the address dimension to the Weisfeiler-Leman dimension and is equal to under the joint convention and under the separate convention.✦
Given a one-tape Turing machine , time and space digit counts with , a binary word , and a padding count , the local tableau transition rule on cell states (pairs of a tape symbol and an optional head state) yields a box tableau circuit schematic of address dimension over alphabet size built from base- carry product boxes and scalar and two-input gates. Translating this schematic into an arc-consistency instance over defines, for each parity , a valuation graph whose vertices are pairs of valid blocks and legal block readouts. Attaching leaf-multiplicity marks, an apex vertex, and padding vertices, and indexing the resulting vertices by a duplicate-free finite listing, yields the pair of simple uncolored graphs and on a common vertex set.
The claim
Theorem 5.2.
Let be a one-tape Turing machine, let be a binary string, and let satisfy . Setting , the padded word satisfies (1)✦
Let , let be a Weisfeiler-Leman refinement convention, let be a one-tape Turing machine, and let be binary strings with , , and . Assume that , , (so ), (where equals under the joint convention and under the separate convention), , , and . If halts on and accepts if and only if , then (2)✦
In the paper, the result reads: for every integer , there exists a binary language decided by a deterministic one-tape Turing machine (whose halting configurations may be kept stationary) in time on inputs of length , such that every correct deterministic one-tape decider for has worst-case running time strictly greater than at every sufficiently large input length . The Lean library uses the step-bounded universal machine and padded machine designations directly inside the Weisfeiler-Leman graph contradiction instead of exporting a separate language .
What is checked
Theorem 5.2 is stated over one-tape Turing machines and their length-prefixed designations and parser in (1), and over the step-bounded universal one-tape machine , its register and scratch-stack counts and , the symbolic pair graphs and , and -Weisfeiler-Leman equivalence under both joint and separate conventions in (2). For these constructions, the Lean library also proves that test gates in the box tableau circuit schematic are terminal✦ and that every edge coordinate map of a product circuit schematic is injective✦.