OctoInform Beta

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

Proposition 7.2: For r≥32r \ge 32 and n>r+1n > r + 1, a rejected product circuit yields a graph not identified by rr-WL

Nonacceptance blocks Weisfeiler-Leman identification of the circuit graph.

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 finite model theory and graph isomorphism, the kk-dimensional Weisfeiler-Leman (kk-WL) algorithm iteratively refines a coloring of kk-tuples of vertices to test whether two finite simple graphs are distinguishable in kk-variable counting logic. For a graph GG, the basic identification problem asks whether kk-WL distinguishes GG from every nonisomorphic graph. When encoding a deterministic computation into a graph instance so that acceptance corresponds to rr-WL identification, the soundness direction for rejecting computations requires showing that nonacceptance produces a nonisomorphic graph that remains rr-WL equivalent to the constructed graph.

All graphs here are finite, simple, undirected, and uncolored, with vertex set V(G)V(G) and a symmetric, irreflexive adjacency relation.✦ Two graphs GG and HH are isomorphic, written G≅HG \cong H, if there is a bijection from V(G)V(G) to V(H)V(H) that preserves adjacency and nonadjacency.✦ For 11-WL refinement, every vertex receives a single initial color at round 00, and at round s+1s + 1 the color of a vertex vv pairs its round-ss color with the multiset of round-ss colors of its neighbors.✦ For k≠1k \neq 1, kk-WL refinement assigns to each kk-tuple 𝒗=(v1,…,vk)∈V(G)k\mathbf{v} = (v_1, \dots, v_k) \in V(G)^k at round 00 the pair of k×kk \times k Boolean matrices recording equality vi=vjv_i = v_j and adjacency between viv_i and vjv_j; at round s+1s + 1, the color of 𝒗\mathbf{v} pairs its round-ss color with the multiset, over all z∈V(G)z \in V(G), of the kk-tuple of round-ss colors of the updated tuples obtained by replacing coordinate ii of 𝒗\mathbf{v} with zz for each 1≤i≤k1 \le i \le k.✦ The 11-WL (respectively kk-WL) color histogram of GG at round ss is the multiset of round-ss colors over all vertices (respectively kk-tuples of vertices) of GG. Two graphs GG and HH are kk-WL equivalent, written G≡kHG \equiv_k H, if for every round s≥0s \ge 0 their 11-WL histograms agree when k=1k = 1, and their kk-WL histograms agree when k≠1k \neq 1.✦ Finally, kk-WL identifies GG if every graph HH satisfying G≡kHG \equiv_k H is isomorphic to GG.✦

Product circuits and acceptance

Fix a natural number rr for the address dimension. A Boolean product map DD of dimension rr assigns to 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 an rr-tuple a=(a0,…,ar−1)∈∏i=0r−1Dia = (a_0, \dots, a_{r-1}) \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 (σ0(a0),…,σr−1(ar−1))∈{0,1}r(\sigma_0(a_0), \dots, \sigma_{r-1}(a_{r-1})) \in \{0, 1\}^r.✦ Three derived maps are used: the identity product map of dimension rr has domain {0,1}\{0, 1\} and the identity map at every coordinate✦; the domain-restricted identity product map of DD keeps the domains DiD_i with the identity map at every coordinate✦; and the single-bit flip product map at coordinate ii has domain {0,1}\{0, 1\} everywhere, negates coordinate ii, and fixes all other coordinates.✦

A product circuit CC of address dimension rr consists of sets of node types PP, edge types EE, seed types ZZ, and test types TT, each equipped with an injective index into ℕ\mathbb{N}, together with a dimension d(p)∈{1,2}d(p) \in \{1, 2\} for each p∈Pp \in P and the following structure: each edge type e∈Ee \in E has a source src(e)∈P\mathrm{src}(e) \in P, a target tgt(e)∈P\mathrm{tgt}(e) \in P, a target port port(e)∈{0,…,d(tgt(e))−1}\mathrm{port}(e) \in \{0, \dots, d(\mathrm{tgt}(e)) - 1\}, and a Boolean product map μe\mu_e of dimension rr; each seed type z∈Zz \in Z has a node type pz∈Pp_z \in P with d(pz)=1d(p_z) = 1 and a Boolean product map μz\mu_z; and each test type t∈Tt \in T has a node type pt∈Pp_t \in P with d(pt)=1d(p_t) = 1 and a Boolean product map μt\mu_t.

