OctoInform Beta

OpenAI preprint, September 2026 · §1. Introduction

Definition 1.1: Isomorphism invariance of joint and separate kk-WL histograms and the construction of a choice system from finite data

Weisfeiler-Leman histogram invariance and simultaneous choice systems.

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 distinguishes finite graphs by iteratively refining colorings of kk-tuples of vertices. Two standard refinement rules appear in graph theory and finite model theory: joint (folklore) refinement, which groups the colors of all kk coordinate substitutions for each vertex together, and separate (oblivious) refinement, which records the multiset of colors for each coordinate position independently. Two graphs are compared either by the color histograms computed on each graph separately or by the histograms of pure tuples computed inside their disjoint union.

Simultaneous choice systems formulate tt-ary compatibility problems in which one selects an element from each of tt finite domains so that all pairwise label maps agree. In fine-grained complexity, such systems provide the combinatorial source instances for reductions from the Exponential Time Hypothesis (ETH), and concrete instances are built directly from finite lists of integer label vectors and pairwise bounds.

Weisfeiler-Leman color refinement and histograms

Let k,r∈ℕk, r \in \mathbb{N}, and let c∈{joint,separate}c \in \{\mathrm{joint}, \mathrm{separate}\} be a refinement convention. For any set SS, write MSet⁡(S)\operatorname{MSet}(S) for the set of finite multisets with elements in SS, and denote multisets with double braces {{⋅}}\{\{ \cdot \}\}. Let 𝒜k\mathcal{A}_k be the set of atomic types of kk-tuples of vertices in a simple graph; for a finite simple graph G=(V,E)G = (V, E) and a kk-tuple x∈Vkx \in V^k indexed by {0,…,k−1}\{0, \dots, k - 1\}, write at⁡G(x)∈𝒜k\operatorname{at}_G(x) \in \mathcal{A}_k for the atomic type of xx in GG.

The joint kk-WL color space 𝒞k,rjoint\mathcal{C}^{\mathrm{joint}}_{k,r} and the separate kk-WL color space 𝒞k,rsep\mathcal{C}^{\mathrm{sep}}_{k,r} at round rr are defined recursively by (1): 𝒞k,0joint=𝒜k,𝒞k,r+1joint=𝒞k,rjoint×MSet⁡((𝒞k,rjoint)k),𝒞k,0sep=𝒜k,𝒞k,r+1sep=𝒞k,rsep×(MSet⁡(𝒞k,rsep))k.\begin{aligned} \mathcal{C}^{\mathrm{joint}}_{k,0} &= \mathcal{A}_k, \\ \mathcal{C}^{\mathrm{joint}}_{k,r+1} &= \mathcal{C}^{\mathrm{joint}}_{k,r} \times \operatorname{MSet}\bigl((\mathcal{C}^{\mathrm{joint}}_{k,r})^k\bigr), \\ \mathcal{C}^{\mathrm{sep}}_{k,0} &= \mathcal{A}_k, \\ \mathcal{C}^{\mathrm{sep}}_{k,r+1} &= \mathcal{C}^{\mathrm{sep}}_{k,r} \times \bigl(\operatorname{MSet}(\mathcal{C}^{\mathrm{sep}}_{k,r})\bigr)^k. \end{aligned}(1)

For a finite simple graph G=(V,E)G = (V, E), a tuple x∈Vkx \in V^k, an index i∈{0,…,k−1}i \in \{0, \dots, k - 1\}, and a vertex y∈Vy \in V, let x[i↦y]∈Vkx[i \mapsto y] \in V^k denote the tuple obtained from xx by replacing its ii-th coordinate with yy. The joint kk-WL coloring col⁡G,k,rjoint:Vk→𝒞k,rjoint\operatorname{col}^{\mathrm{joint}}_{G,k,r} : V^k \to \mathcal{C}^{\mathrm{joint}}_{k,r} and the separate kk-WL coloring col⁡G,k,rsep:Vk→𝒞k,rsep\operatorname{col}^{\mathrm{sep}}_{G,k,r} : V^k \to \mathcal{C}^{\mathrm{sep}}_{k,r} are defined recursively by (2) and (3): col⁡G,k,0joint(x)=at⁡G(x),col⁡G,k,r+1joint(x)=(col⁡G,k,rjoint(x),{{(col⁡G,k,rjoint(x[i↦y]))i=0k−1:y∈V}}),\begin{aligned} \operatorname{col}^{\mathrm{joint}}_{G,k,0}(x) &= \operatorname{at}_G(x), \\ \operatorname{col}^{\mathrm{joint}}_{G,k,r+1}(x) &= \Bigl( \operatorname{col}^{\mathrm{joint}}_{G,k,r}(x),\; \bigl\{\!\bigl\{ \bigl(\operatorname{col}^{\mathrm{joint}}_{G,k,r}(x[i \mapsto y])\bigr)_{i=0}^{k-1} : y \in V \bigr\}\!\bigr\} \Bigr), \end{aligned}(2)✦ and col⁡G,k,0sep(x)=at⁡G(x),col⁡G,k,r+1sep(x)=(col⁡G,k,rsep(x),({{col⁡G,k,rsep(x[i↦y]):y∈V}})i=0k−1).\begin{aligned} \operatorname{col}^{\mathrm{sep}}_{G,k,0}(x) &= \operatorname{at}_G(x), \\ \operatorname{col}^{\mathrm{sep}}_{G,k,r+1}(x) &= \Bigl( \operatorname{col}^{\mathrm{sep}}_{G,k,r}(x),\; \bigl(\bigl\{\!\bigl\{ \operatorname{col}^{\mathrm{sep}}_{G,k,r}(x[i \mapsto y]) : y \in V \bigr\}\!\bigr\}\bigr)_{i=0}^{k-1} \Bigr). \end{aligned}(3)✦ Write col⁡G,k,rc\operatorname{col}^c_{G,k,r} for col⁡G,k,rjoint\operatorname{col}^{\mathrm{joint}}_{G,k,r} when c=jointc = \mathrm{joint} and for col⁡G,k,rsep\operatorname{col}^{\mathrm{sep}}_{G,k,r} when c=separatec = \mathrm{separate}.

