Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

4.1–4.2, p. 454 — an alternating tree has one more outer than inner vertex; its maximum matchings leave exactly one outer vertex exposed

Proved
PathsTreesFlowers.Duality.lemma_4_2

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

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

Let JJJ be an alternating tree in a finite graph GGG, with inner vertices III and outer vertices OOO.

  1. (4.1) JJJ contains one more outer vertex than inner vertices: ∣O∣=∣I∣+1|O| = |I| + 1∣O∣=∣I∣+1.
  2. (4.2) For each outer vertex vvv of JJJ there is a unique maximum matching of JJJ which leaves vvv exposed and vvv the only exposed vertex in JJJ.
  3. (4.2) Every maximum matching of JJJ is one of these: it leaves exactly one vertex of JJJ exposed, and that vertex is outer.

In particular the maximum cardinality of a matching of an alternating tree equals the number of its inner vertices; this count is used in 4.17.

Formalization Note A matching of JJJ is a matching of GGG using only edges of JJJ; "exposed in JJJ" refers to the vertices of JJJ.

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

theorem lemma_4_2 {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : EdmondsMatching65.Polyhedron.Graph V E)
    (J : AltTree G) :
    J.outer.card = J.inner.card + 1 ∧
    (∀ v ∈ J.outer, ∃! MJ : Finset E, IsMaxMatchingOn G J.edges MJ ∧
        ∀ w ∈ J.verts, (IsExposed G MJ w ↔ w = v)) ∧
    (∀ MJ : Finset E, IsMaxMatchingOn G J.edges MJ →
        ∃ v ∈ J.outer, ∀ w ∈ J.verts, (IsExposed G MJ w ↔ w = v)) := by sorry

end PathsTreesFlowers.Duality
Source
Edmonds, Paths, trees, and flowers, Canad. J. Math. 17 (1965), p. 454, 4.1 (second sentence) and 4.2
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