OctoInform Beta

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

Lemma 2.3: Two joint rounds or one separate round of kk-WL distinguish X0X_0 and X*X_* for any successful choice system

Early-round Weisfeiler-Leman separation of 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

In the kk-dimensional Weisfeiler-Leman (kk-WL) color refinement algorithm, two standard conventions govern how the color of a kk-tuple of vertices is updated: joint kk-WL (folklore kk-WL) and separate kk-WL (oblivious kk-WL). For k≥4k \ge 4, a parity-lift construction takes a pairwise consistency instance on tt finite domains, with t=k+1t = k + 1 for joint kk-WL and t=kt = k for separate kk-WL, and produces two uncolored simple graphs X0X_0 and X*X_* over a template graph TtT_t. The question considered here is how early in color refinement a consistent assignment is detected: whether X0X_0 and X*X_* already differ in their color histograms after two rounds of joint kk-WL or one round of separate kk-WL, both when each graph is refined on its own and when pure tuples are compared inside their disjoint union X0⊔X*X_0 \sqcup X_*.

Weisfeiler-Leman refinement

A WL coloring convention cc is either the joint convention or the separate convention.✦ For a convention cc and a natural number kk, the bag parameter t=t(c,k)t = t(c, k) is k+1k + 1 when cc is joint and kk when cc is separate✦, and the detection round r=r(c)r = r(c) is 22 when cc is joint and 11 when cc is separate.✦

Let XX be a simple graph on a finite vertex set V(X)V(X), and let kk and rr be natural numbers. Write [k]={1,…,k}[k] = \{1, \dots, k\}, and view a kk-tuple x∈V(X)kx \in V(X)^k as a map [k]→V(X)[k] \to V(X). For i∈[k]i \in [k] and y∈V(X)y \in V(X), write x[i↦y]x[i \mapsto y] for the kk-tuple obtained from xx by replacing its ii-th entry with yy. The joint kk-WL coloring χJ(r)(X;⋅)\chi_{\mathrm{J}}^{(r)}(X; \cdot) assigns to each x∈V(X)kx \in V(X)^k a joint kk-WL color inductively in rr: at round 00, χJ(0)(X;x)\chi_{\mathrm{J}}^{(0)}(X; x) is the atomic type of xx in XX, and at round r+1r + 1 it is given by (1), where {{⋅}}\{\!\{ \cdot \}\!\} denotes a multiset: χJ(r+1)(X;x)=(χJ(r)(X;x),{{(χJ(r)(X;x[i↦y]))i=1k:y∈V(X)}}).\begin{aligned} \chi_{\mathrm{J}}^{(r+1)}(X; x) &= \Bigl(\chi_{\mathrm{J}}^{(r)}(X; x), \\ &\qquad \bigl\{\!\bigl\{ \bigl(\chi_{\mathrm{J}}^{(r)}(X; x[i \mapsto y])\bigr)_{i=1}^k : y \in V(X) \bigr\}\!\bigr\}\Bigr). \end{aligned}(1)✦ The separate kk-WL coloring χS(r)(X;⋅)\chi_{\mathrm{S}}^{(r)}(X; \cdot) likewise assigns the atomic type of xx at round 00, and at round r+1r + 1 it assigns the separate kk-WL color given by (2): χS(r+1)(X;x)=(χS(r)(X;x),({{χS(r)(X;x[i↦y]):y∈V(X)}})i=1k).\begin{aligned} \chi_{\mathrm{S}}^{(r+1)}(X; x) &= \Bigl(\chi_{\mathrm{S}}^{(r)}(X; x), \\ &\qquad \bigl(\bigl\{\!\bigl\{ \chi_{\mathrm{S}}^{(r)}(X; x[i \mapsto y]) : y \in V(X) \bigr\}\!\bigr\}\bigr)_{i=1}^k\Bigr). \end{aligned}(2)✦ Write χc(r)(X;x)\chi_c^{(r)}(X; x) for χJ(r)(X;x)\chi_{\mathrm{J}}^{(r)}(X; x) when cc is joint and χS(r)(X;x)\chi_{\mathrm{S}}^{(r)}(X; x) when cc is separate.

