Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4, p. 24 — online revenue on the counterexample is at most the maximum of (26), up to εnk

Proved
MultiPriceOnline.Hardness.lemma_4

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

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

Let m≥1m \ge 1m≥1, let 0<r(1)<⋯<r(m)0 < r^{(1)} < \dots < r^{(m)}0<r(1)<⋯<r(m) be a price set with booking limits α\alphaα, let B1=1>B2>⋯>Bm>0B_1 = 1 > B_2 > \dots > B_m > 0B1​=1>B2​>⋯>Bm​>0 solve (24), and set Bm+1=0B_{m+1} = 0Bm+1​=0. Fix k≥1k \ge 1k≥1. For every ε>0\varepsilon > 0ε>0 there is N0N_0N0​ such that for every n≥N0n \ge N_0n≥N0​ the following holds. Let alg\mathrm{alg}alg be any randomized online algorithm: a measurable random choice of a deterministic online algorithm, on any probability space. Run it on the counterexample of §5 with nnn items, inventory kkk, and a uniformly random permutation π\piπ. Its expected revenue satisfies

1n!∑πE[ALG(S,Aπ)]≤max⁡{∑j=1mr(j)Bjn(1−e−λj)k}+εnk.(26)\frac{1}{n!} \sum_{\pi} \mathbb E\big[\mathrm{ALG}(\mathcal S, \mathcal A_\pi)\big] \le \max\Big\{ \sum_{j=1}^m r^{(j)} B_j n (1 - e^{-\lambda_j}) k \Big\} + \varepsilon n k. \qquad (26)n!1​π∑​E[ALG(S,Aπ​)]≤max{j=1∑m​r(j)Bj​n(1−e−λj​)k}+εnk.(26)

The maximum is over λ\lambdaλ with 0≤λj≤ln⁡(Bj/Bj+1)0 \le \lambda_j \le \ln(B_j / B_{j+1})0≤λj​≤ln(Bj​/Bj+1​) for j∈[m−1]j \in [m-1]j∈[m−1], 0≤λm0 \le \lambda_m0≤λm​, and ∑j=1mλj≤1\sum_{j=1}^m \lambda_j \le 1∑j=1m​λj​≤1.

This is the upper bound on online algorithms that Lemma 5 then evaluates.

Formalization Note The paper states Lemma 4 without the error term. Its proof treats τn\tau nτn as an integer and replaces harmonic sums by logarithms "since n→∞n \to \inftyn→∞" (pp. 23, 47). It therefore establishes the bound only up to o(nk)o(nk)o(nk), and the statement is the corresponding ε\varepsilonε-form. The maximum is a real supremum of a set that is nonempty (λ=0\lambda = 0λ=0, since the BjB_jBj​ decrease) and bounded above, so it is attained. 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
import Definitions.Def_MultiPriceOnline_Hardness_Instance
Formal statement
namespace MultiPriceOnline.Hardness
open Finset MeasureTheory
theorem lemma_4 {m : ℕ} {r α B : ℕ → ℝ} (hm : 1 ≤ m) (hr : MultiPriceOnline.Balance.IsPriceSet m r)
    (hα : MultiPriceOnline.Balance.IsBookingLimits m r α) (hB : IsPhaseB m r α B) (k : ℕ) (hk : 1 ≤ k)
    (ε : ℝ) (hε : 0 < ε) :
    ∃ N₀ : ℕ, ∀ n : ℕ, N₀ ≤ n →
      ∀ {Ω : Type} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
        (alg : Ω → OnlineAlg n),
        (∀ π : Equiv.Perm (Fin n),
          Measurable (fun ω => revenue k m r (alg ω) (hardInstance n k m B π))) →
        ((Nat.factorial n : ℝ))⁻¹ * ∑ π : Equiv.Perm (Fin n),
            ∫ ω, revenue k m r (alg ω) (hardInstance n k m B π) ∂μ
          ≤ sSup {v : ℝ | ∃ lam : ℕ → ℝ, (∀ j ∈ Icc 1 m, 0 ≤ lam j) ∧
                (∀ j ∈ Icc 1 (m - 1), lam j ≤ Real.log (B j / B (j + 1))) ∧
                (∑ j ∈ Icc 1 m, lam j) ≤ 1 ∧
                v = ∑ j ∈ Icc 1 m, r j * B j * n * (1 - Real.exp (-lam j)) * k}
            + ε * n * k := 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. 24, Lemma 4, eq. (26); proof 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