OctoInform Beta

OpenAI preprint, September 2026 · §7. From acceptance to identification

Proposition 7.1: Every graph rr-WL equivalent to the untwisted affine block graph of an accepted product circuit is isomorphic to it

Acceptance of a product circuit implies Weisfeiler-Leman identification.

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 tests graph isomorphism by iteratively refining colorings of vertex kk-tuples, and identifies a graph GG when every graph indistinguishable from GG by kk-WL is isomorphic to GG. In the reduction from EXPTIME acceptance to rr-WL identification, a computation is encoded as a product circuit whose comparison schemas determine an untwisted uncolored affine block graph. Proposition 7.1 establishes the soundness direction of this reduction: acceptance of the product circuit forces rr-WL to identify the associated untwisted graph whenever r≥32r \ge 32.

All graphs are finite, simple, undirected, and uncolored. A finite simple graph GG of order m∈ℕm \in \mathbb{N} has vertex set V(G)={0,…,m−1}V(G) = \{0, \dots, m - 1\} and a symmetric, irreflexive adjacency relation.✦ Two finite simple graphs GG and HH are isomorphic, written G≅HG \cong H, if there is a bijection between V(G)V(G) and V(H)V(H) that preserves adjacency and non-adjacency.✦

For k=1k = 1, the 1-WL color space at round 00 is a singleton, and at round s+1s + 1 it is the product of the round-ss 1-WL color space with the space of multisets of round-ss colors.✦ The 1-WL vertex coloring assigns the unique initial color to every vertex at round 00, and at round s+1s + 1 pairs the round-ss color of a vertex vv with the multiset of round-ss colors of the neighbors of vv.✦ For any k∈ℕk \in \mathbb{N}, the kk-WL color space at round 00 consists of pairs of Boolean k×kk \times k matrices recording equality and adjacency patterns, and at round s+1s + 1 it pairs a round-ss color with a multiset of kk-tuples of round-ss colors.✦ The kk-WL tuple coloring sends a kk-tuple v=(v0,…,vk−1)∈V(G)kv = (v_0, \dots, v_{k-1}) \in V(G)^k at round 00 to its equality and adjacency matrices, and at round s+1s + 1 to the pair consisting of its round-ss color and the multiset over all z∈V(G)z \in V(G) of the kk-tuple of round-ss colors obtained by replacing each coordinate ii of vv with zz.✦

The 1-WL color histogram of GG at round ss is the multiset of round-ss 1-WL colors over V(G)V(G)✦, and the kk-WL color histogram at round ss is the multiset of round-ss kk-WL colors over V(G)kV(G)^k.✦ Two graphs GG and HH are kk-WL equivalent, written G≡kHG \equiv_k H, if for every round s∈ℕs \in \mathbb{N} their 1-WL color histograms coincide when k=1k = 1 and their kk-WL color histograms coincide when k≠1k \neq 1.✦ A graph GG is identified by kk-WL if every finite simple graph HH with G≡kHG \equiv_k H satisfies G≅HG \cong H.✦

Product circuits and acceptance

Fix an address dimension r∈ℕr \in \mathbb{N}. A Boolean product map DD of dimension rr specifies, for each coordinate i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, a nonempty subset Di⊆{0,1}D_i \subseteq \{0, 1\} and a map σi:{0,1}→{0,1}\sigma_i : \{0, 1\} \to \{0, 1\} that is injective on DiD_i.✦ A domain point of DD is a tuple a∈∏i=0r−1Dia \in \prod_{i=0}^{r-1} D_i✦; its source tuple is a∈{0,1}ra \in \{0, 1\}^r✦ and its target tuple is σ(a)=(σ0(a0),…,σr−1(ar−1))∈{0,1}r\sigma(a) = (\sigma_0(a_0), \dots, \sigma_{r-1}(a_{r-1})) \in \{0, 1\}^r.✦ The identity product map idr\mathrm{id}_r has full domain {0,1}r\{0, 1\}^r and the identity on every coordinate✦; the domain-restricted identity idD\mathrm{id}_D of DD keeps the domain of DD with the identity map on every coordinate✦; and for i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, the single-bit flip product map flipi\mathrm{flip}_i has full domain {0,1}r\{0, 1\}^r, negates coordinate ii, and fixes all other coordinates.✦

