The setting
For a connected graph embedded on the sphere, planar duality pairs each edge of the primal graph with a corresponding edge of the dual graph and links acyclicity in one graph to connectivity in the other. Removing an acyclic collection of edges from one side leaves a complementary collection of edges on the dual side that still connects all vertices.
The Lean library develops this relationship algebraically for a pair of oriented networks on a common edge set, using their incidence matrices, boundary maps, and gradient maps to express the cycle-cut duality between the two networks.
Oriented networks
An oriented network on a vertex set and an edge set consists of two maps and , assigning to each edge its tail and its head .✦
The underlying simple graph of an oriented network has vertex set , with two vertices adjacent if and only if and there exists an edge such that either and , or and .✦
An oriented network on is simple if it has no loops, meaning for every , and the map sending each edge to its unordered pair of endpoints is injective.✦
Given an oriented network on and a map from a set , the restricted network on is the oriented network with tail map and head map .✦ For a subset , restricting along the inclusion gives the network on keeping only the edges in .
Algebraic duality
For an oriented network on , the incidence matrix is the real matrix whose -entry is given by (1): (1)✦ where equals when holds and otherwise.
The boundary map is the linear map defined when is finite by the matrix action (2): (2)✦ for every and . The gradient map is the linear map defined by (3): (3)✦ for every and .
Two oriented networks on and on sharing the same edge set form a dual network pair if their underlying simple graphs and are both connected and their boundary kernels equal each other’s gradient images as in (4): (4)✦
The claim
Lemma 2.1. Let on and on be oriented networks with any vertex set , finite dual vertex set , and finite edge set that form a dual network pair, and suppose that is simple. Then for every finite subset , writing , (5)✦
In the paper, the result reads: for a connected graph embedded on the sphere (corresponding to ) and its dual (corresponding to ), the duals of the edges complementary to a spanning tree of form a spanning tree of , and more generally the duals of the edges complementary to a spanning forest of form a connected spanning subgraph of . Lemma 2.1 captures the spanning-forest part of that result in the algebraic setting of a dual network pair with simple, stating connectivity of under the cycle-cut identities (4).
What is checked
The Lean library states Lemma 2.1 (5) over a dual network pair with any primal vertex set , finite dual vertex set , and finite common edge set , assuming that is simple and that the underlying simple graph of the restriction of to a finite edge subset is acyclic. Its hypotheses and conclusion are formulated from the definitions of an oriented network, its underlying simple graph, network restriction, incidence matrix, boundary map, gradient map, and dual network pair.