The setting
Consider a black-and-white face-colored sphere triangulation with outer black triangle . Let denote the set of remaining black faces and the set of non-root vertices, that is, the vertices of not lying on . Passing to the planar dual of yields a cubic bipartite graph whose vertices correspond to the faces of and whose edges correspond to the edges of . A state assigns to each non-root black face one of its incident vertices in a one-to-one correspondence. Given a perfect matching in the dual cubic bipartite graph whose edge at every is incident in to and whose edge at lies on the boundary of , the question addressed by Lemma 6.2 is whether the subgraph of formed by the edges of is a forest.
The Lean library formalizes this configuration through an algebraic pair of dual oriented networks and , where represents the primal cubic bipartite graph and represents its dual triangulation.
Dual oriented networks
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 in if or .✦ When is finite, the star of a vertex in is the finite edge set defined by (1): (1)✦ Given a finite subset such that for every , the matching edge of a vertex is the unique edge .✦
Given an index set and a map , the restricted network on and has tail map and head map .✦ For a subset , we write for the restriction of along the inclusion . The underlying simple graph of is the simple graph on in which two distinct vertices are adjacent if there exists an edge whose tail and head are and in either order.✦ The network is simple if for every and the map from to unordered pairs of vertices is injective.
The incidence matrix of has entries given by (2): (2)✦ for and , where equals when the condition holds and otherwise. When and are finite, the boundary map is the -linear map of .✦ The gradient map is the -linear map defined by (3): (3)✦ for every and . Two oriented networks on and on with finite vertex sets and and a finite edge set form a dual network pair if and are both connected and their cycle and cut spaces satisfy (4): (4)✦
The arc incidence sign of an edge at a vertex in is if and otherwise.✦ A triangle in on a finite edge subset consists of three distinct corners and three distinct edges with satisfying (5): (5)✦ for each , with indices taken modulo .
Colored dual networks
Let on and on be oriented networks on finite vertex sets and and a finite edge set . A colored dual network on and consists of:
a dual network pair structure on and in which and are simple and is -regular;
a subset of black vertices in forming a proper -coloring of , so that for every , is black if and only if is not black;
for each , a triangle in on , with corners and edges ;
consistent face orientation: for every and every , equation (6) holds, (6) where is the indicator function of .
Fix a root vertex . The set of non-root black vertices and the set of non-root dual vertices are defined by (7): (7)
States of a colored dual
A triangle system on an index set and a vertex set assigns to each an injective map such that no two distinct triangles share an edge: whenever and satisfy , , , and , one has .✦ For a subset , a state of on is a choice function such that the map is injective with image .✦ For a state of on and , the vertex chosen by at is .✦
For a colored dual network on and with root vertex , the dual triangle system is the triangle system on and assigning to each non-root black vertex the corner map of its dual face .✦ A state of relative to is a state of this dual triangle system on .✦
The claim
Lemma 6.2. Let on and on be oriented networks on finite vertex sets and and a finite edge set , let be a colored dual network on and , and let be a black vertex. Let be a state of relative to , and let be a finite edge set such that for every . Suppose that for every non-root black vertex , the matching edge is incident in to the vertex , and suppose that there exists such that . Then the underlying simple graph of the restricted network is a forest: (8)✦
What is checked
In the Lean library, Lemma 6.2 in (8) is stated over a colored dual network on dual oriented networks and , a black root vertex , a state of relative to , and a finite edge set meeting each vertex star of in one edge, aligned with at every non-root black vertex and with an edge of the dual face of at the root.