For finite simple graphs G=(V,E)G = (V, E) and H=(W,F)H = (W, F), the round-rr kk-WL color histogram of GG under convention cc is the finite multiset hist⁡k,rc(G)={{col⁡G,k,rc(x):x∈Vk}}.\operatorname{hist}^c_{k,r}(G) = \bigl\{\!\bigl\{ \operatorname{col}^c_{G,k,r}(x) : x \in V^k \bigr\}\!\bigr\}.(4) The graphs GG and HH have the same kk-WL color histogram at round rr under convention cc when hist⁡k,rc(G)=hist⁡k,rc(H)\operatorname{hist}^c_{k,r}(G) = \operatorname{hist}^c_{k,r}(H), using (4).✦

Let G⊔HG \sqcup H be the disjoint union of GG and HH on the vertex set V⊔WV \sqcup W, with canonical inclusions ιL:V→V⊔W\iota_L : V \to V \sqcup W and ιR:W→V⊔W\iota_R : W \to V \sqcup W and no edges between the two copies. The left and right pure-tuple kk-WL color histograms at round rr under convention cc are the finite multisets given by (5): hist⁡k,rc,L(G⊔H)={{col⁡G⊔H,k,rc(ιL∘x):x∈Vk}},hist⁡k,rc,R(G⊔H)={{col⁡G⊔H,k,rc(ιR∘y):y∈Wk}}.\begin{aligned} \operatorname{hist}^{c,L}_{k,r}(G \sqcup H) &= \bigl\{\!\bigl\{ \operatorname{col}^c_{G \sqcup H, k, r}(\iota_L \circ x) : x \in V^k \bigr\}\!\bigr\}, \\ \operatorname{hist}^{c,R}_{k,r}(G \sqcup H) &= \bigl\{\!\bigl\{ \operatorname{col}^c_{G \sqcup H, k, r}(\iota_R \circ y) : y \in W^k \bigr\}\!\bigr\}. \end{aligned}(5) The graphs GG and HH have the same pure kk-WL histogram at round rr under convention cc when hist⁡k,rc,L(G⊔H)=hist⁡k,rc,R(G⊔H)\operatorname{hist}^{c,L}_{k,r}(G \sqcup H) = \operatorname{hist}^{c,R}_{k,r}(G \sqcup H).✦

Simultaneous choice systems and choice data

For t∈ℕt \in \mathbb{N}, let PtP_t be the set of ordered index pairs Pt={(i,j)∈{0,…,t−1}2:i<j}.P_t = \bigl\{(i, j) \in \{0, \dots, t - 1\}^2 : i < j\bigr\}.(6)✦ For example, taking domains of partial Boolean assignments and restricting them to shared variables turns compatible choices into a single global assignment. A choice system of arity tt consists of a finite domain DiD_i for each i∈{0,…,t−1}i \in \{0, \dots, t - 1\}, a finite label set LijL_{ij} for each ordered pair (i,j)∈Pt(i, j) \in P_t from (6), and two label maps λiji:Di→Lij\lambda^i_{ij} : D_i \to L_{ij} and λijj:Dj→Lij\lambda^j_{ij} : D_j \to L_{ij} for each (i,j)∈Pt(i, j) \in P_t; empty domains are allowed.✦

