The setting
To transfer a diagonalization lower bound for one-tape Turing machines into an unconditional running-time lower bound for -dimensional Weisfeiler-Leman (WL) equivalence, one must produce hard pairs of -vertex graphs at every prescribed vertex count 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 and time and space digit dimensions , Lemma 6.1 provides three ingredients: padded -vertex diameter-two graph pairs whose WL equivalence tracks bounded-time acceptance of , 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 , an -vertex graph is a symmetric and irreflexive Boolean-valued adjacency matrix on . The graph has diameter two if and for every pair of vertices , either , and are adjacent, or they share a common neighbor. A graph pair input class is either the unrestricted class containing all pairs of -vertex graphs or the diameter-two class containing those pairs in which both and have diameter two.✦
A WL refinement convention is either the joint convention or the separate convention.✦ For a convention , a dimension , and an -vertex graph , color refinement assigns recursively at each round a round- tuple color to every -tuple of vertices in , and forms the round- -WL color histogram as the multiset of colors over all -tuples. Two -vertex graphs and are -WL equivalent under convention , written , if their round- -WL color histograms coincide for every .✦
The adjacency matrix encoding of an -vertex graph is the binary string obtained by flattening the row-major list of its adjacency matrix entries.✦ Using a prefix-free binary encoding of , the graph pair encoding is the concatenation of the prefix-free encoding of with the adjacency matrix encodings of and .✦
Machine models and deciders
A deterministic multitape Turing machine has a positive number of tapes , at least control states (with state initial, state accepting, and state rejecting), at least tape symbols (with symbol blank and symbols and encoding the Boolean bits false and true), and a transition function that moves each tape head by a displacement in .✦ A configuration specifies the current state, head positions, and tape contents; it is halted when its state has index or , and halted configurations remain unchanged under subsequent steps. Iterating transitions from the initial configuration on a binary word produces the execution trace after steps.✦ The machine halts on if the trace reaches a halted configuration, accepts if it reaches state , and has running time equal to its step count on . A one-tape Turing machine is a deterministic Turing machine with a single tape ().✦
A sequential RAM consists of a fixed number of registers, a positive number of program locations, a logarithmic word width bounded by for a constant , and a finite program of instructions (halting with a Boolean answer, jumping, memory accesses, and word operations on register tuples of -bit words in ). At size parameter on a binary input , execution begins from an initial configuration holding in packed input words and steps until an answer is set, defining halting, acceptance, and the running time .
A computation model is either a multitape Turing machine or a sequential RAM.✦ The model decides -WL equivalence under convention on an input class if, for every and every pair of -vertex graphs in , halts on (at size parameter in the RAM case) and accepts if and only if . Its worst-case running time on at vertex count is the maximum number of steps taken by over all -vertex graph pairs in .✦
Symbolic graph pairs and the one-tape consumer
Fix a one-tape Turing machine and natural numbers and with . From the tape cell states of (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 of length a product circuit schematic of address dimension over alphabet size , built from scalar and two-input gates over and product boxes of base- digit addresses. Converting this schematic into an arc-consistency instance with subdivided type nodes and links yields paired valuation graphs indexed by parity , which are marked with leaf multiplicities and enumerated by rectangular descriptors into a common unpadded vertex count, the base graph order . For any target vertex count , padding by vertices produces the -vertex symbolic pair graphs and . The matrix size coefficient is the leading factor governing the unpadded order as a multiple of .
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 from and within the full-writer step budget where is the length of the base- representation of , is the length of its prefix-free encoding, is the cost bound of the writer body, and is the symbolic coefficient at (so is polynomial in and for fixed ). Combining this writer with a multi-stack simulation of a multitape Turing machine and compiling the resulting stack machine into a sweep-simulated one-tape Turing machine yields the one-tape diagonalizing Turing machine and its consumer time-overhead factor , where is the scratch-register bound of the compiled writer program.
The claim
Lemma 6.1. First, let be a one-tape Turing machine, let have length , and let satisfy , , and . Then there exist -vertex diameter-two graphs and such that (1)✦
Second, let be a one-tape Turing machine, let satisfy , let be a deterministic multitape Turing machine with tapes, let have length , and let satisfy . Put . If there exists such that is halted after steps on , then the one-tape diagonalizing machine halts on , accepts if and only if does not accept , and satisfies (2)✦
Third, let be a one-tape Turing machine, let satisfy , let be a binary word with , let be a WL refinement convention, let be a graph pair input class, and let be a sequential RAM with word width that decides -WL equivalence under convention on with worst-case running time . Assume that for every and every pair of -vertex graphs, the encoding length satisfies (so every encoded graph pair fits into the addressable -bit memory words). Put . Then at size parameter on input , halts and satisfies (3)✦
In the paper, the result reads: for every sufficiently large fixed address dimension , there is an integer such that given a binary word of length and any vertex count in the interval , a standalone multitape reduction constructs in multitape time the explicit adjacency matrices of two simple connected uncolored -vertex graphs of diameter at most two that are -WL inequivalent if and only if belongs to the diagonalized hard language . In the Lean library, this reduction is split into the existence of padded -vertex diameter-two graph pairs for a general one-tape machine 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 , binary words , time and space digit dimensions with , prescribed vertex counts , padded diameter-two symbolic graph pairs , 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✦.