The Greedy Algorithm builds a set one element at a time, always adding the heaviest element that keeps the set feasible. For the forests of a graph it finds a maximum-weight forest (Kruskal's algorithm), but for the matchings of a graph it can fail: on a 4-cycle with edge weights 9, 7, 8, 3 it picks the edges of weight 9 and 3 when the edges of weight 7 and 8 are better. Matroids are the abstraction of the families on which greedy works. They were introduced by Whitney (1935); the optimality of greedy on matroids is due to Rado (1957) and was rediscovered by Edmonds (1970), who also gave the linear description of the convex hull of independent sets that is the goal of this mission.
This mission formalizes §8.1 of Cook, Cunningham, Pulleyblank and Schrijver, Combinatorial Optimization (Wiley, 1998), pp. 273–280. It is the twelfth mission of a series on the book; later missions treat matroid intersection (§8.3) and the matroid intersection polytope (§8.5), which build on the objects defined here.
Timeline:
Let be a finite set and a family of subsets of , the independent sets. The pair is a matroid if
A pair satisfying (M0) and (M1) only is an independence system. A maximal independent subset of is a basis of ; its size is the rank . The bases of are the bases of .
For weights the weight of is , and for and , . The characteristic vector of has for and otherwise.
The Greedy Algorithm: set ; while there is with and , choose such an with maximum and replace by . Ties are broken arbitrarily.
The linear program attached to a matroid with rank function is
For every matroid with rank function ,
Both inclusions are part of the goal.
The Matroid Polytope Theorem turns the combinatorial problem of finding a maximum-weight independent set into a linear program over an explicit inequality system, and it is the prototype for the polyhedral descriptions that follow in the book: the forest polytope (Theorem 8.8), from which the spanning-tree description of Theorem 2.8 follows, and the matroid intersection polytope (Theorem 8.20). Theorem 8.3 characterizes matroids by an algorithmic property, which is why matroids appear wherever greedy methods are analysed. Corollaries 8.6 and 8.7 give local certificates of optimality, used in Section 8.5 for weighted matroid intersection.
All results are classical and proved in the book. None is formalized on Prove2Me, and Mathlib, which has a substantial Matroid library (bases, rank, closure, duality), contains neither the greedy theorem nor the matroid polytope. A formalization supplies the polyhedral layer missing from that library and the bridge between the axioms (M0)–(M2) and linear programming.
The inclusion of the convex hull in the polyhedron is immediate: . The reverse inclusion is the content, and the obvious attempt, writing a feasible directly as a convex combination of characteristic vectors, has no evident inductive structure: the constraint system has one inequality per subset of , and a fractional can be tight on many overlapping sets at once. Any route has to relate the exponential system to the combinatorics of (M2), and has to pass from statements about linear objectives to an equality of sets in ; Mathlib contains neither LP duality for such a system nor the polytope-theoretic facts linking optimal vertices to convex hulls in the form needed.
For Theorem 8.3 the nontrivial direction is the converse: if (M2) fails on some set , one must produce weights for which greedy goes wrong, and the formal statement must account for the nondeterminism of tie-breaking.
α; subsets are Finset α; the family is a predicate I : Finset α → Prop. (M0)–(M1) are the published definition SubsamplingSM.Offline.IsIndepSystem; IsMatroid adds (M2) literally (any two bases of the same set have the same size). This is the book's axiom system, not Mathlib's Matroid, to which it can be bridged.rank I A is the largest size of an independent subset of , which for a matroid is the size of every basis of .α → ℝ; constraints of (8.1) are imposed for every subset ; the rank is cast to ℝ.GreedyStep allows every admissible choice among ties, and IsGreedyOutput is any set reachable from at which the loop stops. Theorems 8.2 and 8.4 are stated for every run. Theorem 8.3 is stated in both readings (every run, some run), which covers every tie-breaking rule.ends : E → Sym2 V), loops and parallel edges allowed; matchings contain no loops.Useful contributions: a bridge from IsMatroid to Mathlib's IndepMatroid/Matroid (which gives rank submodularity and exchange properties), LP weak duality and complementary slackness for (8.1), and a lemma reducing equality of a polytope with a convex hull to optimality of hull points for every linear objective. These are reusable in the matroid intersection missions of this series.
namespace CombOpt.MatroidPolytope
/-- **Theorem 8.5: Edmonds' Matroid Polytope Theorem.**
Cook, Cunningham, Pulleyblank & Schrijver, *Combinatorial Optimization* (Wiley, 1998), Theorem 8.5, p. 279 (PDF p. 286): "Let (S, I) be a matroid with rank function r. The convex
hull of characteristic vectors of independent sets is {x ∈ R^S : x ≥ 0, x(A) ≤ r(A) for all
A ⊆ S}."
For a matroid `I` on a finite ground set `α`, the convex hull in `ℝ^α` of the characteristic
vectors of the independent sets equals `rankPolytope I`.
**Formalization Note.** The characteristic vector of `J` is the published
`OnlineCRS.Combine.indicatorVec J` (`1` on `J`, `0` off `J`). -/
theorem convexHull_charVec_eq_rankPolytope {α : Type*} [Fintype α] [DecidableEq α]
(I : Finset α → Prop) (hI : IsMatroid I) :
convexHull ℝ {x : α → ℝ | ∃ J : Finset α, I J ∧ x = OnlineCRS.Combine.indicatorVec J} =
rankPolytope I := by sorry
end CombOpt.MatroidPolytope
Let be a matroid on a finite set with rank function . Then the convex hull of the characteristic vectors of the independent sets is
where .
The theorem (Edmonds 1970) gives a complete linear description of the matroid polytope, so that maximum-weight independent set problems are linear programs over an explicit system; it is the model for the matroid intersection polytope and many later polyhedral results.
Differences from the source: none.
No open leaves. Every sub-goal is proved or awaiting decomposition.