OctoInform Beta

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

Lemma 2.3: Exact tuple-level equivalence with KK-pair winning strategies for joint and separate refinement, plus a separate-refinement bisimulation criterion

Stable Weisfeiler-Leman colors and the bijective pebble game.

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

For a fixed dimension k∈ℕk \in \mathbb{N}, the kk-dimensional Weisfeiler-Leman (kk-WL) algorithm iteratively refines colors on kk-tuples of vertices of a graph. In complexity theory, kk-WL equivalence is characterized combinatorially by the KK-pair bijective pebble game between Spoiler and Duplicator, with K=k+1K = k + 1 pebble pairs under the joint refinement convention and K=kK = k pebble pairs under the separate refinement convention. Lemma 2.3 establishes this exact equivalence at the level of individual kk-tuples for graphs of equal order n∈ℕn \in \mathbb{N}, together with a bisimulation criterion for the separate convention.

Write [m]={0,1,…,m−1}[m] = \{0, 1, \dots, m - 1\} for any m∈ℕm \in \mathbb{N}, with [0]=∅[0] = \emptyset. A graph GG on [n][n] is a simple uncolored undirected graph specified by its adjacency matrix AG:[n]×[n]→{0,1}A_G : [n] \times [n] \to \{0, 1\}, which is symmetric (AG(x,y)=AG(y,x)A_G(x, y) = A_G(y, x) for all x,y∈[n]x, y \in [n]) and irreflexive (AG(x,x)=0A_G(x, x) = 0 for all x∈[n]x \in [n]).✦

Weisfeiler-Leman tuple refinement

A refinement convention is a choice c∈{joint,separate}c \in \{\mathrm{joint}, \mathrm{separate}\}.✦ For any set XX, write ℳ(X)\mathcal{M}(X) for the collection of finite multisets of elements of XX, and denote the multiset of values f(z)f(z) as zz ranges over [n][n] by {{f(z):z∈[n]}}\{\!\{ f(z) : z \in [n] \}\!\}. For each convention cc and k∈ℕk \in \mathbb{N}, the round-tt color space 𝒞k,tc\mathcal{C}^c_{k, t} is defined recursively on t∈ℕt \in \mathbb{N} by setting 𝒞k,0c={0,1}[k]×[k]×{0,1}[k]×[k]\mathcal{C}^c_{k, 0} = \{0, 1\}^{[k] \times [k]} \times \{0, 1\}^{[k] \times [k]} at round 00, and at round t+1t + 1 by 𝒞k,t+1joint=𝒞k,tjoint×ℳ((𝒞k,tjoint)[k]),𝒞k,t+1separate=𝒞k,tseparate×(ℳ(𝒞k,tseparate))[k].\begin{aligned} \mathcal{C}^{\mathrm{joint}}_{k, t + 1} &= \mathcal{C}^{\mathrm{joint}}_{k, t} \times \mathcal{M}\bigl((\mathcal{C}^{\mathrm{joint}}_{k, t})^{[k]}\bigr), \\ \mathcal{C}^{\mathrm{separate}}_{k, t + 1} &= \mathcal{C}^{\mathrm{separate}}_{k, t} \times \bigl(\mathcal{M}(\mathcal{C}^{\mathrm{separate}}_{k, t})\bigr)^{[k]}. \end{aligned}(1)✦

