Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3, p. 17 — no online algorithm earns more than (F(𝒫) + ε) · E[OPT] on some deterministic random instance

Proved
MultiPriceOnline.Hardness.theorem_3

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

competitive-ratioonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-permutationrevenue-management

Let k≥1k \ge 1k≥1 be an integer and let P={r(1)<⋯<r(m)}\mathcal P = \{r^{(1)} < \dots < r^{(m)}\}P={r(1)<⋯<r(m)}, m≥1m \ge 1m≥1, r(1)>0r^{(1)} > 0r(1)>0, be a price set with booking limits α(1),…,α(m)\alpha^{(1)}, \dots, \alpha^{(m)}α(1),…,α(m) (Proposition 1). Write F(P)=1−e−α(1)F(\mathcal P) = 1 - e^{-\alpha^{(1)}}F(P)=1−e−α(1). For every ε>0\varepsilon > 0ε>0 there exist:

  1. a setup S\mathcal SS with some number nnn of items, each with starting inventory kkk and price set P\mathcal PP;
  2. a finite probability distribution (weights wa≥0w_a \ge 0wa​≥0 summing to 111) over arrival sequences Aa\mathcal A_aAa​, all in the deterministic case, with EA[OPT(S,A)]>0\mathbb E_{\mathcal A}[\mathrm{OPT}(\mathcal S, \mathcal A)] > 0EA​[OPT(S,A)]>0.

They satisfy the following: for every randomized online algorithm, that is, every measurable random choice of a deterministic online algorithm on any probability space,

EA[E[ALG(S,A)]]≤(F(P)+ε) EA[OPT(S,A)].\mathbb E_{\mathcal A}\big[\mathbb E[\mathrm{ALG}(\mathcal S, \mathcal A)]\big] \le \big(F(\mathcal P) + \varepsilon\big)\, \mathbb E_{\mathcal A}\big[\mathrm{OPT}(\mathcal S, \mathcal A)\big].EA​[E[ALG(S,A)]]≤(F(P)+ε)EA​[OPT(S,A)].

By Yao's minimax principle, no online algorithm has a competitive ratio above F(P)F(\mathcal P)F(P) on all setups with price set P\mathcal PP and inventory kkk, even in the deterministic case. Since kkk is arbitrary, the guarantees of Theorem 2 and of Corollary 1 are therefore tight.

Formalization Note The paper states the bound with ε=0\varepsilon = 0ε=0. Its proof ignores the rounding of the phase lengths and takes n→∞n \to \inftyn→∞ (pp. 23, 47), so it establishes only the ε\varepsilonε-form. The ε\varepsilonε-form is what the tightness argument via Yao's principle uses. The condition E[OPT]>0\mathbb E[\mathrm{OPT}] > 0E[OPT]>0 is added because without it an empty arrival sequence would satisfy the statement trivially. The paper's instance has positive OPT. The distribution is fixed before the algorithm. The algorithm may depend on the setup and on its own randomness, but sees only the past and present customers. Measurability of the revenue in ω\omegaω is assumed. The revenue is bounded, so it is then integrable; without measurability the Bochner integral would be 000 and the bound trivially true.

Preamble
import Mathlib
import Definitions.Def_MultiPriceOnline_Hardness_PriceSet
import Definitions.Def_MultiPriceOnline_Hardness_Model
Formal statement
namespace MultiPriceOnline.Hardness
open Finset MeasureTheory
theorem theorem_3 (k : ℕ) (hk : 1 ≤ k) (m : ℕ) (hm : 1 ≤ m) (r : ℕ → ℝ) (hr : MultiPriceOnline.Balance.IsPriceSet m r)
    (α : ℕ → ℝ) (hα : MultiPriceOnline.Balance.IsBookingLimits m r α) (ε : ℝ) (hε : 0 < ε) :
    ∃ n K : ℕ, ∃ w : Fin K → ℝ, ∃ A : Fin K → Arrival n,
      (∀ a, 0 ≤ w a) ∧ (∑ a, w a) = 1 ∧ (∀ a, IsDeterministic (A a)) ∧
      0 < ∑ a, w a * OPT k m r (A a) ∧
      ∀ {Ω : Type} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
        (alg : Ω → OnlineAlg n),
        (∀ a, Measurable (fun ω => revenue k m r (alg ω) (A a))) →
        ∑ a, w a * ∫ ω, revenue k m r (alg ω) (A a) ∂μ
          ≤ (1 - Real.exp (-α 1) + ε) * ∑ a, w a * OPT k m r (A a) := by sorry
end MultiPriceOnline.Hardness
Source
Ma, Simchi-Levi, Algorithms for Online Matching, Assortment, and Pricing with Tight Weight-dependent Competitive Ratios, arXiv:1905.04770v1, p. 17, Theorem 3; proof p. 25 (§5) and pp. 46–48 (App. D)
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