Rural hospitals theorem, Part 2
ProvedRuralHospitals.rural_hospitals_part2Consider a many-to-one matching market with a finite set of doctors and a finite set of hospitals, where hospital has positions and all preferences are strict. For a matching , write for the set of doctors assigned to . Let and be stable matchings and let be a hospital with an empty position under , i.e. . Then
This is Part 2 of the rural hospitals theorem (Roth 1986): an under-subscribed hospital receives exactly the same set of doctors in every stable matching.
Formalization Note Uses the model RuralHospitals.Market (definition RuralHospitals_Market): finite types D (doctors) and H (hospitals); strict preferences given by injective rank functions on Option H / Option D (smaller rank = preferred, none = unmatched / empty position); responsive hospital preferences; capacities capacity : H → ℕ. An assignment is a map μ : D → Option H, and assigned μ h is the finite set of doctors placed at h.
import Mathlib import Definitions.Def_RuralHospitals_Market
namespace RuralHospitals
theorem rural_hospitals_part2 {D H : Type*} [Fintype D] [Fintype H] [DecidableEq H]
(M : Market D H) (μ ν : Assignment D H) (hμ : M.IsStable μ) (hν : M.IsStable ν)
(h : H) (hh : (assigned μ h).card < M.capacity h) :
assigned ν h = assigned μ h := by sorry
end RuralHospitals
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.