The setting
Fix a natural number , a vertex set , and a degree vector . For a simple undirected graph on , write when vertices are adjacent in , and denote by the vertex degree of , meaning the number of neighbors of in . A simple graph on realizes if for every .✦ Write for the set of all simple undirected graphs on realizing , and let be the real-valued Euclidean space of functions on equipped with the inner product , norm , and identity operator .
Pair resamplings indexed by disjoint vertex pairs need not commute because both alter the four potential edges between and . In the analysis of the switch chain on , this interaction is controlled through two linear operators on : the cross-edge switch projection , which averages over toggling the cross edges between and , and the fiberwise equality-indicator projection , which projects onto a centered equality observable within each -fiber.
Switch flip and cross-edge projections
A 4-element vertex subset is a subset of cardinality .✦ A simple graph on is a perfect matching on if every vertex is adjacent in to a unique vertex and no vertex outside is adjacent to any vertex✦; such a graph is a matching on a 4-set. A switch proposal on consists of a 4-element vertex subset together with an ordered pair of distinct perfect matchings on , where is the removed matching and is the added matching of .✦ The reversed switch proposal is on the same 4-element subset .✦
For simple graphs on , the edge replacement is the simple graph on in which and are adjacent if and only if either and , or .✦ A switch proposal is valid for if every pair of vertices adjacent in is adjacent in and no pair adjacent in is adjacent in .✦ The result of on is the graph if is valid for , and otherwise.✦ When and is valid for , applying yields a graph in , called the state after the switch proposal.✦
For any switch proposal on , the switch flip map sends to the state after if is valid for , to the state after if is not valid for and is valid for , and to itself otherwise.✦ Because is an involution on , it defines a permutation of . Composing with gives a linear isometry , the switch flip operator, defined by .✦ The switch flip projection is defined by (1)✦
A vertex pair is a 2-element subset , equipped with a chosen ordering of its two distinct elements as a first vertex and a second vertex.✦ For four pairwise distinct vertices , the two-edge graph on is the simple graph on whose only edges are and ✦, and the four-vertex switch proposal on is the switch proposal on with removed matching given by the two-edge graph on and added matching given by the two-edge graph on .✦ For four pairwise distinct vertices , the cross switch proposal is the four-vertex switch proposal on .✦
If are disjoint vertex pairs, the chosen first and second vertices of together with those of are four pairwise distinct vertices✦; their cross switch proposal is the switch proposal on disjoint pairs✦, with corresponding cross-edge toggle . For arbitrary vertex pairs , the pair switch projection is given by (2)✦
Fiberwise equality-indicator projection
For a vertex subset , two simple graphs and on lie in the same -fiber if they have the same adjacencies on pairs of vertices both outside , the same adjacencies on pairs both inside , and the same number of neighbors in for every vertex .✦ The subspace of -fiberwise constant functions in consists of all satisfying whenever lie in the same -fiber.✦ The fluctuation operator is the orthogonal projection onto the orthogonal complement of this subspace.✦
For vertices , a vertex is outside if and .✦ For a simple graph on , the exclusive neighbors of and form the set of all vertices outside that are adjacent in to exactly one of and .✦ Given vertices , a graph is active for if both and .✦
For vertices , the pair equality indicator is defined by (3)✦ For vertices , the centered pair equality observable is .✦
The fiberwise equality-indicator projection isolates the non-commutation error that arises when two disjoint pair resamplings both alter the four edges between their endpoints.
For vertices , the pair equality subspace is the linear subspace of all functions such that for every , there exists satisfying (4)✦ for every in the same -fiber as . The pair equality projection is the orthogonal projection onto .✦ When and are disjoint vertex pairs, is the fiberwise equality-indicator orthogonal projection .
The claim
Theorem. Let be a natural number and be a degree vector.
For every switch proposal on , the switch flip projection is a symmetric orthogonal projection on : (5)✦
For every pair of vertex pairs and every , (6)✦
For every choice of vertices , the pair equality projection is symmetric on : for all , (7)✦
For every choice of vertices , every , and every graph that is not active for , (8)✦
What is checked
For any natural number and degree vector , the Lean library states the theorem over all switch proposals on , all pairs of 2-element vertex subsets , all four-tuples of vertices , and all functions in , establishing (5) to (8). The Lean library also proves that every switch flip map is an involution on ✦ and that the chosen endpoints of any two disjoint vertex pairs are four pairwise distinct vertices.✦