Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§1, p. 197 — a Steiner path contains no cycles

Proved
DreyfusWagner.Steiner.steinerTree_isAcyclic

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-theoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1steiner-tree

Let G=(N,A)G = (N, A)G=(N,A) be a finite connected undirected graph whose arcs have positive lengths ∣a∣>0|a| > 0∣a∣>0, and let Y⊆NY \subseteq NY⊆N. If S⊆AS \subseteq AS⊆A is a Steiner path connecting YYY — a set of arcs connecting all members of YYY with minimum total length — then

S contains no cycle, i.e. S is a forest.S \text{ contains no cycle, i.e. } S \text{ is a forest.}S contains no cycle, i.e. S is a forest.

This is the "easily proven fact" with which Dreyfus and Wagner open their analysis: a minimum connecting arc set is a tree. It is what lets one speak of branches, junction nodes and subtrees of a Steiner path in the Optimal Decomposition Theorem.

Formalization Note "Contains no cycle" is IsAcyclic for the graph whose edges are the arcs of SSS. Positivity of the arc lengths is essential: with an arc of length zero a minimum connecting set may contain a cycle. Connectivity of GGG is the paper's standing assumption and is kept as a hypothesis.

Preamble
import Mathlib
import Definitions.Def_DreyfusWagner_Steiner_SteinerProblem
Formal statement
namespace DreyfusWagner.Steiner

/-- Dreyfus–Wagner 1971, §1, p. 197: a Steiner path `S` must be a tree, i.e. it contains no
cycles. -/
theorem steinerTree_isAcyclic {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (ℓ : Sym2 V → ℝ)
    (hpos : ∀ e ∈ G.edgeSet, 0 < ℓ e) (hconn : G.Connected)
    (Y : Finset V) (S : Finset (Sym2 V)) (hS : IsSteinerTree G ℓ Y S) :
    (SimpleGraph.fromEdgeSet (S : Set (Sym2 V))).IsAcyclic := by sorry

end DreyfusWagner.Steiner
Source
Dreyfus, Wagner, The Steiner Problem in Graphs, Networks 1 (1971), p. 197, §1, first paragraph
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let VVV be a finite node type with decidable equality and GGG a simple graph on VVV with edge set AAA. Let ℓ\ellℓ be a length function on unordered pairs of nodes. The hypotheses are:

  • ℓ(e)>0\ell(e) > 0ℓ(e)>0 for every edge e∈Ae \in Ae∈A (values off AAA are unconstrained);
  • GGG is connected, which in particular makes VVV nonempty;
  • YYY is a finite set of nodes;
  • SSS is a Steiner tree for YYY in (G,ℓ)(G,\ell)(G,ℓ). That is, S⊆AS \subseteq AS⊆A, every two nodes of YYY are joined in the graph HSH_SHS​ formed by the arcs of SSS, and ∑e∈Sℓ(e)≤∑e∈S′ℓ(e)\sum_{e \in S} \ell(e) \le \sum_{e \in S'} \ell(e)∑e∈S​ℓ(e)≤∑e∈S′​ℓ(e) for every S′⊆AS' \subseteq AS′⊆A with that same connecting property.

The conclusion is that HSH_SHS​ contains no cycle, i.e. HSH_SHS​ is a forest. The statement does not assert that HSH_SHS​ is connected, nor that every arc of SSS is needed.

Degenerate cases. If ∣Y∣≤1|Y| \le 1∣Y∣≤1, then ∅\emptyset∅ connects YYY, so a Steiner tree has total length ≤0\le 0≤0. Since S⊆AS \subseteq AS⊆A and lengths on AAA are positive, this forces S=∅S = \emptysetS=∅, and the conclusion is then trivially true. Connectedness of GGG guarantees that some subset of AAA connects YYY, but the theorem only assumes that a Steiner tree SSS exists.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me