Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

4.15, p. 458 — if M ∩ P leaves one exposed vertex, M/P is maximum in G/P and P/P is the tip of a stem, then M is maximum

Proved
PathsTreesFlowers.Duality.lemma_4_15

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1shrinkingstem

Let MMM be a matching of a finite graph GGG and UUU a set of vertices whose induced subgraph U+U^+U+ is connected; write G/UG/UG/U for the graph obtained by shrinking UUU and M/U=M∩(G/U)M/U = M \cap (G/U)M/U=M∩(G/U). Suppose that

  1. exactly one vertex of UUU meets no edge of MMM with both end-points in UUU;
  2. M/UM/UM/U is a maximum matching of G/UG/UG/U;
  3. the vertex U/UU/UU/U is the tip of a stem for (G/U,M/U)(G/U, M/U)(G/U,M/U) (possibly a stem with no edges, i.e. U/UU/UU/U exposed for M/UM/UM/U).

Then MMM is a maximum matching of GGG.

Together with 4.14 this gives 4.12, and its extension to several disjoint shrunken sets is the step of the algorithm that certifies maximality.

Formalization Note The paper states 4.15 for a connected subgraph PPP with M∩PM \cap PM∩P leaving exactly one exposed vertex in PPP. Shrinking depends only on the vertex set UUU of PPP (4.9), and if (1) holds for PPP it holds for U+U^+U+ (the matching M∩U+M \cap U^+M∩U+ contains M∩PM \cap PM∩P and ∣U∣|U|∣U∣ is odd), so this statement implies the paper's. Connectedness of U+U^+U+ is the standing assumption under which 4.9 defines shrinking.

Preamble
import Mathlib
import Definitions.Def_EdmondsMatching65_Polyhedron_Graph
import Definitions.Def_PathsTreesFlowers_Duality_Basic
import Definitions.Def_PathsTreesFlowers_Duality_Shrink
Formal statement
namespace PathsTreesFlowers.Duality

theorem lemma_4_15 {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : EdmondsMatching65.Polyhedron.Graph V E)
    (M : Finset E) (hM : EdmondsMatching65.Polyhedron.IsMatching G M) (U : Finset V)
    (hconn : IsConnectedSub G (induced G U))
    (h1 : (exposedIn G U M).card = 1)
    (h2 : IsMaxMatching (shrink G (blockPartition U)) (shrinkMatching G (blockPartition U) M))
    (h3 : ∃ (svs : List {W : Finset V // W ∈ (blockPartition U).parts})
        (ses : List {e : E // ¬ InsidePart G (blockPartition U) e}),
        IsStem (shrink G (blockPartition U)) (shrinkMatching G (blockPartition U) M) svs ses ∧
          ∃ u ∈ U, svs.getLast? = some (toPart (blockPartition U) u)) :
    IsMaxMatching G M := by sorry

end PathsTreesFlowers.Duality
Source
Edmonds, Paths, trees, and flowers, Canad. J. Math. 17 (1965), p. 458, 4.15
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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