The setting
The -dimensional Weisfeiler-Leman (-WL) algorithm tests graph isomorphism by iteratively refining colorings of vertex -tuples, and identifies a graph when every graph indistinguishable from by -WL is isomorphic to . In the reduction from EXPTIME acceptance to -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 -WL to identify the associated untwisted graph whenever .
All graphs are finite, simple, undirected, and uncolored. A finite simple graph of order has vertex set and a symmetric, irreflexive adjacency relation.✦ Two finite simple graphs and are isomorphic, written , if there is a bijection between and that preserves adjacency and non-adjacency.✦
For , the 1-WL color space at round is a singleton, and at round it is the product of the round- 1-WL color space with the space of multisets of round- colors.✦ The 1-WL vertex coloring assigns the unique initial color to every vertex at round , and at round pairs the round- color of a vertex with the multiset of round- colors of the neighbors of .✦ For any , the -WL color space at round consists of pairs of Boolean matrices recording equality and adjacency patterns, and at round it pairs a round- color with a multiset of -tuples of round- colors.✦ The -WL tuple coloring sends a -tuple at round to its equality and adjacency matrices, and at round to the pair consisting of its round- color and the multiset over all of the -tuple of round- colors obtained by replacing each coordinate of with .✦
The 1-WL color histogram of at round is the multiset of round- 1-WL colors over ✦, and the -WL color histogram at round is the multiset of round- -WL colors over .✦ Two graphs and are -WL equivalent, written , if for every round their 1-WL color histograms coincide when and their -WL color histograms coincide when .✦ A graph is identified by -WL if every finite simple graph with satisfies .✦
Product circuits and acceptance
Fix an address dimension . A Boolean product map of dimension specifies, for each coordinate , a nonempty subset and a map that is injective on .✦ A domain point of is a tuple ✦; its source tuple is ✦ and its target tuple is .✦ The identity product map has full domain and the identity on every coordinate✦; the domain-restricted identity of keeps the domain of with the identity map on every coordinate✦; and for , the single-bit flip product map has full domain , negates coordinate , and fixes all other coordinates.✦
A product circuit of address dimension on node types , edge types , seed types , and test types equips each of , , , and with an injective natural-number index and assigns the following data:
to each node type , a dimension ;
to each edge type , a source , a target , a target port , and a Boolean product map ;
to each seed type , a seed node type with and a Boolean product map ;
to each test type , a test node type with and a Boolean product map .
Product circuit port truth is the least relation on triples with , , and generated by two rules: for every seed , domain point of , and port , port of is true at the source tuple of ; and for every edge and domain point of , if every port of is true at the source tuple of , then port of is true at the target tuple of .✦ Product circuit node truth holds at if every port of is true at .✦ The product circuit is accepted if there exist a test and a domain point of such that node truth holds for at the source tuple of .✦
Comparison schemas and ring layouts
Let denote the binary field.✦ For , write for the -th coordinate projection and for the coordinate sum linear form.
A comparison schema of address dimension on a point set and a wire set equips and with injective natural-number indices, assigns to each point a dimension , and assigns to each wire a source point , a target point , a nonempty domain subset and an injective map for each , and linear forms and .✦
Every product circuit determines a comparison schema of address dimension . Its primary circuit point types are , where retains dimension and the auxiliary type has dimension . A product circuit connection belongs to one of six families, each with primary source and target types, a Boolean product map , a source linear form , and a target linear form :
an original connection for , from to , with map , source form , and target form ;
a test connection for , from to , with map , source form , and target form ;
a flip connection for , from to , with map and forms at both ends;
a broadcast connection for and , from to , with map , source form , and target form ;
a self connection for and , from to , with map and forms at both ends;
a conflict connection from to , with map and forms at both ends.
The real types of are the primary types, a -dimensional buffer type for each connection , and a -dimensional dummy type .✦ The wires of are the product circuit comparisons: for each seed , a seed comparison from to with map , left form , and right form ; and for each connection , first and second comparisons from to with map , left form , and right forms and respectively, together with a third comparison from to with map , left form , and right form . The real types and comparisons inherit injective natural-number indices from those of .
A ring layout of length on a type set and a link set carries injective natural-number indices on and , a dimension and nonempty label sets for each and , and for each link : distinct endpoint types of which at least one has dimension , nonempty match label sets , injective endpoint label maps and , and linear forms and .✦
Given a comparison schema on and a subdivision parameter , the comparison ring layout replaces each wire by a chain of internal layout types of dimension , joined by subdivided wire links: an initial link from to , middle links from to for , and a final link from to . Every point in retains its schema dimension and receives the full label set at every coordinate , whereas each internal type and each link with underlying wire receives label set and match label set . 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 .
Affine block graphs
An affine block system on a finite coordinate set and a block set consists of an injective color encoding , a finite coordinate set for each block , a linear form , and a Boolean constraint indicator such that for every constrained block .✦ Given a target assignment , a local block assignment is legal on if whenever is constrained.✦
The affine block incidence graph has vertex set equal to the disjoint union of bit vertices and valuation vertices .✦ Two vertices are adjacent in if and only if one is a bit vertex and the other is a valuation vertex with and .✦ Each vertex has vertex color name for and for ✦, and vertex color code .✦ Attaching distinct pendant leaves to each vertex on the leaf-augmented vertex set produces an uncolored finite simple graph , called the affine block graph of at .✦
In a ring layout of length , cyclic successor on is written . A horizontal block name is a tuple with , , , and ✦; a vertical coordinate name is a tuple with , , and ✦; and a ring layout square is a tuple with , , , and .✦ The ring layout coordinates consist of pairs for a horizontal block name of type and , together with all vertical coordinate names✦; the ring layout blocks consist of all horizontal block names and all squares.✦
Each square determines a left horizontal block , a right horizontal block , a top vertical coordinate , and a bottom vertical coordinate . The block coordinate set of a horizontal block is , and the block coordinate set of a square is the union of the horizontal block coordinates of and together with .✦ The square linear form on local assignments to the coordinate set of is (1)✦ where each restriction applies the local coordinate projections onto the corresponding horizontal block coordinates. For , the ring affine block system of 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 with the nonzero form of (1).✦
For a product circuit of address dimension and a subdivision parameter , let denote the affine block graph of the ring affine block system of evaluated at the identically zero target assignment .
The claim
Proposition 7.1. Let and , and let be an accepted product circuit of address dimension on finite node, edge, seed, and test sets. Then -WL identifies ; that is, for every finite simple graph , (2)✦
In the paper, the result reads: if accepts , then every finite simple uncolored graph is isomorphic to , where denotes the untwisted affine block graph associated to and . In the Lean library, the hypothesis is phrased directly as acceptance of a product circuit with an arbitrary subdivision parameter , yielding the graph in (2).
What is checked
Proposition 7.1 is stated over an accepted product circuit of address dimension , a subdivision parameter , the comparison schema built from its connections, buffers, and comparisons, the subdivided ring layout , and the untwisted affine block graph tested under -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.