Leaf and deletion data for a finite tree
ProvedPlaneTreeLeafDeletionGraphDatagraph-theoryplanar-graphs
Let be a finite simple graph with finite edge set, and suppose is a tree with at least one edge. Then there are vertices such that has degree one, is its unique neighbor, and deleting leaves a tree. Moreover, the edge set contains an edge represented by the unordered pair . In symbols, the conclusion supplies\n\n
\n\nThis packages the graph-theoretic leaf-deletion step used to induct on the number of edges in a plane-tree drawing.
Preamble
import Mathlib.Combinatorics.SimpleGraph.Acyclic open Classical noncomputable section -- [TABLET NODE: PlaneTreeLeafDeletionGraphData] -- Source: https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/PlaneTreeLeafDeletionGraphData.lean#L1-L34
Formal statement
lemma PlaneTreeLeafDeletionGraphData {V : Type*} [Fintype V] (G : SimpleGraph V)
[Fintype G.edgeSet] [DecidableRel G.Adj]
(hTree : G.IsTree) (hEdges : G.edgeSet ≠ ∅) :
∃ v w : V, G.degree v = 1 ∧ v ≠ w ∧ G.Adj v w ∧
(∀ u : V, G.Adj v u → u = w) ∧
(G.induce ({v}ᶜ : Set V)).IsTree ∧
∃ e : G.edgeFinset, e.1 = Sym2.mk v w := by sorrySource