The setting
Given a prescribed degree vector on labeled vertices, the switch chain is a lazy Markov chain on the finite set of all simple undirected graphs with those degrees. Each move proposes replacing two disjoint edges on a -element vertex subset by a different perfect matching on the same four vertices, accepting the move whenever the removed edges are present and the added edges are absent. The chain’s transition probabilities and normalization rest on the combinatorial structure of these degree-preserving realizations and switch proposals.
Graphs and degree sequences
Let and be a vertex set of size (empty when ), and let be a degree vector. For a simple undirected graph on and a vertex , the vertex degree is the number of vertices adjacent to in .✦ A simple undirected graph on realizes if for every .✦ The finite set of all simple undirected graphs on realizing is (1)✦ where ranges over simple undirected graphs on .
Switch proposals and the transition kernel
A -element subset of is a subset with .✦ A simple undirected graph on is a perfect matching on if every vertex has a unique neighbor in and no vertex has any neighbor in .✦
A switch proposal on is a triple consisting of a -element subset and an ordered pair of distinct perfect matchings on with ✦; here is the removed matching of ✦ and is the added matching of .✦ Write for the finite set of all switch proposals on .✦ A switch proposal is valid at a simple undirected graph on if every edge of is an edge of and no edge of is an edge of .✦
For simple undirected graphs on , the edge replacement is the simple undirected graph on in which two vertices are adjacent if and only if they are adjacent in and not in , or they are adjacent in .✦ The result of a switch proposal applied to a simple undirected graph on is the edge replacement if is valid at , and itself otherwise.✦ For , a single switch transition maps to if there exists a switch proposal that is valid at and whose result applied to equals .✦
The lazy switch chain transition kernel is defined for by when , and by when (where and ). For , is the one-step transition probability from to of the lazy chain that remains at with probability and otherwise chooses a proposal uniformly at random, moving to its result if is valid at and staying at otherwise.
The claim
Definition. Let and let be a degree vector. The degree vector is graphical if its set of realizations is nonempty: (2)✦ If and , then the column of the lazy switch chain transition kernel indexed by sums to : (3)✦ For any and any distinct realizations with , the off-diagonal entry of is (4)✦
In the paper, the result reads: vertices are indexed by and the lazy switch chain is defined via uniform -element subsets of and ordered pairs of distinct perfect matchings on them.
What is checked
In the Lean library, the definition of a graphical degree sequence (2), the column-sum identity (3) for , and the off-diagonal transition formula (4) for distinct realizations are stated over simple undirected graphs on vertices, their realizations , -element vertex subsets, perfect matchings, switch proposals, edge replacements, single switch transitions, and the real-valued switch chain transition kernel .