The setting
Given a nonempty finite simple undirected uncolored graph by its binary adjacency matrix and a positive integer in binary, the Weisfeiler-Leman (WL) dimension problem asks whether -dimensional Weisfeiler-Leman (-WL) color refinement distinguishes from every non-isomorphic graph, that is, whether the WL dimension is at most . Dimension uses ordinary neighbor color refinement, and dimensions use the joint-update refinement rule. The complexity question addressed here is membership of this decision problem in deterministic exponential time ().
Weisfeiler-Leman refinement and dimension
A finite simple graph consists of a natural number , its order, specifying the vertex set , together with an adjacency relation that is symmetric ( for all ) and irreflexive ( for every ).✦ Two finite simple graphs and are isomorphic, written , if there exists a bijection such that for all .✦
For any set , write for the set of finite multisets of elements of , denoted . The 1-WL color space at round is defined recursively by and .✦ The 1-WL vertex coloring is given by (1)✦ for every and . The 1-WL color histogram of at round is the multiset of round- colors from (1).✦
For any natural number , the -WL color space at round is defined recursively by and .✦ For a -tuple , an index , and a vertex , write for the -tuple obtained from by replacing its -th coordinate with , and write for the equality indicator. The -WL tuple coloring is given by (2)✦ for every and . The -WL color histogram of at round is , computed from (2).✦
For , two finite simple graphs and are -WL equivalent, written , if for every we have when , and when .✦ We say that -WL identifies if every finite simple graph with satisfies .✦ The WL dimension of is the least positive integer that identifies , as in (3): (3)✦
Binary encoding and the decision language
A binary word is a finite sequence of bits of length ✦, and a binary language is a subset .✦ The binary value of a binary word is its base- value most-significant bit first, given by (4): (4)✦ with for the empty word .
For a finite simple graph of order , the adjacency matrix encoding is the binary word obtained by concatenating the rows for .✦ Together with a binary word , the input encoding is defined by (5): (5)✦ concatenating copies of , a separating , the adjacency matrix encoding, and . The WL dimension language is the binary language defined by (6): (6)✦ collecting the input encodings of nonempty graphs and positive binary words starting with whose binary value is at least .
Turing machines and exponential time
A head move has head displacement equal to for left, for stay, and for right.✦ A Turing machine is specified by natural numbers and , giving a finite tape alphabet and a finite state set , together with a transition function of the form (7): (7)✦
A machine configuration of is a triple consisting of a state , a head position , and a tape .✦ A configuration is a halted configuration if , where is the accepting state and is the rejecting state.✦ For a bit , the input tape symbol is when and when , leaving as the blank symbol.✦ On a binary word of length , the initial configuration has state , head position , and tape given by (8): (8)✦
The one-step transition leaves a halted configuration unchanged; for a non-halted configuration with , it returns , where and for all .✦ For , the configuration after steps of on is the -fold iterate .✦
A Turing machine decides a binary language within a time bound if for every there exists such that is halted and has state if and only if .✦ A binary language belongs to , written , if there exist a Turing machine and natural numbers and such that decides within the time bound (9): (9)✦
The claim
Proposition 2.4. The WL dimension language belongs to : (10)✦
What is checked
In the Lean library, Proposition 2.4 states (10) for the WL dimension language defined over the binary input encoding of nonempty finite simple graphs and positive binary dimensions, using ordinary neighbor color refinement at dimension , joint-update -WL refinement for , and the deterministic Turing machine model with the exponential time bound (9).