OctoInform Beta

OpenAI preprint, September 2026 · §2. Weisfeiler-Leman refinement and the bijective game

Lemma 2.1: Width-KK bijective systems imply G≡kHG \equiv_k H for 2≤k<K2 \le k < K, and kk-WL equivalence on leaf-tagged graphs yields tag-stable extensions

Bijective extension systems and Weisfeiler-Leman equivalence.

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

In finite model theory and graph isomorphism, kk-dimensional Weisfeiler-Leman (kk-WL) refinement partitions the kk-tuples of vertices of a finite simple graph into color classes, and two graphs GG and HH are kk-WL equivalent, written G≡kHG \equiv_k H, when they produce the same multiset of tuple colors at every refinement round. A central tool for proving or refuting G≡kHG \equiv_k H is the bijective pebble game, in which Duplicator maintains partial isomorphisms between tuples of vertices by answering each vertex choice with a bijection between the vertex sets.

To connect refinement to back-and-forth strategies in both directions, one relates G≡kHG \equiv_k H to families of tuple relations closed under reindexing and one-step bijective extensions, and one encodes vertex-colored graphs as uncolored graphs by attaching pendant leaves whose multiplicities record the vertex colors.

Weisfeiler-Leman refinement

All graphs are finite, simple, undirected, and uncolored. For a graph GG, write V(G)V(G) for its finite vertex set and E(G)E(G) for its edge set.

The 11-WL vertex coloring assigns to each vertex v∈V(G)v \in V(G) a color at each round s∈ℕs \in \mathbb{N}. At round 00, every vertex receives the same constant color. At round s+1s + 1, the color of vv is the pair consisting of its round-ss color and the multiset of round-ss colors of all vertices adjacent to vv in GG. The round-ss 11-WL color histogram of GG is the multiset of round-ss vertex colors over all v∈V(G)v \in V(G).✦

For k∈ℕk \in \mathbb{N}, the kk-WL tuple coloring assigns to each kk-tuple v=(v1,…,vk)∈V(G)kv = (v_1, \dots, v_k) \in V(G)^k a color χk(s)(G,v)\chi_k^{(s)}(G, v) at each round s∈ℕs \in \mathbb{N}. At round 00, χk(0)(G,v)\chi_k^{(0)}(G, v) is the pair of k×kk \times k Boolean matrices recording coordinate equalities (vi=vjv_i = v_j) and adjacencies ({vi,vj}∈E(G)\{v_i, v_j\} \in E(G)) for i,j∈{1,…,k}i, j \in \{1, \dots, k\}. For z∈V(G)z \in V(G) and i∈{1,…,k}i \in \{1, \dots, k\}, let v[i↦z]∈V(G)kv[i \mapsto z] \in V(G)^k denote the tuple obtained from vv by replacing its ii-th coordinate with zz. At round s+1s + 1, the tuple color is given recursively by (1): χk(s+1)(G,v)=(χk(s)(G,v),{{(χk(s)(G,v[i↦z]))i=1k:z∈V(G)}}),\begin{aligned} \chi_k^{(s+1)}(G, v) = \Bigl(&\chi_k^{(s)}(G, v), \\ &\bigl\{\!\bigl\{ \bigl(\chi_k^{(s)}(G, v[i \mapsto z])\bigr)_{i=1}^k : z \in V(G) \bigr\}\!\bigr\} \Bigr), \end{aligned}(1) where {{⋅}}\{\!\{\cdot\}\!\} denotes a multiset. The round-ss kk-WL color histogram of GG is the multiset of colors χk(s)(G,v)\chi_k^{(s)}(G, v) over all v∈V(G)kv \in V(G)^k.✦

Two finite simple graphs GG and HH are kk-WL equivalent, written G≡kHG \equiv_k H, if their round-ss 11-WL color histograms agree for every s∈ℕs \in \mathbb{N} when k=1k = 1, and if their round-ss kk-WL color histograms agree for every s∈ℕs \in \mathbb{N} when k≠1k \neq 1.✦ A pair of kk-tuples (v,w)∈V(G)k×V(H)k(v, w) \in V(G)^k \times V(H)^k is kk-WL stable if χk(s)(G,v)=χk(s)(H,w)\chi_k^{(s)}(G, v) = \chi_k^{(s)}(H, w) for every s∈ℕs \in \mathbb{N}.✦

Bijective extension systems

Let GG and HH be finite simple graphs and let K∈ℕK \in \mathbb{N}. A bijective extension system of width KK between GG and HH is a family of relations Rm⊆V(G)m×V(H)mR_m \subseteq V(G)^m \times V(H)^m for m∈ℕm \in \mathbb{N} satisfying four conditions. First, R0R_0 relates the unique pair of empty tuples in V(G)0×V(H)0V(G)^0 \times V(H)^0. Second, for all m,n∈ℕm, n \in \mathbb{N}, if (v,w)∈Rm(v, w) \in R_m and f:{1,…,n}→{1,…,m}f : \{1, \dots, n\} \to \{1, \dots, m\} is any map, then (v∘f,w∘f)∈Rn(v \circ f, w \circ f) \in R_n, where (v∘f)i=vf(i)(v \circ f)_i = v_{f(i)}. Third, whenever (v,w)∈Rm(v, w) \in R_m, the tuples preserve equalities and edges as in (2): vi=vj⇔wi=wj,{vi,vj}∈E(G)⇔{wi,wj}∈E(H)\begin{aligned} v_i = v_j &\iff w_i = w_j, \\ \{v_i, v_j\} \in E(G) &\iff \{w_i, w_j\} \in E(H) \end{aligned}(2) for all i,j∈{1,…,m}i, j \in \{1, \dots, m\}. Fourth, for every m<Km < K and every (v,w)∈Rm(v, w) \in R_m, there exists a bijection e:V(G)→V(H)e : V(G) \to V(H) such that ((v,z),(w,e(z)))∈Rm+1((v, z), (w, e(z))) \in R_{m+1} for all z∈V(G)z \in V(G), where (v,z)∈V(G)m+1(v, z) \in V(G)^{m+1} is obtained by appending zz to vv.

