Proof that a tree on n vertices has n − 1 edges, by removing a leaf
Builds on TreeConnected graphAcyclic graphEdge setEvery finite tree with at least two vertices has a leafEvery walk contains a pathPathSubgraph
Proof
We argue by induction on .
- A tree is connected, so it has at least one vertex. Thus .
- Base case . An edge is a -element set of vertices, and a -element vertex set has no such subset. So has edges.
- Induction step. Let , and assume that every tree with vertices has edges. Let have vertices.
- By the leaf lemma, has a vertex of degree . Let be its only edge.
- Let be the graph with the vertex and the edge removed. It has vertices and one edge fewer than .
- is acyclic: it is a subgraph of , so each cycle of is a cycle of , and is acyclic.
- has a vertex, namely . Let be vertices of .
- Since is connected, it has a walk from to . By every walk contains a path, has a path from to .
- The vertex is not or . If with , then and are two distinct neighbours of , which contradicts .
- So the path avoids , and hence also the edge . It is a walk in from to . Thus is connected.
- By steps 6 and 10, is a tree with vertices. By the induction hypothesis it has edges.
- By step 5, has edges. This completes the induction.
Idea
Removing a leaf removes exactly one vertex and one edge, and what is left is still a tree. Repeating this shrinks the tree down to a single vertex with no edges.
Reading path
To understand this page from the ground up, read these 30 pages in order. The foundations come first. The path takes the proofs Proof of strong induction from ordinary induction, Proof that every finite tree with at least two vertices has a leaf, by a longest path, Proof that every walk contains a path.
Show the path as a graph
- no evidence level
- Definition by recursion concept
- Graph definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Edge set definition
- Neighbourhood definition
- Subgraph definition
- Walk definition
- Successor function definition
- Degree of a vertex definition
- Addition of natural numbers definition
- Path definition
- Reachability definition
- Trail definition
- The successor function is injective statement
- Zero is not a successor statement
- Order on the natural numbers definition
- Connected graph definition
- Circuit definition
- Cycle definition
- Proof of strong induction from ordinary induction proof
- Acyclic graph definition
- Strong induction statement
- Tree definition
- Proof that every walk contains a path proof
- Proof that every finite tree with at least two vertices has a leaf, by a longest path proof
- Every walk contains a path statement
- Every finite tree with at least two vertices has a leaf statement
- Proof that a tree on n vertices has n − 1 edges, by removing a leaf proof
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | VSE60M6HHT |
|---|---|
| URI | m2://VSE60M6HHT |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05C05 |
| Proves | A tree on n vertices has n − 1 edges |
| Uses | Tree, Connected graph, Acyclic graph, Edge set, Every finite tree with at least two vertices has a leaf, Every walk contains a path, Path, Subgraph |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.