The setting
For a fixed dimension , the -dimensional Weisfeiler-Leman (-WL) algorithm iteratively refines colors on -tuples of vertices of a graph. In complexity theory, -WL equivalence is characterized combinatorially by the -pair bijective pebble game between Spoiler and Duplicator, with pebble pairs under the joint refinement convention and pebble pairs under the separate refinement convention. Lemma 2.3 establishes this exact equivalence at the level of individual -tuples for graphs of equal order , together with a bisimulation criterion for the separate convention.
Write for any , with . A graph on is a simple uncolored undirected graph specified by its adjacency matrix , which is symmetric ( for all ) and irreflexive ( for all ).✦
Weisfeiler-Leman tuple refinement
A refinement convention is a choice .✦ For any set , write for the collection of finite multisets of elements of , and denote the multiset of values as ranges over by . For each convention and , the round- color space is defined recursively on by setting at round , and at round by (1)✦
For a tuple , an index , and a vertex , write for the tuple that agrees with outside coordinate and takes value at coordinate . Write for the indicator of coordinate equality. Given a graph on , the round- tuple coloring is defined recursively on . At round , it records coordinate equalities and adjacencies via (2): (2)✦ At round , the joint convention counts the multiset of -vectors of replacement colors as varies over : (3)✦ The separate convention counts a replacement multiset independently for each coordinate : (4)✦ Notice that (1), (2), (3), and (4) assign colors from a common space across all -vertex graphs. Given graphs and on , two -tuples have the same stable -WL color under convention if for every .✦
The bijective pebble game
For , a -pair pebble position on is a function .✦ A slot is vacant when and occupied by the pair when . For a slot and a pair , write for the position obtained from by placing in slot and leaving all other slots unchanged.
A -pair position is a subposition of a -pair position , written , if for every either or .✦ Given graphs and on , a -pair position is a partial isomorphism between and if for all with and , (5)✦
Closure under dropping pebble pairs captures the monotonicity of winning positions in the bijective game. A -pair game invariant for and is a family of -pair positions on satisfying three properties:✦
if and , then ;
every satisfies the partial isomorphism condition (5);
for every and every with , there exists a bijection such that for all .
Duplicator wins the -pair bijective game on from a -pair position (or simply wins from when , , and are clear from context) if there exists a -pair game invariant for and with .✦
For -tuples , the full -pair position is defined by for all .✦ The -pair position with one spare pebble, , is defined by for all and .✦
The claim
Lemma 2.3. Let , let and be graphs on , and let .
If and , then (6)✦ For all and , (7)✦ Finally, let be a binary relation such that every pair satisfies and, for every , admits a bijection with for all . If , then (8)✦
In the paper, the result reads: for graphs and of equal positive order , with for the joint convention and for the separate convention, two -tuples have the same stable color if and only if Duplicator has a winning -pair strategy from the position marking and on corresponding pairs, and and have equal stable -tuple color histograms if and only if Duplicator has a winning -pair strategy from the empty position. The Lean library states the tuple-level equivalences for uncolored graphs on , with explicit hypotheses and in the joint case, alongside the bisimulation sufficient condition for separate refinement.
What is checked
In the Lean library, equivalences (6) and (7) and implication (8) of Lemma 2.3 are stated over simple uncolored graphs on given by symmetric irreflexive adjacency matrices, round-by-round -WL tuple colors under the joint and separate conventions, and -pair game invariants on pebble positions from the starting positions and .