Math 2.0

Combinatorics Proof

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.

  1. The tree TT is connected and acyclic. Let n≥2n \ge 2 be its number of vertices.
  2. Choose distinct vertices u≠vu \ne v. By connectedness there is a walk (w0,…,wk)(w_0, \dots, w_k) from uu to vv. Since u≠vu \ne v, k≥1k \ge 1.
  3. So w0∼w1w_0 \sim w_1, and (w0,w1)(w_0, w_1) is a path of length 11.
  4. A path has pairwise distinct vertices, so its length is at most n−1n - 1. Hence there is a path P=(v0,v1,…,vk)P = (v_0, v_1, \dots, v_k) of largest length, and k≥1k \ge 1 by step 3.
  5. The vertex vk−1v_{k-1} is a neighbour of vkv_k, so deg⁡(vk)≥1\deg(v_k) \ge 1. Let xx be any neighbour of vkv_k. We show that x=vk−1x = v_{k-1}.
  6. If xx is not a vertex of PP, then (v0,…,vk,x)(v_0, \dots, v_k, x) is a path of length k+1k + 1. This contradicts the choice of PP.
  7. So x=vix = v_i for some ii. Since x∼vkx \sim v_k and no vertex is adjacent to itself, i≠ki \ne k.
  8. Suppose i≤k−2i \le k - 2. Consider the closed walk C=(vi,vi+1,…,vk,vi)C = (v_i, v_{i+1}, \dots, v_k, v_i) of length m=k−i+1≥3m = k - i + 1 \ge 3.
  9. The vertices of CC after the first one are vi+1,…,vk,viv_{i+1}, \dots, v_k, v_i. They are pairwise distinct, since PP is a path.
  10. The edges vjvj+1v_j v_{j+1} for i≤j<ki \le j < k are distinct, because their vertex pairs differ. The last edge vkviv_k v_i differs from each of them, because {vk,vi}={vj,vj+1}\set{v_k, v_i} = \set{v_j, v_{j+1}} would force i=k−1i = k - 1.
  11. So CC is a circuit whose vertices after the first are pairwise distinct. That is, CC is a cycle of TT, which contradicts acyclicity.
  12. Hence i=k−1i = k - 1, and x=vk−1x = v_{k-1}. So vkv_k has exactly one neighbour.
  13. By the definition of the degree, deg⁡(vk)=1\deg(v_k) = 1. So vkv_k is a vertex of degree 11 of TT.

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
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Graph definition
  2. Neighbourhood definition
  3. Walk definition
  4. Degree of a vertex definition
  5. Path definition
  6. Reachability definition
  7. Trail definition
  8. Connected graph definition
  9. Circuit definition
  10. Cycle definition
  11. Acyclic graph definition
  12. Tree definition
  13. 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

  1. Web https://en.wikipedia.org/wiki/Tree_(graph_theory), Properties
About this page
TagCE3ZA48YP2
URIm2://CE3ZA48YP2
Kindproof
WritingW0 stub
MSC05C05
ProvesEvery finite tree with at least two vertices has a leaf
UsesTree, Connected graph, Acyclic graph, Walk, Path, Cycle, Circuit, Degree of a vertex
Changed4 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.