The setting
In -dimensional Weisfeiler-Leman refinement for , two graphs are compared by iteratively refining a coloring of -tuples of vertices using atomic types and replacement multisets, either jointly across all coordinates or separately for each coordinate. Both refinement conventions are characterized by -pair bijective pebble games played on two graphs, with pebble pairs for the joint convention and pebble pairs for the separate convention.
A winning strategy for Duplicator in the -pair bijective pebble game is given by a downward-closed family of partial isomorphisms that admits a bijective extension whenever a pebble pair is unplaced. Below we formulate this game in two settings: for uncolored simple graphs represented by adjacency matrices on a finite vertex set, and for general simple graphs equipped with a binary vertex compatibility relation.
Simple graphs and the uncolored game
For a natural number , write . A simple graph on is specified by its adjacency matrix , which is symmetric ( for all ) and irreflexive ( for all ).✦ The degree of a vertex in is the number of vertices adjacent to : (1)✦
For a natural number , a -pebble position on is a partial assignment mapping each pebble index either to a vertex pair , written , or to the unplaced state, written .✦ For an index and a vertex pair , write for the single-pebble update that maps to and agrees with at every with . A -pebble position on is a subposition of a -pebble position on , written , if for every either or .✦
For simple graphs and on , a -pebble position on is a partial isomorphism between and if for all and all with and , (2)✦
A -pebble game invariant for and is a family of -pebble positions on satisfying three conditions: it is downward-closed under subpositions (if and , then ), every position in is a partial isomorphism between and , and for every and every with , there exists a bijection such that for every .✦ Duplicator wins the -pair bijective pebble game on and from a position if there exists a -pebble game invariant for and with .✦
The colored game on general simple graphs
Let and be arbitrary vertex sets, let be a simple graph on with symmetric, irreflexive adjacency relation , let be a simple graph on with adjacency relation , and let be a binary vertex compatibility relation. For , a -pebble position on and is a partial assignment mapping each either to a vertex pair or to .✦ Subpositions and single-pebble updates are defined as before: holds when every satisfies or ✦, and maps to while preserving for .
A -pebble position on and is a -preserving partial isomorphism between and if holds whenever , and for all with and , (3)✦
A -pebble colored game invariant for , , and is a family of -pebble positions on and that is downward-closed under subpositions, consists exclusively of -preserving partial isomorphisms between and , and satisfies bijective extension: for every and every with , there exists a bijection such that for every .✦ Duplicator wins the -colored -pair bijective pebble game on and from a position if there exists a -pebble colored game invariant for , , and with .✦
The claim
Definition. For a finite vertex set , a simple graph on , and a vertex , the degree of in is the cardinality of its neighborhood: (4)✦
Theorem.
Let with , let and be simple graphs on , and let be a -pebble position on from which Duplicator wins the -pair bijective pebble game on and . For every and all with , (5)✦
Let , let and be simple graphs on arbitrary vertex sets and , let be a vertex compatibility relation, and let be a -pebble position on and from which Duplicator wins the -colored -pair bijective pebble game on and . For any distinct pebble indices with and any vertex , there exists a vertex such that Duplicator wins the -colored -pair bijective pebble game on and from , the compatibility condition holds, and whenever for and , (6)✦
In the paper, the result reads: Definitions 2.1 and 2.2 are stated for finite, simple, nonempty vertex-colored graphs, defining the joint and separate -Weisfeiler-Leman refinement conventions for and the -pair bijective pebble game.
What is checked
The Lean library states the vertex degree definition in (4) for any simple graph on a finite vertex set, degree preservation in (5) for any two simple graphs on and any Duplicator winning position in the -pair bijective pebble game with , and pebble replacement in (6) for any two simple graphs on arbitrary vertex sets with a binary compatibility relation and any Duplicator winning position having an unplaced pebble pair distinct from the moved pebble.