The setting
In finite model theory and graph isomorphism, the -dimensional Weisfeiler-Leman (-WL) algorithm iteratively refines a coloring of -tuples of vertices to test whether two finite simple graphs are distinguishable in -variable counting logic. For a graph , the basic identification problem asks whether -WL distinguishes from every nonisomorphic graph. When encoding a deterministic computation into a graph instance so that acceptance corresponds to -WL identification, the soundness direction for rejecting computations requires showing that nonacceptance produces a nonisomorphic graph that remains -WL equivalent to the constructed graph.
All graphs here are finite, simple, undirected, and uncolored, with vertex set and a symmetric, irreflexive adjacency relation.✦ Two graphs and are isomorphic, written , if there is a bijection from to that preserves adjacency and nonadjacency.✦ For -WL refinement, every vertex receives a single initial color at round , and at round the color of a vertex pairs its round- color with the multiset of round- colors of its neighbors.✦ For , -WL refinement assigns to each -tuple at round the pair of Boolean matrices recording equality and adjacency between and ; at round , the color of pairs its round- color with the multiset, over all , of the -tuple of round- colors of the updated tuples obtained by replacing coordinate of with for each .✦ The -WL (respectively -WL) color histogram of at round is the multiset of round- colors over all vertices (respectively -tuples of vertices) of . Two graphs and are -WL equivalent, written , if for every round their -WL histograms agree when , and their -WL histograms agree when .✦ Finally, -WL identifies if every graph satisfying is isomorphic to .✦
Product circuits and acceptance
Fix a natural number for the address dimension. A Boolean product map of dimension assigns to each coordinate a nonempty subset and a map that is injective on .✦ A domain point of is an -tuple ; its source tuple is ✦, and its target tuple is .✦ Three derived maps are used: the identity product map of dimension has domain and the identity map at every coordinate✦; the domain-restricted identity product map of keeps the domains with the identity map at every coordinate✦; and the single-bit flip product map at coordinate has domain everywhere, negates coordinate , and fixes all other coordinates.✦
A product circuit of address dimension consists of sets of node types , edge types , seed types , and test types , each equipped with an injective index into , together with a dimension for each and the following structure: each edge type has a source , a target , a target port , and a Boolean product map of dimension ; each seed type has a node type with and a Boolean product map ; and each test type has a 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 , every domain point of , and every , port of is true at the source tuple of ; and for every edge and every domain point of , if every port of is true at the source tuple of , then of is true at the target tuple of .✦ Product circuit node truth holds at if port of is true at for every .✦ The product circuit is accepted if there exist a test type and a domain point of such that node truth holds at and the source tuple of .✦
Comparison schemas and ring layouts
All linear forms and local values are taken over the binary field . For and , 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 assigns injective natural-number indices to and , a dimension to each , and to each wire a source and target in , a nonempty domain with an injective map at each coordinate , and -linear forms and on the coordinate spaces of its source and target.
From a product circuit , the Lean library constructs a comparison schema as follows. Adjoin a distinguished point to to form the primary circuit point types , setting and keeping for . The set of product circuit connections consists of six families, each carrying a source and target in , a Boolean product map of dimension , and source and target -linear forms:
an original connection for each , from to , with map , source form , and target form ;
a test connection for each , from to , with the domain-restricted identity on , source form , and target form ;
a flip connection for each , from to , with the single-bit flip map at and source and target forms ;
a broadcast connection for each and , from to , with the identity map, source form , and target form ;
a self-connection for each and , from to , with the identity map and source and target forms ;
a conflict connection from to , with the identity map and source and target forms .
The point set of is the set of real types, consisting of , one buffer type of dimension for each , and one dummy type of dimension .✦ The wire set of consists of one seed comparison for each (from to , with the domain-restricted identity on , left form , and right form ) and three comparisons for each : a first comparison from the source of to with the domain-restricted identity on the map of , left form the source form of , and right form ; a second comparison with the same endpoints, map, and left form, and right form ; and a third comparison from to the target of with the product map of , left form , and right form the target form of .
A ring layout of length on a type set and a link set assigns injective natural-number indices to and , a dimension to each , and a nonempty label set to each and slot . Each link has distinct endpoint types of which at least one has dimension , a nonempty match label set at each slot , injective label maps and , and -linear forms and on the coordinate spaces of its first and second endpoints.
For a comparison schema on and a subdivision parameter , the comparison ring layout has type set , where each point keeps dimension and label set at every slot, and each internal node has dimension and label set at slot . Its link set consists, for each wire , of an initial link from to , middle links from to for , and a final link from to . Every link originating from wire has match label set at slot , together with its first and second endpoint injective label maps into the endpoint label sets and its first and second endpoint -linear forms.
Affine block systems and uncolored graphs
An affine block system on a finite coordinate set and a block set consists of an injective color index , a finite coordinate set for each , an -linear form , and a constraint indicator designating which blocks are constrained, such that for every constrained block .✦
Given a ring layout of length on , write for the cyclic successor of a slot . A horizontal block name is a tuple with , , and ✦; a vertical coordinate name is a triple with and ✦; and a ring layout square is a tuple with , , and .✦ The block set is the disjoint union of all horizontal block names and all squares, and the coordinate set is the disjoint union of all horizontal coordinates (for and ) and all vertical coordinate names, equipped with an injective color index induced from the type and link indices of . Each horizontal block has coordinate set consisting of its horizontal coordinates.✦ Each square determines left and right horizontal blocks and top and bottom vertical coordinates by (1) and has coordinate set . For a local assignment , writing and for the tuples of projections of onto the coordinates of and , the square linear form is defined by (2)✦ which is nonzero since . The ring affine block system is the affine block system on in which every horizontal block is unconstrained with zero form and every square is constrained with the form of (2).✦
For an affine block system on and a target assignment , a local block assignment on is a map ✦, and it is legal if whenever is constrained.✦ The affine block vertex set is the disjoint union of bit vertices and valuation vertices with and legal on .✦ The affine block incidence graph on is the bipartite simple graph in which and are adjacent if and only if and , with no edges between vertices of the same kind.✦ Each vertex receives color name if and if , and vertex color code . Given any finite simple graph on a vertex set and a coloring , its leaf-tagged graph attaches distinct pendant leaves to each vertex (each leaf adjacent only to , with no edges between leaves) and enumerates the resulting leaf-augmented vertex set to yield an uncolored finite simple graph.✦ The affine block graph is the leaf-tagged graph of the affine block incidence graph with vertex color code .✦
The claim
Proposition 7.2. Let and be natural numbers, and let be a product circuit of address dimension with finite sets of node types , edge types , seed types , and test types . Set for the affine block graph of at the zero target assignment. If is not accepted, then -WL does not identify : there exists a finite simple graph such that (3)✦
In the paper, the result reads: if does not accept , then there is a choice of square bits such that but .
In the Lean library, the computation of on is represented by a product circuit whose uncolored affine block graph at the zero target assignment is , and the conclusion of (3) states directly that -WL fails to identify .
What is checked
Proposition 7.2 is stated over natural numbers and , a product circuit of address dimension , its comparison schema , its subdivided ring layout , the resulting ring affine block system , and the uncolored affine block graph at the zero target assignment, under the hypothesis that is not accepted. In addition, for every ring layout and every square of , the Lean library establishes that the block coordinate set contains every horizontal coordinate of and as well as the vertical coordinates and of (1).