Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p. 22 — if Algorithm 2 assigns item i to customer t, then (1 − e^{−αᵢ⁽¹⁾})(Yᵢ + Zₜ) ≤ rᵢ^{(jₜ,ᵢ)}

Proved
MultiPriceOnline.Ranking.lemma_2

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

competitive-ratioonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1primal-dualranking

Consider Multi-price Ranking (Algorithm 2) in the deterministic case: item iii has price set Pi={ri(1)<⋯<ri(mi)}\mathcal P_i=\{r_i^{(1)}<\dots<r_i^{(m_i)}\}Pi​={ri(1)​<⋯<ri(mi​)​} with booking limits αi(1),…,αi(mi)\alpha_i^{(1)},\dots,\alpha_i^{(m_i)}αi(1)​,…,αi(mi​)​ (Proposition 1), every pt,i(j)∈{0,1}p^{(j)}_{t,i}\in\{0,1\}pt,i(j)​∈{0,1}, seeds W∈[0,1]nW\in[0,1]^nW∈[0,1]n, and an arbitrary tie-breaking rule that returns a maximizer of (23). Let YiY_iYi​ and ZtZ_tZt​ be the dual variables set by the run. If the run assigns item iii to customer ttt, then

(1−e−αi(1)) (Yi+Zt) ≤ ri(jt,i).\bigl(1-e^{-\alpha_i^{(1)}}\bigr)\,(Y_i+Z_t)\ \le\ r_i^{(j_{t,i})}.(1−e−αi(1)​)(Yi​+Zt​) ≤ ri(jt,i​)​.

Summed over the assigned pairs, this bounds ∑iYi+∑tZt\sum_iY_i+\sum_tZ_t∑i​Yi​+∑t​Zt​ by the revenue divided by min⁡iF(Pi)\min_i F(\mathcal P_i)mini​F(Pi​), which is one half of the proof of Theorem 2.

Formalization Note The paper states the inequality "w.p.1" because Yi=ΦPi′(Wi)Y_i=\Phi'_{\mathcal P_i}(W_i)Yi​=ΦPi​′​(Wi​) is undefined at the segment borders. Here Φ′\Phi'Φ′ is the explicit derivative of (9) on the segment ℓ(Wi)\ell(W_i)ℓ(Wi​) (the right derivative at a border), and the inequality is claimed for every seed vector in [0,1]n[0,1]^n[0,1]n, which implies the almost-sure statement.

Preamble
import Mathlib
import Definitions.Def_MultiPriceOnline_Ranking_LP
import Definitions.Def_MultiPriceOnline_Ranking_Setting
Formal statement
namespace MultiPriceOnline.Ranking

/-- Lemma 2 (p. 22): if Algorithm 2 assigns item `i` to customer `t`, then
`(1 - e^{-α_i^{(1)}}) (Y_i + Z_t) ≤ r_i^{(j_{t,i})}`. Stated for every seed vector in `[0, 1]ⁿ`
(not only almost surely), with `Y_i` the explicit (right) derivative `PhiDeriv`. -/
theorem lemma_2 {n T : ℕ} (m : Fin n → ℕ) (r α : Fin n → ℕ → ℝ)
    (hr : ∀ i, IsPriceSet (m i) (r i)) (hα : ∀ i, MultiPriceOnline.Balance.IsBookingLimits (m i) (r i) (α i))
    (p : Fin T → Fin n → ℕ → ℝ) (hp : IsDeterministic m p)
    (sel : Selector n T) (hsel : IsArgmaxSelector sel)
    (W : Fin n → ℝ) (hW : ∀ i, W i ∈ Set.Icc (0 : ℝ) 1)
    (i : Fin n) (t : Fin T) (hti : run2 m r α p sel Finset.univ W t = some i) :
    (1 - Real.exp (-α i 1)) *
        (Yi m r α p sel Finset.univ W i + Zt m r α p sel Finset.univ W t) ≤
      MultiPriceOnline.Balance.pr (r i) (jt m (p t) i) := by sorry

end MultiPriceOnline.Ranking
Source
Ma, Simchi-Levi, Algorithms for Online Matching, Assortment, and Pricing with Tight Weight-dependent Competitive Ratios, arXiv:1905.04770v1, p. 22, Lemma 2 (proof: App. C, p. 45)
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 10, 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