OctoInform Beta

OpenAI preprint, September 2026 · §5. Disjoint pair resamplings

§5 (setting): Symmetry, idempotence, energy, and support properties of the switch flip projection ga,bg_{a,b} and the pair equality projection Ra,bR_{a,b}

Cross-edge switch and fiberwise equality projections.

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

Fix a natural number nn, a vertex set V={1,…,n}V = \{1, \ldots, n\}, and a degree vector d=(d1,…,dn)∈ℕnd = (d_1, \ldots, d_n) \in \mathbb{N}^n. For a simple undirected graph GG on VV, write u∼Gvu \sim_G v when vertices u,v∈Vu, v \in V are adjacent in GG, and denote by deg⁡G(v)\deg_G(v) the vertex degree of vv, meaning the number of neighbors of vv in GG. A simple graph GG on VV realizes dd if deg⁡G(v)=dv\deg_G(v) = d_v for every v∈Vv \in V.✦ Write Ωd\Omega_d for the set of all simple undirected graphs on VV realizing dd, and let L2(Ωd)L^2(\Omega_d) be the real-valued Euclidean space of functions on Ωd\Omega_d equipped with the inner product ⟨f,h⟩=∑G∈Ωdf(G)h(G)\langle f, h \rangle = \sum_{G \in \Omega_d} f(G) h(G), norm ∥f∥=⟨f,f⟩1/2\|f\| = \langle f, f \rangle^{1/2}, and identity operator II.

Pair resamplings indexed by disjoint vertex pairs a,b⊆Va, b \subseteq V need not commute because both alter the four potential edges between aa and bb. In the analysis of the switch chain on Ωd\Omega_d, this interaction is controlled through two linear operators on L2(Ωd)L^2(\Omega_d): the cross-edge switch projection ga,bg_{a,b}, which averages over toggling the cross edges between aa and bb, and the fiberwise equality-indicator projection Ra,bR_{a,b}, which projects onto a centered equality observable within each aa-fiber.

Switch flip and cross-edge projections

A 4-element vertex subset is a subset S⊆VS \subseteq V of cardinality 44.✦ A simple 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 and no vertex outside SS is adjacent to any vertex✦; such a graph is a matching on a 4-set. A switch proposal on VV consists of a 4-element vertex subset SS together with an ordered pair p=(M,N)p = (M, N) of distinct perfect matchings on SS, where MM is the removed matching and NN is the added matching of pp.✦ The reversed switch proposal is prev=(N,M)p^{\mathrm{rev}} = (N, M) on the same 4-element subset SS.✦

For simple graphs G,M,NG, M, N on VV, the edge replacement (G\M)∪N(G \setminus M) \cup N is the simple graph on VV in which uu and vv are adjacent if and only if either u∼Gvu \sim_G v and u≁Mvu \not\sim_M v, or u∼Nvu \sim_N v.✦ A switch proposal p=(M,N)p = (M, N) is valid for GG if every pair of vertices adjacent in MM is adjacent in GG and no pair adjacent in NN is adjacent in GG.✦ The result of pp on GG is the graph (G\M)∪N(G \setminus M) \cup N if pp is valid for GG, and GG otherwise.✦ When G∈ΩdG \in \Omega_d and pp is valid for GG, applying pp yields a graph in Ωd\Omega_d, called the state after the switch proposal.✦

For any switch proposal pp on VV, the switch flip map τp:Ωd→Ωd\tau_p : \Omega_d \to \Omega_d sends G∈ΩdG \in \Omega_d to the state after pp if pp is valid for GG, to the state after prevp^{\mathrm{rev}} if pp is not valid for GG and prevp^{\mathrm{rev}} is valid for GG, and to GG itself otherwise.✦ Because τp\tau_p is an involution on Ωd\Omega_d, it defines a permutation of Ωd\Omega_d. Composing with τp\tau_p gives a linear isometry Tp:L2(Ωd)→L2(Ωd)T_p : L^2(\Omega_d) \to L^2(\Omega_d), the switch flip operator, defined by (Tpf)(G)=f(τp(G))(T_p f)(G) = f(\tau_p(G)).✦ The switch flip projection gp:L2(Ωd)→L2(Ωd)g_p : L^2(\Omega_d) \to L^2(\Omega_d) is defined by gp=12(I−Tp).g_p = \frac{1}{2}(I - T_p).(1)✦

