§III — the length L of a shortest spanning subtree is continuous in the edge lengths
ProvedShortestConnection.Principles.minLength_continuousLet be a connected simple graph on a finite set . For edge lengths let be the length of a shortest spanning subtree of , the least of the finitely many lengths of spanning subtrees of . Then the map
is continuous on the space of all length assignments .
Prim uses this continuity to remove the assumption of distinct lengths: perturbing the lengths slightly to break ties changes only slightly.
Formalization Note Lengths live in with the product topology. The connectivity of is an implicit hypothesis, stated explicitly; it guarantees that spanning subtrees exist, so is a genuine minimum.
import Mathlib import Definitions.Def_ShortestConnection_Principles_SpanningSubtree import Definitions.Def_ShortestConnection_Principles_Construction
namespace ShortestConnection.Principles
/-- Prim 1957, §III, p. 1394: the length `L` of a shortest spanning subtree of a connected
labelled graph `G`, the smallest of the finitely many spanning subtree lengths, depends
continuously on the edge lengths `w` (product topology on `Sym2 V → ℝ`).
Implicit hypothesis made explicit: `G` is connected (so spanning subtrees exist). -/
theorem minLength_continuous {V : Type*} [Fintype V] [DecidableEq V]
(G : SimpleGraph V) (hG : G.Connected) :
Continuous (fun w : Sym2 V → ℝ => minLength G w) := 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 let be a connected simple graph on . Consider length functions , which assign a real number to every unordered pair of terminals, including degenerate pairs . The space of such functions carries the product topology, which is pointwise convergence and the same as the usual topology of for the finitely many pairs.
For each define
Here a spanning subtree is a finite set of -edges forming a tree (connected and acyclic) on all of . The infimum is the real infimum, with default value for an empty or unbounded-below set. The theorem asserts that the map
is continuous from this space to .
Degenerate cases. Connectedness excludes empty . For finite and connected , the set of spanning subtrees is finite and nonempty, so the default value never occurs. If , the only spanning subtree is and for every , a constant map. Values of on non-edges and on degenerate pairs do not enter .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.