OctoInform Beta

OpenAI preprint, September 2026 · §7. From pair resampling to the switch chain

Lemma 7.2: Any two graphs in Ωd\Omega_d are connected by a finite sequence of valid switches for n≥4n \ge 4 and graphical dd

Valid switches connect all realizations of a degree sequence.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

The switch chain is a Markov chain on simple undirected graphs with a prescribed labeled degree vector. At each step, it proposes removing a perfect matching on four vertices and inserting a different perfect matching on the same four vertices, performing the move whenever the removed edges are present and the added edges are absent. Such a move preserves simplicity and leaves every vertex degree unchanged. Irreducibility of the chain, and the ability of operator bounds to control every function centered with respect to the uniform distribution, depend on whether any two realizations of a graphical degree vector can be joined by a finite sequence of valid switches.

Degree realizations and valid switches

Let nn be a natural number and let V={1,…,n}V = \{1, \ldots, n\}. For a simple undirected graph GG on VV with edge set E(G)E(G) and a vertex v∈Vv \in V, the vertex degree deg⁡G(v)\deg_G(v) is the number of neighbors of vv in GG.✦ Given a degree vector d=(d1,…,dn)∈ℕnd = (d_1, \ldots, d_n) \in \mathbb{N}^n, a simple undirected graph GG on VV realizes dd if deg⁡G(v)=dv\deg_G(v) = d_v for every v∈Vv \in V.✦ The set of all simple undirected graphs on VV realizing dd is denoted Ωd\Omega_d✦, and dd is graphical if Ωd\Omega_d is nonempty.✦

A 44-element vertex subset is a subset S⊆VS \subseteq V of cardinality 44.✦ For any subset S⊆VS \subseteq V, a simple undirected graph MM on VV is a perfect matching on SS if every vertex v∈Sv \in S is adjacent in MM to a unique vertex w∈Vw \in V, and no vertex outside SS is adjacent in MM to any vertex.✦ A matching on a 44-element vertex subset SS is a simple undirected graph MM on VV that is a perfect matching on SS.✦ A switch proposal is a pair p=(S,(M,N))p = (S, (M, N)) consisting of a 44-element vertex subset S⊆VS \subseteq V and an ordered pair (M,N)(M, N) of distinct matchings on SS✦, where MM is the removed matching of pp✦ and NN is the added matching of pp.✦

For simple undirected graphs G,M,NG, M, N on VV, the edge replacement (G\M)∪N(G \setminus M) \cup N is the simple undirected graph on VV whose edge set satisfies {u,v}∈E((G\M)∪N)⇔({u,v}∈E(G) and {u,v}∉E(M))or {u,v}∈E(N)\begin{aligned} \{u, v\} \in E\bigl((G \setminus M) \cup N\bigr) \iff {} & \bigl(\{u, v\} \in E(G) \text{ and } \{u, v\} \notin E(M)\bigr) \\ & \text{or } \{u, v\} \in E(N) \end{aligned}(1)✦ for all distinct u,v∈Vu, v \in V. Given a simple undirected graph GG on VV and a switch proposal p=(S,(M,N))p = (S, (M, N)), the proposal pp is valid for GG if E(M)⊆E(G)E(M) \subseteq E(G) and E(N)∩E(G)=∅E(N) \cap E(G) = \emptyset.✦ The result of pp applied to GG is the edge replacement (G\M)∪N(G \setminus M) \cup N defined in (1) if pp is valid for GG, and GG itself otherwise.✦ Two graphs G,G′∈ΩdG, G' \in \Omega_d are related by a single switch transition, written G→G′G \to G', if there exists a valid switch proposal pp for GG whose result equals G′G'.✦

The claim

Lemma 7.2. Let n≥4n \ge 4 be a natural number, and let d=(d1,…,dn)∈ℕnd = (d_1, \ldots, d_n) \in \mathbb{N}^n be a graphical degree vector satisfying dv≤n−1d_v \le n - 1 for every v∈Vv \in V. Then for any two graphs G,G′∈ΩdG, G' \in \Omega_d, there exist a natural number k≥0k \ge 0 and graphs G0,G1,…,Gk∈ΩdG_0, G_1, \ldots, G_k \in \Omega_d such that G=G0→G1→⋯→Gk=G′.G = G_0 \to G_1 \to \cdots \to G_k = G'.(2)✦

What is checked

In the Lean library, Lemma 7.2 is stated over the set Ωd\Omega_d of simple undirected graphs on n≥4n \ge 4 vertices realizing a graphical degree vector dd with dv≤n−1d_v \le n - 1 for every v∈Vv \in V, using the single switch transition relation built from 44-element vertex subsets, distinct matchings on them, edge replacement, and valid switch proposals.