A vertex pair is a 2-element subset a⊆Va \subseteq V, equipped with a chosen ordering of its two distinct elements as a first vertex and a second vertex.✦ For four pairwise distinct vertices u1,u2,u3,u4∈Vu_1, u_2, u_3, u_4 \in V, the two-edge graph on (u1,u2,u3,u4)(u_1, u_2, u_3, u_4) is the simple graph on VV whose only edges are {u1,u2}\{u_1, u_2\} and {u3,u4}\{u_3, u_4\}✦, and the four-vertex switch proposal on (u1,u2,u3,u4)(u_1, u_2, u_3, u_4) is the switch proposal on {u1,u2,u3,u4}\{u_1, u_2, u_3, u_4\} with removed matching given by the two-edge graph on (u1,u2,u3,u4)(u_1, u_2, u_3, u_4) and added matching given by the two-edge graph on (u1,u3,u2,u4)(u_1, u_3, u_2, u_4).✦ For four pairwise distinct vertices i,j,k,l∈Vi, j, k, l \in V, the cross switch proposal is the four-vertex switch proposal on (i,k,l,j)(i, k, l, j).✦

If a,b⊆Va, b \subseteq V are disjoint vertex pairs, the chosen first and second vertices of aa together with those of bb are four pairwise distinct vertices✦; their cross switch proposal is the switch proposal pa,bp_{a,b} on disjoint pairs✦, with corresponding cross-edge toggle Ta,b=Tpa,bT_{a,b} = T_{p_{a,b}}. For arbitrary vertex pairs a,b⊆Va, b \subseteq V, the pair switch projection ga,b:L2(Ωd)→L2(Ωd)g_{a,b} : L^2(\Omega_d) \to L^2(\Omega_d) is given by ga,b={gpa,bif a∩b=∅,0otherwise.g_{a,b} = \begin{cases} g_{p_{a,b}} & \text{if } a \cap b = \emptyset, \\ 0 & \text{otherwise.} \end{cases}(2)✦

Fiberwise equality-indicator projection

For a vertex subset a⊆Va \subseteq V, two simple graphs GG and HH on VV lie in the same aa-fiber if they have the same adjacencies on pairs of vertices both outside aa, the same adjacencies on pairs both inside aa, and the same number of neighbors in aa for every vertex w∉aw \notin a.✦ The subspace of aa-fiberwise constant functions in L2(Ωd)L^2(\Omega_d) consists of all f∈L2(Ωd)f \in L^2(\Omega_d) satisfying f(G)=f(H)f(G) = f(H) whenever G,H∈ΩdG, H \in \Omega_d lie in the same aa-fiber.✦ The fluctuation operator ha:L2(Ωd)→L2(Ωd)h_a : L^2(\Omega_d) \to L^2(\Omega_d) is the orthogonal projection onto the orthogonal complement of this subspace.✦

For vertices i,j∈Vi, j \in V, a vertex w∈Vw \in V is outside {i,j}\{i, j\} if w≠iw \neq i and w≠jw \neq j.✦ For a simple graph GG on VV, the exclusive neighbors of ii and jj form the set SG(i,j)S_G(i, j) of all vertices outside {i,j}\{i, j\} that are adjacent in GG to exactly one of ii and jj.✦ Given vertices i,j,k,l∈Vi, j, k, l \in V, a graph G∈ΩdG \in \Omega_d is active for (i,j,k,l)(i, j, k, l) if both k∈SG(i,j)k \in S_G(i, j) and l∈SG(i,j)l \in S_G(i, j).✦

For vertices i,k,l∈Vi, k, l \in V, the pair equality indicator ui,k,l∈L2(Ωd)u_{i,k,l} \in L^2(\Omega_d) is defined by ui,k,l(G)={1if (i∼Gk↔i∼Gl),0otherwise.u_{i,k,l}(G) = \begin{cases} 1 & \text{if } (i \sim_G k \leftrightarrow i \sim_G l), \\ 0 & \text{otherwise.} \end{cases}(3)✦ For vertices i,j,k,l∈Vi, j, k, l \in V, the centered pair equality observable is zi,j,k,l=h{i,j}ui,k,l∈L2(Ωd)z_{i,j,k,l} = h_{\{i,j\}} u_{i,k,l} \in L^2(\Omega_d).✦

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 i,j,k,l∈Vi, j, k, l \in V, the pair equality subspace Wi,j,k,l⊆L2(Ωd)W_{i,j,k,l} \subseteq L^2(\Omega_d) is the linear subspace of all functions f∈L2(Ωd)f \in L^2(\Omega_d) such that for every G∈ΩdG \in \Omega_d, there exists c∈ℝc \in \mathbb{R} satisfying f(H)={czi,j,k,l(H)if G is active for (i,j,k,l),0otherwisef(H) = \begin{cases} c \, z_{i,j,k,l}(H) & \text{if } G \text{ is active for } (i, j, k, l), \\ 0 & \text{otherwise} \end{cases}(4)✦ for every H∈ΩdH \in \Omega_d in the same {i,j}\{i, j\}-fiber as GG. The pair equality projection Ri,j,k,l:L2(Ωd)→L2(Ωd)R_{i,j,k,l} : L^2(\Omega_d) \to L^2(\Omega_d) is the orthogonal projection onto Wi,j,k,lW_{i,j,k,l}.✦ When a={i,j}a = \{i, j\} and b={k,l}b = \{k, l\} are disjoint vertex pairs, Ri,j,k,lR_{i,j,k,l} is the fiberwise equality-indicator orthogonal projection Ra,bR_{a,b}.

The claim

Theorem. Let nn be a natural number and d=(d1,…,dn)∈ℕnd = (d_1, \ldots, d_n) \in \mathbb{N}^n be a degree vector.

For every switch proposal pp on VV, the switch flip projection gpg_p is a symmetric orthogonal projection on L2(Ωd)L^2(\Omega_d): gp*=gpandgp2=gp.g_p^* = g_p \quad \text{and} \quad g_p^2 = g_p.(5)✦

For every pair of vertex pairs a,b⊆Va, b \subseteq V and every f∈L2(Ωd)f \in L^2(\Omega_d), ⟨f,ga,bf⟩=∥ga,bf∥2.\langle f, g_{a,b} f \rangle = \|g_{a,b} f\|^2.(6)✦

For every choice of vertices i,j,k,l∈Vi, j, k, l \in V, the pair equality projection Ri,j,k,lR_{i,j,k,l} is symmetric on L2(Ωd)L^2(\Omega_d): for all f,h∈L2(Ωd)f, h \in L^2(\Omega_d), ⟨Ri,j,k,lf,h⟩=⟨f,Ri,j,k,lh⟩.\langle R_{i,j,k,l} f, h \rangle = \langle f, R_{i,j,k,l} h \rangle.(7)✦

For every choice of vertices i,j,k,l∈Vi, j, k, l \in V, every f∈L2(Ωd)f \in L^2(\Omega_d), and every graph G∈ΩdG \in \Omega_d that is not active for (i,j,k,l)(i, j, k, l), (Ri,j,k,lf)(G)=0.(R_{i,j,k,l} f)(G) = 0.(8)✦

What is checked

For any natural number nn and degree vector d∈ℕnd \in \mathbb{N}^n, the Lean library states the theorem over all switch proposals pp on VV, all pairs of 2-element vertex subsets a,b⊆Va, b \subseteq V, all four-tuples of vertices i,j,k,l∈Vi, j, k, l \in V, and all functions in L2(Ωd)L^2(\Omega_d), establishing (5) to (8). The Lean library also proves that every switch flip map τp\tau_p is an involution on Ωd\Omega_d✦ and that the chosen endpoints of any two disjoint vertex pairs are four pairwise distinct vertices.✦