Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 16 — Multi-price Balance is minᵢ bᵢ-competitive, bᵢ ∈ {F(𝒫ᵢ)/((1+kᵢ)(e^{1/kᵢ}−1)), G(𝒫ᵢ)/2, (1−1/e)/((1+kᵢ)(1−e^{−1/kᵢ}))}

Proved
MultiPriceOnline.Balance.theorem_1

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

competitive-ratiomulti-priceonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1primal-dualrevenue-management

Consider any setup of the multi-price online allocation problem. There is a nonempty finite set of items; item iii has starting inventory ki≥1k_i\ge1ki​≥1 and price set Pi={ri(1)<⋯<ri(mi)}\mathcal P_i=\{r_i^{(1)}<\dots<r_i^{(m_i)}\}Pi​={ri(1)​<⋯<ri(mi​)​} with ri(1)>0r_i^{(1)}>0ri(1)​>0 and mi≥1m_i\ge1mi​≥1. Item iii has booking limits αi\alpha_iαi​ from (7) and values σi\sigma_iσi​ from (8), so that F(Pi)=1−e−αi(1)F(\mathcal P_i)=1-e^{-\alpha_i^{(1)}}F(Pi​)=1−e−αi(1)​ and G(Pi)=σi(1)G(\mathcal P_i)=\sigma_i^{(1)}G(Pi​)=σi(1)​.

Choose for each item a mode, perturb or split, and run Multi-price Balance (Algorithm 1) with those modes. A perturbed item uses the randomized procedure of Definition 3. A split item is replaced by kik_iki​ single-unit items with its prices and purchase probabilities, each using the procedure (45). Let