For a tuple v∈[n]kv \in [n]^k, an index i∈[k]i \in [k], and a vertex z∈[n]z \in [n], write v[i↦z]∈[n]kv[i \mapsto z] \in [n]^k for the tuple that agrees with vv outside coordinate ii and takes value zz at coordinate ii. Write 𝟏[vi=vj]∈{0,1}\mathbf{1}[v_i = v_j] \in \{0, 1\} for the indicator of coordinate equality. Given a graph GG on [n][n], the round-tt tuple coloring χG,tc:[n]k→𝒞k,tc\chi^c_{G, t} : [n]^k \to \mathcal{C}^c_{k, t} is defined recursively on t∈ℕt \in \mathbb{N}. At round 00, it records coordinate equalities and adjacencies via (2): χG,0c(v)=((𝟏[vi=vj])i,j∈[k],(AG(vi,vj))i,j∈[k]).\chi^c_{G, 0}(v) = \Bigl(\bigl(\mathbf{1}[v_i = v_j]\bigr)_{i, j \in [k]},\; \bigl(A_G(v_i, v_j)\bigr)_{i, j \in [k]}\Bigr).(2)✦ At round t+1t + 1, the joint convention counts the multiset of kk-vectors of replacement colors as zz varies over [n][n]: χG,t+1joint(v)=(χG,tjoint(v),{{(χG,tjoint(v[i↦z]))i∈[k]:z∈[n]}}).\begin{aligned} &\chi^{\mathrm{joint}}_{G, t + 1}(v) = \Bigl(\chi^{\mathrm{joint}}_{G, t}(v), \\ &\qquad \bigl\{\!\bigl\{ \bigl(\chi^{\mathrm{joint}}_{G, t}(v[i \mapsto z])\bigr)_{i \in [k]} : z \in [n] \bigr\}\!\bigr\}\Bigr). \end{aligned}(3)✦ The separate convention counts a replacement multiset independently for each coordinate i∈[k]i \in [k]: χG,t+1separate(v)=(χG,tseparate(v),({{χG,tseparate(v[i↦z]):z∈[n]}})i∈[k]).\begin{aligned} &\chi^{\mathrm{separate}}_{G, t + 1}(v) = \Bigl(\chi^{\mathrm{separate}}_{G, t}(v), \\ &\qquad \bigl(\bigl\{\!\bigl\{ \chi^{\mathrm{separate}}_{G, t}(v[i \mapsto z]) : z \in [n] \bigr\}\!\bigr\}\bigr)_{i \in [k]}\Bigr). \end{aligned}(4)✦ Notice that (1), (2), (3), and (4) assign colors from a common space 𝒞k,tc\mathcal{C}^c_{k, t} across all nn-vertex graphs. Given graphs GG and HH on [n][n], two kk-tuples v,w∈[n]kv, w \in [n]^k have the same stable kk-WL color under convention cc if χG,tc(v)=χH,tc(w)\chi^c_{G, t}(v) = \chi^c_{H, t}(w) for every t∈ℕt \in \mathbb{N}.✦

The bijective pebble game

For K,n∈ℕK, n \in \mathbb{N}, a KK-pair pebble position on [n][n] is a function P:[K]→([n]×[n])∪{⊥}P : [K] \to ([n] \times [n]) \cup \{\bot\}.✦ A slot i∈[K]i \in [K] is vacant when P(i)=⊥P(i) = \bot and occupied by the pair (x,y)(x, y) when P(i)=(x,y)P(i) = (x, y). For a slot i∈[K]i \in [K] and a pair (z,w)∈[n]×[n](z, w) \in [n] \times [n], write P[i↦(z,w)]P[i \mapsto (z, w)] for the position obtained from PP by placing (z,w)(z, w) in slot ii and leaving all other slots unchanged.

A KK-pair position PP is a subposition of a KK-pair position QQ, written P⊑QP \sqsubseteq Q, if for every i∈[K]i \in [K] either P(i)=⊥P(i) = \bot or P(i)=Q(i)P(i) = Q(i).✦ Given graphs GG and HH on [n][n], a KK-pair position PP is a partial isomorphism between GG and HH if for all i,j∈[K]i, j \in [K] with P(i)=(x,y)P(i) = (x, y) and P(j)=(u,v)P(j) = (u, v), (x=u⇔y=v)andAG(x,u)=AH(y,v).(x = u \iff y = v) \quad \text{and} \quad A_G(x, u) = A_H(y, v).(5)✦

Closure under dropping pebble pairs captures the monotonicity of winning positions in the bijective game. A KK-pair game invariant for GG and HH is a family ℐ\mathcal{I} of KK-pair positions on [n][n] satisfying three properties:✦

  1. if Q∈ℐQ \in \mathcal{I} and P⊑QP \sqsubseteq Q, then P∈ℐP \in \mathcal{I};

  2. every P∈ℐP \in \mathcal{I} satisfies the partial isomorphism condition (5);

  3. for every P∈ℐP \in \mathcal{I} and every i∈[K]i \in [K] with P(i)=⊥P(i) = \bot, there exists a bijection e:[n]→[n]e : [n] \to [n] such that P[i↦(z,e(z))]∈ℐP[i \mapsto (z, e(z))] \in \mathcal{I} for all z∈[n]z \in [n].