A product circuit CC of address dimension rr on node types PP, edge types EE, seed types ZZ, and test types TT equips each of PP, EE, ZZ, and TT with an injective natural-number index and assigns the following data:

  • to each node type p∈Pp \in P, a dimension dp∈{1,2}d_p \in \{1, 2\};

  • to each edge type e∈Ee \in E, a source s(e)∈Ps(e) \in P, a target t(e)∈Pt(e) \in P, a target port π(e)∈{0,…,dt(e)−1}\pi(e) \in \{0, \dots, d_{t(e)} - 1\}, and a Boolean product map DeD_e;

  • to each seed type z∈Zz \in Z, a seed node type pz∈Pp_z \in P with dpz=1d_{p_z} = 1 and a Boolean product map DzD_z;

  • to each test type t∈Tt \in T, a test node type qt∈Pq_t \in P with dqt=1d_{q_t} = 1 and a Boolean product map DtD_t.

Product circuit port truth is the least relation on triples (p,a,j)(p, a, j) with p∈Pp \in P, a∈{0,1}ra \in \{0, 1\}^r, and j∈{0,…,dp−1}j \in \{0, \dots, d_p - 1\} generated by two rules: for every seed z∈Zz \in Z, domain point aa of DzD_z, and port jj, port jj of pzp_z is true at the source tuple of aa; and for every edge e∈Ee \in E and domain point aa of DeD_e, if every port of s(e)s(e) is true at the source tuple of aa, then port π(e)\pi(e) of t(e)t(e) is true at the target tuple of aa.✦ Product circuit node truth holds at (p,a)(p, a) if every port j∈{0,…,dp−1}j \in \{0, \dots, d_p - 1\} of pp is true at aa.✦ The product circuit CC is accepted if there exist a test t∈Tt \in T and a domain point aa of DtD_t such that node truth holds for qtq_t at the source tuple of aa.✦

Comparison schemas and ring layouts

Let 𝔽2=ℤ/2ℤ\mathbb{F}_2 = \mathbb{Z}/2\mathbb{Z} denote the binary field.✦ For d∈ℕd \in \mathbb{N}, write projj:𝔽2d→𝔽2\mathrm{proj}_j : \mathbb{F}_2^d \to \mathbb{F}_2 for the jj-th coordinate projection and sumd=∑j=0d−1projj\mathrm{sum}_d = \sum_{j=0}^{d-1} \mathrm{proj}_j for the coordinate sum linear form.

A comparison schema SS of address dimension rr on a point set P′P' and a wire set E′E' equips P′P' and E′E' with injective natural-number indices, assigns to each point p∈P′p \in P' a dimension dp∈{1,2}d_p \in \{1, 2\}, and assigns to each wire e∈E′e \in E' a source point src(e)∈P′\mathrm{src}(e) \in P', a target point tgt(e)∈P′\mathrm{tgt}(e) \in P', a nonempty domain subset De,i⊆{0,1}D_{e,i} \subseteq \{0, 1\} and an injective map σe,i:De,i→{0,1}\sigma_{e,i} : D_{e,i} \to \{0, 1\} for each i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, and linear forms λe,0:𝔽2dsrc(e)→𝔽2\lambda_{e,0} : \mathbb{F}_2^{d_{\mathrm{src}(e)}} \to \mathbb{F}_2 and λe,1:𝔽2dtgt(e)→𝔽2\lambda_{e,1} : \mathbb{F}_2^{d_{\mathrm{tgt}(e)}} \to \mathbb{F}_2.✦