Leaf-tagged graphs

Let GG be a finite simple graph on a finite vertex set VV, and let ℓ:V→ℕ\ell : V \to \mathbb{N} be a multiplicity function. The leaf-augmented vertex set of (V,ℓ)(V, \ell) is the disjoint union V⊔⨆u∈V{1,…,ℓ(u)}V \sqcup \bigsqcup_{u \in V} \{1, \dots, \ell(u)\}.✦ The graph with pendant leaves GℓG^\ell on this vertex set retains all edges of GG between vertices in VV, connects each u∈Vu \in V to each of its ℓ(u)\ell(u) attached leaves, and has no edges between leaves.✦

Given a vertex coloring c:V→ℕc : V \to \mathbb{N}, the leaf-tag size of a vertex u∈Vu \in V is defined by (3): ℓc(u)=c(u)(|V|+1).\ell_c(u) = c(u)\bigl(|V| + 1\bigr).(3)✦ The leaf-tagged graph GcG_c is the graph with pendant leaves GℓcG^{\ell_c}.✦ Given finite simple graphs GG on VV and HH on WW with vertex colorings c:V→ℕc : V \to \mathbb{N} and c′:W→ℕc' : W \to \mathbb{N}, a pair of kk-tuples (v,w)∈Vk×Wk(v, w) \in V^k \times W^k is tag-stable with respect to cc and c′c' if (v,w)(v, w), viewed as a pair of kk-tuples of original vertices in GcG_c and Hc′H_{c'}, is kk-WL stable, so that χk(s)(Gc,v)=χk(s)(Hc′,w)\chi_k^{(s)}(G_c, v) = \chi_k^{(s)}(H_{c'}, w) for every s∈ℕs \in \mathbb{N}.✦

The claim

Lemma 2.1. Let GG and HH be finite simple graphs and let k,K∈ℕk, K \in \mathbb{N} satisfy 2≤k<K2 \le k < K. If there exists a bijective extension system of width KK between GG and HH, then G≡kH.G \equiv_k H.(4)✦

Now let GG and HH be finite simple graphs on finite vertex sets VV and WW, let c:V→ℕc : V \to \mathbb{N} and c′:W→ℕc' : W \to \mathbb{N} satisfy c(u)>0c(u) > 0 for every u∈Vu \in V, and let k≥2k \ge 2. If Gc≡kHc′G_c \equiv_k H_{c'}, then for every v∈Vkv \in V^k there exists w∈Wkw \in W^k such that (v,w)(v, w) is tag-stable, that is, for every s∈ℕs \in \mathbb{N}, χk(s)(Gc,v)=χk(s)(Hc′,w).\chi_k^{(s)}(G_c, v) = \chi_k^{(s)}(H_{c'}, w).(5)✦

For the same G,H,c,c′G, H, c, c', and k≥2k \ge 2 with c(u)>0c(u) > 0 for every u∈Vu \in V, if |V|=|W||V| = |W| and (v,w)∈Vk×Wk(v, w) \in V^k \times W^k is tag-stable, then there exists a map e:V→We : V \to W such that for every z∈Vz \in V, every i∈{1,…,k}i \in \{1, \dots, k\}, and every s∈ℕs \in \mathbb{N}, χk(s)(Gc,v[i↦z])=χk(s)(Hc′,w[i↦e(z)]),c(z)=c′(e(z)),{vi,z}∈E(G)⇔{wi,e(z)}∈E(H).\begin{aligned} \chi_k^{(s)}\bigl(G_c, v[i \mapsto z]\bigr) &= \chi_k^{(s)}\bigl(H_{c'}, w[i \mapsto e(z)]\bigr), \\ c(z) &= c'(e(z)), \\ \{v_i, z\} \in E(G) &\iff \{w_i, e(z)\} \in E(H). \end{aligned}(6)✦

In the paper, the result reads: for finite simple graphs GG and HH of equal positive order and k≥2k \ge 2, one has G≡kHG \equiv_k H if and only if Duplicator has a winning strategy from the empty position in the bijective game with k+1k + 1 pair slots, and a winning strategy with at least two pair slots implies G≡1HG \equiv_1 H. The Lean library separates the forward implication for bijective extension systems in (4) from the extraction of tag-stable tuples and one-step extensions on leaf-tagged graphs in (5) and (6).

What is checked

Lemma 2.1 is stated over finite simple graphs with their 11-WL and kk-WL colorings and histograms, bijective extension systems of width K>k≥2K > k \ge 2, and leaf-tagged graphs with tag-stable kk-tuples under positive vertex colorings on the first graph and equal vertex-set cardinalities for the one-step extension.