OctoInform Beta

OpenAI preprint, September 2026 · §1. Introduction

§1 (setting): The space Ωd\Omega_d of simple realizations, switch proposals, off-diagonal entries of PdP_d, and column sums equal to 11

Graphical degree sequences and the switch chain kernel.

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

Given a prescribed degree vector on nn 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 44-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 n∈ℕn \in \mathbb{N} and V={1,…,n}V = \{1, \ldots, n\} be a vertex set of size nn (empty when n=0n = 0), and let d=(d1,…,dn)∈ℕnd = (d_1, \ldots, d_n) \in \mathbb{N}^n be a degree vector. For a simple undirected graph GG on VV and a vertex v∈Vv \in V, the vertex degree deg⁡G(v)∈ℕ\deg_G(v) \in \mathbb{N} is the number of vertices adjacent to vv in GG.✦ 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 finite set Ωd\Omega_d of all simple undirected graphs on VV realizing dd is Ωd={G:deg⁡G(v)=dv for every v∈V},\Omega_d = \{G : \deg_G(v) = d_v \text{ for every } v \in V\},(1)✦ where GG ranges over simple undirected graphs on VV.

Switch proposals and the transition kernel

A 44-element subset of VV is a subset S⊆VS \subseteq V with |S|=4|S| = 4.✦ A simple undirected graph MM on VV is a perfect matching on SS if every vertex v∈Sv \in S has a unique neighbor in MM and no vertex v∉Sv \notin S has any neighbor in MM.✦

A switch proposal on VV is a triple p=(S,M,N)p = (S, M, N) consisting of a 44-element subset S⊆VS \subseteq V and an ordered pair (M,N)(M, N) of distinct perfect matchings on SS with M≠NM \neq N✦; here MM is the removed matching of pp✦ and NN is the added matching of pp.✦ Write 𝒫n\mathcal{P}_n for the finite set of all switch proposals on VV.✦ A switch proposal p=(S,M,N)p = (S, M, N) is valid at a simple undirected graph GG on VV if every edge of MM is an edge of GG and no edge of NN is an edge of GG.✦

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 in which two vertices u,v∈Vu, v \in V are adjacent if and only if they are adjacent in GG and not in MM, or they are adjacent in NN.✦ The result of a switch proposal p=(S,M,N)p = (S, M, N) applied to a simple undirected graph GG on VV is the edge replacement (G\M)∪N(G \setminus M) \cup N if pp is valid at GG, and GG itself otherwise.✦ For G,H∈ΩdG, H \in \Omega_d, a single switch transition maps GG to HH if there exists a switch proposal p∈𝒫np \in \mathcal{P}_n that is valid at GG and whose result applied to GG equals HH.✦

The lazy switch chain transition kernel Pd:Ωd×Ωd→ℝP_d : \Omega_d \times \Omega_d \to \mathbb{R} is defined for G,H∈ΩdG, H \in \Omega_d by Pd(G,H)=12𝟏G=H+|{p∈𝒫n:the result of p at G equals H}|12(n4)P_d(G, H) = \frac{1}{2}\mathbf{1}_{G = H} + \frac{|\{p \in \mathcal{P}_n : \text{the result of } p \text{ at } G \text{ equals } H\}|}{12\binom{n}{4}} when n≥4n \ge 4, and by Pd(G,H)=12𝟏G=HP_d(G, H) = \frac{1}{2}\mathbf{1}_{G = H} when n<4n < 4 (where 𝒫n=∅\mathcal{P}_n = \emptyset and (n4)=0\binom{n}{4} = 0). For n≥4n \ge 4, Pd(G,H)P_d(G, H) is the one-step transition probability from GG to HH of the lazy chain that remains at GG with probability 1/21/2 and otherwise chooses a proposal p∈𝒫np \in \mathcal{P}_n uniformly at random, moving to its result if pp is valid at GG and staying at GG otherwise.

The claim

Definition. Let n∈ℕn \in \mathbb{N} and let d=(d1,…,dn)∈ℕnd = (d_1, \ldots, d_n) \in \mathbb{N}^n be a degree vector. The degree vector dd is graphical if its set of realizations is nonempty: Ωd≠∅.\Omega_d \neq \emptyset.(2)✦ If n≥4n \ge 4 and H∈ΩdH \in \Omega_d, then the column of the lazy switch chain transition kernel PdP_d indexed by HH sums to 11: ∑G∈ΩdPd(G,H)=1.\sum_{G \in \Omega_d} P_d(G, H) = 1.(3)✦ For any n∈ℕn \in \mathbb{N} and any distinct realizations G,H∈ΩdG, H \in \Omega_d with G≠HG \neq H, the off-diagonal entry of PdP_d is Pd(G,H)={112(n4),if a single switch transition maps G to H,0,otherwise.P_d(G, H) = \begin{cases} \dfrac{1}{12\binom{n}{4}}, & \text{if a single switch transition maps } G \text{ to } H, \\ 0, & \text{otherwise.} \end{cases}(4)✦

In the paper, the result reads: vertices are indexed by V={1,…,n}V = \{1, \ldots, n\} and the lazy switch chain PdP_d is defined via uniform 44-element subsets of VV 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 n≥4n \ge 4, and the off-diagonal transition formula (4) for distinct realizations are stated over simple undirected graphs on nn vertices, their realizations Ωd\Omega_d, 44-element vertex subsets, perfect matchings, switch proposals, edge replacements, single switch transitions, and the real-valued switch chain transition kernel PdP_d.