The setting
To encode systems of -linear comparison schemas into uncolored finite simple graphs, one constructs a family of graphs parameterized by a vector of right-hand-side bits in . A central structural step is local reconstruction: for address dimension , any graph that cannot be distinguished from the homogeneous graph by -dimensional Weisfeiler-Leman (-WL) refinement must be isomorphic to for some choice of bits .
A finite simple graph consists of a natural number (its order), giving the vertex set , together with a symmetric, irreflexive adjacency relation on .✦ Two finite simple graphs and are isomorphic, written , if there is a bijection such that and are adjacent in if and only if and are adjacent in .✦
For -WL refinement, the -WL color space at round is a singleton at and the product of the round- color space with the space of multisets of round- colors at .✦ The -WL vertex coloring assigns every vertex the unique initial color at round , and at round pairs the round- color of a vertex with the multiset of round- colors of all neighbors of .✦ The -WL color histogram of at round is the multiset of round- colors over all vertices of .✦
For any , the -WL color space at round consists at of pairs of Boolean matrices, and at of pairs of a round- color and a multiset of -tuples of round- colors.✦ The -WL tuple coloring assigns each -tuple at round the pair of matrices recording coordinate equalities and adjacencies; at round , it pairs the round- color of with the multiset, over all , of the -tuple whose -th entry is the round- color of the tuple obtained from by replacing with .✦ The -WL color histogram of at round is the multiset of round- colors over all -tuples in .✦ Two graphs and are -WL equivalent, written , if for every round their -WL color histograms agree when , and their -WL color histograms agree when .✦
Vertex colors are erased by attaching pendant leaves. Given a simple graph on a finite vertex set and a leaf-count function , the leaf-augmented vertex set is the disjoint union of with distinct pendant leaves for each .✦ The graph with pendant leaves retains the edges of between base vertices, joins each pendant leaf solely to its own base vertex, and places no edges between leaves.✦ For a vertex coloring , the leaf-tag size of is (1)✦ The leaf-tagged graph of under is the indexed graph representation of the graph with pendant leaves obtained from using the leaf counts in (1), transporting its adjacency relation along an enumeration of the leaf-augmented vertex set to form an uncolored finite simple graph.✦
Affine block systems
Let denote the two-element field.✦ An affine block system on a finite coordinate set and a block set consists of an injective color index , a finite subset of coordinates for each , an -linear form for each , and a Boolean flag designating each block as constrained or unconstrained, such that whenever is constrained.✦
A local block assignment at is a map .✦ Given a bit assignment , a local block assignment at is legal if (2)✦ whenever is constrained; when is unconstrained, every local block assignment at is legal. The affine block vertex set is the disjoint union (3)✦ The affine block incidence graph on is the bipartite simple graph in which a coordinate-bit vertex is adjacent to a block-assignment vertex if and only if and , with no edges within either part.✦
Each vertex receives a vertex color name in , namely for and for ✦, and a positive integer vertex color code (4)✦ When is finite, the affine block graph is the leaf-tagged graph of the affine block incidence graph with vertex coloring from (4).✦
Ring layouts
A ring layout abstracts the type layout obtained in the paper by subdividing each comparison schema into a wire of internal types of dimension one.
For a natural number address dimension and sets of types and links , a ring layout consists of the following data, where coordinate indices are taken cyclically so that the successor of is :
injective encodings and ;
a dimension for each type ;
for each type and index , a nonempty set of type slot labels ;
for each link , two distinct endpoint types such that at least one of and equals ;
for each link and index , a nonempty set of link slot matches together with injective maps and ;
for each link , two -linear forms and .
From we form three index sets: the set of horizontal block names with , , , and ✦; the set of vertical coordinate names with , , and ✦; and the set of ring layout squares with , , , and ✦. The block set of is ✦, and its coordinate set is (5)✦
Each square determines a left horizontal block, a right horizontal block, a top vertical coordinate, and a bottom vertical coordinate by (6) Each horizontal block is assigned a finite horizontal coordinate set consisting of the pairs with .✦ Each square is assigned the coordinate set (7)✦ Using the local coordinate projections for , the square linear form at is (8)✦
Combining and with standard natural-number encodings of Booleans, finite indices, products, indexed sums, subsets, and disjoint unions yields injective encodings of , , and into , and hence an injective color index . For and finite sets and , the ring affine block system is the affine block system on and with color index and coordinate sets from (7), in which every horizontal block is unconstrained with zero linear form and every square is constrained with the nonzero linear form from (8).✦ Write for the affine block graph at a bit assignment , and for the graph at the all-zero assignment.
The claim
Proposition 3.1. Let , let be a ring layout of address dimension on finite sets of types and links , and let be a finite simple graph. If , then there exists a bit assignment satisfying (9)✦
In the paper, the result reads: for any comparison data with , every finite simple graph satisfying is isomorphic to for some choice of one bit per square block, where corresponds to . The Lean library formulates Proposition 3.1 directly for a ring layout and indexes over all blocks , with horizontal blocks left unconstrained so that only the values of on square blocks affect .
What is checked
In the Lean library, Proposition 3.1 is stated for an address dimension , a ring layout on finite sets of types and links , and a finite simple graph satisfying , where is the leaf-tagged affine block graph of the ring affine block system . For every square of a ring layout , the Lean library also proves that each coordinate of and , together with and , belongs to the square’s coordinate set .