OctoInform Beta

OpenAI preprint, September 2026 · §2. WL refinement and homomorphism tests

Lemma 2.2: For every k≥4k \ge 4, both joint and separate kk-WL fail to distinguish the parity lifts X0X_0 and X*X_* of an unsuccessful choice system

Unsuccessful choice systems yield Weisfeiler-Leman equivalent parity lifts.

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 kk-dimensional Weisfeiler-Leman (kk-WL) algorithm iteratively colors the kk-tuples of vertices of a finite simple graph to test whether two graphs are indistinguishable by local counting. Equivalence under kk-WL refinement is closely tied to equality of graph homomorphism counts hom⁡(F,X)\operatorname{hom}(F, X) from graphs FF of bounded treewidth, where hom⁡(F,X)\operatorname{hom}(F, X) denotes the number of graph homomorphisms from FF to XX.

In the parity-lift reduction, a pairwise consistency problem on tt finite domains, called a choice system, is encoded into a pair of uncolored simple graphs X0X_0 and X*X_* built as parity lifts over a template graph TtT_t. The parameter tt is k+1k + 1 for joint kk-WL and kk for separate kk-WL.✦ Whenever the choice system has no successful choice, the two parity lifts X0X_0 and X*X_* are kk-WL equivalent, both when color histograms are compared across separate graphs and when pure tuples are compared inside their disjoint union.

Weisfeiler-Leman refinement and equivalence

