Prof. Alice Mathematician
Institute of Pure Mathematics
We present a short proof of a classical result in graph theory, demonstrating RSM's structured proof capabilities.
LET \(G = (V, E)\) be an undirected graph. We say \(G\) is connected if there exists a path between any two vertices.
Definition 1.1.
A connected component of \(G\) is a maximal connected subgraph.
Theorem 2.1: Component Bound
LET \(G\) be a graph with \(n\) vertices and \(m\) edges. Then ⊢ \(G\) has at most \(n - m\) connected components.
Proof.
For the base case, ASSUME \(m = 0\) (no edges).
Then each vertex is its own component, so there are exactly \(n\) components. The bound holds with equality.
⟨1⟩
For the inductive step, ASSUME the theorem holds for graphs with \(m - 1\) edges.
LET \(e = \{u, v\}\) be any edge in \(G\), and WRITE \(G' := G - e\) for the graph with \(e\) removed.
⟨2.1⟩
By the induction hypothesis, \(G'\) has at most \(n - (m-1) = n - m + 1\) components.
⟨2.2⟩
Adding \(e\) back either merges two components (decreasing the count by 1) or leaves the count unchanged.
⟨2.3⟩
Therefore, \(G\) has at most \((n - m + 1) - 1 = n - m\) components.
⟨2.4⟩
⟨2⟩
⟨3⟩
The bound in Theorem 2.1 is tight: the complete graph on \(n\) vertices achieves equality when \(m = \binom{n}{2}\).