Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 7 — with θ(f) from (15), both bid-price policies A_θ and A′_θ are at least 1/(1 − ln r)-competitive

Proved
RobustBooking.BidPrice.theorem7_bid_price_competitive

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

bid-pricecompetitive-ratiop2o-batch-rm-cafterp2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Let 0<fmin⁡<fmax⁡0 < f_{\min} < f_{\max}0<fmin​<fmax​, r=fmin⁡/fmax⁡r = f_{\min}/f_{\max}r=fmin​/fmax​ and capacity n>0n > 0n>0, and let θ\thetaθ be the protection levels of Eq. (15),

θ(f)=ln⁡fmax⁡−ln⁡fln⁡fmax⁡−ln⁡fmin⁡(1−11−ln⁡r)n,\theta(f) = \frac{\ln f_{\max} - \ln f}{\ln f_{\max} - \ln f_{\min}}\Big(1 - \frac{1}{1 - \ln r}\Big)n,θ(f)=lnfmax​−lnfmin​lnfmax​−lnf​(1−1−lnr1​)n,

with Q(f)=n−θ(f)Q(f) = n - \theta(f)Q(f)=n−θ(f) and PPP its order quantity control function. Then for every instance III whose fares all lie in [fmin⁡,fmax⁡][f_{\min}, f_{\max}][fmin​,fmax​], the protection-level control policy AθA_\thetaAθ​ based on QQQ and the order quantity control policy Aθ′A'_\thetaAθ′​ based on PPP both satisfy

v′(I)≥11−ln⁡r v∗(I),v'(I) \ge \frac{1}{1 - \ln r}\, v^*(I),v′(I)≥1−lnr1​v∗(I),

i.e. both achieve competitive ratio at least 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr).

With Theorem 6 this makes the bid-price policies of Eq. (15) optimal among all online booking policies, deterministic or randomized, for the continuous bid-price problem.

Formalization Note. "Competitive ratio at least ccc" is stated per instance as c v∗(I)≤v′(I)c\, v^*(I) \le v'(I)cv∗(I)≤v′(I), which is equivalent to CR≥c\mathrm{CR} \ge cCR≥c and avoids the sInf. v∗v^*v∗ is the true offline maximum (sSup), the policies are the paper's sup rules (the protection constraint over the whole continuum [O,fmax⁡][O, f_{\max}][O,fmax​]), and requests are sized, with the paper's unit orders as qty = 1. The hypothesis that fares lie in [fmin⁡,fmax⁡][f_{\min}, f_{\max}][fmin​,fmax​] is part of the problem and cannot be dropped.

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

/-- Theorem 7 (Ball–Queyranne 2009, p. 959). For the continuous bid-price control problem with
fares `0 < f_min < f_max`, `r = f_min / f_max`, and capacity `n > 0`, if `θ(f)` is defined by
Eq. (15), then the protection-level control policy `A_θ` based on `Q(f) = n - θ(f)` and the order
quantity control policy `A′_θ` based on `P(q)` both achieve competitive ratios of at least
`1 / (1 - ln r)`: on every instance whose fares all lie in `[f_min, f_max]`, each earns at least
`1 / (1 - ln r)` times the optimal offline revenue. -/
theorem theorem7_bid_price_competitive (fmin fmax n : ℝ) (hfmin : 0 < fmin) (hf : fmin < fmax)
    (hn : 0 < n) (I : List Request) (hI : FaresIn (Set.Icc fmin fmax) I) :
    1 / (1 - Real.log (discountRatio fmin fmax)) * offlineOpt n I ≤
        revenue n (protectionLevelPolicy fmax (protectionControl fmin fmax n)) I ∧
      1 / (1 - Real.log (discountRatio fmin fmax)) * offlineOpt n I ≤
        revenue n (orderQuantityPolicy fmin fmax n (protectionControl fmin fmax n)) I := by sorry

end RobustBooking.BidPrice
Source
Ball, Queyranne, Toward Robust Revenue Management: Competitive Analysis of Online Booking, Oper. Res. 57(4), 2009, p. 959, Theorem 7
Read-back

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

The statement concerns three real numbers fmin⁡f_{\min}fmin​, fmax⁡f_{\max}fmax​ and nnn, and a finite list I=(i1,…,ik)I = (i_1, \dots, i_k)I=(i1​,…,ik​) of objects of type Request, which I will call requests. The list is ordered and may contain repeats. The hypotheses are:

  • 0<fmin⁡0 < f_{\min}0<fmin​;
  • fmin⁡<fmax⁡f_{\min} < f_{\max}fmin​<fmax​;
  • 0<n0 < n0<n, where nnn is a real number, not necessarily an integer;
  • FaresIn([fmin⁡,fmax⁡],I)\mathrm{FaresIn}([f_{\min}, f_{\max}], I)FaresIn([fmin​,fmax​],I). This is a predicate from the imported definitions, applied to the closed interval [fmin⁡,fmax⁡][f_{\min}, f_{\max}][fmin​,fmax​] and the list III. Its body is not shown here. Its name suggests that every fare carried by a request in III lies in that interval, but the code shown does not fix its meaning.

No other assumptions are made. There are no type parameters and no typeclass hypotheses.

