Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5 (corrected: i∉ABi\notin A_Bi∈/AB​) — a seller keeping costs at most a sale

Proved
TwoSidedPI.lemma_5

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

double-auctionmatroidmechanism-designp2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-v1prophet-inequality

Let MB=(B,IB)\mathcal M_B=(B,\mathcal I_B)MB​=(B,IB​) be a matroid on a finite set of buyers and v≥0v\ge0v≥0 a profile of buyer values. Fix a buyer i∉ABi\notin A_Bi∈/AB​ and r∈Nr\in\mathbb Nr∈N with AB∪{i}∈IBA_B\cup\{i\}\in\mathcal I_BAB​∪{i}∈IB​ and ∣AB∪{i}∣≤r|A_B\cup\{i\}|\le r∣AB​∪{i}∣≤r. Then

v(OPTB(v∣AB,r))−v(OPTB(v∣AB∪{i},r)) ≥ v(OPTB(v∣AB,r))−v(OPTB(v∣AB,r−1)).v\big(\mathrm{OPT}_B(v\mid A_B,r)\big)-v\big(\mathrm{OPT}_B(v\mid A_B\cup\{i\},r)\big)\ \ge\ v\big(\mathrm{OPT}_B(v\mid A_B,r)\big)-v\big(\mathrm{OPT}_B(v\mid A_B,r-1)\big).v(OPTB​(v∣AB​,r))−v(OPTB​(v∣AB​∪{i},r)) ≥ v(OPTB​(v∣AB​,r))−v(OPTB​(v∣AB​,r−1)).

In the analysis of Mechanism 1 this bounds the loss in the buyers-only optimum when a seller keeps her item (rrr drops by one) by the loss when the item is sold to buyer iii.

Differences from the source:

  • correction: no condition on whether i∈ABi\in A_Bi∈AB​ → i∉ABi\notin A_Bi∈/AB​; reason: the printed lemma fails for i∈ABi\in A_Bi∈AB​: free matroid on {i,k}\{i,k\}{i,k}, v=(0,1)v=(0,1)v=(0,1), AB={i}A_B=\{i\}AB​={i}, r=2r=2r=2 gives 0≥10\ge10≥1; the mechanism only prices buyers outside ABA_BAB​
  • encoding: a valuation profile v\mathbf vv of all agents (non-negative) → the buyers' values v : B → ℝ with 0 ≤ v, and M.E = univ; reason: only buyers' values enter OPTB\mathrm{OPT}_BOPTB​; same instances
Preamble
import Mathlib
import Definitions.Def_TwoSidedPI_OptB
Formal statement
namespace TwoSidedPI

/-- Lemma 5 (Braun, Kesselheim, arXiv:2105.15032v1, p.34), corrected with `i ∉ A_B`: for a buyer
`i ∉ A_B` with `A_B ∪ {i} ∈ ℐ_B` and `|A_B ∪ {i}| ≤ r`,
`v(OPT_B(v|A_B, r)) − v(OPT_B(v|A_B ∪ {i}, r)) ≥ v(OPT_B(v|A_B, r)) − v(OPT_B(v|A_B, r − 1))`.

**Formalization Note** The printed lemma omits `i ∉ A_B` and is false without it (free matroid on
`{i, k}`, `v = (0, 1)`, `A_B = {i}`, `r = 2`: `0 ≥ 1`). `r − 1` is natural-number subtraction;
the hypotheses give `r ≥ 1`. The matroid is on all of `B` (`M.E = univ`) and the valuation profile
is nonnegative. -/
theorem lemma_5 {B : Type*} [Fintype B] [DecidableEq B] (M : Matroid B) (hE : M.E = Set.univ)
    (v : B → ℝ) (hv : ∀ k, 0 ≤ v k) (i : B) (AB : Finset B) (r : ℕ)
    (hi : i ∉ AB) (hind : M.Indep ↑(insert i AB)) (hcard : (insert i AB).card ≤ r) :
    optB M v AB r - optB M v (insert i AB) r ≥ optB M v AB r - optB M v AB (r - 1) := by sorry

end TwoSidedPI
Source
Braun, Kesselheim, Truthful Mechanisms for Two-Sided Markets via Prophet Inequalities, arXiv:2105.15032v1, Lemma 5, p.34
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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