Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.13, p. 20 — winner, loser and unsaturated-vertex conditions for an MCMWM

Proved
ImprovedMMS.Additive.lemma_3_13

by mikedeng1 · Oct 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

bipartite-matchingfair-divisionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1weighted-matching

Let HHH be a weighted bipartite graph with sides X^\hat{\mathcal X}X^, Y^\hat{\mathcal Y}Y^​ and weights www, and let M={(x^1,y^1),…,(x^k,y^k)}M=\{(\hat x_1,\hat y_1),\dots,(\hat x_k,\hat y_k)\}M={(x^1​,y^​1​),…,(x^k​,y^​k​)} be an MCMWM of HHH. Let T⊆{y^1,…,y^k}T\subseteq\{\hat y_1,\dots,\hat y_k\}T⊆{y^​1​,…,y^​k​} be non-empty, and let M(T)M(T)M(T) be the set of vertices matched by MMM to the vertices of TTT. Then:

  1. some y^j∈T\hat y_j\in Ty^​j​∈T is a winner in TTT: w(x^j,y^j)≥w(x^i,y^j)w(\hat x_j,\hat y_j)\ge w(\hat x_i,\hat y_j)w(x^j​,y^​j​)≥w(x^i​,y^​j​) for all x^i∈M(T)\hat x_i\in M(T)x^i​∈M(T) with (x^i,y^j)∈E(H)(\hat x_i,\hat y_j)\in E(H)(x^i​,y^​j​)∈E(H);
  2. some y^j∈T\hat y_j\in Ty^​j​∈T is a loser in TTT: w(x^i,y^i)≥w(x^j,y^i)w(\hat x_i,\hat y_i)\ge w(\hat x_j,\hat y_i)w(x^i​,y^​i​)≥w(x^j​,y^​i​) for all y^i∈T\hat y_i\in Ty^​i​∈T with (x^j,y^i)∈E(H)(\hat x_j,\hat y_i)\in E(H)(x^j​,y^​i​)∈E(H);
  3. for any y^i∈T\hat y_i\in Ty^​i​∈T and any vertex x^j∈X^\hat x_j\in\hat{\mathcal X}x^j​∈X^ unsaturated by MMM with (x^j,y^i)∈E(H)(\hat x_j,\hat y_i)\in E(H)(x^j​,y^​i​)∈E(H),
w(x^i,y^i) ≥ w(x^j,y^i).w(\hat x_i,\hat y_i)\ \ge\ w(\hat x_j,\hat y_i).w(x^i​,y^​i​) ≥ w(x^j​,y^​i​).

Applied to the value graph, it shows that assigning goods by an MCMWM produces a cycle-envy-free set of semi-satisfied agents.

Formalization Note x^i\hat x_ix^i​ denotes the mate of y^i\hat y_iy^​i​, written (xi, yi) ∈ Mt. The page says "for every subset TTT"; (i) and (ii) assert the existence of a vertex of TTT and fail for T=∅T=\emptysetT=∅, so TTT is non-empty (condition (iii) holds for every TTT). The three conditions are stated as one conjunction.

Preamble
import Mathlib
import Definitions.Def_ImprovedMMS_Additive_Bipartite
Formal statement
namespace ImprovedMMS.Additive

/-- Lemma 3.13 (p. 20): let `Mt` be an MCMWM of the weighted bipartite graph with sides `X`, `Y`,
edges `E ⊆ X × Y` and weights `w`, and let `T` be a non-empty set of `Y`-vertices saturated by
`Mt` (the mate of `y` is the `x` with `(x, y) ∈ Mt`). Then
(i) some `y_j ∈ T` is a winner: `w(x_j, y_j) ≥ w(x_i, y_j)` for every mate `x_i` of a vertex of
`T` with `(x_i, y_j) ∈ E`;
(ii) some `y_j ∈ T` is a loser: `w(x_i, y_i) ≥ w(x_j, y_i)` for every `y_i ∈ T` with
`(x_j, y_i) ∈ E`;
(iii) `w(x_i, y_i) ≥ w(x_j, y_i)` for every `y_i ∈ T` and every unsaturated `x_j ∈ X` with
`(x_j, y_i) ∈ E`. -/
theorem lemma_3_13 {α β : Type*} [DecidableEq α] [DecidableEq β]
    (X : Finset α) (Y : Finset β) (E : Finset (α × β)) (hE : E ⊆ X ×ˢ Y) (w : α → β → ℝ)
    (Mt : Finset (α × β)) (hM : IsMCMWM E w Mt)
    (T : Finset β) (hT : T ⊆ Mt.image Prod.snd) (hTne : T.Nonempty) :
    (∃ yj ∈ T, ∀ xj : α, (xj, yj) ∈ Mt → ∀ yi ∈ T, ∀ xi : α, (xi, yi) ∈ Mt →
        (xi, yj) ∈ E → w xi yj ≤ w xj yj) ∧
    (∃ yj ∈ T, ∀ xj : α, (xj, yj) ∈ Mt → ∀ yi ∈ T, ∀ xi : α, (xi, yi) ∈ Mt →
        (xj, yi) ∈ E → w xj yi ≤ w xi yi) ∧
    (∀ yi ∈ T, ∀ xi : α, (xi, yi) ∈ Mt → ∀ xj ∈ X, (∀ y : β, (xj, y) ∉ Mt) →
        (xj, yi) ∈ E → w xj yi ≤ w xi yi) := by sorry

end ImprovedMMS.Additive
Source
Ghodsi, Hajiaghayi, Seddighin, Seddighin & Yami, Fair Allocation of Indivisible Goods: Improvement and Generalization, arXiv:1704.00222v3, p. 20, Lemma 3.13 (MCMWM, p. 20)
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 19, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me