Deferred acceptance with incomplete preference lists #
This module implements proposer-proposing deferred acceptance [GS62] for markets with
incomplete preference lists (IncompleteInstance m n) as a total, computable Lean function, and
proves that its output is stable and proposer-optimal.
A state records, for each proposer p, how many receivers have turned p down; p currently
proposes to the receiver at that position of its list, or to nobody once its list is exhausted.
A receiver turns a proposal down when the proposer is unacceptable to it or when it also receives
a proposal from someone it prefers. While some proposer is turned down, the first such proposer
in index order moves on to its next choice. Each step adds one rejection, and the number of
rejections is bounded by the total length of the proposers' lists, so the run stops; at that point
the current proposals form the output matching. Proposers whose lists are exhausted stay
unmatched.
Main definitions #
IncompleteInstance.step,IncompleteInstance.run: one rejection step and the state afterksteps.IncompleteInstance.finalState: the state aftertotalLengthsteps, which is fixed.IncompleteInstance.deferredAcceptance: the proposer-proposing deferred-acceptance matching.IncompleteInstance.receiverDeferredAcceptance: receiver-proposing deferred acceptance.
Main results #
IncompleteInstance.step_run_fixed,IncompleteInstance.sum_finalState_le: the run stops after at mosttotalLengthrejections, the total length of the proposers' lists.IncompleteInstance.isStable_deferredAcceptance,IncompleteInstance.exists_isStable: the output is stable, hence every market with incomplete lists has a stable matching ([RS90], Theorem 2.8).IncompleteInstance.isProposerOptimal_deferredAcceptance: every proposer weakly prefers its deferred-acceptance outcome to its outcome in any stable matching ([RS90], Theorem 2.12; [GS62], Theorem 2, for complete lists), andIncompleteInstance.isReceiverPessimal_deferredAcceptance: receivers are correspondingly worst off.IncompleteInstance.isReceiverOptimal_receiverDeferredAcceptance: the dual statements for receiver-proposing deferred acceptance.
Cost model #
No cost is charged. The number of rejections is at most totalLength; this module does not
charge the cost of finding a rejected proposer or of the surrounding bookkeeping on any machine
model.
References #
The receiver proposer p proposes to after s p rejections: the entry at position s p of
its list, or none once the list is exhausted.
Receiver r turns proposer p down in state s: p is unacceptable to r, or r
receives a proposal from someone it strictly prefers to p.
Instances For
Proposer p is rejected in state s when the receiver it proposes to turns it down.
Instances For
One step of deferred acceptance: the first rejected proposer moves on to its next choice. A state with no rejected proposer is fixed.
The state after k steps, starting with every proposer at its first choice.
The total length of the proposers' lists, which bounds the number of rejections.
A step either fixes a state with no rejected proposer or advances one rejected proposer.
The deferred-acceptance invariant: no proposer has passed the end of its list, and every
receiver that proposer p has passed still turns p down.
The initial state satisfies the invariant.
Steps preserve the invariant.
One more round of the run is one more step.
Every state of the run satisfies the invariant.
The total number of rejections in an invariant state is at most totalLength.
Deferred acceptance stops after at most totalLength rejections.
The state reached by deferred acceptance.
The final state satisfies the invariant.
Deferred acceptance makes at most totalLength rejections.
No proposer is rejected in the final state.
Distinct proposers end at distinct receivers.
The proposer-proposing deferred-acceptance matching: each proposer is matched to the receiver it proposes to in the final state, and is unmatched if its list is exhausted.
Proposer p ranks its deferred-acceptance outcome no worse than its position after the final
number of rejections.
The deferred-acceptance matching is individually rational.
Deferred acceptance outputs a stable matching ([RS90], Theorem 2.8).
Every market with incomplete lists has a stable matching ([RS90], Theorem 2.8).
Proposer-optimality #
Proposer-optimality ([RS90], Theorem 2.12): every proposer weakly prefers its deferred-acceptance outcome to its outcome in any stable matching.
Deferred acceptance is the proposer-optimal stable matching.
Deferred acceptance is receiver-pessimal.
Deferred acceptance is the unique proposer-optimal stable matching.
Receiver-proposing deferred acceptance #
Receiver-proposing deferred acceptance: run deferred acceptance on the swapped market.
Receiver-proposing deferred acceptance is receiver-optimal.
Receiver-proposing deferred acceptance is proposer-pessimal.