Stable matchings form a finite distributive lattice
ProvedStableMatching.stable_matchings_distribLatticegale-shapleystable-matching
For every instance with men and women, there is a distributive lattice structure on the (finite) set of stable matchings whose order is: iff every man weakly prefers to , i.e. for all .
Preamble
import Mathlib import Definitions.Def_StableMatching_GaleShapley
Formal statement
namespace StableMatching
theorem stable_matchings_distribLattice {n : ℕ} (I : Instance n) :
∃ L : DistribLattice {μ : Matching n // I.IsStable μ},
∀ μ ν : {μ : Matching n // I.IsStable μ},
L.le μ ν ↔ ∀ m : Fin n, I.manRank m (μ.1 m) ≤ I.manRank m (ν.1 m) := by sorry
end StableMatching
Source
Wikipedia, "Stable matching problem" (https://en.wikipedia.org/wiki/Stable_matching_problem), sections "Stable matching problem" (introduction), "Different stable matchings" and "Algorithmic solution"; primary reference: D. Gale, L. S. Shapley, College Admissions and the Stability of Marriage, Amer. Math. Monthly 69 (1962) 9–14, doi:10.2307/2312726.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.