Fix a dimension k∈ℕk \in \mathbb{N} and a refinement convention c∈{joint,separate}c \in \{\mathrm{joint}, \mathrm{separate}\}. The bag parameter tt associated to cc and kk is given by (1): t={k+1if c=joint,kif c=separate.t = \begin{cases} k + 1 & \text{if } c = \mathrm{joint}, \\ k & \text{if } c = \mathrm{separate}. \end{cases}(1)✦

Write [m]={1,…,m}[m] = \{1, \dots, m\} for m∈ℕm \in \mathbb{N}. For a finite simple graph HH and a kk-tuple 𝒙=(x1,…,xk)∈V(H)k\mathbf{x} = (x_1, \dots, x_k) \in V(H)^k, let 𝒙[i↦y]\mathbf{x}[i \mapsto y] denote the kk-tuple obtained from 𝒙\mathbf{x} by replacing its ii-th entry with y∈V(H)y \in V(H). The rr-round kk-WL color χc,k(r)(H,𝒙)\chi_{c,k}^{(r)}(H, \mathbf{x}) is defined by recursion on r∈ℕr \in \mathbb{N}. At round r=0r = 0, both conventions assign the atomic type of 𝒙\mathbf{x} in HH. Writing {{⋅}}\{\!\{ \cdot \}\!\} for a multiset, the joint refinement step is given by (2) and the separate refinement step by (3): χjoint,k(r+1)(H,𝒙)=(χjoint,k(r)(H,𝒙),{{(χjoint,k(r)(H,𝒙[i↦y]))i∈[k]:y∈V(H)}}),\begin{aligned} \chi_{\mathrm{joint},k}^{(r+1)}(H, \mathbf{x}) &= \Bigl(\chi_{\mathrm{joint},k}^{(r)}(H, \mathbf{x}), \\ &\quad \bigl\{\!\bigl\{ \bigl(\chi_{\mathrm{joint},k}^{(r)}(H, \mathbf{x}[i \mapsto y])\bigr)_{i \in [k]} \\ &\qquad : y \in V(H) \bigr\}\!\bigr\}\Bigr), \end{aligned}(2)✦ χseparate,k(r+1)(H,𝒙)=(χseparate,k(r)(H,𝒙),({{χseparate,k(r)(H,𝒙[i↦y]):y∈V(H)}})i∈[k]).\begin{aligned} \chi_{\mathrm{separate},k}^{(r+1)}(H, \mathbf{x}) &= \Bigl(\chi_{\mathrm{separate},k}^{(r)}(H, \mathbf{x}), \\ &\quad \Bigl(\bigl\{\!\bigl\{ \chi_{\mathrm{separate},k}^{(r)}(H, \mathbf{x}[i \mapsto y]) \\ &\qquad : y \in V(H) \bigr\}\!\bigr\}\Bigr)_{i \in [k]}\Bigr). \end{aligned}(3)✦

The rr-round color histogram Mc,k(r)(H)M_{c,k}^{(r)}(H) of a finite simple graph HH under convention cc is the multiset of colors χc,k(r)(H,𝒙)\chi_{c,k}^{(r)}(H, \mathbf{x}) as 𝒙\mathbf{x} ranges over V(H)kV(H)^k. Two finite simple graphs H1H_1 and H2H_2 are kk-WL equivalent under cc when Mc,k(r)(H1)=Mc,k(r)(H2)M_{c,k}^{(r)}(H_1) = M_{c,k}^{(r)}(H_2) for every r≥0r \ge 0.✦

To compare the two graphs inside a single graph, let H1⊔H2H_1 \sqcup H_2 be their disjoint union with canonical vertex inclusions ι1:V(H1)→V(H1⊔H2)\iota_1 : V(H_1) \to V(H_1 \sqcup H_2) and ι2:V(H2)→V(H1⊔H2)\iota_2 : V(H_2) \to V(H_1 \sqcup H_2). The rr-round pure-tuple histogram Mc,k(r)(H1⊔H2;H1)M_{c,k}^{(r)}(H_1 \sqcup H_2; H_1) is the multiset of colors χc,k(r)(H1⊔H2,ι1∘𝒙)\chi_{c,k}^{(r)}(H_1 \sqcup H_2, \iota_1 \circ \mathbf{x}) over all 𝒙∈V(H1)k\mathbf{x} \in V(H_1)^k, and Mc,k(r)(H1⊔H2;H2)M_{c,k}^{(r)}(H_1 \sqcup H_2; H_2) is defined symmetrically using ι2\iota_2. The graphs H1H_1 and H2H_2 are pure kk-WL equivalent under cc when Mc,k(r)(H1⊔H2;H1)=Mc,k(r)(H1⊔H2;H2)M_{c,k}^{(r)}(H_1 \sqcup H_2; H_1) = M_{c,k}^{(r)}(H_1 \sqcup H_2; H_2) for every r≥0r \ge 0.✦

Choice systems and the base graph

Fix t∈ℕt \in \mathbb{N}. Let Pt={(i,j)∈[t]2:i<j}P_t = \{(i, j) \in [t]^2 : i < j\} be the set of ordered index pairs in [t][t]✦, and let HtH_t be the set of helper triples hij;l=((i,j),l)h_{ij;l} = ((i, j), l) with (i,j)∈Pt(i, j) \in P_t and l∈[t]\{i,j}l \in [t] \setminus \{i, j\}.✦ The template graph T=TtT = T_t is the simple graph on vertex set V(T)=[t]⊔HtV(T) = [t] \sqcup H_t in which [t][t] forms a clique of distinct pairs, each helper vertex hij;l∈Hth_{ij;l} \in H_t is adjacent to ii, jj, and ll and to no other main vertex, and no two helper vertices are adjacent.✦

A choice system encodes a pairwise consistency problem on tt finite domains in which every pair of chosen elements must agree under a shared label test.

A choice system CC on [t][t] consists of a finite domain DiD_i for each i∈[t]i \in [t], a finite label set LijL_{ij} for each (i,j)∈Pt(i, j) \in P_t, and two label maps λijL:Di→Lij\lambda_{ij}^{\mathrm{L}} : D_i \to L_{ij} and λijR:Dj→Lij\lambda_{ij}^{\mathrm{R}} : D_j \to L_{ij} for each (i,j)∈Pt(i, j) \in P_t.✦ The choice system CC has a successful choice if there exists a tuple (d1,…,dt)∈∏i∈[t]Di(d_1, \dots, d_t) \in \prod_{i \in [t]} D_i satisfying (4): λijL(di)=λijR(dj)for every (i,j)∈Pt.\lambda_{ij}^{\mathrm{L}}(d_i) = \lambda_{ij}^{\mathrm{R}}(d_j) \quad \text{for every } (i, j) \in P_t.(4)✦

The base graph GG of CC is the simple graph on vertex set (5), V(G)={(i,d):i∈[t],d∈Di}⊔{(hij;l,q):hij;l∈Ht,q∈Lij},\begin{aligned} V(G) &= \bigl\{(i, d) : i \in [t],\; d \in D_i\bigr\} \\ &\quad \sqcup \bigl\{(h_{ij;l}, q) : h_{ij;l} \in H_t,\; q \in L_{ij}\bigr\}, \end{aligned}(5)✦ whose edge set is the symmetric closure of four families of adjacencies:

  • (i,d)(i, d) and (j,e)(j, e) are adjacent for (i,j)∈Pt(i, j) \in P_t, d∈Did \in D_i, and e∈Dje \in D_j when λijL(d)=λijR(e)\lambda_{ij}^{\mathrm{L}}(d) = \lambda_{ij}^{\mathrm{R}}(e);

  • (hij;l,q)(h_{ij;l}, q) and (i,d)(i, d) are adjacent when q=λijL(d)q = \lambda_{ij}^{\mathrm{L}}(d);

  • (hij;l,q)(h_{ij;l}, q) and (j,e)(j, e) are adjacent when q=λijR(e)q = \lambda_{ij}^{\mathrm{R}}(e);

  • (hij;l,q)(h_{ij;l}, q) and (l,f)(l, f) are adjacent for every q∈Lijq \in L_{ij} and every f∈Dlf \in D_l.

The type map τ:V(G)→V(T)\tau : V(G) \to V(T) sends (i,d)↦i(i, d) \mapsto i and (hij;l,q)↦hij;l(h_{ij;l}, q) \mapsto h_{ij;l}.✦ Every edge of GG maps to an edge of TT, so τ:G→T\tau : G \to T is a graph homomorphism.✦

Parity lifts

Let ℤ2={0,1}\mathbb{Z}_2 = \{0, 1\} denote the additive group of parity bits modulo 22.✦ Given a parity assignment b:V(T)→ℤ2b : V(T) \to \mathbb{Z}_2 and a vertex a∈V(T)a \in V(T), a parity tag at aa for bb is a map s:NT(a)→ℤ2s : N_T(a) \to \mathbb{Z}_2 on the neighborhood NT(a)N_T(a) of aa in TT whose values sum to b(a)b(a) in ℤ2\mathbb{Z}_2.✦

Given a graph homomorphism τ:G→T\tau : G \to T and a parity assignment b:V(T)→ℤ2b : V(T) \to \mathbb{Z}_2, the parity lift XbX_b is the simple graph whose vertices are pairs (u,s)(u, s) with u∈V(G)u \in V(G) and ss a parity tag at τ(u)\tau(u) for bb. Two vertices (u,s)(u, s) and (v,s′)(v, s') are adjacent in XbX_b if and only if uu and vv are adjacent in GG and satisfy (6): s(τ(v))=s′(τ(u)).s(\tau(v)) = s'(\tau(u)).(6)✦

For the base graph GG of a choice system CC on [t][t] with its type homomorphism τ:G→T\tau : G \to T, the zero parity lift X0X_0 is the parity lift for the identically zero assignment b≡0b \equiv 0.✦ The star parity assignment e1:V(T)→ℤ2e_1 : V(T) \to \mathbb{Z}_2 assigns 11 to the first main vertex 1∈[t]1 \in [t] and 00 to every other vertex of TT✦, and the star parity lift is X*:=Xe1X_* := X_{e_1}.✦ Because TT, every domain DiD_i, and every label set LijL_{ij} are finite, both X0X_0 and X*X_* are finite simple graphs.

The claim

Lemma 2.2. For every integer k≥4k \ge 4, every refinement convention c∈{joint,separate}c \in \{\mathrm{joint}, \mathrm{separate}\} with bag parameter tt given by (1), and every choice system CC on [t][t] that has no successful choice, the parity lifts X0X_0 and X*X_* of CC are kk-WL equivalent under cc, meaning that for every r≥0r \ge 0, Mc,k(r)(X0)=Mc,k(r)(X*),M_{c,k}^{(r)}(X_0) = M_{c,k}^{(r)}(X_*),(7)✦ and they are pure kk-WL equivalent under cc in their disjoint union, meaning that for every r≥0r \ge 0, Mc,k(r)(X0⊔X*;X0)=Mc,k(r)(X0⊔X*;X*).M_{c,k}^{(r)}(X_0 \sqcup X_*; X_0) = M_{c,k}^{(r)}(X_0 \sqcup X_*; X_*).(8)✦

In the paper, the result reads: if hom⁡(F,X0)=hom⁡(F,X1)\operatorname{hom}(F, X_0) = \operatorname{hom}(F, X_1) for every graph FF of bag size at most tt, then X0X_0 and X1X_1 are kk-WL equivalent in the corresponding convention, and likewise for pure-tuple comparison in their disjoint union. The Lean library states both equivalences directly for the parity lifts X0X_0 and X*X_* of a choice system with no successful choice.

What is checked

In Lemma 2.2, the Lean library states both separate-graph kk-WL equivalence (7) and disjoint-union pure-tuple kk-WL equivalence (8) for the parity lifts X0X_0 and X*X_* of any choice system CC on [t][t] with finite domains and finite label sets that has no successful choice, for every k≥4k \ge 4 and both the joint (t=k+1t = k + 1) and separate (t=kt = k) refinement conventions. Alongside the two equivalences, the Lean library constructs the template graph TtT_t, the base graph GG with its type homomorphism τ:G→Tt\tau : G \to T_t, the parity lifts X0X_0 and X*X_* as simple graphs, and both recursive kk-WL colorings with their separate-graph and pure-tuple histograms.