How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Trees, Forests and Spanning Trees — Examples
1 · Prerequisites
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Graphs, Walks and Connectivity
- Inclusion–Exclusion, the Pigeonhole Principle and Double Counting
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- Suprema and Infima
- The ZFC Axioms and the Basic Set Constructions
- Trees, Forests and Spanning Trees
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
The isomorphism types of trees on at most five vertices
Statement
Up to isomorphism, the numbers of trees on vertices are respectively . Representatives are
Facts & Assumptions
Given: A tree on at most five vertices.
A tree on vertices has edges and, for , at least two leaves (A tree on vertices has edges, Every tree with at least two vertices has at least two leaves).
The sum of degrees is twice the number of edges (Handshake lemma: the sum of the vertex degrees is twice the number of edges).
Isomorphisms preserve degrees (Graph isomorphisms, automorphisms and graph complements).
, and have their standard edge sets (Empty and complete graphs, complete bipartite graphs, and the convention that and have vertices).
Verification
In the case , connectedness and the edge count force , respectively.
In the case , maximum degree two forces the connected acyclic graph , while maximum degree three forces . These degree sequences differ, so the two are nonisomorphic.
In the case , maximum degree two gives , maximum degree four gives , and maximum degree three forces degree sequence by the degree sum .
Each displayed degree sequence determines the indicated tree: attach all remaining vertices to the unique high-degree vertex, with the degree-two vertex extending one arm in the third case.
The representatives in each row have different degree sequences, so they are pairwise nonisomorphic and the list is complete.
A labelled tree and its Prüfer code computed in both directions
Statement
On labels , the tree with edges
has Prüfer code , and decoding this word returns the same tree.
Facts & Assumptions
Given: The displayed labelled graph .
Encoding deletes the least leaf and records its neighbour (The Prüfer code of a tree on a finite set of natural labels).
The decoding procedure produces the inverse tree (The Prüfer decoding procedure is well defined and produces a labelled tree, Prüfer encoding and decoding are inverse bijections between labelled trees on vertices and words of length on their labels).
At each decoding stage, the least unused label absent from the remaining word is joined to its first symbol; the final two unused labels are then joined.
Verification
Initially the leaves are . Delete and record ; then delete and record ; then delete and record . Thus the code is .
To decode, the least label absent from is , so add ; for the suffix choose and add ; for choose and add .
The unused labels are then , so add . The recovered edge set is exactly .
for every
Statement
For every , the cycle graph has exactly spanning trees.
Facts & Assumptions
Given: and the cycle graph .
has edges and deleting an arbitrary edge gives the path (Empty and complete graphs, complete bipartite graphs, and the convention that and have vertices).
A spanning tree on vertices has edges (Equivalent characterisations of a nonempty tree by unique paths, edge count, minimal connectivity and maximal acyclicity).
counts spanning trees (The spanning-tree number , Spanning trees of a graph).
Verification
Deleting any one edge of gives a connected acyclic spanning graph, hence a spanning tree. The choices yield distinct trees.
Conversely, every spanning tree uses of the cycle edges, so it is obtained by deleting exactly one edge.
Therefore .
by direct Prüfer enumeration and Cayley's formula
Statement
The complete graph has spanning trees.
Facts & Assumptions
Given: on the label set .
Its spanning trees correspond bijectively to words of length on (Prüfer encoding and decoding are inverse bijections between labelled trees on vertices and words of length on their labels).
Cayley's formula gives (Cayley's formula: for , with and ).
counts spanning trees (The spanning-tree number ).
Verification
There are choices for each of the two positions of a Prüfer word, hence words and therefore spanning trees.
Independently, Cayley's formula gives , agreeing with the enumeration.
A fundamental cycle and a fundamental cut in a fixed spanning tree
Statement
Let have vertices and edges . For the spanning tree with edges , the edge has fundamental cycle . The edge has fundamental cut .
Facts & Assumptions
Given: The graph and spanning subgraph above.
An outside edge and its unique tree path form the fundamental cycle (Every edge outside a spanning tree determines a unique fundamental cycle).
Deleting a tree edge partitions the tree into two sides, whose crossing edges form the fundamental cut (Every edge of a spanning tree determines a fundamental cut, and every edge crossing it restores a spanning tree).
A connected acyclic spanning subgraph is a spanning tree (Spanning trees of a graph).
Verification
The graph is the path , so it is a spanning tree. Its unique - path together with is the stated -cycle.
Deleting leaves vertex sides and . Exactly cross between them in .
Hence the displayed cycle and cut are the required fundamental objects.
A connected graph with two distinct spanning trees
Statement
The triangle is connected and has three distinct spanning trees, obtained by deleting any one edge.
Facts & Assumptions
Given: The cycle graph .
is connected and has three edges (Empty and complete graphs, complete bipartite graphs, and the convention that and have vertices).
A spanning tree is a connected acyclic spanning subgraph (Spanning trees of a graph).
A finite graph is connected if and only if it has a spanning tree (A finite graph is connected if and only if it has a spanning tree).
Verification
Deleting any edge of leaves a two-edge path on all three vertices, so each result is a spanning tree.
The three deleted edges are different, so the three resulting edge sets are distinct. In particular, this connected graph has at least two spanning trees.
Kruskal's and Prim's procedures on the same weighted graph
Statement
Let have edges of weights , respectively. Kruskal's procedure chooses . Prim's procedure started at makes the same choices, and the resulting MST has total weight .
Facts & Assumptions
Given: The weighted graph above.
Kruskal adds the lightest edge that does not form a cycle (Kruskal's greedy edge procedure produces a minimum spanning tree).
Prim adds the lightest edge leaving the reached set (Prim's growing-tree procedure produces a minimum spanning tree).
Tree weight is the sum of its edge weights (Real edge-weighted graphs, total tree weight and minimum spanning trees).
Verification
Kruskal considers the edges in weight order and accepts , then , then ; at that point all four vertices are connected.
From , Prim first chooses of weight , then of weight , then of weight .
Both procedures output the path with total weight , and their correctness theorems make it an MST.
An acyclic graph need not be a tree
Statement refuted
Every acyclic graph is a tree.
Facts & Assumptions
Given: The edgeless graph .
An edgeless graph contains no cycle (Empty and complete graphs, complete bipartite graphs, and the convention that and have vertices).
A tree must be connected as well as acyclic (Trees, forests, leaves and isolated vertices).
Counterexample
The graph is acyclic because it has no edges.
Its two vertices lie in different components, so it is disconnected and therefore is not a tree.
Thus acyclicity alone does not imply the tree property.
A graph on vertices with edges need not be a tree
Statement refuted
Every graph on vertices with edges is a tree.
Facts & Assumptions
Given: The graph .
has three vertices and three edges, while has one vertex and no edges (Empty and complete graphs, complete bipartite graphs, and the convention that and have vertices).
The edge-count condition characterizes trees only together with connectedness or acyclicity (Equivalent characterisations of a nonempty tree by unique paths, edge count, minimal connectivity and maximal acyclicity).
Counterexample
The disjoint union has vertices and edges.
It is disconnected and also contains the cycle , so it is not a tree.
Hence the edge count alone is insufficient.
A weighted graph with two distinct minimum spanning trees
Statement refuted
Every connected weighted graph has a unique minimum spanning tree.
Facts & Assumptions
Given: The cycle with every edge assigned weight .
Deleting any edge of leaves a two-edge spanning tree (Empty and complete graphs, complete bipartite graphs, and the convention that and have vertices, Spanning trees of a graph).
Total tree weight is the sum of edge weights (Real edge-weighted graphs, total tree weight and minimum spanning trees).
Counterexample
Each of the three two-edge spanning trees has total weight .
Every spanning tree of the three-vertex graph has two edges, so no spanning tree has smaller weight.
Thus all three are MSTs, and uniqueness fails.
Cayley's formula counts unlabelled trees
False Statement
Cayley's number is the number of unlabelled trees on vertices.
Facts & Assumptions
Given: The claimed interpretation of Cayley's formula.
Cayley's formula counts spanning trees of the labelled complete graph (Cayley's formula: for , with and ).
Up to isomorphism, there are only two trees on four vertices: and (The isomorphism types of trees on at most five vertices).
Refutation
At , Cayley's number is .
The unlabelled count is .
Since , Cayley's formula does not count unlabelled isomorphism types.
Every edge of a connected graph lies in every spanning tree
False Statement
Every edge of a connected graph belongs to every spanning tree of that graph.
Facts & Assumptions
Given: The claimed universal assertion about connected graphs and their spanning trees.
The triangle has distinct spanning trees obtained by deleting different edges (A connected graph with two distinct spanning trees).
An edge outside a spanning tree closes a fundamental cycle (Every edge outside a spanning tree determines a unique fundamental cycle).
A spanning tree need only use a subset of the graph's edges (Spanning trees of a graph).
Refutation
In , fix an edge and delete it. The remaining two edges form a spanning tree.
This spanning tree omits ; adding back closes the triangle as its fundamental cycle.
Hence an edge of a connected graph need not lie in every spanning tree.
Sources
Standard references
Recommended treatments; not extraction sources.