OctoInform Beta

OpenAI preprint, September 2026 · §2. Weisfeiler-Leman refinement and the bijective game

§2 (setting): Replacement closure and induced tuple bijections for KK-slot bijective extension systems, together with vertex degree in finite simple graphs

Bijective extension systems and vertex degree.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

A finite simple graph GG is identified by kk-dimensional Weisfeiler-Leman refinement when G≡kHG \equiv_k H implies G≅HG \cong H for every finite simple graph HH, and its Weisfeiler-Leman dimension WLdim⁡(G)\operatorname{WLdim}(G) is the least positive integer kk that identifies GG. In finite model theory, equivalence under kk-dimensional Weisfeiler-Leman refinement is characterized by a bijective pebble game played between Spoiler and Duplicator on two graphs GG and HH with KK pebble slots.

Graphs and bijective extension systems

A finite simple graph GG consists of a natural number n∈ℕn \in \mathbb{N} giving its order, a vertex set V(G)V(G) of cardinality nn, and a symmetric, irreflexive adjacency relation E(G)E(G) on V(G)V(G): for all u,v∈V(G)u, v \in V(G), uv∈E(G)uv \in E(G) if and only if vu∈E(G)vu \in E(G), and uu∉E(G)uu \notin E(G).✦

For a natural number m∈ℕm \in \mathbb{N} and an mm-tuple v‾=(v1,…,vm)∈V(G)m\bar{v} = (v_1, \dots, v_m) \in V(G)^m, write (v‾,z)∈V(G)m+1(\bar{v}, z) \in V(G)^{m+1} for the (m+1)(m+1)-tuple obtained by appending a vertex z∈V(G)z \in V(G) to v‾\bar{v}. For an index i∈{1,…,m}i \in \{1, \dots, m\}, write v‾[i←z]∈V(G)m\bar{v}[i \leftarrow z] \in V(G)^m for the mm-tuple obtained from v‾\bar{v} by replacing its iith entry with zz.

A bijective extension system packages the bijective game characterization used to query graph constraints and establish monotonicity across refinement dimensions.

For finite simple graphs GG and HH and a natural number K∈ℕK \in \mathbb{N}, a KK-slot bijective extension system S=(Rm)m∈ℕS = (R_m)_{m \in \mathbb{N}} between GG and HH is a family of binary relations Rm⊆V(G)m×V(H)mR_m \subseteq V(G)^m \times V(H)^m, indexed by m∈ℕm \in \mathbb{N}, satisfying four conditions. First, R0(v‾,w‾)R_0(\bar{v}, \bar{w}) holds for all empty tuples v‾∈V(G)0\bar{v} \in V(G)^0 and w‾∈V(H)0\bar{w} \in V(H)^0. Second, for all m,n∈ℕm, n \in \mathbb{N}, all tuples v‾∈V(G)m\bar{v} \in V(G)^m and w‾∈V(H)m\bar{w} \in V(H)^m with Rm(v‾,w‾)R_m(\bar{v}, \bar{w}), and every coordinate map f:{1,…,n}→{1,…,m}f : \{1, \dots, n\} \to \{1, \dots, m\}, the reindexed tuples v‾∘f=(vf(1),…,vf(n))\bar{v} \circ f = (v_{f(1)}, \dots, v_{f(n)}) and w‾∘f=(wf(1),…,wf(n))\bar{w} \circ f = (w_{f(1)}, \dots, w_{f(n)}) satisfy Rn(v‾∘f,w‾∘f)R_n(\bar{v} \circ f, \bar{w} \circ f). Third, whenever Rm(v‾,w‾)R_m(\bar{v}, \bar{w}) holds, for all indices i,j∈{1,…,m}i, j \in \{1, \dots, m\} we have vi=vjv_i = v_j if and only if wi=wjw_i = w_j, and vivj∈E(G)v_i v_j \in E(G) if and only if wiwj∈E(H)w_i w_j \in E(H). Fourth, for every m∈ℕm \in \mathbb{N} with m<Km < K and all v‾∈V(G)m\bar{v} \in V(G)^m and w‾∈V(H)m\bar{w} \in V(H)^m with Rm(v‾,w‾)R_m(\bar{v}, \bar{w}), there exists a bijection e:V(G)→V(H)e : V(G) \to V(H) such that Rm+1((v‾,z),(w‾,e(z)))R_{m+1}((\bar{v}, z), (\bar{w}, e(z))) holds for every z∈V(G)z \in V(G).✦

The claim

Definition. Let GG and HH be finite simple graphs, let K∈ℕK \in \mathbb{N}, and let S=(Rm)m∈ℕS = (R_m)_{m \in \mathbb{N}} be a KK-slot bijective extension system between GG and HH. For every m∈ℕm \in \mathbb{N}, all tuples v‾∈V(G)m\bar{v} \in V(G)^m and w‾∈V(H)m\bar{w} \in V(H)^m, all vertices z∈V(G)z \in V(G) and z′∈V(H)z' \in V(H), and every coordinate i∈{1,…,m}i \in \{1, \dots, m\}, if Rm+1((v‾,z),(w‾,z′))R_{m+1}((\bar{v}, z), (\bar{w}, z')) holds, then Rm(v‾[i←z],w‾[i←z′]).R_m\bigl(\bar{v}[i \leftarrow z], \bar{w}[i \leftarrow z']\bigr).(1)✦ Moreover, for every m∈ℕm \in \mathbb{N} with m≤Km \le K, there exists a bijection E:V(G)m→V(H)mE : V(G)^m \to V(H)^m such that ∀v‾∈V(G)m,Rm(v‾,E(v‾)).\forall \bar{v} \in V(G)^m,\quad R_m\bigl(\bar{v}, E(\bar{v})\bigr).(2)✦ For a finite simple graph GG and a vertex v∈V(G)v \in V(G), the vertex degree deg⁡G(v)∈ℕ\deg_G(v) \in \mathbb{N} is the number of neighbors of vv in GG: deg⁡G(v)=|{w∈V(G):vw∈E(G)}|.\deg_G(v) = \bigl|\{w \in V(G) : vw \in E(G)\}\bigr|.(3)✦

In the paper, the result reads: for k≥2k \ge 2, the initial coloring χ0G(v‾)\chi_0^G(\bar{v}) records equalities and adjacencies in a kk-tuple v‾∈V(G)k\bar{v} \in V(G)^k and χs+1G(v‾)\chi_{s+1}^G(\bar{v}) adjoins the multiset over z∈V(G)z \in V(G) of joint replacement-color vectors (χsG(v‾[1←z]),…,χsG(v‾[k←z]))(\chi_s^G(\bar{v}[1 \leftarrow z]), \dots, \chi_s^G(\bar{v}[k \leftarrow z])), while for k=1k = 1, χs+1G(v)\chi_{s+1}^G(v) adjoins the multiset of neighbor colors, and the KK-slot bijective game tracks at most KK 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 KK-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 GG and HH, a natural number K∈ℕK \in \mathbb{N}, and a KK-slot bijective extension system SS between GG and HH, with m∈ℕm \in \mathbb{N} unrestricted in (1) and m≤Km \le K in (2). It defines the vertex degree (3) for any vertex v∈V(G)v \in V(G) of a finite simple graph GG as the cardinality of its neighborhood.