Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 6, first display — on the m-fare grid (13) no policy has competitive ratio above 1/(m − (m − 1) r^(1/(m−1)))

Proved
RobustBooking.BidPrice.theorem6_grid_bound

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

competitive-ratioonline-algorithmsp2o-batch-rm-cafterp2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Let 0<fmin⁡<fmax⁡0 < f_{\min} < f_{\max}0<fmin​<fmax​, n>0n > 0n>0, r=fmin⁡/fmax⁡r = f_{\min}/f_{\max}r=fmin​/fmax​ and m≥2m \ge 2m≥2, and let Fm={fi(m)=fmax⁡ r(i−1)/(m−1):i=1,…,m}F_m = \{f_i^{(m)} = f_{\max}\, r^{(i-1)/(m-1)} : i = 1, \dots, m\}Fm​={fi(m)​=fmax​r(i−1)/(m−1):i=1,…,m} be the fares of Eq. (13). On the instances whose fares all lie in FmF_mFm​, every deterministic online policy AAA, and every randomized policy (a random choice A(ω)A(\omega)A(ω) of deterministic policies whose revenue on each such instance is measurable in ω\omegaω), has competitive ratio

CRFm≤c(m)=1m−(m−1) r1/(m−1).\mathrm{CR}_{F_m} \le c^{(m)} = \frac{1}{m - (m-1)\, r^{1/(m-1)}}.CRFm​​≤c(m)=m−(m−1)r1/(m−1)1​.

This is Theorem 4 of §2.1 (no policy for the continuous mmm-fare problem beats 1/Δ1/\Delta1/Δ, Δ=m−∑i=2mfi/fi−1\Delta = m - \sum_{i=2}^m f_i/f_{i-1}Δ=m−∑i=2m​fi​/fi−1​) for the geometric fares of Eq. (13), for which fi/fi−1=r1/(m−1)f_i/f_{i-1} = r^{1/(m-1)}fi​/fi−1​=r1/(m−1). It is the first step of the proof of Theorem 6.

Formalization Note. Theorem 4 belongs to a concurrent draft mission of this series; it is restated here for the grid only. The competitive ratios are the sInfs over admissible instances with positive offline optimum, and the powers are Real.rpow.

Preamble
import Mathlib
import Definitions.Def_RobustBooking_BidPrice_Model
import Definitions.Def_RobustBooking_BidPrice_Policy
import Definitions.Def_RobustBooking_BidPrice_Controls
Formal statement
namespace RobustBooking.BidPrice

open MeasureTheory

/-- First display of the proof of Theorem 6 (Ball–Queyranne 2009, §2.2, p. 959): Theorem 4 applied
to the `m`-fare problem with the fares `f_i^(m) = f_max r^((i - 1)/(m - 1))` of Eq. (13),
`r = f_min / f_max`. For `m ≥ 2`, on the instances whose fares are all among the `f_i^(m)`, no
booking policy, deterministic or randomized (a random choice `A ω`, `ω ∼ μ`, of deterministic
policies whose revenue on each admissible instance is measurable), has a competitive ratio larger than
`c^(m) = 1 / (m - (m - 1) r^(1/(m - 1)))`. -/
theorem theorem6_grid_bound (fmin fmax n : ℝ) (hfmin : 0 < fmin) (hf : fmin < fmax)
    (hn : 0 < n) (m : ℕ) (hm : 2 ≤ m) :
    (∀ P : DetPolicy, competitiveRatioOn (gridFares fmin fmax m) n P ≤
        1 / ((m : ℝ) - ((m : ℝ) - 1) * discountRatio fmin fmax ^ (1 / ((m : ℝ) - 1)))) ∧
      ∀ {Ω : Type} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
        (A : Ω → DetPolicy),
        (∀ I : List Request, FaresIn (gridFares fmin fmax m) I →
          Measurable fun ω => revenue n (A ω) I) →
          competitiveRatioRandOn (gridFares fmin fmax m) n μ A ≤
            1 / ((m : ℝ) - ((m : ℝ) - 1) * discountRatio fmin fmax ^ (1 / ((m : ℝ) - 1))) := by sorry

end RobustBooking.BidPrice
Source
Ball, Queyranne, Toward Robust Revenue Management: Competitive Analysis of Online Booking, Oper. Res. 57(4), 2009, p. 959, §2.2, proof of Theorem 6 (first display; Theorem 4 of p. 957 on the fares of Eq. (13))
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let fmin⁡,fmax⁡,nf_{\min}, f_{\max}, nfmin​,fmax​,n be reals with 0<fmin⁡<fmax⁡0 < f_{\min} < f_{\max}0<fmin​<fmax​ and n>0n > 0n>0, and let mmm be a natural number with m≥2m \ge 2m≥2. Put r=fmin⁡/fmax⁡r = f_{\min}/f_{\max}r=fmin​/fmax​. The grid fare set is

