The setting
Weisfeiler-Leman (WL) color refinement compares finite simple graphs by iteratively partitioning vertices in the one-dimensional algorithm (-WL) or -tuples of vertices in the -dimensional algorithm (-WL). A basic structural question for this hierarchy is how higher-dimensional tuple colorings relate to ordinary vertex color refinement round by round, and at what dimension the test distinguishes an -vertex graph from every non-isomorphic graph.
Weisfeiler-Leman refinement and identification
A finite simple graph consists of a natural number , called its order, on the vertex set (empty when ), together with a symmetric, irreflexive adjacency relation on , written when and are adjacent.✦ Two finite simple graphs and are isomorphic, written , if there exists a bijection such that if and only if for all .✦
For any set , write for the set of finite multisets with elements in , and denote a multiset by . For each round , the -WL color space is defined recursively by , a one-element set, and .✦ The -WL vertex coloring assigns to every vertex the initial color at round , and updates at round by (1)✦ The -WL color histogram of at round is the multiset of vertex colors (2)✦
For , write (empty when ) and for the set of -tuples of vertices of . For each round , the -WL color space is defined recursively by (3)✦ For , , and , write for the -tuple obtained from by replacing its -th coordinate with . Writing for the indicator that equals if holds and otherwise, the -WL tuple coloring is defined at round by the equality and adjacency matrices (4) and at round by the joint-update rule (5)✦ The -WL color histogram of at round is the multiset of tuple colors (6)✦
For , two finite simple graphs and are -WL equivalent, written , if for every round , (7)✦ Given , -WL identifies a finite simple graph if every finite simple graph satisfying is isomorphic to .✦
The claim
Lemma 2.2. For any finite simple graphs and , any integer , any round , any -tuples and , and any coordinate , (8)✦ Furthermore, for every finite simple graph of order , -WL identifies : for every finite simple graph , (9)✦
In the paper, the result reads: for positive integers , the relation implies , and consequently a graph has Weisfeiler-Leman dimension if and only if -WL identifies .
What is checked
The Lean library states Lemma 2.2 over finite simple graphs, graph isomorphism, the recursive -WL vertex coloring (1) and histogram (2), the -WL color space (3), joint-update tuple coloring (4) and (5), and histogram (6), -WL equivalence (7), and -WL identification, with (8) stated for all and and (9) stated for every finite simple graph of order .