Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

4.12, p. 458 — for the blossom B of a flower, M is maximum in G iff M/B is maximum in G/B

Proved
PathsTreesFlowers.Duality.theorem_4_12

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

blossomflowermatchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1shrinking

Let MMM be a matching of a finite graph GGG, and let BBB be the blossom of a flower for (G,M)(G, M)(G,M): an odd circuit for which M∩BM \cap BM∩B is a maximum matching of BBB leaving the vertex bbb exposed, together with a stem whose tip is bbb and which meets BBB only at bbb. Then

M is a maximum matching of G  ⟺  M/B is a maximum matching of G/B,M \text{ is a maximum matching of } G \iff M/B \text{ is a maximum matching of } G/B,M is a maximum matching of G⟺M/B is a maximum matching of G/B,

where G/BG/BG/B is obtained by shrinking the vertex set of BBB and M/B=M∩(G/B)M/B = M \cap (G/B)M/B=M∩(G/B).

This is the key theorem of the blossom algorithm: a blossom found while growing a planted tree can be shrunk without changing whether the current matching is maximum.

Formalization Note The stem is essential: the paper notes (§7.1, p. 465) that "the sufficiency part of (4.12) depends on the blossom being part of a flower".

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 theorem_4_12 {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)
    (vs : List V) (es : List E) (b : V) (svs : List V) (ses : List E)
    (hF : IsFlower G M vs es b svs ses) :
    IsMaxMatching G M ↔
      IsMaxMatching (shrink G (blockPartition vs.toFinset))
        (shrinkMatching G (blockPartition vs.toFinset) M) := by sorry

end PathsTreesFlowers.Duality
Source
Edmonds, Paths, trees, and flowers, Canad. J. Math. 17 (1965), p. 458, 4.12
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