The setting
In a black-and-white face-colored sphere triangulation with black faces and outer black triangle , the three vertices of are the roots, is the set of remaining black faces, and is the set of nonroot vertices; both and have size . A state is a bijection assigning to each black triangle one of its three vertices, and a partner pair is an ordered pair of states such that for every .
To formalize this setting algebraically, the Lean library models a cubic bipartite planar graph and its face-colored dual triangulation as a pair of dual oriented networks sharing an edge set, and abstracts the vertex incidences of the nonroot black faces into a triangle system.
Oriented networks and colored duals
An oriented network on a vertex set and an edge set consists of two maps assigning to each edge its tail and its head.✦ An edge is incident to a vertex if or .✦ When is finite, the star of in , written , is the subset of consisting of all edges incident to .✦
An oriented network is simple if it has no loops, meaning for every , and no parallel edges, meaning the map sending each to the unordered pair is injective.✦ The underlying simple graph of is the simple graph on in which distinct vertices are adjacent whenever some edge has unordered endpoint pair .✦
The incidence matrix of an oriented network has entry equal to if and , equal to if and , and equal to otherwise.✦ The boundary map is the linear map given by ✦, and the gradient map is the linear map sending to the function .✦ Two oriented networks on and on sharing the edge set form a dual network pair if and are both connected, the cycle space equals the cut space , and the cycle space equals the cut space .✦
In an oriented network on , a triangle on a finite edge subset consists of three distinct corners and three distinct edges with such that for each , the unordered endpoint pair of in is , with indices taken modulo .✦ For any and , the arc incidence sign is if and otherwise.✦
A colored dual network on oriented networks on and on with finite vertex set and finite edge set (with assumed finite in the cardinality theorem) consists of the following data: and form a dual network pair; both and are simple networks; is -regular; a subset of is distinguished as the black vertices so that every edge has exactly one black endpoint in ; each vertex is equipped with a triangle in on , having corners and edges ; and for every and every , the indicator function (taking value at and elsewhere) satisfies (1): (1)
For a colored dual network on and a root vertex , the set of nonroot black vertices of is ✦, and the set of nonroot vertices of is .✦
Triangle systems and states
A triangle system on an index set and a vertex set assigns to each three distinct vertices such that no two distinct indices share two vertices: whenever and satisfy , , , and , one has .✦ Given a colored dual network on and a root vertex , the dual triangle system on assigns to each the three corners of the triangle in .✦
In the bipartite incidence graph between the nonroot black faces and the nonroot vertices, a state is a perfect matching and a partner pair is a pair of edge-disjoint perfect matchings.
Given a triangle system on and a subset , a state of on is a choice map such that the induced map sending to its chosen vertex is injective and has image equal to ; we write for the set of states of on and identify a state with its bijection .✦ Two states are partner states if for every .✦
The claim
Definition. Let be a triangle system on and let . The set of partner pairs of states of on is given by (2): (2)✦ Let be a colored dual network on with a finite edge set and let . The set of states of at is defined by (3): (3)✦
Theorem. Let be a colored dual network on with a finite edge set and finite dual vertex set , and let be a black vertex. Then the sets of nonroot dual vertices and nonroot black vertices satisfy (4): (4)✦
What is checked
The definitions and cardinality identity above are stated over an abstract triangle system on an arbitrary index set and vertex set with a target subset , and over a colored dual network on a dual pair of simple oriented networks in which is -regular and bipartite, with a root vertex that is assumed black in the theorem. From a colored dual network and any root vertex , the Lean library constructs the dual triangle system on , establishing that the three corners of each dual face triangle are distinct and that no two distinct nonroot black vertices share two corners in .