Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§II — a construction with fewer than N − 1 links can be extended by P1 or P2

Proved
ShortestConnection.Principles.construction_extends

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

graph-theoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1spanning-trees

Let GGG be a connected simple graph on a finite set VVV of NNN terminals with real edge lengths www, and let e0,…,ek−1e_0,\dots,e_{k-1}e0​,…,ek−1​ be a construction by P1 and P2 with

k<N−1.k < N - 1.k<N−1.

Then there is a link eee such that e0,…,ek−1,ee_0,\dots,e_{k-1},ee0​,…,ek−1​,e is again a construction by P1 and P2.

This makes explicit the "can be connected" of the two principles: as long as the network is not yet connected, some isolated terminal or isolated fragment admits an application of P1 or P2. Together with the preceding milestones it shows that complete constructions exist.

Formalization Note The connectivity of GGG is an implicit hypothesis of the paper, stated explicitly here. In an incomplete graph only edges of GGG are possible links.

Preamble
import Mathlib
import Definitions.Def_ShortestConnection_Principles_SpanningSubtree
import Definitions.Def_ShortestConnection_Principles_Construction
Formal statement
namespace ShortestConnection.Principles

/-- Prim 1957, §II, pp. 1391–1392 (P1 and P2: an isolated terminal or fragment "can be
connected"; "an N-terminal network is connected by N-1 applications"): in a connected labelled
graph, a construction by P1 and P2 with fewer than `N - 1` links can always be extended by one
more application of P1 or P2. This is the "can be connected" of the principles made explicit.
Implicit hypothesis made explicit: `G` is connected. -/
theorem construction_extends {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (hG : G.Connected) (w : Sym2 V → ℝ) (l : List (Sym2 V))
    (hl : IsConstruction G w l) (hlen : l.length < Fintype.card V - 1) :
    ∃ e : Sym2 V, IsConstruction G w (l ++ [e]) := by sorry

end ShortestConnection.Principles
Source
Prim, Shortest Connection Networks And Some Generalizations, Bell System Tech. J. 36 (1957), pp. 1391-1392, §II (Principle 1, Principle 2; N-1 applications)
Read-back

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

Let VVV be a finite type with decidable equality and N=∣V∣N=|V|N=∣V∣ elements. Let GGG be a connected simple graph on VVV, and let www be any real-valued length on unordered pairs. Let lll be a construction for GGG and www: each entry lil_ili​ is a P1 or P2 application relative to the set of earlier entries.

  • P1: a pair {t,n}\{t,n\}{t,n} with ttt touched by no earlier non-degenerate link, t∼Gnt\sim_G nt∼G​n, and w({t,n})≤w({t,m})w(\{t,n\})\le w(\{t,m\})w({t,n})≤w({t,m}) for all GGG-neighbours mmm of ttt.
  • P2: a pair {u,n}\{u,n\}{u,n} with uuu having an earlier link, nnn not reachable from uuu by earlier links, u∼Gnu \sim_G nu∼G​n, and w({u,n})w(\{u,n\})w({u,n}) at most the length of every GGG-edge from uuu's earlier-link component to its complement.

Assume further that the list is short: ∣l∣<N−1|l| < N - 1∣l∣<N−1, with natural-number subtraction.

The theorem asserts that some unordered pair eee exists such that appending eee to the end of lll gives a list l+ ⁣ ⁣+[e]l \mathbin{+\!\!+} [e]l++[e] that is still a construction. In other words, eee is a P1 or P2 application relative to the set of all entries of lll.

Degenerate cases. Connectedness of GGG excludes empty VVV. If N=1N=1N=1 or N=2N=2N=2, then N−1≤1N-1 \le 1N−1≤1, and ∣l∣<N−1|l| < N-1∣l∣<N−1 forces N=2N = 2N=2 with lll empty. If N=1N=1N=1, the hypothesis ∣l∣<0|l|<0∣l∣<0 can never hold, so the statement is vacuous. The appended eee is only asserted to exist. Nothing is said about uniqueness or about which principle applies. Ties and arbitrary real values of www are allowed.

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