The setting
In Weisfeiler-Leman (WL) color refinement, two finite graphs are separated by the -dimensional Weisfeiler-Leman (-WL) algorithm whenever some graph of treewidth at most admits different numbers of homomorphisms into the two graphs. To link -WL equivalence (for ) to constraint satisfaction, one encodes a choice system on (taking for joint -WL and for separate -WL) as a base graph equipped with a type map into a template graph , and constructs two parity lifts and of along . When a choice system on admits a compatible choice across all pairs, the question is whether the template graph itself separates and by homomorphism count, for any positive integer .
The template graph
Fix a natural number and write . An ordered index pair is a pair with .✦ A helper triple is a pair consisting of an ordered index pair and a third index , denoted .✦ A helper triple is incident to a main index if .✦
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 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 triples are adjacent.✦
Choice systems
For a natural number , a choice system on consists of a finite domain for each , a finite label set for each ordered index pair , and left and right labeling maps and .✦
A choice system on is successful if there exists a family with for each such that for every ordered index pair .✦
The base graph
Given a choice system on , a base graph vertex is either a main base vertex with and , or a helper base vertex with a helper triple and a label .✦ Write for the disjoint union of these two vertex sets.
A base graph arc is a directed relation on of four types: a main arc from to for an ordered index pair and elements , satisfying ; a left arc from to for a helper triple and ; a right arc from to for a helper triple and ; and a third arc from to for a helper triple , any label , and any .✦
The base graph of is the simple graph on formed as the undirected graph of the base graph arc relation, so two distinct vertices are adjacent in if there is a base graph arc from to or from to .✦ The base vertex projection maps each main base vertex to and each helper base vertex to .✦ Every base graph arc joins vertices whose images under are adjacent in , so defines 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 on vertex set and let be a parity assignment. A parity tag at a vertex is a map on the set of neighbors of in satisfying (1)✦ in .
Given a graph homomorphism from a simple graph on vertex set to and a parity assignment , a lift graph vertex is a pair consisting of a vertex and a parity tag at satisfying (1).✦ The parity lift graph of along with parity assignment is the simple graph on the lift graph vertices in which and are adjacent if and are adjacent in and (2)✦ Since preserves adjacency, both sides of (2) are well-defined whenever and are adjacent in .
For a choice system on , the zero parity lift is the parity lift graph of along with the identically zero parity assignment sending every vertex of to .✦ The star parity assignment is given by (3)✦ The star parity lift of is the parity lift graph of along with the star parity assignment (3).✦
For finite simple graphs and , the homomorphism count is the number of graph homomorphisms from to , that is, maps sending adjacent vertices of to adjacent vertices of .✦ Because is a natural number and every domain and label set of is finite, the graphs , , and are finite simple graphs.
The claim
Lemma 3.3. Let be a positive integer and let be a successful choice system on . Then the template graph admits strictly fewer homomorphisms into the star parity lift than into the zero parity lift : (4)✦
What is checked
In the Lean library, the inequality (4) of Lemma 3.3 is stated for every positive integer and every successful choice system on , over the template graph , the base graph with its base graph projection , the zero parity lift , the star parity lift , and the homomorphism count .