A male-optimal stable matching exists
ProvedAGT.male_optimal_existsSome stable matching is weakly best for every man simultaneously — Gale–Shapley's optimal assignment (1962, Theorem 2). In every finite marriage market with strict preferences and there is a stable such that for every stable and every man , either or strictly prefers to .
A note on the rendering and the attribution. Theorem 10.11 of Algorithmic Game Theory states the male-optimality of the Deferred Acceptance outcome in the book's own, weaker form: no stable alternative makes every man weakly and some man strictly better off (p. 257). The man-by-man form asserted here is Gale–Shapley's original notion and implies the book's outright; conversely, for finite strict markets any Pareto-undominated stable matching coincides with the man-by-man optimum (which exists), so the two definitions carve out the same matchings — but that equivalence is a theorem, which is why this statement is attributed to Gale–Shapley 1962 and only rendered from the book's Theorem 10.11. With strict preferences the male-optimal stable matching is unique — two of them would be weakly preferred to each other by every man — which is what lets the capstone speak of the male-optimal mechanism. This statement is deliberately freed of the algorithm; any construction of Deferred Acceptance proves it.
import Definitions.Def_agt_matching
namespace AGT
/-- A male-optimal stable matching exists: there is a stable matching that
every man weakly prefers to every other stable matching — the male-propose
Deferred Acceptance outcome. The man-by-man form of optimality asserted
here is Gale–Shapley's (1962, Theorem 2); Theorem 10.11 of *Algorithmic
Game Theory* states the equivalent no-Pareto-improvement form — no stable
alternative makes every man weakly and some man strictly better off —
which this statement implies outright and, for finite strict markets,
also follows from (any Pareto-undominated stable matching coincides with
the man-by-man optimum). -/
theorem male_optimal_exists {M W : Type*} [Fintype M] [Fintype W]
(PM : M → W → W → Prop) (PW : W → M → M → Prop)
(hM : IsPrefProfile PM) (hW : IsPrefProfile PW)
(hcard : Nonempty (M ≃ W)) :
∃ μ : M ≃ W, IsMaleOptimal PM PW μ := by
sorry
end AGTRead-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: male_optimal_exists
Setting and hypotheses. Let and be two finite types (either or both may be empty). The data and hypotheses are exactly as in the companion existence statement:
- assigns to each a binary relation on ; assigns to each a binary relation on (write , resp. , when the relation holds of that ordered pair);
- : every is a strict total order on (trichotomous, irreflexive, transitive); : every is a strict total order on ;
- : the type of bijections is nonempty — some bijection between and merely exists (with finiteness, equivalently ).
Conclusion. There exists a bijection (an Equiv, i.e. a map with two-sided inverse ) satisfying the conjunction of the following two clauses (this unfolds the custom predicate IsMaleOptimal):
- is a stable matching (unfolding
IsStableMatching/IsBlockingPair): no pair blocks it,
- man-by-man weak dominance over every stable matching: for every bijection that is itself a stable matching in the same sense, and for every man ,
i.e. 's partner under equals his partner under , or 's relation holds of the ordered pair ('s assignment, 's assignment).
Remarks on scope and edge cases. Clause 2 quantifies over all stable bijections , including (where the first disjunct is trivial). No condition of any kind is imposed on the women's side beyond stability — there is no claim of woman-pessimality. The theorem asserts mere existence (, not ); it does not assert uniqueness of a male-optimal matching, nor name a construction. If and are both empty, the empty bijection witnesses the claim vacuously; if exactly one of them is empty, fails and the statement is vacuously true.
Confirmed by the mission captain (proposal self-audit).