The setting
A finite simple graph is identified by -dimensional Weisfeiler-Leman refinement when implies for every finite simple graph , and its Weisfeiler-Leman dimension is the least positive integer that identifies . In finite model theory, equivalence under -dimensional Weisfeiler-Leman refinement is characterized by a bijective pebble game played between Spoiler and Duplicator on two graphs and with pebble slots.
Graphs and bijective extension systems
A finite simple graph consists of a natural number giving its order, a vertex set of cardinality , and a symmetric, irreflexive adjacency relation on : for all , if and only if , and .✦
For a natural number and an -tuple , write for the -tuple obtained by appending a vertex to . For an index , write for the -tuple obtained from by replacing its th entry with .
A bijective extension system packages the bijective game characterization used to query graph constraints and establish monotonicity across refinement dimensions.
For finite simple graphs and and a natural number , a -slot bijective extension system between and is a family of binary relations , indexed by , satisfying four conditions. First, holds for all empty tuples and . Second, for all , all tuples and with , and every coordinate map , the reindexed tuples and satisfy . Third, whenever holds, for all indices we have if and only if , and if and only if . Fourth, for every with and all and with , there exists a bijection such that holds for every .✦
The claim
Definition. Let and be finite simple graphs, let , and let be a -slot bijective extension system between and . For every , all tuples and , all vertices and , and every coordinate , if holds, then (1)✦ Moreover, for every with , there exists a bijection such that (2)✦ For a finite simple graph and a vertex , the vertex degree is the number of neighbors of in : (3)✦
In the paper, the result reads: for , the initial coloring records equalities and adjacencies in a -tuple and adjoins the multiset over of joint replacement-color vectors , while for , adjoins the multiset of neighbor colors, and the -slot bijective game tracks at most matched pairs with Spoiler designating slots and choosing vertices after Duplicator announces a vertex bijection.
The Lean library captures Duplicator’s winning positions in the -slot bijective game directly through a bijective extension system.
What is checked
The Lean library states the replacement property (1) and the induced tuple bijection (2) over arbitrary finite simple graphs and , a natural number , and a -slot bijective extension system between and , with unrestricted in (1) and in (2). It defines the vertex degree (3) for any vertex of a finite simple graph as the cardinality of its neighborhood.