Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5, p. 22 — Definition 3 satisfies (17)–(18) with c = (1 − e^{−α⁽¹⁾})/((1+k)(e^{1/k} − 1)), improved for m = 1

Proved
MultiPriceOnline.Balance.theorem_5

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

competitive-ratioonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-roundingvalue-function

Let k≥1k\ge1k≥1 be an integer, 0<r(1)<⋯<r(m)0<r^{(1)}<\dots<r^{(m)}0<r(1)<⋯<r(m) a price set with m≥1m\ge1m≥1, and α\alphaα its booking limits (7). Consider the randomized procedure of Definition 3 for an item with inventory kkk: one uniform seed rounds the borders L(j)L^{(j)}L(j) to L~(j)∈{0,1k,…,1}\tilde L^{(j)}\in\{0,\tfrac1k,\dots,1\}L~(j)∈{0,k1​,…,1}, and the value function Φ~\tilde\PhiΦ~ is (20). Then:

  1. the procedure is a randomized procedure: every configuration it produces satisfies (14), and its value function satisfies (15);
  2. it satisfies (17) with
c=1−e−α(1)(1+k)(e1/k−1);c=\frac{1-e^{-\alpha^{(1)}}}{(1+k)(e^{1/k}-1)};c=(1+k)(e1/k−1)1−e−α(1)​;
  1. it satisfies (18): E[Φ~(L~(j))]≥r(j)\mathbb E[\tilde\Phi(\tilde L^{(j)})]\ge r^{(j)}E[Φ~(L~(j))]≥r(j) for j∈[m]j\in[m]j∈[m];
  2. if m=1m=1m=1, it satisfies (17) with the improved value
c=1−e−α(1)(1+k)(1−e−1/k).c=\frac{1-e^{-\alpha^{(1)}}}{(1+k)(1-e^{-1/k})}.c=(1+k)(1−e−1/k)1−e−α(1)​.

With Theorem 4 this gives bounds (i) and (iii) of Theorem 1.

Formalization Note Part 1 makes explicit what the paper takes for granted when it calls Definition 3 a randomized procedure (p. 21: the comonotone rounding "ensures that the borders are increasing as required in (14)"). The probability of a configuration is the Lebesgue measure of the seeds in [0,1][0,1][0,1] that produce it.

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

/-- Theorem 5 (Ma–Simchi-Levi, arXiv:1905.04770v1, p. 22). For an item with inventory `k ≥ 1`, a
price set `r` with `m ≥ 1` prices and its booking limits `α`, the procedure of Definition 3 is a
randomized procedure (its configurations satisfy (14) and its value functions (15)), and it
satisfies (17)–(18) with `c = (1 − e^{−α⁽¹⁾})/((1 + k)(e^{1/k} − 1))`. If `m = 1`, it satisfies (17)
with the improved `c = (1 − e^{−α⁽¹⁾})/((1 + k)(1 − e^{−1/k}))`. -/
theorem theorem_5 (k m : ℕ) (hk : 1 ≤ k) (hm : 1 ≤ m) (r α : ℕ → ℝ)
    (hr : IsPriceSet m r) (hα : IsBookingLimits m r α) :
    IsProcedure (def3Proc k m r α) ∧
    Cond17 r (def3Proc k m r α) (Fval α / ((1 + k) * (Real.exp (1 / k) - 1))) ∧
    Cond18 r (def3Proc k m r α) ∧
    (m = 1 → Cond17 r (def3Proc k m r α) (Fval α / ((1 + k) * (1 - Real.exp (-1 / k))))) := 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. 22, Theorem 5; proof in App. B.1, pp. 41–43
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