Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(25), p. 24 — OPT of the counterexample is Σⱼ r⁽ʲ⁾(βⱼn)k = Σⱼ (r⁽ʲ⁾ − r⁽ʲ⁻¹⁾)Bⱼnk, up to rounding

Proved
MultiPriceOnline.Hardness.eq_25

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

linear-programmingonline-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α, and let BBB be the solution of Proposition 4. Consider the counterexample of §5 with nnn items, inventory kkk, and any permutation π\piπ. For any π\piπ, the optimal value of the LP (5) is the revenue from serving every customer at the price of their phase:

OPT(S,Aπ)=k∑g=0n−1r(phase(g)).\mathrm{OPT}(\mathcal S, \mathcal A_\pi) = k \sum_{g=0}^{n-1} r^{(\mathrm{phase}(g))}.OPT(S,Aπ​)=kg=0∑n−1​r(phase(g)).

Moreover

∑j=1m(r(j)−r(j−1))Bjnk  ≤  OPT(S,Aπ)  ≤  ∑j=1m(r(j)−r(j−1))Bjnk+k (r(m)−r(1)).\sum_{j=1}^m (r^{(j)} - r^{(j-1)}) B_j n k \;\le\; \mathrm{OPT}(\mathcal S, \mathcal A_\pi) \;\le\; \sum_{j=1}^m (r^{(j)} - r^{(j-1)}) B_j n k + k\,(r^{(m)} - r^{(1)}).j=1∑m​(r(j)−r(j−1))Bj​nk≤OPT(S,Aπ​)≤j=1∑m​(r(j)−r(j−1))Bj​nk+k(r(m)−r(1)).

The left end is the paper's expression (25). The gap comes only from rounding the phase borders (1−Bj)n(1 - B_j) n(1−Bj​)n to integers.

In the proof of Theorem 3 this value is the denominator: the expected revenue of every online algorithm is compared with it.

Formalization Note The paper takes every BjnB_j nBj​n to be an integer (p. 23), and then OPT=∑jr(j)(βjn)k=∑j(r(j)−r(j−1))Bjnk\mathrm{OPT} = \sum_j r^{(j)} (\beta_j n) k = \sum_j (r^{(j)} - r^{(j-1)}) B_j n kOPT=∑j​r(j)(βj​n)k=∑j​(r(j)−r(j−1))Bj​nk exactly. For a general nnn the phase borders are ⌊(1−Bj)n⌋\lfloor (1 - B_j) n \rfloor⌊(1−Bj​)n⌋. Then the first equation is exact, and (25) holds up to the stated error, which is at most k(r(m)−r(1))k(r^{(m)} - r^{(1)})k(r(m)−r(1)) and does not grow with nnn. An exact version under the hypothesis "Bjn∈NB_j n \in \mathbb NBj​n∈N for all jjj" was not posed: for irrational BjB_jBj​ only n=0n = 0n=0 satisfies it.

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
theorem eq_25 {m : ℕ} {r α B : ℕ → ℝ} (hm : 1 ≤ m) (hr : MultiPriceOnline.Balance.IsPriceSet m r)
    (hα : MultiPriceOnline.Balance.IsBookingLimits m r α) (hB : IsPhaseB m r α B) (n k : ℕ) (π : Equiv.Perm (Fin n)) :
    OPT k m r (hardInstance n k m B π) = (k : ℝ) * ∑ g : Fin n, r (phaseOf n m B g) ∧
    (∑ j ∈ Icc 1 m, (price r j - price r (j - 1)) * B j * n * k)
      ≤ OPT k m r (hardInstance n k m B π) ∧
    OPT k m r (hardInstance n k m B π)
      ≤ (∑ j ∈ Icc 1 m, (price r j - price r (j - 1)) * B j * n * k) + k * (r m - r 1) := 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, eq. (25) and the paragraph before it
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