Math 2.0

Combinatorics Proof

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 nn.

  1. A tree is connected, so it has at least one vertex. Thus n≥1n \ge 1.
  2. Base case n=1n = 1. An edge is a 22-element set of vertices, and a 11-element vertex set has no such subset. So TT has 0=n−10 = n - 1 edges.
  3. Induction step. Let n≥2n \ge 2, and assume that every tree with n−1n - 1 vertices has n−2n - 2 edges. Let TT have nn vertices.
  4. By the leaf lemma, TT has a vertex ℓ\ell of degree 11. Let ℓa\ell a be its only edge.
  5. Let T′T' be the graph TT with the vertex ℓ\ell and the edge ℓa\ell a removed. It has n−1n - 1 vertices and one edge fewer than TT.
  6. T′T' is acyclic: it is a subgraph of TT, so each cycle of T′T' is a cycle of TT, and TT is acyclic.
  7. T′T' has a vertex, namely aa. Let x,yx, y be vertices of T′T'.
  8. Since TT is connected, it has a walk from xx to yy. By every walk contains a path, TT has a path (p0,…,pm)(p_0, \dots, p_m) from xx to yy.
  9. The vertex ℓ\ell is not p0=xp_0 = x or pm=yp_m = y. If ℓ=pi\ell = p_i with 0<i<m0 < i < m, then pi−1p_{i-1} and pi+1p_{i+1} are two distinct neighbours of ℓ\ell, which contradicts deg⁡(ℓ)=1\deg(\ell) = 1.
  10. So the path avoids ℓ\ell, and hence also the edge ℓa\ell a. It is a walk in T′T' from xx to yy. Thus T′T' is connected.
  11. By steps 6 and 10, T′T' is a tree with n−1n - 1 vertices. By the induction hypothesis it has n−2n - 2 edges.
  12. By step 5, TT has (n−2)+1=n−1(n - 2) + 1 = n - 1 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
Definition by recursion, concept, no evidence levelDefinition by recursi…conceptGraph, definition, no evidence levelGraphdefinitionMathematical induction, concept, no evidence levelMathematical inductionconceptNatural numbers, object, no evidence levelNatural numbersobjectPeano axioms, concept, no evidence levelPeano axiomsconceptEdge set, definition, no evidence levelEdge setdefinitionNeighbourhood, definition, no evidence levelNeighbourhooddefinitionSubgraph, definition, no evidence levelSubgraphdefinitionWalk, definition, no evidence levelWalkdefinitionSuccessor function, definition, no evidence levelSuccessor functiondefinitionDegree of a vertex, definition, no evidence levelDegree of a vertexdefinitionAddition of natural numbers, definition, no evidence levelAddition of natural n…definitionPath, definition, no evidence levelPathdefinitionReachability, definition, no evidence levelReachabilitydefinitionTrail, definition, no evidence levelTraildefinitionThe successor function is injective, statement, no evidence levelThe successor functio…statementZero is not a successor, statement, no evidence levelZero is not a success…statementOrder on the natural numbers, definition, no evidence levelOrder on the natural …definitionConnected graph, definition, no evidence levelConnected graphdefinitionCircuit, definition, no evidence levelCircuitdefinitionCycle, definition, no evidence levelCycledefinitionProof of strong induction from ordinary induction, proof, no evidence levelProof of strong induc…proofAcyclic graph, definition, no evidence levelAcyclic graphdefinitionStrong induction, statement, no evidence levelStrong inductionstatementTree, definition, no evidence levelTreedefinitionProof that every walk contains a path, proof, no evidence levelProof that every walk…proofProof that every finite tree with at least two vertices has a leaf, by a longest path, proof, no evidence levelProof that every fini…proofEvery walk contains a path, statement, no evidence levelEvery walk contains a…statementEvery finite tree with at least two vertices has a leaf, statement, no evidence levelEvery finite tree wit…statementProof that a tree on n vertices has n − 1 edges, by removing a leaf, proof, no evidence levelProof that a tree on …proof
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. Definition by recursion concept
  2. Graph definition
  3. Mathematical induction concept
  4. Natural numbers object
  5. Peano axioms concept
  6. Edge set definition
  7. Neighbourhood definition
  8. Subgraph definition
  9. Walk definition
  10. Successor function definition
  11. Degree of a vertex definition
  12. Addition of natural numbers definition
  13. Path definition
  14. Reachability definition
  15. Trail definition
  16. The successor function is injective statement
  17. Zero is not a successor statement
  18. Order on the natural numbers definition
  19. Connected graph definition
  20. Circuit definition
  21. Cycle definition
  22. Proof of strong induction from ordinary induction proof
  23. Acyclic graph definition
  24. Strong induction statement
  25. Tree definition
  26. Proof that every walk contains a path proof
  27. Proof that every finite tree with at least two vertices has a leaf, by a longest path proof
  28. Every walk contains a path statement
  29. Every finite tree with at least two vertices has a leaf statement
  30. 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

  1. Web https://github.com/oscarlevin/discrete-book/blob/a8e4949bc45daf100930c1182983778f56ab689f/ptx/sec_gt-trees.ptx#L245
About this page
TagVSE60M6HHT
URIm2://VSE60M6HHT
Kindproof
WritingW0 stub
MSC05C05
ProvesA tree on n vertices has n − 1 edges
UsesTree, Connected graph, Acyclic graph, Edge set, Every finite tree with at least two vertices has a leaf, Every walk contains a path, Path, Subgraph
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)
  • 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.