Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

4.17, p. 459 — for a Hungarian tree J, M₁ is maximum in G − J iff M₁ with any maximum matching of J is maximum in G

Proved
PathsTreesFlowers.Duality.theorem_4_17

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

hungarian-treematchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let JJJ be a Hungarian tree in a finite graph GGG (an alternating tree whose outer vertices are joined by edges of GGG only to its inner vertices), and let G−JG - JG−J be the subgraph induced on the vertices not in JJJ. For a matching M1M_1M1​ of G−JG - JG−J,

M1 is maximum in G−J  ⟺  M1∪MJ is a maximum matching of G for every maximum matching MJ of J.M_1 \text{ is maximum in } G - J \iff M_1 \cup M_J \text{ is a maximum matching of } G \text{ for every maximum matching } M_J \text{ of } J.M1​ is maximum in G−J⟺M1​∪MJ​ is a maximum matching of G for every maximum matching MJ​ of J.

A Hungarian tree can therefore be removed from the graph once found: the part of the graph it spans can be matched independently of the rest.

Formalization Note "Together with any maximum matching MJM_JMJ​ of JJJ" is read as "every"; all maximum matchings of JJJ have the same cardinality, so "some" would be equivalent. Matchings of JJJ and of G−JG - JG−J are matchings of GGG using only edges of JJJ, respectively of G−JG - JG−J.

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

theorem theorem_4_17 {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : EdmondsMatching65.Polyhedron.Graph V E)
    (J : AltTree G) (hJ : IsHungarianTree G J)
    (M₁ : Finset E) (hM₁ : IsMatchingIn G (deleteSub G J.toSub) M₁) :
    IsMaxMatchingIn G (deleteSub G J.toSub) M₁ ↔
      ∀ MJ : Finset E, IsMaxMatchingIn G J.toSub MJ → IsMaxMatching G (M₁ ∪ MJ) := by sorry

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