Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

5.8, p. 463 — S_J covers exactly the edges outside G′ − J, each M-edge there once, and M ∩ (G′ − J) is maximum with one less exposed vertex

Proved
PathsTreesFlowers.Duality.cover_step_5_8

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

hungarian-treematchingodd-set-coverp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a maximum matching of a finite graph GGG and take a Hungarian configuration for (G,M)(G, M)(G,M): G′=G/PG' = G/\mathcal PG′=G/P, the tree JJJ, the vertex set XXX of G′−JG' - JG′−J and the family SJ\mathcal S_JSJ​ of odd sets (one inner vertex of JJJ; the complete expansion of one pseudovertex of JJJ). Then

  1. every member of SJ\mathcal S_JSJ​ is an odd set;
  2. the number of edges of MMM which a member of SJ\mathcal S_JSJ​ covers equals the capacity of the member;
  3. every edge of MMM not in G′−JG' - JG′−J is covered by exactly one member of SJ\mathcal S_JSJ​;
  4. an edge of GGG is covered by a member of SJ\mathcal S_JSJ​ if and only if it is not in G′−JG' - JG′−J;
  5. M∩(G′−J)M \cap (G' - J)M∩(G′−J) is a maximum matching of G′−JG' - JG′−J,
  6. with one less exposed vertex than (G,M)(G, M)(G,M);
  7. consequently
∣M∣=cap⁡(SJ)+∣M∩(G′−J)∣.|M| = \operatorname{cap}(\mathcal S_J) + |M \cap (G' - J)|.∣M∣=cap(SJ​)+∣M∩(G′−J)∣.

This is the induction step of Edmonds' proof of the matching-duality theorem: if ∣M∩(G′−J)∣|M \cap (G'-J)|∣M∩(G′−J)∣ equals the capacity-sum of an odd-set cover SJ′\mathcal S'_JSJ′​ of G′−JG' - JG′−J, then ∣M∣|M|∣M∣ equals the capacity-sum of the odd-set cover SJ∪SJ′\mathcal S_J \cup \mathcal S'_JSJ​∪SJ′​ of GGG.

Formalization Note G′−JG' - JG′−J is expressed in terms of GGG: its edges are the edges of GGG with both end-points in XXX, its exposed vertices are the vertices of XXX meeting no edge of MMM with both end-points in XXX. Item 7 is the identity the paper derives from 2 and 3.

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

theorem cover_step_5_8 {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : EdmondsMatching65.Polyhedron.Graph V E)
    (M : Finset E) (hM : IsMaxMatching G M) (C : HungarianConfig G M) :
    (∀ U ∈ C.SJ, IsOddSet U) ∧
    (∀ U ∈ C.SJ, (M.filter (Covers G U)).card = capacity U) ∧
    (∀ e ∈ M, G.ends e ∉ C.X.sym2 → (C.SJ.filter (fun U => Covers G U e)).card = 1) ∧
    (∀ e : E, (∃ U ∈ C.SJ, Covers G U e) ↔ G.ends e ∉ C.X.sym2) ∧
    IsMaxMatchingIn G (induced G C.X) (M ∩ edgesWithin G C.X) ∧
    (exposedIn G C.X M).card + 1 = (Finset.univ.filter (IsExposed G M)).card ∧
    M.card = capacitySum C.SJ + (M ∩ edgesWithin G C.X).card := by sorry

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