Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

4.15, extension, forest form (4.20), pp. 459–460 — if M/P is maximum and the shrunken sets are outer in a planted forest, M is maximum

Proved
PathsTreesFlowers.Invariance.lemma_4_15_ext

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

alternating-treematchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1planted-forestshrinking

Let GGG be a finite graph, MMM a matching of GGG, and P\mathcal PP a partition of the vertices of GGG whose parts with more than one vertex are the disjoint subgraphs P1,…,PnP_1, \dots, P_nP1​,…,Pn​ to be shrunk; write Gn=G/PG_n = G/\mathcal PGn​=G/P and Mn=M/P=M∩GnM_n = M/\mathcal P = M \cap G_nMn​=M/P=M∩Gn​. Assume each part induces a connected subgraph, and:

  1. M∩Pi+M \cap P_i^+M∩Pi+​ leaves exactly one exposed vertex in PiP_iPi​, for each iii;
  2. MnM_nMn​ is a maximum matching of GnG_nGn​;
  3. the vertices Pi/PiP_i/P_iPi​/Pi​ of GnG_nGn​ are outer vertices in a planted forest for (Gn,Mn)(G_n, M_n)(Gn​,Mn​): a family of disjoint planted trees J1,…,JmJ_1, \dots, J_mJ1​,…,Jm​ for MnM_nMn​ in GnG_nGn​, each Pi/PiP_i/P_iPi​/Pi​ an outer vertex of some JjJ_jJj​.

Then

M is a maximum matching of G.M \text{ is a maximum matching of } G.M is a maximum matching of G.

The paper states this for a single planted tree JnJ_nJn​ and remarks (4.20) that "the theorems on trees presented in this section are essentially the same for forests"; the forest form is the one needed when the trees of Section 6 are grown from all exposed vertices.

Formalization Note The paper's family P1,…,PnP_1, \dots, P_nP1​,…,Pn​ of disjoint subgraphs is encoded by the non-singleton parts of a partition; a singleton PiP_iPi​ would satisfy (1) trivially, so nothing is lost. Shrinking is defined in 4.9 only for connected HHH, so connectedness of each Pi+P_i^+Pi+​ is stated as a hypothesis (it is a standing assumption of the paper's shrinking operation, not an addition to the theorem).

Preamble
import Mathlib
import Definitions.Def_EdmondsMatching65_Polyhedron_Graph
import Definitions.Def_PathsTreesFlowers_Invariance_Basic
import Definitions.Def_PathsTreesFlowers_Invariance_Shrink
Formal statement
namespace PathsTreesFlowers.Invariance

open EdmondsMatching65.Polyhedron (IsMatching)

/-- 4.15, extension (p. 459), in the forest form of 4.20 (p. 460). Let `M` be a matching of `G`
and let the parts of `P` with more than one vertex be the disjoint subgraphs `P₁, …, Pₙ`, each
inducing a connected subgraph, such that (1) `M ∩ Pᵢ⁺` leaves exactly one exposed vertex in `Pᵢ`,
(2) `M/P` is a maximum matching of `G/P`, and (3) the vertices `Pᵢ/Pᵢ` are outer vertices of a
planted forest for `(G/P, M/P)`. Then `M` is a maximum matching of `G`. -/
theorem lemma_4_15_ext {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : EdmondsMatching65.Polyhedron.Graph V E)
    (M : Finset E) (hM : IsMatching G M) (P : Finpartition (Finset.univ : Finset V))
    (hconn : ∀ U ∈ P.parts, (induced G U).Connected)
    (h1 : ∀ U ∈ P.parts, 1 < U.card →
      ∃ u ∈ U, ∀ w ∈ U, (PathsTreesFlowers.Duality.IsExposed G (M ∩ (induced G U).edges) w ↔ w = u))
    (h2 : PathsTreesFlowers.Duality.IsMaxMatching (shrink G P) (shrinkMatching G P M))
    (n : ℕ) (J : Fin n → AltTree (shrink G P))
    (hJ : ∀ i, ∃ r, IsPlantedTree (shrink G P) (shrinkMatching G P M) (J i) r)
    (hdisj : ∀ i j, i ≠ j → Disjoint (J i).verts (J j).verts)
    (h3 : ∀ (U : Finset V) (hU : U ∈ P.parts), 1 < U.card → ∃ i, ⟨U, hU⟩ ∈ (J i).outer) :
    PathsTreesFlowers.Duality.IsMaxMatching G M := by sorry

end PathsTreesFlowers.Invariance
Source
Edmonds, Paths, trees, and flowers, Canad. J. Math. 17 (1965), p. 459, 4.15 ('The theorem extends as follows'); p. 460, 4.20 (planted forest; 'The theorems on trees presented in this section are essentially the same for forests'); p. 457, 4.9 (shrinking connected H)
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