Product circuit port truth is the least relation on triples (p,x,j)(p, x, j) with p∈Pp \in P, x∈{0,1}rx \in \{0, 1\}^r, and j∈{0,…,d(p)−1}j \in \{0, \dots, d(p) - 1\} generated by two rules: for every seed z∈Zz \in Z, every domain point aa of μz\mu_z, and every j<d(pz)j < d(p_z), port jj of pzp_z is true at the source tuple of aa; and for every edge e∈Ee \in E and every domain point aa of μe\mu_e, if every port j<d(src(e))j < d(\mathrm{src}(e)) of src(e)\mathrm{src}(e) is true at the source tuple of aa, then port(e)\mathrm{port}(e) of tgt(e)\mathrm{tgt}(e) is true at the target tuple of aa.✦ Product circuit node truth holds at (p,x)(p, x) if port jj of pp is true at xx for every j∈{0,…,d(p)−1}j \in \{0, \dots, d(p) - 1\}.✦ The product circuit CC is accepted if there exist a test type t∈Tt \in T and a domain point aa of μt\mu_t such that node truth holds at ptp_t and the source tuple of aa.✦

Comparison schemas and ring layouts

All linear forms and local values are taken over the binary field 𝔽2=ℤ/2ℤ\mathbb{F}_2 = \mathbb{Z}/2\mathbb{Z}. For d∈ℕd \in \mathbb{N} and j∈{0,…,d−1}j \in \{0, \dots, d - 1\}, write πj:𝔽2d→𝔽2\pi_j : \mathbb{F}_2^d \to \mathbb{F}_2 for the jj-th coordinate projection and Σd=∑j=0d−1πj\Sigma_d = \sum_{j=0}^{d-1} \pi_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' assigns injective natural-number indices to P′P' and E′E', a dimension d(p)∈{1,2}d(p) \in \{1, 2\} to each p∈P′p \in P', and to each wire e∈E′e \in E' a source and target in P′P', a nonempty domain De,i⊆{0,1}D_{e, i} \subseteq \{0, 1\} with an injective map σe,i:De,i→{0,1}\sigma_{e, i} : D_{e, i} \to \{0, 1\} at each coordinate i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, and 𝔽2\mathbb{F}_2-linear forms λe,0\lambda_{e, 0} and λe,1\lambda_{e, 1} on the coordinate spaces of its source and target.

From a product circuit CC, the Lean library constructs a comparison schema SCS_C as follows. Adjoin a distinguished point ⋆\star to PP to form the primary circuit point types P⋆=P⊔{⋆}P_{\star} = P \sqcup \{\star\}, setting d(⋆)=1d(\star) = 1 and keeping d(p)d(p) for p∈Pp \in P. The set ℒC\mathcal{L}_C of product circuit connections consists of six families, each carrying a source and target in P⋆P_{\star}, a Boolean product map of dimension rr, and source and target 𝔽2\mathbb{F}_2-linear forms:

  1. an original connection for each e∈Ee \in E, from src(e)\mathrm{src}(e) to tgt(e)\mathrm{tgt}(e), with map μe\mu_e, source form Σd(src(e))\Sigma_{d(\mathrm{src}(e))}, and target form πport(e)\pi_{\mathrm{port}(e)};

  2. a test connection for each t∈Tt \in T, from ptp_t to ⋆\star, with the domain-restricted identity on μt\mu_t, source form Σd(pt)\Sigma_{d(p_t)}, and target form π0\pi_0;

  3. a flip connection for each i∈{0,…,r−1}i \in \{0, \dots, r - 1\}, from ⋆\star to ⋆\star, with the single-bit flip map at ii and source and target forms π0\pi_0;

  4. a broadcast connection for each p∈Pp \in P and j∈{0,…,d(p)−1}j \in \{0, \dots, d(p) - 1\}, from ⋆\star to pp, with the identity map, source form π0\pi_0, and target form πj\pi_j;

  5. a self-connection for each p∈P⋆p \in P_{\star} and j∈{0,…,d(p)−1}j \in \{0, \dots, d(p) - 1\}, from pp to pp, with the identity map and source and target forms πj\pi_j;

  6. a conflict connection from ⋆\star to ⋆\star, with the identity map and source and target forms π0\pi_0.

