Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.1 — successive maximal spanning forests F_i give λ(x, y; G_i) ≥ min{λ(x, y; G), i}

Proved
NagamochiIbaraki.EdgeConn.lemma_2_1

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

edge-connectivitygraph-connectivityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1spanning-forest

Let G=(V,E)G = (V, E)G=(V,E) be a finite graph with ∣V∣≥2|V| \ge 2∣V∣≥2 and no self-loop, simple or multiple. Let E1,E2,…,E∣E∣⊆EE_1, E_2, \dots, E_{|E|} \subseteq EE1​,E2​,…,E∣E∣​⊆E be edge sets such that, for each i=1,2,…,∣E∣i = 1, 2, \dots, |E|i=1,2,…,∣E∣, the spanning subgraph Fi=(V,Ei)F_i = (V, E_i)Fi​=(V,Ei​) is a maximal spanning forest in G−(E1∪E2∪⋯∪Ei−1)G - (E_1 \cup E_2 \cup \cdots \cup E_{i-1})G−(E1​∪E2​∪⋯∪Ei−1​) (possibly Ei=Ei+1=⋯=E∣E∣=∅E_i = E_{i+1} = \cdots = E_{|E|} = \emptysetEi​=Ei+1​=⋯=E∣E∣​=∅ from some iii on). Write Gi=(V,E1∪E2∪⋯∪Ei)G_i = (V, E_1 \cup E_2 \cup \cdots \cup E_i)Gi​=(V,E1​∪E2​∪⋯∪Ei​). Then for every i=1,2,…,∣E∣i = 1, 2, \dots, |E|i=1,2,…,∣E∣,

λ(x,y;Gi)  ≥  min⁡{λ(x,y;G), i}for all x,y∈V,(2.1)\lambda(x, y; G_i) \;\ge\; \min\{\lambda(x, y; G),\ i\} \qquad \text{for all } x, y \in V, \tag{2.1}λ(x,y;Gi​)≥min{λ(x,y;G), i}for all x,y∈V,(2.1)

where λ(x,y;H)\lambda(x, y; H)λ(x,y;H) is the local edge-connectivity between xxx and yyy in HHH, the minimum number of edges whose removal disconnects xxx from yyy.

This is the result, also found independently by Nishizeki and Poljak, that a union of iii successively chosen maximal spanning forests preserves all local edge-connectivities up to iii. It does not refer to any algorithm; Lemma 2.5 shows that FOREST produces such a sequence of forests in one scan.

Formalization Note The sequence is a function F ⁣:N→2EF \colon \mathbb{N} \to 2^EF:N→2E of which only the values at 1,…,∣E∣1, \dots, |E|1,…,∣E∣ matter. Local edge-connectivity takes values in ℕ∞ and equals ∞\infty∞ at x=yx = yx=y, where (2.1) holds trivially; parallel edges count separately in cuts.

Preamble
import Mathlib
import Definitions.Def_NagamochiIbaraki_EdgeConn_Multigraph
import Definitions.Def_NagamochiIbaraki_EdgeConn_localEdgeConn
Formal statement
namespace NagamochiIbaraki.EdgeConn

theorem lemma_2_1
    {V E : Type*} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (hV : 2 ≤ Fintype.card V)
    (ends : E → Sym2 V) (hloop : ∀ e, ¬ (ends e).IsDiag)
    (F : ℕ → Finset E)
    (hF : ∀ i : ℕ, 1 ≤ i → i ≤ Fintype.card E →
      IsMaxSpanningForest ends (Finset.univ \ (Finset.Icc 1 (i - 1)).biUnion F) (F i)) :
    ∀ i : ℕ, 1 ≤ i → i ≤ Fintype.card E → ∀ x y : V,
      min (localEdgeConn ends Finset.univ x y) (i : ℕ∞) ≤
        localEdgeConn ends ((Finset.Icc 1 i).biUnion F) x y := by sorry

end NagamochiIbaraki.EdgeConn
Source
Nagamochi, Ibaraki, A Linear-Time Algorithm for Finding a Sparse k-Connected Spanning Subgraph of a k-Connected Graph, Algorithmica 7 (1992), p. 584, Lemma 2.1 and (2.1)
Read-back

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

Setting. Let VVV be a finite node set with ∣V∣≥2|V|\ge2∣V∣≥2 and EEE a finite edge set, both with decidable equality. Let ends:E→Sym2(V)\mathrm{ends}:E\to\mathrm{Sym}^2(V)ends:E→Sym2(V) assign unordered end pairs, with no loops; parallel edges are allowed.

Definitions.

  • For an edge set SSS, G[S]G[S]G[S] is the simple graph on VVV with u∼vu\sim vu∼v iff u≠vu\ne vu=v and some edge of SSS has ends {u,v}\{u,v\}{u,v}.
  • SSS is a forest if, for each e∈Se\in Se∈S with ends(e)={u,v}\mathrm{ends}(e)=\{u,v\}ends(e)={u,v}, the nodes uuu and vvv are not reachable in G[S∖{e}]G[S\setminus\{e\}]G[S∖{e}].
  • FFF is a maximal spanning forest of HHH if F⊆HF\subseteq HF⊆H, FFF is a forest, and F∪{e}F\cup\{e\}F∪{e} is not a forest for every e∈H∖Fe\in H\setminus Fe∈H∖F.
  • The local edge-connectivity is
λ(x,y;S)=inf⁡{∣W∣:W⊆S, x,y not reachable in G[S∖W]}∈N∪{∞},\lambda(x,y;S)=\inf\{|W|: W\subseteq S,\ x,y \text{ not reachable in } G[S\setminus W]\}\in\mathbb N\cup\{\infty\},λ(x,y;S)=inf{∣W∣:W⊆S, x,y not reachable in G[S∖W]}∈N∪{∞},

which equals ∞\infty∞ when x=yx=yx=y.

Hypothesis. F0,F1,F2,…F_0,F_1,F_2,\dotsF0​,F1​,F2​,… is an arbitrary sequence of edge sets such that, for every 1≤i≤∣E∣1\le i\le|E|1≤i≤∣E∣,

Fi is a maximal spanning forest of E∖⋃j=1i−1Fj.F_i \text{ is a maximal spanning forest of } E\setminus\bigcup_{j=1}^{i-1}F_j.Fi​ is a maximal spanning forest of E∖j=1⋃i−1​Fj​.

This forces FiF_iFi​ to be disjoint from F1,…,Fi−1F_1,\dots,F_{i-1}F1​,…,Fi−1​. The sets F0F_0F0​ and FjF_jFj​ for j>∣E∣j>|E|j>∣E∣ are unconstrained and never used.

Claim. For every 1≤i≤∣E∣1\le i\le|E|1≤i≤∣E∣ and all nodes x,yx,yx,y:

min⁡(λ(x,y;E), i) ≤ λ(x,y; ⋃j=1iFj).\min\bigl(\lambda(x,y;E),\ i\bigr)\ \le\ \lambda\Bigl(x,y;\ \bigcup_{j=1}^{i}F_j\Bigr).min(λ(x,y;E), i) ≤ λ(x,y; j=1⋃i​Fj​).

Degenerate cases:

  • If x=yx=yx=y, the right side is ∞\infty∞ and the inequality holds trivially.
  • If EEE is empty, the claim is vacuous.
  • Values i>∣E∣i>|E|i>∣E∣ are not addressed.
  • No algorithm or run appears in this statement.
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