The setting
In the -dimensional Weisfeiler-Leman (-WL) color refinement algorithm, two standard conventions govern how the color of a -tuple of vertices is updated: joint -WL (folklore -WL) and separate -WL (oblivious -WL). For , a parity-lift construction takes a pairwise consistency instance on finite domains, with for joint -WL and for separate -WL, and produces two uncolored simple graphs and over a template graph . The question considered here is how early in color refinement a consistent assignment is detected: whether and already differ in their color histograms after two rounds of joint -WL or one round of separate -WL, both when each graph is refined on its own and when pure tuples are compared inside their disjoint union .
Weisfeiler-Leman refinement
A WL coloring convention is either the joint convention or the separate convention.✦ For a convention and a natural number , the bag parameter is when is joint and when is separate✦, and the detection round is when is joint and when is separate.✦
Let be a simple graph on a finite vertex set , and let and be natural numbers. Write , and view a -tuple as a map . For and , write for the -tuple obtained from by replacing its -th entry with . The joint -WL coloring assigns to each a joint -WL color inductively in : at round , is the atomic type of in , and at round it is given by (1), where denotes a multiset: (1)✦ The separate -WL coloring likewise assigns the atomic type of at round , and at round it assigns the separate -WL color given by (2): (2)✦ Write for when is joint and when is separate.
Let and be simple graphs on finite vertex sets, and let and be the canonical inclusions into their disjoint union . Under convention at dimension and round , the color histogram and the pure-tuple histogram are the multisets defined in (3): (3) The pure-tuple histogram is defined analogously using . The graphs and have the same -WL color histogram under at dimension and round when , and they have the same pure -WL histogram when .
Template graphs
For a natural number , an ordered index pair is a pair with and .✦ A helper triple is a triple consisting of an ordered index pair and a third index .✦ A helper triple is incident to a main index if .✦
The template graph augments a clique with degree-three helper vertices so that extensions from the clique are determined by common-neighbor counts of triples.
The template graph is the simple graph whose vertex set is the disjoint union of the main vertices and the set of all helper triples .✦ Two vertices of are adjacent under template graph adjacency if they are distinct main vertices, or if one is a main vertex and the other is a helper triple incident to ; no two helper vertices are adjacent.✦
Choice systems
A choice system encodes a pairwise consistency constraint in which elements selected from finite domains must agree on every shared pairwise label test.
A choice system on consists of a finite domain for each , a finite label set for each ordered index pair with , and left and right labeling maps and .✦ The choice system is successful if there exists a family with for every such that (4) holds for every ordered index pair with : (4)✦
The base graph vertex set of is the disjoint union of main vertices , with and , and helper vertices , with a helper triple and .✦ A base graph arc is a directed relation on of four types: a main arc from to for whenever ; a left arc from to ; a right arc from to ; and a third arc from to for every and .✦ The base graph of is the simple graph on in which two distinct vertices are adjacent whenever a base graph arc joins them in either direction.✦ The base vertex projection sends to and to ; it preserves adjacency and therefore forms a graph homomorphism from to , called the base graph projection.✦
Parity lifts
A parity bit is an element of .✦ Let be a finite simple graph and a parity assignment. For a vertex with neighborhood in , a parity tag at for is a map satisfying (5): (5)✦ Given a graph homomorphism from a base graph to , a lift graph vertex is a pair where and is a parity tag at for .✦ The parity lift graph is the simple graph on these lift graph vertices in which and are adjacent if and are adjacent in and .✦
For a choice system on with base graph and base graph projection , the zero parity lift is the parity lift graph for the identically zero parity assignment .✦ The star parity assignment assigns to the first main vertex and to every other vertex of ✦, and the star parity lift is the parity lift graph for .✦
The claim
Lemma 2.3. Let be a natural number, let be a WL coloring convention with bag parameter and detection round , and let be a successful choice system on with zero parity lift and star parity lift . Then and have different round- -WL color histograms both separately and as pure tuples in their disjoint union, satisfying (6): (6)✦
In the paper, the result reads: the round-two color histogram in joint -WL determines the number of graph homomorphisms from to a finite simple graph , and the round-one color histogram in separate -WL determines , both for separate graphs and for pure-tuple histograms in a disjoint union. Lemma 2.3 states directly the resulting early-round separation between the parity lifts and of a successful choice system.
What is checked
In the Lean library, Lemma 2.3 is stated for every natural number , both WL coloring conventions (joint with bag parameter and detection round , and separate with and ), and every successful choice system on , comparing the round- -WL color histograms and pure-tuple disjoint-union histograms of the zero parity lift and the star parity lift . The Lean library also establishes that the template graph and the parity lift graphs are simple graphs and that the base vertex projection is a graph homomorphism from the base graph to .