Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4, p. 19 — procedures satisfying (17)–(18) with c make Multi-price Balance c-competitive

Proved
MultiPriceOnline.Balance.theorem_4

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

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

Consider any setup with a finite set of items: item iii has inventory ki≥1k_i\ge1ki​≥1 and prices 0<ri(1)<⋯<ri(mi)0<r_i^{(1)}<\dots<r_i^{(m_i)}0<ri(1)​<⋯<ri(mi​)​, mi≥1m_i\ge1mi​≥1. In Line 1 of Algorithm 1 (Multi-price Balance), the borders L~i(j)\tilde L_i^{(j)}L~i(j)​ and the value function Φ~i\tilde\Phi_iΦ~i​ of each item are drawn, independently across items, from a randomized procedure. The procedure satisfies, for a constant ccc,

ki(Φ~i(N+1ki)−Φ~i(Nki))+Φ~i(L~i(j))−Φ~i(Nki)≤ri(j)c,j∈[mi], N∈{0,…,L~i(j)ki−1},(17)k_i\Big(\tilde\Phi_i\big(\tfrac{N+1}{k_i}\big)-\tilde\Phi_i\big(\tfrac N{k_i}\big)\Big)+\tilde\Phi_i\big(\tilde L_i^{(j)}\big)-\tilde\Phi_i\big(\tfrac N{k_i}\big)\le\frac{r_i^{(j)}}{c},\qquad j\in[m_i],\ N\in\{0,\dots,\tilde L_i^{(j)}k_i-1\},\tag{17}ki​(Φ~i​(ki​N+1​)−Φ~i​(ki​N​))+Φ~i​(L~i(j)​)−Φ~i​(ki​N​)≤cri(j)​​,j∈[mi​], N∈{0,…,L~i(j)​ki​−1},(17)

for every initialization of positive probability, and

E[Φ~i(L~i(j))]≥ri(j),j∈[mi].(18)\mathbb E\big[\tilde\Phi_i(\tilde L_i^{(j)})\big]\ge r_i^{(j)},\qquad j\in[m_i].\tag{18}E[Φ~i​(L~i(j)​)]≥ri(j)​,j∈[mi​].(18)

Then Algorithm 1 achieves a competitive ratio of ccc. 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 that offers a maximizer of (16), and any feasible solution xxx of the LP (5). Then

c⋅∑t,i,jpt,i(j)ri(j)xt,i(j) ≤ E[ALG(S,A)].c\cdot\sum_{t,i,j}p^{(j)}_{t,i}r_i^{(j)}x^{(j)}_{t,i}\ \le\ \mathbb E[\mathrm{ALG}(\mathcal S,\mathcal A)].c⋅t,i,j∑​pt,i(j)​ri(j)​xt,i(j)​ ≤ E[ALG(S,A)].

This is the paper's reduction of the competitive analysis to a single-item design problem. It is combined with Theorem 5 and the procedure (45) in the proof of Theorem 1.

Formalization Note The competitive ratio (6), E[ALG]/OPT≥c\mathbb E[\mathrm{ALG}]/\mathrm{OPT}\ge cE[ALG]/OPT≥c, is stated multiplied out for every feasible xxx, so that OPT=0\mathrm{OPT}=0OPT=0 causes no division by zero. The procedures are fixed before the arrival sequence. No positivity of ccc is assumed, because (17)–(18) already force c>0c>0c>0. Take a configuration of positive probability and j=mij=m_ij=mi​. If c<0c<0c<0, (17) at N=0N=0N=0 would make a nonnegative quantity negative. If c=0c=0c=0, Lean reads r/0r/0r/0 as 000, so (17) forces the value function to vanish, contradicting (18).

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 4 (Ma–Simchi-Levi, arXiv:1905.04770v1, p. 19). Suppose that in Line 1 of Algorithm 1
every item `i` is initialized by a randomized procedure `P i` satisfying (17) with constant `c` for
every potential initialization and (18) in expectation. Then Algorithm 1 achieves a competitive
ratio of `c`: for every arrival sequence, every tie-breaking rule maximizing (16) and every feasible
solution `x` of the LP (5), `c · (5a)(x) ≤ 𝔼[ALG]`. -/
theorem theorem_4 {ι : Type*} [Fintype ι] [DecidableEq ι] (k m : ι → ℕ)
    (hk : ∀ i, 1 ≤ k i) (hm : ∀ i, 1 ≤ m i) (r : ι → ℕ → ℝ) (hr : ∀ i, IsPriceSet (m i) (r i))
    (P : ∀ i, Procedure (k i) (m i)) (hP : ∀ i, IsProcedure (P i)) (c : ℝ)
    (h17 : ∀ i, Cond17 (r i) (P i) c) (h18 : ∀ i, Cond18 (r i) (P i))
    {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 m) (hsel : IsArgmaxSelector sel)
    (x : Fin T → ι → ℕ → ℝ) (hx : LPFeasible k m p x) :
    c * lpObj m r p x ≤ expRevenue k m r P 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. 19, Theorem 4, (17)–(18); proof in App. B.1, pp. 39–40
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