The setting
Comparing two parity lifts and of a base graph over a template graph by homomorphism counts from a pattern graph reduces, fiber by fiber over homomorphisms , to solving a system of linear parity equations over . A strict gap occurs precisely when some base homomorphism admits no compatible assignment of parity tags.✦ By linear duality over , the inconsistency of that system is witnessed by a pair of -valued vertex and edge weights on , and on the template graph with the star parity assignment every such dual witness distributes total weight onto every template vertex.
Parity lifts
A parity bit is an element of the field of integers modulo .✦ Let be a finite simple graph with vertex set , and let be a parity assignment. For a vertex with neighborhood in , a parity tag at is a function satisfying (1)✦
On the template graph alone the parity tags form Roberson’s parity graph, and pairing each tag with a base vertex of matching type yields the parity lift graph.
Let be a finite simple base graph with vertex set and edge set , equipped with a graph homomorphism called the type map. A lift graph vertex is a pair consisting of a vertex and a parity tag at .✦ The parity lift graph is the simple graph on the lift graph vertices in which and are adjacent if and (2)✦ The untwisted lift is the parity lift graph for the identically zero parity assignment . For finite simple graphs and , the homomorphism count is the number of graph homomorphisms from to .✦
Fix a finite simple graph with vertex set and edge set , together with a graph homomorphism . A family of parity lift variables for is a collection of functions . Such a family satisfies the parity lift equations for if (3)✦ The set of parity lift solutions is the set of all families of parity lift variables satisfying (3).✦
Weighted dual witnesses
Given a graph homomorphism and a parity assignment , a weighted dual witness for and is a pair consisting of vertex weights and edge weights such that for all , whenever and are not adjacent in , and (4) with all sums evaluated in .
For a weighted dual witness , a subset , and a vertex , the dual witness mass of at is (5)
Template graphs
For a natural number , write . 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 template graph vertex is either a main vertex or a helper triple .✦
A helper triple is incident to a main vertex if .✦ Under template graph adjacency, two template graph vertices are adjacent if they are distinct main vertices, or if one is a main vertex and the other is a helper triple incident to it; two helper triples are never adjacent.✦ The template graph is the simple graph on the template graph vertices with template graph adjacency.✦
The star parity assignment takes the value at the first main vertex when , and at every other template graph vertex.✦ When , the parity lift graph for is written .
The claim
Lemma 3.2. Let and be finite simple graphs, let be any simple graph (not necessarily finite), let be a graph homomorphism, and let be a parity assignment. When is finite, the homomorphism counts into and satisfy (6)✦ For every graph homomorphism (without assuming is finite), (7)✦ Conversely, for any graph homomorphism , if there exists a weighted dual witness for and , then there is no family of functions () satisfying (8)✦ Finally, if is a natural number, , is the star parity assignment, and is a weighted dual witness for a homomorphism and , then its dual witness mass satisfies (9)✦
What is checked
In the Lean library, Lemma 3.2 is stated over finite simple graphs , , and with a type map and an arbitrary parity assignment for the strict count gap criterion (6), the existence of a weighted dual witness (7), and the obstruction to tag solutions (8), and over the template graph for any natural number with the star parity assignment for the unit total mass identity (9).