The setting
Unconditional time lower bounds for -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 , a graph representation on vertices is a Boolean matrix , called the adjacency matrix of , that is symmetric, for all , and irreflexive, for all .
Write for the set of finite bit strings, for the length of a bit string , and for the concatenation of and . The prefix-free natural encoding of writes the binary digits of from least significant to most significant as a bit string of length (empty when ) and outputs .
For a graph representation on vertices, the adjacency matrix encoding is the bit string of length obtained by flattening the rows for in order.✦ The graph pair encoding of two graph representations and on vertices is (1)✦
Multitape Turing machines
A tape head move is one of left, stay, or right✦, with displacement , , or , respectively.✦ A deterministic multitape Turing machine consists of a positive number of tapes , a number of states , a tape alphabet size , and a transition function (2)✦ The Boolean tape symbol maps to and to , reserving as the blank symbol.✦
A Turing machine configuration of specifies a state , a head position for each tape , and a tape content function for each tape .✦ A configuration is halted if its state is or .✦ On an input bit string , the initial configuration has state , all heads at position , tape holding at each cell , and blank symbol at all other cells on all tapes.✦
One transition step leaves a halted configuration unchanged; from a non-halted configuration, it applies to the current state and the -tuple of scanned symbols , updates the state, writes each new symbol at cell of tape while leaving all other cells unchanged, and shifts each head by the displacement of its move.✦ The execution trace of on at step is the configuration obtained by iterating the transition step times from the initial configuration.✦ The machine halts on if some step reaches a halted configuration.✦ Its running time is the least step at which reaches a halted configuration on , and if does not halt on .✦ The machine outputs a bit string on input if halts on and, in the configuration at step , cell of tape holds for every .✦
Logarithmic-word random-access machines
A logarithmic word width is a function together with a constant such that for every , (3)✦ For , a binary word of length is an element of .✦ The word bit encoding of a -bit word is the bit string of length whose -th bit is the -th binary digit of from least significant to most significant.✦ For , the register bank encoding of a register assignment is the concatenation .✦
A word operation on registers consists of a family of maps indexed by , together with a Turing machine and constants such that for every and every register assignment , the machine outputs on input and satisfies (4)✦
For , a random-access machine instruction is a finite tree whose leaves either halt with a Boolean answer or jump to a program location , and whose internal nodes perform one of four actions before continuing to a child instruction: applying a word operation on registers; loading memory at the address in a register into a register ; storing a register into memory at the address in a register ; or branching on whether a register equals .✦
A random-access machine specifies a register count , a positive number of program locations , a logarithmic word width , a program assigning an instruction to each location in , and the capacity condition that for every and all graph representations on vertices, (5)✦ For , an input bit string , and an address , the packed input word is (6)✦ where if and , and otherwise.
A random-access machine configuration of at size parameter consists of a program counter in , a register bank of words of length , a memory map from -bit addresses to -bit words, and an optional Boolean answer.✦ The initial configuration on sets the program counter to , all registers to , memory at each address to , 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 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 on at step iterates the transition step times from the initial configuration.✦ The machine halts on if some step reaches a configuration with an answer✦, and its running time is the least step at which reaches a configuration with an answer on , and if does not halt on .✦
A computation model is either a deterministic multitape Turing machine or a logarithmic-word random-access machine .✦
The definition
Definition. Let , and let be a graph representation on vertices with adjacency matrix . The underlying simple graph on the vertex set is the simple graph whose adjacency relation is given for by (7)✦ Symmetry and irreflexivity of follow from the symmetry and zero-diagonal conditions on .
For a computation model , a size parameter , and an input bit string , the model running time is defined by (8)✦
What is checked
In the Lean library, these definitions are stated over symmetric irreflexive Boolean adjacency matrices on , 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.