The point set of SCS_C is the set of real types, consisting of P⋆P_{\star}, one buffer type buf(ℓ)\mathrm{buf}(\ell) of dimension 22 for each ℓ∈ℒC\ell \in \mathcal{L}_C, and one dummy type dum\mathrm{dum} of dimension 11.✦ The wire set of SCS_C consists of one seed comparison for each z∈Zz \in Z (from pzp_z to dum\mathrm{dum}, with the domain-restricted identity on μz\mu_z, left form Σd(pz)\Sigma_{d(p_z)}, and right form 00) and three comparisons for each ℓ∈ℒC\ell \in \mathcal{L}_C: a first comparison from the source of ℓ\ell to buf(ℓ)\mathrm{buf}(\ell) with the domain-restricted identity on the map of ℓ\ell, left form the source form of ℓ\ell, and right form π0\pi_0; a second comparison with the same endpoints, map, and left form, and right form π1\pi_1; and a third comparison from buf(ℓ)\mathrm{buf}(\ell) to the target of ℓ\ell with the product map of ℓ\ell, left form π0+π1\pi_0 + \pi_1, and right form the target form of ℓ\ell.

A ring layout RR of length rr on a type set T′T' and a link set L′L' assigns injective natural-number indices to T′T' and L′L', a dimension d(τ)∈{1,2}d(\tau) \in \{1, 2\} to each τ∈T′\tau \in T', and a nonempty label set Aτ,i⊆{0,1}A_{\tau, i} \subseteq \{0, 1\} to each τ\tau and slot i∈{0,…,r−1}i \in \{0, \dots, r - 1\}. Each link f∈L′f \in L' has distinct endpoint types first(f),second(f)∈T′\mathrm{first}(f), \mathrm{second}(f) \in T' of which at least one has dimension 11, a nonempty match label set Mf,i⊆{0,1}M_{f, i} \subseteq \{0, 1\} at each slot ii, injective label maps ιf,0,i:Mf,i→Afirst(f),i\iota_{f, 0, i} : M_{f, i} \to A_{\mathrm{first}(f), i} and ιf,1,i:Mf,i→Asecond(f),i\iota_{f, 1, i} : M_{f, i} \to A_{\mathrm{second}(f), i}, and 𝔽2\mathbb{F}_2-linear forms φf,0\varphi_{f, 0} and φf,1\varphi_{f, 1} on the coordinate spaces of its first and second endpoints.

For 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) has type set P′⊔(E′×{0,…,n})P' \sqcup (E' \times \{0, \dots, n\}), where each point p∈P′p \in P' keeps dimension d(p)d(p) and label set {0,1}\{0, 1\} at every slot, and each internal node (e,m)(e, m) has dimension 11 and label set De,iD_{e, i} at slot ii. Its link set consists, for each wire e∈E′e \in E', of 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 link ff originating from wire ee has match label set De,iD_{e, i} at slot ii, together with its first and second endpoint injective label maps into the endpoint label sets and its first and second endpoint 𝔽2\mathbb{F}_2-linear forms.

Affine block systems and uncolored graphs

An affine block system 𝒜\mathcal{A} on a finite coordinate set UU and a block set BB consists of an injective color index κ:U⊔B→ℕ\kappa : U \sqcup B \to \mathbb{N}, a finite coordinate set coords(b)⊆U\mathrm{coords}(b) \subseteq U for each b∈Bb \in B, an 𝔽2\mathbb{F}_2-linear form ψb:𝔽2coords(b)→𝔽2\psi_b : \mathbb{F}_2^{\mathrm{coords}(b)} \to \mathbb{F}_2, and a constraint indicator designating which blocks are constrained, such that ψb≠0\psi_b \neq 0 for every constrained block bb.✦