Every product circuit CC determines a comparison schema SCS_C of address dimension rr. Its primary circuit point types are P⊔{⊥}P \sqcup \{\bot\}, where p∈Pp \in P retains dimension dpd_p and the auxiliary type ⊥\bot has dimension 11. A product circuit connection ℓ\ell belongs to one of six families, each with primary source and target types, a Boolean product map DℓD_\ell, a source linear form λℓsrc\lambda^{\mathrm{src}}_\ell, and a target linear form λℓtgt\lambda^{\mathrm{tgt}}_\ell:

  • an original connection for e∈Ee \in E, from s(e)s(e) to t(e)t(e), with map DeD_e, source form sumds(e)\mathrm{sum}_{d_{s(e)}}, and target form projπ(e)\mathrm{proj}_{\pi(e)};

  • a test connection for t∈Tt \in T, from qtq_t to ⊥\bot, with map idDt\mathrm{id}_{D_t}, source form sumdqt\mathrm{sum}_{d_{q_t}}, and target form proj0\mathrm{proj}_0;

  • a flip connection for i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, from ⊥\bot to ⊥\bot, with map flipi\mathrm{flip}_i and forms proj0\mathrm{proj}_0 at both ends;

  • a broadcast connection for p∈Pp \in P and j∈{0,…,dp−1}j \in \{0, \dots, d_p - 1\}, from ⊥\bot to pp, with map idr\mathrm{id}_r, source form proj0\mathrm{proj}_0, and target form projj\mathrm{proj}_j;

  • a self connection for p∈P⊔{⊥}p \in P \sqcup \{\bot\} and j∈{0,…,dp−1}j \in \{0, \dots, d_p - 1\}, from pp to pp, with map idr\mathrm{id}_r and forms projj\mathrm{proj}_j at both ends;

  • a conflict connection from ⊥\bot to ⊥\bot, with map idr\mathrm{id}_r and forms proj0\mathrm{proj}_0 at both ends.

The real types of SCS_C are the primary types, a 22-dimensional buffer type buf(ℓ)\mathrm{buf}(\ell) for each connection ℓ\ell, and a 11-dimensional dummy type ⋆\star.✦ The wires of SCS_C are the product circuit comparisons: for each seed z∈Zz \in Z, a seed comparison from pzp_z to ⋆\star with map idDz\mathrm{id}_{D_z}, left form sumdpz\mathrm{sum}_{d_{p_z}}, and right form 00; and for each connection ℓ\ell, first and second comparisons from src(ℓ)\mathrm{src}(\ell) to buf(ℓ)\mathrm{buf}(\ell) with map idDℓ\mathrm{id}_{D_\ell}, left form λℓsrc\lambda^{\mathrm{src}}_\ell, and right forms proj0\mathrm{proj}_0 and proj1\mathrm{proj}_1 respectively, together with a third comparison from buf(ℓ)\mathrm{buf}(\ell) to tgt(ℓ)\mathrm{tgt}(\ell) with map DℓD_\ell, left form proj0+proj1\mathrm{proj}_0 + \mathrm{proj}_1, and right form λℓtgt\lambda^{\mathrm{tgt}}_\ell. The real types and comparisons inherit injective natural-number indices from those of CC.

A ring layout RR of length rr on a type set 𝒯\mathcal{T} and a link set ℒ\mathcal{L} carries injective natural-number indices on 𝒯\mathcal{T} and ℒ\mathcal{L}, a dimension dt∈{1,2}d_t \in \{1, 2\} and nonempty label sets At,i⊆{0,1}A_{t,i} \subseteq \{0, 1\} for each t∈𝒯t \in \mathcal{T} and i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, and for each link l∈ℒl \in \mathcal{L}: distinct endpoint types first(l)≠second(l)\mathrm{first}(l) \neq \mathrm{second}(l) of which at least one has dimension 11, nonempty match label sets Ml,i⊆{0,1}M_{l,i} \subseteq \{0, 1\}, injective endpoint label maps αl,i:Ml,i→Afirst(l),i\alpha_{l,i} : M_{l,i} \to A_{\mathrm{first}(l),i} and βl,i:Ml,i→Asecond(l),i\beta_{l,i} : M_{l,i} \to A_{\mathrm{second}(l),i}, and linear forms ϕl,0:𝔽2dfirst(l)→𝔽2\phi_{l,0} : \mathbb{F}_2^{d_{\mathrm{first}(l)}} \to \mathbb{F}_2 and ϕl,1:𝔽2dsecond(l)→𝔽2\phi_{l,1} : \mathbb{F}_2^{d_{\mathrm{second}(l)}} \to \mathbb{F}_2.✦