The statement uses several quantities from the imported definition files. Their bodies are not part of the code given, so they cannot be unfolded here:

  • r:=discountRatio(fmin⁡,fmax⁡)r := \mathrm{discountRatio}(f_{\min}, f_{\max})r:=discountRatio(fmin​,fmax​) is a real number computed from the two fare bounds. Nothing shown says it equals fmin⁡/fmax⁡f_{\min}/f_{\max}fmin​/fmax​.
  • OPT(n,I):=offlineOpt(n,I)\mathrm{OPT}(n, I) := \mathrm{offlineOpt}(n, I)OPT(n,I):=offlineOpt(n,I) is a real number computed from nnn and III.
  • θ:=protectionControl(fmin⁡,fmax⁡,n)\theta := \mathrm{protectionControl}(f_{\min}, f_{\max}, n)θ:=protectionControl(fmin​,fmax​,n) is some object computed from the three reals.
  • Aθ:=protectionLevelPolicy(fmax⁡,θ)A_\theta := \mathrm{protectionLevelPolicy}(f_{\max}, \theta)Aθ​:=protectionLevelPolicy(fmax​,θ) is a policy built from fmax⁡f_{\max}fmax​ and θ\thetaθ only. It does not receive fmin⁡f_{\min}fmin​ or nnn directly.
  • Aθ′:=orderQuantityPolicy(fmin⁡,fmax⁡,n,θ)A'_\theta := \mathrm{orderQuantityPolicy}(f_{\min}, f_{\max}, n, \theta)Aθ′​:=orderQuantityPolicy(fmin​,fmax​,n,θ) is a policy built from all three reals and θ\thetaθ.
  • Rev(n,π,I):=revenue(n,π,I)\mathrm{Rev}(n, \pi, I) := \mathrm{revenue}(n, \pi, I)Rev(n,π,I):=revenue(n,π,I) is a real number assigned to the parameter nnn, a policy π\piπ and the list III.

Define the coefficient

c  :=  11−log⁡r,c \;:=\; \frac{1}{1 - \log r},c:=1−logr1​,

where log⁡\loglog is the real logarithm with its total-function conventions: log⁡0=0\log 0 = 0log0=0, and log⁡x=log⁡∣x∣\log x = \log|x|logx=log∣x∣ for x<0x < 0x<0. Division is also total, so 1/0=01/0 = 01/0=0.

The conclusion is the conjunction of two inequalities:

c⋅OPT(n,I)  ≤  Rev(n,Aθ,I)andc⋅OPT(n,I)  ≤  Rev(n,Aθ′,I).c \cdot \mathrm{OPT}(n, I) \;\le\; \mathrm{Rev}\big(n, A_\theta, I\big) \qquad\text{and}\qquad c \cdot \mathrm{OPT}(n, I) \;\le\; \mathrm{Rev}\big(n, A'_\theta, I\big).c⋅OPT(n,I)≤Rev(n,Aθ​,I)andc⋅OPT(n,I)≤Rev(n,Aθ′​,I).

Both use the same ccc and the same control θ\thetaθ. Both are non-strict inequalities between real numbers.

The statement asserts that both inequalities hold for every choice of fmin⁡,fmax⁡,nf_{\min}, f_{\max}, nfmin​,fmax​,n satisfying the three strict inequalities, and for every list III satisfying FaresIn([fmin⁡,fmax⁡],I)\mathrm{FaresIn}([f_{\min}, f_{\max}], I)FaresIn([fmin​,fmax​],I). The claim is stated instance by instance, for each fixed list III. It contains no supremum or infimum over instances, and no separate "competitive ratio" quantity appears.

Degenerate cases.

  • Sign and size of ccc. The value of ccc depends entirely on the unshown definition of discountRatio\mathrm{discountRatio}discountRatio.
    • If rrr equals eee or −e-e−e, then 1−log⁡r=01 - \log r = 01−logr=0, so c=1/0=0c = 1/0 = 0c=1/0=0 by Lean's convention. Both conclusions then reduce to 0≤Rev(n,Aθ,I)0 \le \mathrm{Rev}(n, A_\theta, I)0≤Rev(n,Aθ​,I) and 0≤Rev(n,Aθ′,I)0 \le \mathrm{Rev}(n, A'_\theta, I)0≤Rev(n,Aθ′​,I).
    • If r=0r = 0r=0, then log⁡r=0\log r = 0logr=0 and c=1c = 1c=1.
    • If ∣r∣>e|r| > e∣r∣>e, then ccc is negative.
    • The code alone fixes none of these cases, because nothing in the statement constrains rrr.
  • Empty list. When III is empty, the hypothesis FaresIn\mathrm{FaresIn}FaresIn is presumably satisfied vacuously, though its definition is not shown. The statement then asserts c⋅OPT(n,[])≤Rev(n,Aθ,[])c \cdot \mathrm{OPT}(n, []) \le \mathrm{Rev}(n, A_\theta, [])c⋅OPT(n,[])≤Rev(n,Aθ​,[]), and the same for Aθ′A'_\thetaAθ′​. Whether this is trivial depends on how offlineOpt\mathrm{offlineOpt}offlineOpt and revenue\mathrm{revenue}revenue treat an empty list.
  • One-element list. A one-element list is also covered, with no extra hypothesis.
  • The parameter nnn. It ranges over all positive reals, including non-integers and values below 1, such as n=1/2n = 1/2n=1/2. It is never required to be a natural number.
  • Unconstrained fields. The only condition on the requests is FaresIn\mathrm{FaresIn}FaresIn. Any other field a Request may carry (for example, a quantity) is unconstrained by the statement.
  • Totality of the definitions. offlineOpt\mathrm{offlineOpt}offlineOpt and revenue\mathrm{revenue}revenue are real-valued. If they are defined through operations such as a supremum over an empty or unbounded set, or through division, their Lean default values take part in the inequalities just like any other value. Whether this happens cannot be determined from the code shown.
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