Given a ring layout RR of length r≥2r \ge 2 on (T′,L′)(T', L'), write i+=i+1mod⁡ri^+ = i + 1 \bmod r for the cyclic successor of a slot i∈{0,…,r−1}i \in \{0, \dots, r - 1\}. A horizontal block name is a tuple h=(τ,i,a,a′)h = (\tau, i, a, a') with τ∈T′\tau \in T', a∈Aτ,ia \in A_{\tau, i}, and a′∈Aτ,i+a' \in A_{\tau, i^+}✦; a vertical coordinate name is a triple (f,i,a)(f, i, a) with f∈L′f \in L' and a∈Mf,ia \in M_{f, i}✦; and a ring layout square is a tuple q=(f,i,a,a′)q = (f, i, a, a') with f∈L′f \in L', a∈Mf,ia \in M_{f, i}, and a′∈Mf,i+a' \in M_{f, i^+}.✦ The block set BB is the disjoint union of all horizontal block names and all squares, and the coordinate set UU is the disjoint union of all horizontal coordinates (h,j)(h, j) (for h=(τ,i,a,a′)h = (\tau, i, a, a') and 0≤j<d(τ)0 \le j < d(\tau)) and all vertical coordinate names, equipped with an injective color index κ:U⊔B→ℕ\kappa : U \sqcup B \to \mathbb{N} induced from the type and link indices of RR. Each horizontal block hh has coordinate set coords(h)⊆U\mathrm{coords}(h) \subseteq U consisting of its horizontal coordinates.✦ Each square q=(f,i,a,a′)q = (f, i, a, a') determines left and right horizontal blocks and top and bottom vertical coordinates by hL(q)=(first(f),i,ιf,0,i(a),ιf,0,i+(a′)),hR(q)=(second(f),i,ιf,1,i(a),ιf,1,i+(a′)),vtop(q)=(f,i,a),vbot(q)=(f,i+,a′),\begin{aligned} h_L(q) &= \bigl(\mathrm{first}(f), i, \iota_{f, 0, i}(a), \iota_{f, 0, i^+}(a')\bigr), \\ h_R(q) &= \bigl(\mathrm{second}(f), i, \iota_{f, 1, i}(a), \iota_{f, 1, i^+}(a')\bigr), \\ v_{\mathrm{top}}(q) &= (f, i, a), \qquad v_{\mathrm{bot}}(q) = (f, i^+, a'), \end{aligned}(1) and has coordinate set coords(q)=coords(hL(q))∪coords(hR(q))∪{vtop(q),vbot(q)}\mathrm{coords}(q) = \mathrm{coords}(h_L(q)) \cup \mathrm{coords}(h_R(q)) \cup \{v_{\mathrm{top}}(q), v_{\mathrm{bot}}(q)\}. For a local assignment v:coords(q)→𝔽2v : \mathrm{coords}(q) \to \mathbb{F}_2, writing vLv_L and vRv_R for the tuples of projections of vv onto the coordinates of hL(q)h_L(q) and hR(q)h_R(q), the square linear form ψq:𝔽2coords(q)→𝔽2\psi_q : \mathbb{F}_2^{\mathrm{coords}(q)} \to \mathbb{F}_2 is defined by ψq(v)=φf,0(vL)+φf,1(vR)+v(vtop(q))+v(vbot(q)),\psi_q(v) = \varphi_{f, 0}(v_L) + \varphi_{f, 1}(v_R) + v\bigl(v_{\mathrm{top}}(q)\bigr) + v\bigl(v_{\mathrm{bot}}(q)\bigr),(2)✦ which is nonzero since r≥2r \ge 2. The ring affine block system 𝒜(R)\mathcal{A}(R) is the affine block system on (U,B)(U, B) in which every horizontal block is unconstrained with zero form and every square qq is constrained with the form ψq\psi_q of (2).✦

For an affine block system 𝒜\mathcal{A} on (U,B)(U, B) and a target assignment β:B→𝔽2\beta : B \to \mathbb{F}_2, a local block assignment on b∈Bb \in B is a map v:coords(b)→𝔽2v : \mathrm{coords}(b) \to \mathbb{F}_2✦, and it is legal if ψb(v)=β(b)\psi_b(v) = \beta(b) whenever bb is constrained.✦ The affine block vertex set V(𝒜,β)V(\mathcal{A}, \beta) is the disjoint union of bit vertices (u,x)∈U×𝔽2(u, x) \in U \times \mathbb{F}_2 and valuation vertices (b,v)(b, v) with b∈Bb \in B and vv legal on bb.✦ The affine block incidence graph on V(𝒜,β)V(\mathcal{A}, \beta) is the bipartite simple graph in which (u,x)(u, x) and (b,v)(b, v) are adjacent if and only if u∈coords(b)u \in \mathrm{coords}(b) and v(u)=xv(u) = x, with no edges between vertices of the same kind.✦ Each vertex w∈V(𝒜,β)w \in V(\mathcal{A}, \beta) receives color name uu if w=(u,x)w = (u, x) and bb if w=(b,v)w = (b, v), and vertex color code c(w)=κ(color name of w)+1c(w) = \kappa(\text{color name of } w) + 1. Given any finite simple graph G′G' on a vertex set V′V' and a coloring c:V′→ℕc : V' \to \mathbb{N}, its leaf-tagged graph attaches c(w)⋅(|V′|+1)c(w) \cdot (|V'| + 1) distinct pendant leaves to each vertex w∈V′w \in V' (each leaf adjacent only to ww, with no edges between leaves) and enumerates the resulting leaf-augmented vertex set to yield an uncolored finite simple graph.✦ The affine block graph G(𝒜,β)G(\mathcal{A}, \beta) is the leaf-tagged graph of the affine block incidence graph with vertex color code cc.✦