Given a comparison schema SS on (P′,E′)(P', E') and a subdivision parameter n∈ℕn \in \mathbb{N}, the comparison ring layout R(S,n)R(S, n) replaces each wire e∈E′e \in E' by a chain of n+1n + 1 internal layout types (e,0),…,(e,n)(e, 0), \dots, (e, n) of dimension 11, joined by n+2n + 2 subdivided wire links: an initial link from src(e)\mathrm{src}(e) to (e,0)(e, 0), middle links from (e,m)(e, m) to (e,m+1)(e, m + 1) for 0≤m<n0 \le m < n, and a final link from (e,n)(e, n) to tgt(e)\mathrm{tgt}(e). Every point in P′P' retains its schema dimension and receives the full label set {0,1}\{0, 1\} at every coordinate ii, whereas each internal type (e,m)(e, m) and each link with underlying wire ee receives label set and match label set De,iD_{e,i}. The endpoint label maps and endpoint linear forms on each link are induced from the coordinate maps and linear forms of its underlying wire, and the type and link indices are built from those of SS.

Affine block graphs

An affine block system DD on a finite coordinate set 𝒞\mathcal{C} and a block set ℬ\mathcal{B} consists of an injective color encoding κ:𝒞⊔ℬ↪ℕ\kappa : \mathcal{C} \sqcup \mathcal{B} \hookrightarrow \mathbb{N}, a finite coordinate set 𝒞(b)⊆𝒞\mathcal{C}(b) \subseteq \mathcal{C} for each block b∈ℬb \in \mathcal{B}, a linear form fb:𝔽2𝒞(b)→𝔽2f_b : \mathbb{F}_2^{\mathcal{C}(b)} \to \mathbb{F}_2, and a Boolean constraint indicator such that fb≠0f_b \neq 0 for every constrained block bb.✦ Given a target assignment β:ℬ→𝔽2\beta : \mathcal{B} \to \mathbb{F}_2, a local block assignment v:𝒞(b)→𝔽2v : \mathcal{C}(b) \to \mathbb{F}_2 is legal on bb if fb(v)=β(b)f_b(v) = \beta(b) whenever bb is constrained.✦

The affine block incidence graph BD(β)B_D(\beta) has vertex set VV equal to the disjoint union of bit vertices 𝒞×𝔽2\mathcal{C} \times \mathbb{F}_2 and valuation vertices {(b,v):b∈ℬ,v is legal on b}\{(b, v) : b \in \mathcal{B},\, v \text{ is legal on } b\}.✦ Two vertices are adjacent in BD(β)B_D(\beta) if and only if one is a bit vertex (c,x)(c, x) and the other is a valuation vertex (b,v)(b, v) with c∈𝒞(b)c \in \mathcal{C}(b) and v(c)=xv(c) = x.✦ Each vertex w∈Vw \in V has vertex color name cc for w=(c,x)w = (c, x) and bb for w=(b,v)w = (b, v)✦, and vertex color code γ(w)=κ(name(w))+1\gamma(w) = \kappa(\mathrm{name}(w)) + 1.✦ Attaching γ(w)(|V|+1)\gamma(w)(|V| + 1) distinct pendant leaves to each vertex w∈Vw \in V on the leaf-augmented vertex set produces an uncolored finite simple graph GD(β)G_D(\beta), called the affine block graph of DD at β\beta.✦

