Appendix A, p. 205 — the Steiner path connecting two nodes is the shortest path
ProvedDreyfusWagner.Steiner.steinerLength_pair_eq_pathDistLet be a finite connected undirected graph whose arcs have positive lengths, and let . Then the Steiner length of the two-node set equals the shortest-path length between them:
For both sides are .
This is the base case of the Dreyfus–Wagner recursion: line (3) of Algorithm A initialises the table on singletons with the shortest-path lengths , which are the Steiner lengths of the pairs .
import Mathlib import Definitions.Def_DreyfusWagner_Steiner_SteinerProblem
namespace DreyfusWagner.Steiner
/-- Dreyfus–Wagner 1971, Appendix A, p. 205: the Steiner path connecting two nodes is the
shortest path between them, so its length is `D(i,j)`. -/
theorem steinerLength_pair_eq_pathDist {V : Type*} [Fintype V] [DecidableEq V]
(G : SimpleGraph V) [DecidableRel G.Adj] (ℓ : Sym2 V → ℝ)
(hpos : ∀ e ∈ G.edgeSet, 0 < ℓ e) (hconn : G.Connected) (i j : V) :
steinerLength G ℓ {i, j} = pathDist G ℓ i j := by sorry
end DreyfusWagner.Steiner
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite node type with decidable equality, a connected simple graph on with edge set , and a length function on unordered pairs with for every . The statement says that for all nodes :
Both sides lie in .
- The left side is the minimum of over all in which and are joined using only arcs of .
- The right side is the minimum of the total length over the arcs of paths in from to that repeat no node.
Degenerate cases. When , the set is . The left side is then the minimum over all , which is (attained by , since lengths are positive). The right side is the length of the trivial path, also . Connectedness of makes both sides finite for every pair.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.