Choice system data of arity tt is a pair 𝒟=(A,B)\mathcal{D} = (A, B) consisting of a finite list AiA_i of functions {0,…,t−1}→ℕ\{0, \dots, t - 1\} \to \mathbb{N} for each i∈{0,…,t−1}i \in \{0, \dots, t - 1\}, together with a table of natural-number bounds B:{0,…,t−1}2→ℕB : \{0, \dots, t - 1\}^2 \to \mathbb{N}.✦ Write |Ai||A_i| for the length of AiA_i and Ai[d]A_i[d] for its dd-th element when d<|Ai|d < |A_i|. For i,j∈{0,…,t−1}i, j \in \{0, \dots, t - 1\} and d∈ℕd \in \mathbb{N}, the data entry e𝒟(i,d,j)e_{\mathcal{D}}(i, d, j), the symmetrized pair bound b𝒟(i,j)b_{\mathcal{D}}(i, j), and the clamped label ℓ𝒟(i,d,j)\ell_{\mathcal{D}}(i, d, j) are the natural numbers defined by (7): e𝒟(i,d,j)={Ai[d](j),d<|Ai|,0,d≥|Ai|,b𝒟(i,j)=B(min⁡(i,j),max⁡(i,j)),ℓ𝒟(i,d,j)=min⁡(e𝒟(i,d,j),b𝒟(i,j)).\begin{aligned} e_{\mathcal{D}}(i, d, j) &= \begin{cases} A_i[d](j), & d < |A_i|, \\ 0, & d \ge |A_i|, \end{cases} \\ b_{\mathcal{D}}(i, j) &= B\bigl(\min(i, j), \max(i, j)\bigr), \\ \ell_{\mathcal{D}}(i, d, j) &= \min\bigl(e_{\mathcal{D}}(i, d, j),\, b_{\mathcal{D}}(i, j)\bigr). \end{aligned}(7)

The claim

Definition 1.1. Let G,G′,H,H′G, G', H, H' be finite simple graphs with graph isomorphisms G≅G′G \cong G' and H≅H′H \cong H', let c∈{joint,separate}c \in \{\mathrm{joint}, \mathrm{separate}\} be a refinement convention, and let k,r∈ℕk, r \in \mathbb{N}. Then the separate-graph kk-WL color histograms satisfy hist⁡k,rc(G)=hist⁡k,rc(H)⇔hist⁡k,rc(G′)=hist⁡k,rc(H′),\begin{aligned} \operatorname{hist}^c_{k,r}(G) &= \operatorname{hist}^c_{k,r}(H) \\ &\iff \operatorname{hist}^c_{k,r}(G') = \operatorname{hist}^c_{k,r}(H'), \end{aligned}(8)✦ and the pure-tuple kk-WL color histograms in the disjoint unions satisfy hist⁡k,rc,L(G⊔H)=hist⁡k,rc,R(G⊔H)⇔hist⁡k,rc,L(G′⊔H′)=hist⁡k,rc,R(G′⊔H′).\begin{aligned} \operatorname{hist}^{c,L}_{k,r}(G \sqcup H) &= \operatorname{hist}^{c,R}_{k,r}(G \sqcup H) \\ &\iff \operatorname{hist}^{c,L}_{k,r}(G' \sqcup H') = \operatorname{hist}^{c,R}_{k,r}(G' \sqcup H'). \end{aligned}(9)✦

Furthermore, let t∈ℕt \in \mathbb{N} and let 𝒟=(A,B)\mathcal{D} = (A, B) be choice system data of arity tt. The choice system 𝒮(𝒟)\mathcal{S}(\mathcal{D}) of arity tt induced by 𝒟\mathcal{D} has domains DiD_i, label sets LijL_{ij}, and label maps λiji:Di→Lij\lambda^i_{ij} : D_i \to L_{ij} and λijj:Dj→Lij\lambda^j_{ij} : D_j \to L_{ij} defined for every i∈{0,…,t−1}i \in \{0, \dots, t - 1\}, every (i,j)∈Pt(i, j) \in P_t, every d∈{0,…,|Ai|−1}d \in \{0, \dots, |A_i| - 1\}, and every d′∈{0,…,|Aj|−1}d' \in \{0, \dots, |A_j| - 1\} by Di={0,…,|Ai|−1},Lij={0,…,B(i,j)},λiji(d)=ℓ𝒟(i,d,j),λijj(d′)=ℓ𝒟(j,d′,i),\begin{aligned} D_i &= \{0, \dots, |A_i| - 1\}, \\ L_{ij} &= \{0, \dots, B(i, j)\}, \\ \lambda^i_{ij}(d) &= \ell_{\mathcal{D}}(i, d, j), \\ \lambda^j_{ij}(d') &= \ell_{\mathcal{D}}(j, d', i), \end{aligned}(10)✦ where ℓ𝒟\ell_{\mathcal{D}} is the clamped label from (7).

What is checked

The Lean library states Definition 1.1 over finite simple graphs with graph isomorphisms, joint and separate kk-WL colorings and their separate-graph and pure-tuple disjoint-union histograms for arbitrary k,r∈ℕk, r \in \mathbb{N}, and simultaneous choice systems built from finite choice system data of arbitrary arity t∈ℕt \in \mathbb{N}, capturing the isomorphism equivalences (8) and (9) and the induced choice system (10).