Math 2.0

Combinatorics Proof

Proof that every connected graph has a spanning tree, by a maximal acyclic edge set

Builds on Connected graphSpanning treeTreeAcyclic graphCycleSubgraphReachabilityWalkZorn's lemma

Proof

We use Zorn's lemma to get a maximal acyclic set of edges. For a finite graph, simply take an acyclic edge set of largest size instead.

  1. Let G=(V,E)G = (V, E). Let ๐’ซ\mathcal{P} be the set of all FโІEF \subseteq E such that the subgraph (V,F)(V, F) is acyclic. Order ๐’ซ\mathcal{P} by inclusion.
  2. โˆ…โˆˆ๐’ซ\varnothing \in \mathcal{P}, because a cycle has positive length and so uses an edge. So ๐’ซ\mathcal{P} is nonempty.
  3. Let ๐’ฆ\mathcal{K} be a nonempty chain in ๐’ซ\mathcal{P}, and let U=โ‹ƒ๐’ฆU = \bigcup \mathcal{K}. Suppose (V,U)(V, U) has a cycle with edges e1,โ€ฆ,eke_1, \dots, e_k.
  4. Each ete_t lies in some Ftโˆˆ๐’ฆF_t \in \mathcal{K}. Since ๐’ฆ\mathcal{K} is a chain, the largest of F1,โ€ฆ,FkF_1, \dots, F_k contains all ete_t.
  5. Then the cycle lies in (V,F)(V, F) for that Fโˆˆ๐’ซF \in \mathcal{P}, a contradiction. So Uโˆˆ๐’ซU \in \mathcal{P}, and UU is an upper bound of ๐’ฆ\mathcal{K}. The empty chain has the upper bound โˆ…\varnothing.
  6. By Zorn's lemma, ๐’ซ\mathcal{P} has a maximal element FF. Let H=(V,F)H = (V, F). It is acyclic, and it contains every vertex of GG.
  7. Suppose HH is not connected. Since VV is nonempty, there are u,vโˆˆVu, v \in V such that vv is not reachable from uu in HH.
  8. Since GG is connected, there is a walk (w0,โ€ฆ,wk)(w_0, \dots, w_k) from uu to vv in GG.
  9. If wtw_t were reachable from wtโˆ’1w_{t-1} in HH for each tt, then vv would be reachable from uu in HH, by transitivity of reachability. So some tt has wtw_t not reachable from wtโˆ’1w_{t-1} in HH.
  10. Let x=wtโˆ’1x = w_{t-1} and y=wty = w_t. Then xyโˆˆExy \in E, and xyโˆ‰Fxy \notin F, since otherwise (x,y)(x, y) would be a walk in HH.
  11. Let F+=Fโˆช{xy}F^+ = F \cup \set{xy}. Suppose (V,F+)(V, F^+) has a cycle (z0,โ€ฆ,zm)(z_0, \dots, z_m). Since HH is acyclic, one of its edges is xyxy, say xy=zsโˆ’1zsxy = z_{s-1} z_s.
  12. The edges of a cycle are pairwise distinct. So all other edges of the cycle lie in FF.
  13. Then (zs,zs+1,โ€ฆ,zm,z1,โ€ฆ,zsโˆ’1)(z_s, z_{s+1}, \dots, z_m, z_1, \dots, z_{s-1}) is a walk in HH from zsz_s to zsโˆ’1z_{s-1}, using zm=z0z_m = z_0. For s=1s = 1 it is (z1,โ€ฆ,zm)(z_1, \dots, z_m).
  14. The ends of this walk are xx and yy. Reachability is symmetric, so yy is reachable from xx in HH. This contradicts step 9. Hence F+โˆˆ๐’ซF^+ \in \mathcal{P}.
  15. But FโŠŠF+F \subsetneq F^+, which contradicts the maximality of FF. So HH is connected.
  16. By steps 6 and 15, HH is a connected acyclic subgraph of GG with all the vertices of GG. So HH is a tree, and it is a spanning tree of GG.

Idea

Keep as many edges as possible without making a cycle. If the result were disconnected, some edge of GG would join two of its pieces. Adding that edge cannot close a cycle, so the set was not as large as possible.

Reading path

To understand this page from the ground up, read these 42 pages in order. The foundations come first. The path takes the proof Proof of Zorn's lemma.

  1. Element definition
  2. Graph definition
  3. Proof of Zorn's lemma proof
  4. Proposition concept
  5. Set definition
  6. Subgraph definition
  7. Walk definition
  8. Disjunction definition
  9. Implication definition
  10. Predicate definition
  11. Family of sets definition
  12. Ordered pair definition
  13. Union definition
  14. Reachability definition
  15. Trail definition
  16. Existential quantifier definition
  17. Universal quantifier definition
  18. Cartesian product definition
  19. Union of a family of sets definition
  20. Subset definition
  21. Connected graph definition
  22. Circuit definition
  23. Uniqueness quantifier definition
  24. Binary relation definition
  25. Cycle definition
  26. Antisymmetric relation definition
  27. Reflexive relation definition
  28. Transitive relation definition
  29. Acyclic graph definition
  30. Function definition
  31. Preorder definition
  32. Choice function definition
  33. Tree definition
  34. Partial order definition
  35. Spanning tree definition
  36. Axiom of choice statement
  37. Maximal element definition
  38. Total order definition
  39. Upper bound definition
  40. Chain definition
  41. Zorn's lemma statement
  42. Proof that every connected graph has a spanning tree, by a maximal acyclic edge set proof

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Spanning_tree
About this page
TagAS2P6GXVPT
URIm2://AS2P6GXVPT
Kindproof
WritingW0 stub
MSC05C05
ProvesEvery connected graph has a spanning tree
UsesConnected graph, Spanning tree, Tree, Acyclic graph, Cycle, Subgraph, Reachability, Walk, Zorn's lemma
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.