Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Leaf and deletion data for a finite tree

Proved
PlaneTreeLeafDeletionGraphData

by xuanji · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-theoryplanar-graphs

Let GGG be a finite simple graph with finite edge set, and suppose GGG is a tree with at least one edge. Then there are vertices v,wv,wv,w such that vvv has degree one, www is its unique neighbor, and deleting vvv leaves a tree. Moreover, the edge set contains an edge represented by the unordered pair {v,w}\{v,w\}{v,w}. In symbols, the conclusion supplies\n\n

\ndeg⁡(v)=1,v≠w,v∼w,\nG ⁣↾ ⁣({v}c) is a tree,and∃e∈E(G), e={v,w}.\n\n\deg(v)=1,\quad v\ne w,\quad v\sim w,\quad\nG\!\upharpoonright\!({\{v\}}^{\mathrm c})\text{ is a tree},\quad\text{and}\quad \exists e\in E(G),\ e=\{v,w\}.\n\ndeg(v)=1,v=w,v∼w,\nG↾({v}c) is a tree,and∃e∈E(G), e={v,w}.\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 sorry
Source
https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/PlaneTreeLeafDeletionGraphData.lean#L1-L34

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me