GS.matchW_wPartner
theoremverifiedformalizationimported Lean
GS.matchW_wPartner
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open GS in variable {n : ℕ} (w m : Preferences n) in variable {w m} in @[simp] lemma GS.matchW_wPartner (μ : Matching (Fin n) (Fin n)) (hμ : Matching.IsStable (MatchingMarket.ofEquivData w m) μ) (j : Fin n) : μ.matchW j = some (wPartner μ hμ j)
- Formalizes
- EconCSLib, `GS.matchW_wPartner`
- Lean proof
- By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at
1a88f809b538(Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.GS.matchW_wPartner← GS.matchW_wPartner (EconCSLib/MarketDesign/Matching/Lattice.lean:93): verbatim
- Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- Matching.IsStableA matching is stable if it has no blocking pair. [MSZ 22.5]
- MatchingA matching is a partial bijection between
MandW.matchM iis the partner ofi ∈ M(ornoneif unmatched).matchW jis the… - instCoeFunPrefForallForallPropinstCoeFunPrefForallForallProp
- GS.wPartnerThe woman partnered to man
junder a stable matchingμ(total, since a stable matching of the balanced market is perfect). - GS.PreferencesList-based preferences:
prefs iis a full permutation ofFin n, ordered from most to least preferred. - MatchingMarket.ofEquivDataBuild a
MatchingMarket (Fin n) (Fin n)from list-based preference data.some j ≻ some kiffjappears earlier in the list;noneis…
- Used by 44
- GS.joinWoman_le_rightGS.joinWoman_le_right
- GS.joinWoman_mem_menIf
iis manj's join-partner thenjis one ofi's two men. - GS.StableMatching.partnerMan
j's partner under a stable matching. - GS.meetMan_eq_orGS.meetMan_eq_or
- GS.prefM_strictGS.prefM_strict
- GS.stableJoin_matchMGS.stableJoin_matchM
- GS.StableMatching.gsStable_greatestThe GS output is the greatest stable matching in the men-preference order: every man weakly prefers his GS partner to his partner in…
- GS.stableMeet_isStableThe meet of two stable matchings is stable.
- GS.stableMeetThe meet
μ ∧ ν: each woman keeps her more-preferred man; each man keeps his less-preferred woman. - GS.stableMeet_matchMGS.stableMeet_matchM
- GS.stableMeet_matchWGS.stableMeet_matchW
- GS.stableMeet_ge_leftGS.stableMeet_ge_left
- GS.meetEquiv_symm_eq_orThe meet woman of man
jis one of his two partners (his worse). - GS.StableMatching.gsStable_isGreatest
gsStableis the greatest element of the stable-matching lattice. - GS.meetMan_le_leftGS.meetMan_le_left
- GS.stableMeet_ge_rightGS.stableMeet_ge_right
- GS.joinWoman_injectiveThe join woman-assignment is injective.
- GS.matchM_mPartnerGS.matchM_mPartner
- GS.wPartner_stableMeetGS.wPartner_stableMeet
- GS.joinWoman_worse_rightDual of
joinWoman_worse_leftwith the roles ofμ,νswapped. - GS.meetMan_mem_womenGS.meetMan_mem_women
- GS.StableMatching.gsStableThe men-proposing Gale–Shapley output, as an element of the lattice of stable matchings.
- GS.meetManWoman
i's more-preferred man acrossμandν. - GS.stableJoinThe join
μ ∨ ν: each man keeps his more-preferred of the two partners; each woman keeps her less-preferred man. - GS.wPartner_stableJoinGS.wPartner_stableJoin
- GS.joinWoman_le_leftGS.joinWoman_le_left
- GS.stableJoin_isStableThe join of two stable matchings is stable.
- GS.stableJoin_matchWGS.stableJoin_matchW
- GS.wPartner_eq_iffThe man-of and woman-of partner maps are inverse to each other.
- GS.joinEquivThe join woman-assignment packaged as an equivalence (injective on the finite
Fin n, hence bijective). - GS.meetMan_worse_rightGS.meetMan_worse_right
- GS.meetMan_worse_leftGS.meetMan_worse_left
- GS.meetEquivThe meet man-assignment packaged as an equivalence.
- GS.joinWoman_worse_leftIf
iis the join-partner of herμ-manj, theniweakly prefers herν-man toj(sojis her worse man). - GS.opposed_preferences_womenDual of
opposed_preferences: if womanistrictly prefers manmito hercandidate-manmi', thenmistrictly prefers his… - GS.joinWoman_eq_orGS.joinWoman_eq_or
- GS.StableMatching.instPartialOrderMen-preference order:
μ ≤ νiff every man weakly prefers hisν-partner to hisμ-partner (smalleridxOf= more preferred). - GS.StableMatching.matchW_partnerGS.StableMatching.matchW_partner
- GS.StableMatching.instLatticeConway–Knuth lattice. The stable matchings of a one-to-one market form a lattice under the men-preference order: the join gives every…
- GS.meetMan_le_rightGS.meetMan_le_right
- GS.StableMatchingThe type of stable matchings of a one-to-one market.
- GS.joinWomanMan
j's more-preferred partner across stable matchingsμandν. - GS.prefW_strictGS.prefW_strict
- GS.meetMan_injectiveGS.meetMan_injective
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open GS in variable {n : ℕ} (w m : Preferences n) in variable {w m} in @[simp] lemma GS.matchW_wPartner (μ : Matching (Fin n) (Fin n)) (hμ : Matching.IsStable (MatchingMarket.ofEquivData w m) μ) (j : Fin n) : μ.matchW j = some (wPartner μ hμ j) := (Option.some_get _).symm