Necessary Condition 1 — every terminal of a SSS is directly connected to a nearest neighbor
ProvedShortestConnection.Principles.necessary_condition_1Let be a connected simple graph on a finite set with at least two terminals, with arbitrary real edge lengths , and let be a shortest spanning subtree of . Then every terminal is directly connected in to at least one nearest neighbor: there is a -neighbor of with
This is Prim's NC1, from which Principle 1 follows: the link P1 adds is one that some shortest network must contain. Ties between lengths are allowed, which is why the conclusion is "at least one" nearest neighbor.
Formalization Note The connectivity of and the existence of at least two terminals are implicit hypotheses of the paper, stated explicitly here; the second guarantees that a nearest neighbor exists. Nearest neighbors range over -neighbors only (a missing edge has infinite length).
import Mathlib import Definitions.Def_ShortestConnection_Principles_SpanningSubtree import Definitions.Def_ShortestConnection_Principles_Construction
namespace ShortestConnection.Principles
/-- Necessary Condition 1 (Prim 1957, p. 1392): every terminal in a shortest spanning subtree
`F` of the connected labelled graph `G` is directly connected to at least one nearest neighbor:
for every terminal `t` there is a `G`-neighbor `n` of `t` with `s(t, n) ∈ F` and
`w s(t, n) ≤ w s(t, m)` for every `G`-neighbor `m` of `t`. Lengths are arbitrary reals, ties are
allowed.
Implicit hypotheses made explicit: `G` is connected, and `V` has at least two terminals
(`Nontrivial V`), so that a nearest neighbor exists. -/
theorem necessary_condition_1 {V : Type*} [Fintype V] [DecidableEq V] [Nontrivial V]
(G : SimpleGraph V) (hG : G.Connected) (w : Sym2 V → ℝ) (F : Finset (Sym2 V))
(hF : IsSSS G w F) (t : V) :
∃ n : V, G.Adj t n ∧ s(t, n) ∈ F ∧ ∀ m : V, G.Adj t m → w s(t, n) ≤ w s(t, m) := 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 at least two elements. Let be a connected simple graph on , and let be any real-valued length on unordered pairs, with ties and negative values allowed. Let be a shortest spanning subtree of for :
- every pair in is an edge of ;
- the graph on with edge set is a tree (connected and acyclic);
- for every finite set with those same two properties.
Let be any terminal. The theorem asserts that there is a terminal with the following three properties:
- ;
- ;
- for every -neighbour of .
So some link of at is a -edge of minimal length among all -edges at .
Degenerate cases. Empty and one-element are excluded by the hypotheses. If has no spanning subtree, no SSS exists and the statement is vacuous. For connected on finite , spanning subtrees do exist. When several -edges at tie for the minimum, only one of them needs to lie in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.