Matching.IsBlocking
defimported Lean
A pair (m, w) is a blocking pair for matching μ if both m and w strictly prefer each other to their current partners. [MSZ 22.5]
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {M W : Type*} in def Matching.IsBlocking (market : MatchingMarket M W) (μ : Matching M W) (m : M) (w : W) : Prop
- Defined in
- EconCSLib, `Matching.IsBlocking`
- 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.Matching.IsBlocking← Matching.IsBlocking (EconCSLib/MarketDesign/Matching/Basic.lean:73): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 5
- strictStrict preference derived from a weak preference relation.
- MatchingA matching is a partial bijection between
MandW.matchM iis the partner ofi ∈ M(ornoneif unmatched).matchW jis the… - instCoeFunPrefForallForallPropinstCoeFunPrefForallForallProp
- MatchingMarketA two-sided matching market.
MandWare the two sides (e.g., men and women, hospitals and residents). Each agent has a preference… - PrefA bundled weak preference relation. Use this interface when several agents may rank the same outcome type differently. Use…
- Used by 4
- Matching.IsStableA matching is stable if it has no blocking pair. [MSZ 22.5]
- GS.stableMeet_isStableThe meet of two stable matchings is stable.
- GS.stableJoin_isStableThe join of two stable matchings is stable.
- galeShapley_isStableGale-Shapley stability: the DA output has no blocking pair. The statement is in the *market* frame (
IsBlocking … (i : M) (j : W)).…
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {M W : Type*} in /-- A pair `(m, w)` is a blocking pair for matching `μ` if both `m` and `w` strictly prefer each other to their current partners. [MSZ 22.5] -/ def Matching.IsBlocking (market : MatchingMarket M W) (μ : Matching M W) (m : M) (w : W) : Prop := strict (market.prefM m) (some w) (μ.matchM m) ∧ strict (market.prefW w) (some m) (μ.matchW w)