Proof that every finite tree with at least two vertices has a leaf, by a longest path
Builds on TreeConnected graphAcyclic graphWalkPathCycleCircuitDegree of a vertex
Proof
We take a longest path and show that its last vertex is a leaf.
- The tree is connected and acyclic. Let be its number of vertices.
- Choose distinct vertices . By connectedness there is a walk from to . Since , .
- So , and is a path of length .
- A path has pairwise distinct vertices, so its length is at most . Hence there is a path of largest length, and by step 3.
- The vertex is a neighbour of , so . Let be any neighbour of . We show that .
- If is not a vertex of , then is a path of length . This contradicts the choice of .
- So for some . Since and no vertex is adjacent to itself, .
- Suppose . Consider the closed walk of length .
- The vertices of after the first one are . They are pairwise distinct, since is a path.
- The edges for are distinct, because their vertex pairs differ. The last edge differs from each of them, because would force .
- So is a circuit whose vertices after the first are pairwise distinct. That is, is a cycle of , which contradicts acyclicity.
- Hence , and . So has exactly one neighbour.
- By the definition of the degree, . So is a vertex of degree of .
Idea
Walk along a longest path to its end. The last vertex cannot have a neighbour off the path, or the path would grow. It cannot have a second neighbour on the path either, or the tree would contain a cycle.
Reading path
To understand this page from the ground up, read these 13 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Graph definition
- Neighbourhood definition
- Walk definition
- Degree of a vertex definition
- Path definition
- Reachability definition
- Trail definition
- Connected graph definition
- Circuit definition
- Cycle definition
- Acyclic graph definition
- Tree definition
- Proof that every finite tree with at least two vertices has a leaf, by a longest path proof
Where this leads
5 pages build on this one.
Further reading
About this page
| Tag | CE3ZA48YP2 |
|---|---|
| URI | m2://CE3ZA48YP2 |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05C05 |
| Proves | Every finite tree with at least two vertices has a leaf |
| Uses | Tree, Connected graph, Acyclic graph, Walk, Path, Cycle, Circuit, Degree of a vertex |
| 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)
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.