Documentation

CslibFrontier.Algorithms.Lean.StableMatching.Adachi

Adachi's Tarski fixed-point characterization of stable matchings #

Adachi [Ada00] observed that stable matchings can be characterized as the fixed points of a monotone operator on the complete lattice of pre-matchings (called semi-matchings in [SV07], Section 10.4.1, pp. 259–260). A pre-matching ν : I.PreMatching assigns each proposer p a tentative outcome ν.propPartner p : Option (Fin n) and each receiver r an independent tentative outcome ν.recvPartner r : Option (Fin n) (none representing remaining single, ranked strictly below every acceptable partner).

Ordering I.PreMatching by opposing preferences (ν ≤ ν' when every proposer weakly prefers ν' to ν and every receiver weakly prefers ν to ν'; note the printed typo μ(m) = μ(m) for μ(m) = ν(m) in item (i) on p. 259 of [SV07]) makes I.PreMatching a finite complete lattice. Adachi's operator I.adachiMap : I.PreMatching →o I.PreMatching maps ν to the pre-matching in which each proposer chooses its favourite receiver willing to accept it over ν.recvPartner, and symmetrically for receivers against ν.propPartner.

We prove that I.adachiMap is monotone, that its fixed points are precisely the embedded stable matchings PreMatching.ofMatching I μ (isFixedPt_adachiMap_iff), that Function.fixedPoints I.adachiMap is order-isomorphic to I.Stable (fixedPointsOrderIsoStable), and that Tarski's greatest and least fixed points I.adachiMap.gfp and I.adachiMap.lfp recover proposer-proposing and receiver-proposing deferred acceptance (adachiMap_gfp, adachiMap_lfp).

Main definitions #

Main results #

References #

Option ranks and the complete lattice of pre-matchings #

Rank of a tentative outcome Option (Fin n) for proposer p in Fin (n + 1): some r has rank (I.propRank p r).castSucc < n, and remaining single (none) has worst rank Fin.last n.

Rank of a tentative outcome Option (Fin n) for receiver r in Fin (n + 1): some p has rank (I.recvRank r p).castSucc < n, and remaining single (none) has worst rank Fin.last n.

A pre-matching (or semi-matching, [Ada00]; [SV07], Section 10.4.1, p. 259) assigns each proposer and each receiver an independent tentative partner in Option (Fin n).

  • propPartner : Fin n → Option (Fin n)

    Tentative receiver (or none) held by proposer p.

  • recvPartner : Fin n → Option (Fin n)

    Tentative proposer (or none) held by receiver r.

Instances For

    Embed a one-to-one Matching n as a consistent PreMatching.

    Equivalence between I.PreMatching and (Fin n → (Fin (n + 1))ᵒᵈ) × (Fin n → Fin (n + 1)), orienting proposer ranks so better partners are larger and receiver ranks so worse partners are larger.

    theorem Cslib.Algorithms.Lean.StableMatching.Instance.PreMatching.le_iff {n : ℕ} {I : Instance n} {ν ν' : I.PreMatching} :
    ν ≤ ν' ↔ (∀ (p : Fin n), (I.propOptRank p) (ν'.propPartner p) ≤ (I.propOptRank p) (ν.propPartner p)) ∧ ∀ (r : Fin n), (I.recvOptRank r) (ν.recvPartner r) ≤ (I.recvOptRank r) (ν'.recvPartner r)

    Adachi's monotone operator #

    Receivers willing to accept proposer p at pre-matching ν: those ranking some p at least as well as ν.recvPartner r.

    Proposers willing to accept receiver r at pre-matching ν: those ranking some r at least as well as ν.propPartner p.

    Proposer p's best choice among willingReceivers ν p, or none if none are willing.

    Receiver r's best choice among willingProposers ν r, or none if none are willing.

    Adachi's monotone pre-matching operator ([Ada00]; [SV07], Section 10.4.1, p. 260).

    Fixed-point characterization of stable matchings (Theorem 10.14) #

    For any one-to-one matching μ, its pre-matching PreMatching.ofMatching I μ is a fixed point of I.adachiMap if and only if μ is stable ([Ada00]; [SV07], Section 10.4.1, Theorem 10.14, p. 260).

    Theorem 10.14 ([SV07], Section 10.4.1, p. 260; [Ada00]): a pre-matching ν is a fixed point of I.adachiMap if and only if ν = PreMatching.ofMatching I μ for a stable matching μ.

    Order isomorphism between Tarski's fixed-point set Function.fixedPoints I.adachiMap and the lattice I.Stable of stable matchings ([Ada00]; [SV07], Section 10.4.1, Theorem 10.14, p. 260).

    Tarski's greatest fixed point I.adachiMap.gfp is the proposer-optimal deferred-acceptance matching ([Ada00]; [SV07], Section 10.4.1, Theorem 10.14, p. 260).

    Tarski's least fixed point I.adachiMap.lfp is the receiver-optimal deferred-acceptance matching ([Ada00]; [SV07], Section 10.4.1, Theorem 10.14, p. 260).