The setting
The -dimensional Weisfeiler-Leman (-WL) algorithm iteratively refines a coloring of the -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 -WL equivalent when their -tuple color histograms match at every round.✦ Standard algorithms decide -WL equivalence on -vertex graphs in time , where the exponent grows linearly with the dimension .
Theorem 1.1 addresses whether this exponential dependence on is unavoidable for deterministic sequential computation on explicit adjacency-matrix inputs, establishing an unconditional polynomial lower bound whose exponent grows linearly with for both multitape Turing machines and logarithmic-word random-access machines (RAMs).
Graphs and Weisfeiler-Leman refinement
A graph on vertices is a symmetric, irreflexive Boolean adjacency matrix , representing a simple undirected uncolored graph on the vertex set .✦ Such a graph has the diameter-two property if and for every pair of vertices , either , , or there exists a vertex with and .✦ An input class specifies which pairs of -vertex graphs are considered: the unrestricted class contains all pairs , while the diameter-two class contains all pairs in which both and satisfy the diameter-two property.
Fix a dimension and an -vertex graph . The -WL refinement process assigns to each -tuple and each round a color under either the joint or the separate refinement convention. At round , under both conventions, the atomic color is the pair of Boolean matrices whose entries record whether and whether . Writing for the tuple obtained from by replacing coordinate with , the round- colors are defined inductively by (1): (1)✦ At round , the -WL color histogram of under a chosen convention is the multiset of round- colors of all .✦ Two -vertex graphs and are -WL equivalent under that convention if their round- color histograms agree for every .✦
Inputs are presented as finite bit strings. The prefix-free encoding of a natural number takes the binary digits of in least-significant-bit-first order (empty when ) and forms ones, followed by a zero, followed by .✦ The adjacency matrix encoding of an -vertex graph is the -bit string listing the entries for in row-major order.✦ The encoding of a pair of -vertex graphs is the concatenation of with the adjacency matrix encodings of and .✦
Machine models and running time
A multitape Turing machine consists of tapes, states , tape symbols , and a deterministic transition function mapping the current state and the -tuple of scanned symbols to a next state, a -tuple of symbols to write, and a -tuple of head moves in with displacements , , and .✦ 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 and represent the Booleans and , while symbol is blank.✦ On an input bit string , begins in state with all heads at cell , the symbols of placed in cells of tape , and symbol elsewhere.✦ States and 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 steps is the -fold iterate of this step.✦ The machine halts on if some step reaches state or ✦, and accepts if some step reaches state .✦ Its running time on is the least step count at which halts on , and if does not halt.✦ The machine outputs a bit string on input if halts on and, at its halting time, cells of tape hold the symbols of .✦
A binary word of length is an integer in ✦, encoded as a -bit string in least-significant-bit-first order✦; a bank of registers is encoded by concatenating the -bit encodings of its words.✦ A logarithmic word width is a function with for all and a constant satisfying (2) for every : (2)✦ A word operation on registers is a family of functions mapping -tuples of -bit words to -tuples of -bit words for each , together with a multitape Turing machine and constants such that for every word length and every register bank , outputs the bit encoding of the updated register bank on input concatenated with the encoding of in time at most .✦
A logarithmic-word RAM consists of registers, program locations , a logarithmic word width , 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 , 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 .✦ The word width must accommodate every graph-pair input in memory, meaning for all and all -vertex graphs . At vertex count , a configuration holds a program counter in , registers of -bit words, a memory mapping -bit addresses to -bit words, and an optional Boolean answer.✦ On input , the machine starts with program counter , all registers , no answer, and each memory address holding the -bit word whose -th bit () is bit of (or when ).✦ 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 steps is the -fold iterate of this step.✦ The RAM halts on at parameter 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 if it never halts.✦
A computation model is either a multitape Turing machine or a logarithmic-word RAM, inheriting its halting predicate, acceptance predicate, and running time.✦ The machine decides -WL equivalence under a refinement convention on an input class if for every and every pair of -vertex graphs in , halts on and accepts if and only if and are -WL equivalent under that convention.✦ For a fixed input class , the worst-case running time of at vertex count is the maximum running time of on over all pairs of -vertex graphs in , and if no such pair exists.✦
The claim
Theorem 1.1. There exist a real constant and a natural number such that for every integer , every refinement convention (joint or separate), every input class (unrestricted or diameter-two), and every multitape Turing machine or logarithmic-word RAM that decides -WL equivalence under that convention on that input class, there exists such that the worst-case running time of on that input class satisfies (3)✦ for every integer .
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, -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.