The setting
To reduce systems of linear comparison constraints over to uncolored finite simple graphs for -dimensional Weisfeiler-Leman refinement, one represents each local constraint by a bipartite incidence gadget between coordinate-bit pairs and locally legal assignments, and then encodes vertex colors as uncolored graph structure by attaching calibrated numbers of pendant leaves. The construction separates into three layers: leaf-tagged uncolored graphs, general affine block systems over , and ring layouts whose horizontal and square blocks have bounded local incidence pieces.
Pendant leaves and leaf-tagged graphs
A finite simple graph of order has vertex set and a symmetric, irreflexive adjacency relation.โฆ Given a simple graph on an arbitrary finite vertex set , its indexed graph representation is the finite simple graph obtained by transporting the adjacency relation of along an enumeration of .โฆ Write when are adjacent in , and write for the degree of in .
For a simple graph on a vertex set and a leaf-count function , the leaf-augmented vertex set is the disjoint union of with distinct pendant leaves , , attached to each . The pendant leaf parent sends a base vertex to and a pendant leaf to .โฆ The pendant leaf index is empty (written ) when is a base vertex, and equals when is a pendant leaf.โฆ The graph with pendant leaves is the simple graph on in which two base vertices are adjacent if and only if they are adjacent in , each pendant leaf is adjacent only to its parent, and no two pendant leaves are adjacent.โฆ
When is finite and is a vertex coloring, the leaf-tag size of is defined by (1): (1)โฆ The leaf-tagged graph is the indexed graph representation of .โฆ
Affine block systems
Let denote the binary field.โฆ An affine block system on a finite coordinate set and a block index set consists of an injective map , a finite coordinate subset for each , an -linear form for each , and a constraint flag such that whenever .
For each , a local block assignment is a function .โฆ Given a right-hand side , a local block assignment is legal for under if whenever . Write for the set of legal local assignments for under . The affine block vertex set and, for each , the bounded incidence piece are given by (2): (2) The affine block incidence graph is the bipartite simple graph on in which a coordinate-bit vertex and a block-assignment vertex are adjacent if and only if and , with no edges between two coordinate-bit vertices or between two block-assignment vertices. The vertex color name maps to and to , and the vertex color code is defined by (3): (3)
Ring layouts
Subdividing each comparison schema into a wire of private internal types of dimension one ensures that every link has at least one endpoint of dimension one.
Fix a natural number and index the cyclic address slots by , writing for the cyclic successor of . A ring layout of length on a type set and a link set consists of injective natural-number indices on and , a dimension and nonempty allowed label sets for all and , distinct endpoint types in for each link satisfying or , nonempty match label sets with injective maps and , and -linear forms and .
A ring layout defines the sets of horizontal block names , vertical coordinate names , and squares in (4): (4) The ring layout block set is โฆ, and the ring layout coordinate set is given by (5): (5)โฆ Each square determines its left and right horizontal blocks and its top and bottom vertical coordinates by (6): (6) The horizontal block coordinates of form the set . The block coordinate set of is , and the block coordinate set of a square is defined by (7): (7)โฆ For , the square linear form acts on by evaluating the endpoint forms on the projected left and right horizontal coordinates and adding the top and bottom vertical coordinates, as in (8): (8) Pairing and parity encodings of tuples and disjoint unions lift the injective indices on and to an injective color map . For and finite sets and , the ring affine block system on and equips each horizontal block with the zero linear form and , and each square with the nonzero linear form and .โฆ
The claim
Definition. For an affine block system on a finite coordinate set and a finite block index set , and a right-hand side , the affine block graph is the uncolored finite simple graph given by (9): (9)โฆ For every ring layout of length on finite sets and , every , and every block , the bounded incidence piece of in the ring affine block system satisfies (10): (10)โฆ For every finite simple graph on a finite vertex set , every vertex coloring , and every base vertex , the degree of in recovers its color via (11): (11)โฆ For every simple graph on a vertex set , every leaf-count function , and all vertices , adjacency in satisfies (12): (12)โฆ
In the paper, the result reads: over with and , real types have dimension or , each comparison schema with nonempty product domain , coordinate injections , and scalar linear forms is subdivided into a wire of private internal types and links, horizontal and vertical readouts form site and square blocks, choosing one bit per square defines the legal valuations, and attaching private leaves to base vertices of color (where ) produces the uncolored graph .
The Lean library formulates these constructions for an arbitrary affine block system and an abstract ring layout of any length , so that applies to any subdivided wire layout.
What is checked
In the Lean library, the definition (9) and the properties (10), (11), and (12) are stated over simple graphs with pendant leaves, affine block systems over , and ring layouts of length whose types have dimension or and whose links join distinct types with at least one endpoint of dimension . For every square of a ring layout, the Lean library establishes that its left and right horizontal coordinates and its top and bottom vertical coordinates belong to the squareโs coordinate set, and that for the square linear form is nonzero so that the ring layout induces an affine block system.