§II — a complete construction (N − 1 applications) is a spanning subtree
ProvedShortestConnection.Principles.complete_construction_isSpanningSubtreeLet be a connected simple graph on a finite set of terminals with real edge lengths . If is a complete construction by P1 and P2 (exactly applications), then its links form a spanning subtree of :
This is Prim's "an -terminal network is connected by applications": the output of a complete construction is a connection network.
Formalization Note The connectivity of is an implicit hypothesis of the paper, stated explicitly here; it guarantees , so is ordinary subtraction.
import Mathlib import Definitions.Def_ShortestConnection_Principles_SpanningSubtree import Definitions.Def_ShortestConnection_Principles_Construction
namespace ShortestConnection.Principles
/-- Prim 1957, §II, p. 1392 ("an N-terminal network is connected by N-1 applications"): the
links of a complete construction by P1 and P2 (one with `N - 1` links, `N = card V`) form a
spanning subtree of the labelled graph `G`.
Implicit hypothesis made explicit: `G` is connected (in particular `V` is nonempty, so
`card V - 1` is ordinary subtraction). -/
theorem complete_construction_isSpanningSubtree {V : Type*} [Fintype V] [DecidableEq V]
(G : SimpleGraph V) (hG : G.Connected) (w : Sym2 V → ℝ) (l : List (Sym2 V))
(hl : IsCompleteConstruction G w l) :
IsSpanningSubtree G l.toFinset := by sorry
end ShortestConnection.Principles
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite type with decidable equality and elements. Let be a simple graph on , assumed connected, which includes that is nonempty. Let be any real-valued length on unordered pairs. Let be a complete construction for and , meaning both of the following:
- each entry is an application of P1 or P2 relative to the set of earlier entries. P1 attaches a terminal with no earlier link to a -neighbour at minimal among its -edges. P2 joins a terminal that has an earlier link to a terminal not reachable from , by a -edge whose is at most that of every -edge leaving 's earlier-link component;
- the list has exactly entries.
The theorem asserts that the set of entries of is a spanning subtree of :
- every element of is an edge of ;
- the graph on all of whose edges are the pairs in is connected and has no cycles.
Degenerate cases. Connectedness of rules out empty , so is ordinary subtraction here. If , the only complete construction is the empty list. The claim is then that is a spanning subtree, meaning the one-vertex edgeless graph is a tree. No condition is placed on : ties and negative lengths are allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.