bi={G(Pi)2if i is split,1−1/e(1+ki)(1−e−1/ki)if i is perturbed and ∣Pi∣=1,F(Pi)(1+ki)(e1/ki−1)if i is perturbed and ∣Pi∣≥2.b_i=\begin{cases}\dfrac{G(\mathcal P_i)}{2}&\text{if $i$ is split},\\[8pt]\dfrac{1-1/e}{(1+k_i)(1-e^{-1/k_i})}&\text{if $i$ is perturbed and }|\mathcal P_i|=1,\\[8pt]\dfrac{F(\mathcal P_i)}{(1+k_i)(e^{1/k_i}-1)}&\text{if $i$ is perturbed and }|\mathcal P_i|\ge2.\end{cases}bi​=⎩⎨⎧​2G(Pi​)​(1+ki​)(1−e−1/ki​)1−1/e​(1+ki​)(e1/ki​−1)F(Pi​)​​if i is split,if i is perturbed and ∣Pi​∣=1,if i is perturbed and ∣Pi​∣≥2.​

Then Multi-price Balance achieves a competitive ratio of min⁡ibi\min_i b_imini​bi​. Take any number of customers TTT, any purchase probabilities pt,i(j)∈[0,1]p^{(j)}_{t,i}\in[0,1]pt,i(j)​∈[0,1], any tie-breaking rule offering a maximizer of (16), and any feasible solution xxx of the LP (5) of the original setup. Then

(min⁡ibi)⋅∑t=1T∑i∑j=1mipt,i(j)ri(j)xt,i(j) ≤ E[ALG(S,A)].\Big(\min_i b_i\Big)\cdot\sum_{t=1}^T\sum_i\sum_{j=1}^{m_i}p^{(j)}_{t,i}r_i^{(j)}x^{(j)}_{t,i}\ \le\ \mathbb E[\mathrm{ALG}(\mathcal S,\mathcal A)].(imin​bi​)⋅t=1∑T​i∑​j=1∑mi​​pt,i(j)​ri(j)​xt,i(j)​ ≤ E[ALG(S,A)].

This is the main positive result of the paper for general purchase probabilities. As inventories grow, bound (i) tends to F(Pi)F(\mathcal P_i)F(Pi​), which Theorem 3 shows cannot be beaten by any online algorithm.

Formalization Note The paper states Theorem 1 as "a competitive ratio of min⁡iF~i\min_i\tilde F_imini​F~i​". There F~i\tilde F_iF~i​ is the optimum of the problem (44) with k=kik=k_ik=ki​, and the theorem asserts F~i≥\tilde F_i\geF~i​≥ (i), (ii), and (iii) if ∣Pi∣=1|\mathcal P_i|=1∣Pi​∣=1. The proof (App. B.3) obtains bound (ii) by splitting item iii into kik_iki​ single-unit items. That is a run of Algorithm 1 on a different setup, not a procedure feasible for (44) with k=kik=k_ik=ki​. The paper also never shows that the supremum in (44) is attained. So F~i\tilde F_iF~i​ is not used here: the theorem is stated with the explicit bounds and a mode per item, which is what App. B.3 proves. Choosing for each item the mode with the larger bound gives the printed form min⁡imax⁡{(i),(ii),(iii) if ∣Pi∣=1}\min_i\max\{(\mathrm i),(\mathrm{ii}),(\mathrm{iii})\text{ if }|\mathcal P_i|=1\}mini​max{(i),(ii),(iii) if ∣Pi​∣=1}, because (iii) ≥\ge≥ (i) when ∣Pi∣=1|\mathcal P_i|=1∣Pi​∣=1. For ∣Pi∣=1|\mathcal P_i|=1∣Pi​∣=1, αi(1)=1\alpha_i^{(1)}=1αi(1)​=1 and 1−e−αi(1)=1−1/e1-e^{-\alpha_i^{(1)}}=1-1/e1−e−αi(1)​=1−1/e. The competitive ratio (6) is stated multiplied out for every feasible xxx of the original LP (5), so no division by OPT\mathrm{OPT}OPT occurs. The benchmark is the original setup's LP, not the split setup's. The procedures depend only on the setup and the modes; the arrival sequence and the tie-breaking rule are quantified after them. Items form a nonempty finite type, so that the minimum exists; with no items both sides would be 000.

Preamble
import Mathlib
import Definitions.Def_MultiPriceOnline_Balance_PriceSet
import Definitions.Def_MultiPriceOnline_Balance_LP
import Definitions.Def_MultiPriceOnline_Balance_Procedure
import Definitions.Def_MultiPriceOnline_Balance_Algorithm
Formal statement
namespace MultiPriceOnline.Balance

/-- Theorem 1 (Ma–Simchi-Levi, arXiv:1905.04770v1, p. 16; proof in App. B.3, pp. 44–45), with its
explicit bounds. For any setup (a nonempty finite set of items, item `i` with inventory `kᵢ ≥ 1`,
price set `0 < rᵢ⁽¹⁾ < … < rᵢ⁽ᵐⁱ⁾`, booking limits `αᵢ` of (7) and values `σᵢ` of (8)) and any choice
of modes (`split i`), Multi-price Balance with those modes achieves the competitive ratio
`minᵢ bᵢ`, where `bᵢ = G(𝒫ᵢ)/2` for a split item, `(1 − 1/e)/((1 + kᵢ)(1 − e^{−1/kᵢ}))` for an
unsplit item with `|𝒫ᵢ| = 1`, and `F(𝒫ᵢ)/((1 + kᵢ)(e^{1/kᵢ} − 1))` for an unsplit item with
`|𝒫ᵢ| ≥ 2`: for every arrival sequence, every tie-breaking rule maximizing (16) and every feasible
solution `x` of the LP (5) of the original setup, `(minᵢ bᵢ) · (5a)(x) ≤ 𝔼[ALG]`. -/
theorem theorem_1 {ι : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι] (k m : ι → ℕ)
    (hk : ∀ i, 1 ≤ k i) (hm : ∀ i, 1 ≤ m i) (r α σ : ι → ℕ → ℝ)
    (hr : ∀ i, IsPriceSet (m i) (r i)) (hα : ∀ i, IsBookingLimits (m i) (r i) (α i))
    (hσ : ∀ i, IsBQLimits (m i) (r i) (σ i)) (split : ι → Bool)
    {T : ℕ} (p : Fin T → ι → ℕ → ℝ)
    (hp : ∀ t i j, 1 ≤ j → j ≤ m i → 0 ≤ p t i j ∧ p t i j ≤ 1)
    (sel : Selector (fun x : SplitItem k split => m x.1)) (hsel : IsArgmaxSelector sel)
    (x : Fin T → ι → ℕ → ℝ) (hx : LPFeasible k m p x) :
    (Finset.univ.inf' Finset.univ_nonempty
        (fun i => modeBound (k i) (m i) (α i) (σ i) (split i))) * lpObj m r p x ≤
      balanceRevenue k m r α σ split sel p := by sorry

end MultiPriceOnline.Balance
Source
Ma, Simchi-Levi, Algorithms for Online Matching, Assortment, and Pricing with Tight Weight-dependent Competitive Ratios, arXiv:1905.04770v1, p. 16, Theorem 1; proof in App. B.3, pp. 44–45
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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