The claim

Proposition 7.2. Let r≥32r \ge 32 and n>r+1n > r + 1 be natural numbers, and let CC be a product circuit of address dimension rr with finite sets of node types PP, edge types EE, seed types ZZ, and test types TT. Set G0=G(𝒜(R(SC,n)),0)G_0 = G(\mathcal{A}(R(S_C, n)), 0) for the affine block graph of CC at the zero target assignment. If CC is not accepted, then rr-WL does not identify G0G_0: there exists a finite simple graph HH such that G0≡rHandG0≆H.G_0 \equiv_r H \quad\text{and}\quad G_0 \not\cong H.(3)✦

In the paper, the result reads: if MM does not accept ww, then there is a choice of square bits β\beta such that G(β)≡rG(0)G(\beta) \equiv_r G(0) but G(β)≆G(0)G(\beta) \not\cong G(0).

In the Lean library, the computation of MM on ww is represented by a product circuit CC whose uncolored affine block graph at the zero target assignment is G0G_0, and the conclusion of (3) states directly that rr-WL fails to identify G0G_0.

What is checked

Proposition 7.2 is stated over natural numbers r≥32r \ge 32 and n>r+1n > r + 1, a product circuit CC of address dimension rr, its comparison schema SCS_C, its subdivided ring layout R(SC,n)R(S_C, n), the resulting ring affine block system 𝒜(R(SC,n))\mathcal{A}(R(S_C, n)), and the uncolored affine block graph G0G_0 at the zero target assignment, under the hypothesis that CC is not accepted. In addition, for every ring layout RR and every square qq of RR, the Lean library establishes that the block coordinate set coords(q)\mathrm{coords}(q) contains every horizontal coordinate of hL(q)h_L(q) and hR(q)h_R(q) as well as the vertical coordinates vtop(q)v_{\mathrm{top}}(q) and vbot(q)v_{\mathrm{bot}}(q) of (1).