Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(19), p. 19 — weak duality: every feasible solution of (5) is bounded by every feasible dual solution of (19)

Proved
MultiPriceOnline.Ranking.weak_duality

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

lp-dualityonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1weak-duality

Fix a setup — nnn items with inventories kik_iki​ and prices ri(1),…,ri(mi)r_i^{(1)},\dots,r_i^{(m_i)}ri(1)​,…,ri(mi​)​ — and an arrival sequence of TTT customers with purchase probabilities pt,i(j)∈[0,1]p^{(j)}_{t,i}\in[0,1]pt,i(j)​∈[0,1]. Let xxx be feasible for the LP (5) and (y,z)(y,z)(y,z) feasible for its dual (19). Then

∑t=1T∑i=1n∑j=1mipt,i(j) ri(j) xt,i(j) ≤ ∑i=1nkiyi+∑t=1Tzt.\sum_{t=1}^T\sum_{i=1}^n\sum_{j=1}^{m_i}p^{(j)}_{t,i}\,r_i^{(j)}\,x^{(j)}_{t,i}\ \le\ \sum_{i=1}^n k_iy_i+\sum_{t=1}^T z_t .t=1∑T​i=1∑n​j=1∑mi​​pt,i(j)​ri(j)​xt,i(j)​ ≤ i=1∑n​ki​yi​+t=1∑T​zt​.

In particular OPT(S,A)\mathrm{OPT}(\mathcal S,\mathcal A)OPT(S,A) is at most the objective value of any feasible dual solution; the proof of Theorem 2 combines this with Lemma 3.

Formalization Note The standing assumption 0≤pt,i(j)≤10\le p^{(j)}_{t,i}\le10≤pt,i(j)​≤1 is a hypothesis. The same statement is a milestone of the companion mission on Multi-price Balance; it is restated here because draft items cannot import another mission's drafts.

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

/-- Weak duality for the LP (5) and its dual (19) (p. 19): the objective of every feasible
solution of (5) is at most the objective of every feasible solution of (19). The purchase
probabilities satisfy the standing assumption `0 ≤ p ≤ 1`. -/
theorem weak_duality {n T : ℕ} (k m : Fin n → ℕ) (r : Fin n → ℕ → ℝ)
    (p : Fin T → Fin n → ℕ → ℝ)
    (hp : ∀ t i j, 1 ≤ j → j ≤ m i → 0 ≤ p t i j ∧ p t i j ≤ 1)
    (x : Fin T → Fin n → ℕ → ℝ) (hx : LPFeasible k m p x)
    (y : Fin n → ℝ) (z : Fin T → ℝ) (hyz : DualFeasible m r p y z) :
    lpObj m r p x ≤ dualObj k y z := 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. 19, (19a)–(19c) and the sentence after (19c)
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