Let XX and YY be simple graphs on finite vertex sets, and let ιX:V(X)→V(X⊔Y)\iota_X : V(X) \to V(X \sqcup Y) and ιY:V(Y)→V(X⊔Y)\iota_Y : V(Y) \to V(X \sqcup Y) be the canonical inclusions into their disjoint union X⊔YX \sqcup Y. Under convention cc at dimension kk and round rr, the color histogram Hc(k,r)(X)H_c^{(k,r)}(X) and the pure-tuple histogram Hc(k,r)(X↪X⊔Y)H_c^{(k,r)}(X \hookrightarrow X \sqcup Y) are the multisets defined in (3): Hc(k,r)(X)={{χc(r)(X;x):x∈V(X)k}},Hc(k,r)(X↪X⊔Y)={{χc(r)(X⊔Y;ιX∘x):x∈V(X)k}}.\begin{aligned} H_c^{(k,r)}(X) &= \bigl\{\!\bigl\{ \chi_c^{(r)}(X; x) : x \in V(X)^k \bigr\}\!\bigr\}, \\ H_c^{(k,r)}(X \hookrightarrow X \sqcup Y) &= \bigl\{\!\bigl\{ \chi_c^{(r)}(X \sqcup Y; \iota_X \circ x) : x \in V(X)^k \bigr\}\!\bigr\}. \end{aligned}(3) The pure-tuple histogram Hc(k,r)(Y↪X⊔Y)H_c^{(k,r)}(Y \hookrightarrow X \sqcup Y) is defined analogously using ιY\iota_Y. The graphs XX and YY have the same kk-WL color histogram under cc at dimension kk and round rr when Hc(k,r)(X)=Hc(k,r)(Y)H_c^{(k,r)}(X) = H_c^{(k,r)}(Y), and they have the same pure kk-WL histogram when Hc(k,r)(X↪X⊔Y)=Hc(k,r)(Y↪X⊔Y)H_c^{(k,r)}(X \hookrightarrow X \sqcup Y) = H_c^{(k,r)}(Y \hookrightarrow X \sqcup Y).

Template graphs

For a natural number tt, an ordered index pair is a pair (i,j)(i, j) with i,j∈[t]i, j \in [t] and i<ji < j.✦ A helper triple is a triple hij;lh_{ij;l} consisting of an ordered index pair (i,j)(i, j) and a third index l∈[t]\{i,j}l \in [t] \setminus \{i, j\}.✦ A helper triple hij;lh_{ij;l} is incident to a main index m∈[t]m \in [t] if m∈{i,j,l}m \in \{i, j, l\}.✦

The template graph augments a clique with degree-three helper vertices so that extensions from the clique are determined by common-neighbor counts of triples.

The template graph T=TtT = T_t is the simple graph whose vertex set V(Tt)V(T_t) is the disjoint union of the main vertices [t][t] and the set of all helper triples hij;lh_{ij;l}.✦ Two vertices of TtT_t are adjacent under template graph adjacency if they are distinct main vertices, or if one is a main vertex m∈[t]m \in [t] and the other is a helper triple hij;lh_{ij;l} incident to mm; no two helper vertices are adjacent.✦

Choice systems

A choice system encodes a pairwise consistency constraint in which elements selected from finite domains must agree on every shared pairwise 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 ordered index pair (i,j)(i, j) with i<ji < j, and left and right labeling maps λijL:Di→Lij\lambda_{ij}^L : D_i \to L_{ij} and λijR:Dj→Lij\lambda_{ij}^R : D_j \to L_{ij}.✦ The choice system CC is successful if there exists a family (di)i∈[t](d_i)_{i \in [t]} with di∈Did_i \in D_i for every i∈[t]i \in [t] such that (4) holds for every ordered index pair (i,j)(i, j) with i<ji < j: λijL(di)=λijR(dj).\lambda_{ij}^L(d_i) = \lambda_{ij}^R(d_j).(4)✦

The base graph vertex set V(G)V(G) of CC is the disjoint union of main vertices (i,d)(i, d), with i∈[t]i \in [t] and d∈Did \in D_i, and helper vertices (hij;l,q)(h_{ij;l}, q), with hij;lh_{ij;l} a helper triple and q∈Lijq \in L_{ij}.✦ A base graph arc is a directed relation on V(G)V(G) of four types: a main arc from (i,d)(i, d) to (j,e)(j, e) for i<ji < j whenever λijL(d)=λijR(e)\lambda_{ij}^L(d) = \lambda_{ij}^R(e); a left arc from (hij;l,λijL(d))(h_{ij;l}, \lambda_{ij}^L(d)) to (i,d)(i, d); a right arc from (hij;l,λijR(e))(h_{ij;l}, \lambda_{ij}^R(e)) to (j,e)(j, e); and a third arc from (hij;l,q)(h_{ij;l}, q) to (l,f)(l, f) for every q∈Lijq \in L_{ij} and f∈Dlf \in D_l.✦ The base graph GG of CC is the simple graph on V(G)V(G) in which two distinct vertices are adjacent whenever a base graph arc joins them in either direction.✦ The base vertex projection τ:V(G)→V(Tt)\tau : V(G) \to V(T_t) sends (i,d)(i, d) to ii and (hij;l,q)(h_{ij;l}, q) to hij;lh_{ij;l}; it preserves adjacency and therefore forms a graph homomorphism from GG to TtT_t, called the base graph projection.✦