In a ring layout RR of length r≥2r \ge 2, cyclic successor on {0,…,r−1}\{0, \dots, r - 1\} is written i↦i+1mod⁡ri \mapsto i + 1 \bmod r. A horizontal block name is a tuple h=(t,i,a,a′)h = (t, i, a, a') with t∈𝒯t \in \mathcal{T}, i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, a∈At,ia \in A_{t,i}, and a′∈At,i+1mod⁡ra' \in A_{t, i + 1 \bmod r}✦; a vertical coordinate name is a tuple (l,i,a)(l, i, a) with l∈ℒl \in \mathcal{L}, i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, and a∈Ml,ia \in M_{l,i}✦; and a ring layout square is a tuple q=(l,i,a,a′)q = (l, i, a, a') with l∈ℒl \in \mathcal{L}, i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, a∈Ml,ia \in M_{l,i}, and a′∈Ml,i+1mod⁡ra' \in M_{l, i + 1 \bmod r}.✦ The ring layout coordinates consist of pairs (h,j)(h, j) for a horizontal block name hh of type tt and j∈{0,…,dt−1}j \in \{0, \dots, d_t - 1\}, together with all vertical coordinate names✦; the ring layout blocks consist of all horizontal block names and all squares.✦

Each square q=(l,i,a,a′)q = (l, i, a, a') determines a left horizontal block left(q)=(first(l),i,αl,i(a),αl,i+1mod⁡r(a′))\mathrm{left}(q) = (\mathrm{first}(l), i, \alpha_{l,i}(a), \alpha_{l, i+1 \bmod r}(a')), a right horizontal block right(q)=(second(l),i,βl,i(a),βl,i+1mod⁡r(a′))\mathrm{right}(q) = (\mathrm{second}(l), i, \beta_{l,i}(a), \beta_{l, i+1 \bmod r}(a')), a top vertical coordinate top(q)=(l,i,a)\mathrm{top}(q) = (l, i, a), and a bottom vertical coordinate bottom(q)=(l,i+1mod⁡r,a′)\mathrm{bottom}(q) = (l, i + 1 \bmod r, a'). The block coordinate set of a horizontal block hh is {(h,j):0≤j<dt}\{(h, j) : 0 \le j < d_t\}, and the block coordinate set of a square qq is the union of the horizontal block coordinates of left(q)\mathrm{left}(q) and right(q)\mathrm{right}(q) together with {top(q),bottom(q)}\{\mathrm{top}(q), \mathrm{bottom}(q)\}.✦ The square linear form Φq\Phi_q on local assignments vv to the coordinate set of qq is Φq(v)=ϕl,0(v|left(q))+ϕl,1(v|right(q))+v(top(q))+v(bottom(q)),\begin{aligned} \Phi_q(v) &= \phi_{l,0}\bigl(v|_{\mathrm{left}(q)}\bigr) + \phi_{l,1}\bigl(v|_{\mathrm{right}(q)}\bigr) \\ &\quad + v\bigl(\mathrm{top}(q)\bigr) + v\bigl(\mathrm{bottom}(q)\bigr), \end{aligned}(1)✦ where each restriction applies the local coordinate projections onto the corresponding horizontal block coordinates. For r≥2r \ge 2, the ring affine block system of RR takes the ring layout coordinates and blocks with their induced natural-number color encoding, leaves every horizontal block unconstrained with the zero form, and constrains every square qq with the nonzero form Φq\Phi_q of (1).✦

For a product circuit CC of address dimension r≥2r \ge 2 and a subdivision parameter n∈ℕn \in \mathbb{N}, let GC,n(0)G_{C,n}(0) denote the affine block graph of the ring affine block system of R(SC,n)R(S_C, n) evaluated at the identically zero target assignment β=0\beta = 0.

The claim

Proposition 7.1. Let r≥32r \ge 32 and n∈ℕn \in \mathbb{N}, and let CC be an accepted product circuit of address dimension rr on finite node, edge, seed, and test sets. Then rr-WL identifies GC,n(0)G_{C,n}(0); that is, for every finite simple graph HH, GC,n(0)≡rH⟹GC,n(0)≅H.G_{C,n}(0) \equiv_r H \implies G_{C,n}(0) \cong H.(2)✦

In the paper, the result reads: if MM accepts ww, then every finite simple uncolored graph H≡rG(0)H \equiv_r G(0) is isomorphic to G(0)G(0), where G(0)G(0) denotes the untwisted affine block graph associated to MM and ww. In the Lean library, the hypothesis is phrased directly as acceptance of a product circuit CC with an arbitrary subdivision parameter n∈ℕn \in \mathbb{N}, yielding the graph GC,n(0)G_{C,n}(0) in (2).

What is checked

Proposition 7.1 is stated over an accepted product circuit CC of address dimension r≥32r \ge 32, a subdivision parameter n∈ℕn \in \mathbb{N}, the comparison schema SCS_C built from its connections, buffers, and comparisons, the subdivided ring layout R(SC,n)R(S_C, n), and the untwisted affine block graph GC,n(0)G_{C,n}(0) tested under rr-WL equivalence and graph isomorphism. For any ring layout, the Lean library also establishes that the horizontal coordinates of the left and right horizontal blocks of a square, together with its top and bottom vertical coordinates, belong to the block coordinate set of that square.