Duplicator wins the KK-pair bijective game on (G,H)(G, H) from a KK-pair position PP (or simply wins from PP when GG, HH, and KK are clear from context) if there exists a KK-pair game invariant ℐ\mathcal{I} for GG and HH with P∈ℐP \in \mathcal{I}.✦

For kk-tuples v,w∈[n]kv, w \in [n]^k, the full kk-pair position Pfull(v,w)P^{\mathrm{full}}(v, w) is defined by Pfull(v,w)(i)=(vi,wi)P^{\mathrm{full}}(v, w)(i) = (v_i, w_i) for all i∈[k]i \in [k].✦ The (k+1)(k + 1)-pair position with one spare pebble, Pspare(v,w)P^{\mathrm{spare}}(v, w), is defined by Pspare(v,w)(i)=(vi,wi)P^{\mathrm{spare}}(v, w)(i) = (v_i, w_i) for all i∈[k]i \in [k] and Pspare(v,w)(k)=⊥P^{\mathrm{spare}}(v, w)(k) = \bot.✦

The claim

Lemma 2.3. Let n,k∈ℕn, k \in \mathbb{N}, let GG and HH be graphs on [n][n], and let v,w∈[n]kv, w \in [n]^k.

If n>0n > 0 and k≥2k \ge 2, then (∀t∈ℕ,χG,tjoint(v)=χH,tjoint(w))⇔Duplicator wins from Pspare(v,w).\begin{aligned} &\bigl(\forall t \in \mathbb{N},\; \chi^{\mathrm{joint}}_{G, t}(v) = \chi^{\mathrm{joint}}_{H, t}(w)\bigr) \\ &\qquad \iff \text{Duplicator wins from } P^{\mathrm{spare}}(v, w). \end{aligned}(6)✦ For all nn and kk, (∀t∈ℕ,χG,tseparate(v)=χH,tseparate(w))⇔Duplicator wins from Pfull(v,w).\begin{aligned} &\bigl(\forall t \in \mathbb{N},\; \chi^{\mathrm{separate}}_{G, t}(v) = \chi^{\mathrm{separate}}_{H, t}(w)\bigr) \\ &\qquad \iff \text{Duplicator wins from } P^{\mathrm{full}}(v, w). \end{aligned}(7)✦ Finally, let R⊆[n]k×[n]kR \subseteq [n]^k \times [n]^k be a binary relation such that every pair (u,u′)∈R(u, u') \in R satisfies χG,0separate(u)=χH,0separate(u′)\chi^{\mathrm{separate}}_{G, 0}(u) = \chi^{\mathrm{separate}}_{H, 0}(u') and, for every i∈[k]i \in [k], admits a bijection e:[n]→[n]e : [n] \to [n] with (u[i↦z],u′[i↦e(z)])∈R(u[i \mapsto z], u'[i \mapsto e(z)]) \in R for all z∈[n]z \in [n]. If (v,w)∈R(v, w) \in R, then ∀t∈ℕ,χG,tseparate(v)=χH,tseparate(w).\forall t \in \mathbb{N}, \quad \chi^{\mathrm{separate}}_{G, t}(v) = \chi^{\mathrm{separate}}_{H, t}(w).(8)✦

In the paper, the result reads: for graphs GG and HH of equal positive order nn, with K=k+1K = k + 1 for the joint convention and K=kK = k for the separate convention, two kk-tuples v,w∈[n]kv, w \in [n]^k have the same stable color if and only if Duplicator has a winning KK-pair strategy from the position marking vv and ww on kk corresponding pairs, and GG and HH have equal stable kk-tuple color histograms if and only if Duplicator has a winning KK-pair strategy from the empty position. The Lean library states the tuple-level equivalences for uncolored graphs on [n][n], with explicit hypotheses n>0n > 0 and k≥2k \ge 2 in the joint case, alongside the bisimulation sufficient condition for separate refinement.

What is checked

In the Lean library, equivalences (6) and (7) and implication (8) of Lemma 2.3 are stated over simple uncolored graphs on [n][n] given by symmetric irreflexive adjacency matrices, round-by-round kk-WL tuple colors under the joint and separate conventions, and KK-pair game invariants on pebble positions from the starting positions Pspare(v,w)P^{\mathrm{spare}}(v, w) and Pfull(v,w)P^{\mathrm{full}}(v, w).