Parity lifts

A parity bit is an element of ℤ2={0,1}\mathbb{Z}_2 = \{0, 1\}.✦ Let TT be a finite simple graph and b:V(T)→ℤ2b : V(T) \to \mathbb{Z}_2 a parity assignment. For a vertex a∈V(T)a \in V(T) with neighborhood NT(a)N_T(a) in TT, a parity tag at aa for bb is a map σ:NT(a)→ℤ2\sigma : N_T(a) \to \mathbb{Z}_2 satisfying (5): ∑w∈NT(a)σ(w)=b(a)in ℤ2.\sum_{w \in N_T(a)} \sigma(w) = b(a) \quad \text{in } \mathbb{Z}_2.(5)✦ Given a graph homomorphism τ:G→T\tau : G \to T from a base graph GG to TT, a lift graph vertex is a pair (u,σ)(u, \sigma) where u∈V(G)u \in V(G) and σ\sigma is a parity tag at τ(u)\tau(u) for bb.✦ The parity lift graph XbX_b is the simple graph on these lift graph vertices in which (u,σ)(u, \sigma) and (v,ρ)(v, \rho) are adjacent if uu and vv are adjacent in GG and σ(τ(v))=ρ(τ(u))\sigma(\tau(v)) = \rho(\tau(u)).✦

For a choice system CC on [t][t] with base graph GG and base graph projection τ:G→Tt\tau : G \to T_t, the zero parity lift X0X_0 is the parity lift graph for the identically zero parity assignment b≡0b \equiv 0.✦ The star parity assignment e1:V(Tt)→ℤ2e_1 : V(T_t) \to \mathbb{Z}_2 assigns 11 to the first main vertex 1∈[t]1 \in [t] and 00 to every other vertex of TtT_t✦, and the star parity lift X*:=Xe1X_* := X_{e_1} is the parity lift graph for e1e_1.✦

The claim

Lemma 2.3. Let k≥4k \ge 4 be a natural number, let cc be a WL coloring convention with bag parameter t=t(c,k)t = t(c, k) and detection round r=r(c)r = r(c), and let CC be a successful choice system on [t][t] with zero parity lift X0X_0 and star parity lift X*X_*. Then X0X_0 and X*X_* have different round-rr kk-WL color histograms both separately and as pure tuples in their disjoint union, satisfying (6): Hc(k,r)(X0)≠Hc(k,r)(X*),Hc(k,r)(X0↪X0⊔X*)≠Hc(k,r)(X*↪X0⊔X*).\begin{aligned} H_c^{(k,r)}(X_0) &\neq H_c^{(k,r)}(X_*), \\ H_c^{(k,r)}(X_0 \hookrightarrow X_0 \sqcup X_*) &\neq H_c^{(k,r)}(X_* \hookrightarrow X_0 \sqcup X_*). \end{aligned}(6)✦

In the paper, the result reads: the round-two color histogram in joint kk-WL determines the number hom⁡(Tk+1,X)\operatorname{hom}(T_{k+1}, X) of graph homomorphisms from Tk+1T_{k+1} to a finite simple graph XX, and the round-one color histogram in separate kk-WL determines hom⁡(Tk,X)\operatorname{hom}(T_k, X), both for separate graphs and for pure-tuple histograms in a disjoint union. Lemma 2.3 states directly the resulting early-round separation between the parity lifts X0X_0 and X*X_* of a successful choice system.

What is checked

In the Lean library, Lemma 2.3 is stated for every natural number k≥4k \ge 4, both WL coloring conventions cc (joint with bag parameter t=k+1t = k + 1 and detection round r=2r = 2, and separate with t=kt = k and r=1r = 1), and every successful choice system CC on [t][t], comparing the round-rr kk-WL color histograms and pure-tuple disjoint-union histograms of the zero parity lift X0X_0 and the star parity lift X*X_*. The Lean library also establishes that the template graph TtT_t and the parity lift graphs are simple graphs and that the base vertex projection τ\tau is a graph homomorphism from the base graph GG to TtT_t.