The setting
The -dimensional Weisfeiler-Leman (-WL) algorithm iteratively colors the -tuples of vertices of a finite simple graph to test whether two graphs are indistinguishable by local counting. Equivalence under -WL refinement is closely tied to equality of graph homomorphism counts from graphs of bounded treewidth, where denotes the number of graph homomorphisms from to .
In the parity-lift reduction, a pairwise consistency problem on finite domains, called a choice system, is encoded into a pair of uncolored simple graphs and built as parity lifts over a template graph . The parameter is for joint -WL and for separate -WL.✦ Whenever the choice system has no successful choice, the two parity lifts and are -WL equivalent, both when color histograms are compared across separate graphs and when pure tuples are compared inside their disjoint union.
Weisfeiler-Leman refinement and equivalence
Fix a dimension and a refinement convention . The bag parameter associated to and is given by (1): (1)✦
Write for . For a finite simple graph and a -tuple , let denote the -tuple obtained from by replacing its -th entry with . The -round -WL color is defined by recursion on . At round , both conventions assign the atomic type of in . Writing for a multiset, the joint refinement step is given by (2) and the separate refinement step by (3): (2)✦ (3)✦
The -round color histogram of a finite simple graph under convention is the multiset of colors as ranges over . Two finite simple graphs and are -WL equivalent under when for every .✦
To compare the two graphs inside a single graph, let be their disjoint union with canonical vertex inclusions and . The -round pure-tuple histogram is the multiset of colors over all , and is defined symmetrically using . The graphs and are pure -WL equivalent under when for every .✦
Choice systems and the base graph
Fix . Let be the set of ordered index pairs in ✦, and let be the set of helper triples with and .✦ The template graph is the simple graph on vertex set in which forms a clique of distinct pairs, each helper vertex is adjacent to , , and and to no other main vertex, and no two helper vertices are adjacent.✦
A choice system encodes a pairwise consistency problem on finite domains in which every pair of chosen elements must agree under a shared label test.
A choice system on consists of a finite domain for each , a finite label set for each , and two label maps and for each .✦ The choice system has a successful choice if there exists a tuple satisfying (4): (4)✦
The base graph of is the simple graph on vertex set (5), (5)✦ whose edge set is the symmetric closure of four families of adjacencies:
and are adjacent for , , and when ;
and are adjacent when ;
and are adjacent when ;
and are adjacent for every and every .
The type map sends and .✦ Every edge of maps to an edge of , so is a graph homomorphism.✦
Parity lifts
Let denote the additive group of parity bits modulo .✦ Given a parity assignment and a vertex , a parity tag at for is a map on the neighborhood of in whose values sum to in .✦
Given a graph homomorphism and a parity assignment , the parity lift is the simple graph whose vertices are pairs with and a parity tag at for . Two vertices and are adjacent in if and only if and are adjacent in and satisfy (6): (6)✦
For the base graph of a choice system on with its type homomorphism , the zero parity lift is the parity lift for the identically zero assignment .✦ The star parity assignment assigns to the first main vertex and to every other vertex of ✦, and the star parity lift is .✦ Because , every domain , and every label set are finite, both and are finite simple graphs.
The claim
Lemma 2.2. For every integer , every refinement convention with bag parameter given by (1), and every choice system on that has no successful choice, the parity lifts and of are -WL equivalent under , meaning that for every , (7)✦ and they are pure -WL equivalent under in their disjoint union, meaning that for every , (8)✦
In the paper, the result reads: if for every graph of bag size at most , then and are -WL equivalent in the corresponding convention, and likewise for pure-tuple comparison in their disjoint union. The Lean library states both equivalences directly for the parity lifts and of a choice system with no successful choice.
What is checked
In Lemma 2.2, the Lean library states both separate-graph -WL equivalence (7) and disjoint-union pure-tuple -WL equivalence (8) for the parity lifts and of any choice system on with finite domains and finite label sets that has no successful choice, for every and both the joint () and separate () refinement conventions. Alongside the two equivalences, the Lean library constructs the template graph , the base graph with its type homomorphism , the parity lifts and as simple graphs, and both recursive -WL colorings with their separate-graph and pure-tuple histograms.