Gm={fmax⁡ r(i−1)/(m−1):i=1,…,m}.G_m = \{ f_{\max}\, r^{(i-1)/(m-1)} : i = 1, \dots, m\}.Gm​={fmax​r(i−1)/(m−1):i=1,…,m}.

The bound is

c(m)=1m−(m−1) r1/(m−1).c^{(m)} = \frac{1}{m - (m-1)\, r^{1/(m-1)}}.c(m)=m−(m−1)r1/(m−1)1​.

Requests and offline optimum. A request has a real fare OOO and a real quantity d>0d > 0d>0. An instance III is a finite list of requests. It is admissible if every fare lies in GmG_mGm​. The offline optimum is

v∗(I)=sup⁡{∑iOixi:0≤xi≤di, ∑ixi≤n},v^*(I) = \sup\Big\{\textstyle\sum_i O_i x_i : 0 \le x_i \le d_i,\ \sum_i x_i \le n\Big\},v∗(I)=sup{∑i​Oi​xi​:0≤xi​≤di​, ∑i​xi​≤n},

a real supremum.

Deterministic policies and their revenue. A deterministic policy π\piπ is an arbitrary function from (history of earlier requests with their accepted quantities, current request) to a real number. On I=(q1,…,qL)I = (q_1, \dots, q_L)I=(q1​,…,qL​) it accepts

ak=max⁡(0,min⁡(π(hk−1,qk),dk,n−∑j<kaj)),a_k = \max\Big(0, \min\big(\pi(h_{k-1}, q_k), d_k, n - \textstyle\sum_{j<k} a_j\big)\Big),ak​=max(0,min(π(hk−1​,qk​),dk​,n−∑j<k​aj​)),

where hk−1=((q1,a1),…,(qk−1,ak−1))h_{k-1} = ((q_1,a_1),\dots,(q_{k-1},a_{k-1}))hk−1​=((q1​,a1​),…,(qk−1​,ak−1​)). Its revenue is

v′(π,I)=∑kOkak.v'(\pi, I) = \sum_k O_k a_k.v′(π,I)=k∑​Ok​ak​.

Competitive ratios. The deterministic competitive ratio is the real infimum

inf⁡{v′(π,I)/v∗(I):I admissible, v∗(I)>0},\inf\{ v'(\pi,I)/v^*(I) : I \text{ admissible},\ v^*(I) > 0\},inf{v′(π,I)/v∗(I):I admissible, v∗(I)>0},

which is 000 if the set is empty or unbounded below. The randomized version replaces v′(π,I)v'(\pi, I)v′(π,I) by the Bochner integral ∫Ωv′(A(ω),I) dμ(ω)\int_\Omega v'(A(\omega), I)\, d\mu(\omega)∫Ω​v′(A(ω),I)dμ(ω), which is 000 if the integrand is not integrable.

Claim. The statement asserts both of the following:

  1. For every deterministic policy π\piπ, its competitive ratio on GmG_mGm​ is ≤c(m)\le c^{(m)}≤c(m).
  2. Let Ω\OmegaΩ be any measurable space (a type in the lowest universe), μ\muμ any probability measure on it, and A:Ω→A : \Omega \toA:Ω→ deterministic policies any function. Assume that for every admissible instance III the map ω↦v′(A(ω),I)\omega \mapsto v'(A(\omega), I)ω↦v′(A(ω),I) is measurable. Then the randomized competitive ratio of (μ,A)(\mu, A)(μ,A) on GmG_mGm​ is ≤c(m)\le c^{(m)}≤c(m).

Degenerate cases.

  • Smallest grid. Here r∈(0,1)r \in (0,1)r∈(0,1), and m≥2m \ge 2m≥2 excludes the 0/00/00/0 grid exponents. For m=2m = 2m=2, G2={fmax⁡,fmin⁡}G_2 = \{f_{\max}, f_{\min}\}G2​={fmax​,fmin​} and the bound is 1/(2−r)1/(2 - r)1/(2−r).
  • Size of the bound. For every allowed mmm, r1/(m−1)∈(0,1)r^{1/(m-1)} \in (0,1)r1/(m−1)∈(0,1), so c(m)∈(0,1)c^{(m)} \in (0,1)c(m)∈(0,1) is positive.
  • Junk infimum. If a defining set of ratios were empty or unbounded below, the infimum would be 000 and the inequality would hold automatically.
  • Junk integral. If some revenue map were non-integrable despite being measurable, its integral would count as 000.
  • Instances excluded. The empty instance, and any instance with v∗(I)=0v^*(I) = 0v∗(I)=0, is excluded from the infimum.
  • Scope of the measurability hypothesis. It is required only for admissible instances.
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 21, 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