Proof of unique paths in trees
Builds on TreeConnected graphAcyclic graphReachabilityWalkPathCircuitCycleEvery walk contains a path
Proof
We prove both directions. Step 1 is a fact about closed walks that both directions use.
- Let be a closed walk with , , and pairwise distinct. Then its edges are pairwise distinct, so it is a circuit, and hence a cycle.
- Proof of step 1. Read the indices modulo . The edges are for . Two of them can be equal only if the pairs share both vertices.
- Since are distinct, the equality with forces and . Then and , so modulo , which is false for .
- () Let be a tree. It is connected, so it has a vertex and any two vertices are joined by a walk.
- By every walk contains a path, there is a path from to .
- Suppose and are different paths from to .
- Neither is a proper initial part of the other. For example, if and for , then , which contradicts the distinct vertices of .
- So there is a least index with and . Then ; call this vertex .
- Let be the least index such that for some . It exists, because and .
- Consider the closed walk , where and . Its length is .
- The vertices are distinct and differ from , since is a path. The vertices are distinct and differ from , since is a path.
- No with equals some with . For this follows from the minimality of , and for from and .
- So the vertices of after the first are pairwise distinct. If the length were , then and , which is false. So the length is at least .
- By step 1, is a cycle in . This contradicts that is acyclic. Hence the path from to is unique.
- () Suppose has a vertex, and any two vertices are joined by exactly one path.
- A path is a walk, so any two vertices are reachable from each other. So is connected.
- Suppose has a cycle . Its length is at least : needs a loop, and uses the edge twice.
- Then and are paths from to . The second has distinct vertices because are distinct.
- These two paths have lengths and , so they are different. This contradicts uniqueness, so is acyclic.
- By steps 16 and 19, is a tree.
Idea
Two different routes between the same two vertices must split apart at some vertex and later meet again. The two pieces between the split and the first meeting point form a cycle. Conversely, a cycle gives two different routes between neighbouring vertices on it.
Reading path
To understand this page from the ground up, read these 24 pages in order. The foundations come first. The path takes the proofs Proof of strong induction from ordinary induction, 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
- Walk definition
- Successor function definition
- Path definition
- Reachability definition
- Trail definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Connected graph definition
- Circuit definition
- Order on the natural numbers 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
- Every walk contains a path statement
- Proof of unique paths in trees proof
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | NTM3TVVXEF |
|---|---|
| URI | m2://NTM3TVVXEF |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05C05 |
| Proves | Unique paths in trees |
| Uses | Tree, Connected graph, Acyclic graph, Reachability, Walk, Path, Circuit, Cycle, Every walk contains a path |
| 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.