Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

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

Proved
PathsTreesFlowers.Invariance.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 I(J)I(J)I(J) and outer vertices O(J)O(J)O(J). Then:

  1. JJJ contains one more outer vertex than inner vertices:
∣O(J)∣=∣I(J)∣+1;|O(J)| = |I(J)| + 1;∣O(J)∣=∣I(J)∣+1;
  1. for each outer vertex vvv of JJJ there is a unique maximum matching of JJJ which leaves vvv exposed and leaves no other vertex of JJJ exposed;
  2. every maximum matching of JJJ is one of these: it leaves exactly one vertex of JJJ exposed, and that vertex is outer.

This is the basic structural fact about alternating trees: the maximum matchings of a tree are indexed by its outer vertices, and their cardinality is the number of inner vertices. It underlies planted trees (4.3), the Hungarian-tree argument (4.17) and the proof of 6.2.

Formalization Note A matching of JJJ is a matching of GGG contained in the edge set of JJJ; "exposed in JJJ" is exposure for that matching, restricted to vertices of JJJ.

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

/-- 4.1 (count) and 4.2, p. 454: an alternating tree has one more outer vertex than inner
vertices; for each outer vertex `v` there is a unique maximum matching of the tree leaving `v`
and only `v` exposed in the tree; every maximum matching of the tree is one of these. -/
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, ∃! N : Finset E,
      IsMaxMatchingIn G J.toSub N ∧ ∀ w ∈ J.verts, (PathsTreesFlowers.Duality.IsExposed G N w ↔ w = v)) ∧
    (∀ N : Finset E, IsMaxMatchingIn G J.toSub N →
      ∃ v ∈ J.outer, ∀ w ∈ J.verts, (PathsTreesFlowers.Duality.IsExposed G N w ↔ w = v)) := by sorry

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