Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5 — the nested policies A_θ and A′_θ with protection levels (7) have competitive ratio exactly 1/Δ

Proved
RobustBooking.MultiFare.theorem5_competitive_ratio

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

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

Consider the continuous mmm-fare booking problem with m≥2m \ge 2m≥2, fares f1>f2>⋯>fm>0f_1 > f_2 > \dots > f_m > 0f1​>f2​>⋯>fm​>0 and capacity n>0n > 0n>0. Let Δ=m−∑i=2mfi/fi−1\Delta = m - \sum_{i=2}^m f_i/f_{i-1}Δ=m−∑i=2m​fi​/fi−1​ (Eq. (6)), let θ\thetaθ be the protection levels of Eq. (7) and QQQ, PPP the associated controls (Eqs. (8), (9)). Then the protection-level control policy AθA_\thetaAθ​ and the order quantity control policy Aθ′A'_\thetaAθ′​ both have competitive ratio exactly

c(Aθ)=c(Aθ′)=1Δ.c(A_\theta) = c(A'_\theta) = \frac{1}{\Delta}.c(Aθ​)=c(Aθ′​)=Δ1​.

Together with Theorem 4 this says that nested booking with these protection levels is the best possible online policy for mmm fare classes, deterministic or randomized. For m=2m = 2m=2, f2/f1=rf_2/f_1 = rf2​/f1​=r it recovers the two-fare ratio 1/(2−r)1/(2 - r)1/(2−r).

Formalization Note. "Has competitive ratio 1/Δ1/\Delta1/Δ" is stated as an equality of the competitive ratio (an infimum over all instances with positive offline optimum, with requests of any classes in any order and of any positive real size) with 1/Δ1/\Delta1/Δ; both directions are part of the claim. The paper's §2.1 assumes m≥3m \ge 3m≥3; the statement is made for m≥2m \ge 2m≥2.

Preamble
import Mathlib
import Definitions.Def_RobustBooking_MultiFare_NestedPolicies
Formal statement
namespace RobustBooking.MultiFare

/-- Theorem 5 (p. 958): for the continuous `m`-fare problem (fares `f 1 > ⋯ > f m > 0`,
`m ≥ 2`, capacity `n > 0`), the booking policies `A_θ` and `A′_θ` with protection levels
defined by Eq. (7) have competitive ratio exactly `1/Δ`. -/
theorem theorem5_competitive_ratio (m : ℕ) (f : ℕ → ℝ) (n : ℝ) (hm : 2 ≤ m)
    (hf : StrictAntiOn f (Set.Icc 1 m)) (hfm : 0 < f m) (hn : 0 < n) :
    competitiveRatio m f n (protectionPolicy m f n) = 1 / Delta m f ∧
    competitiveRatio m f n (orderQuantityPolicy m f n) = 1 / Delta m f := by sorry

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

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

For every natural number mmm, every sequence of reals f:N→Rf : \mathbb{N} \to \mathbb{R}f:N→R (with values f0,f1,f2,…f_0, f_1, f_2, \dotsf0​,f1​,f2​,…), and every real number nnn, the statement assumes three hypotheses:

  • m≥2m \ge 2m≥2;
  • fff is strictly decreasing on the index set {1,2,…,m}⊂N\{1, 2, \dots, m\} \subset \mathbb{N}{1,2,…,m}⊂N, meaning that for all 1≤i<j≤m1 \le i < j \le m1≤i<j≤m,
fi>fj;f_i > f_j;fi​>fj​;
  • fm>0f_m > 0fm​>0, and together with the previous hypothesis this gives f1>f2>⋯>fm>0f_1 > f_2 > \cdots > f_m > 0f1​>f2​>⋯>fm​>0;
  • n>0n > 0n>0, where nnn is a real number, not necessarily an integer.

No condition is placed on f0f_0f0​ or on fjf_jfj​ for j>mj > mj>m. These values are arbitrary reals, and whether any of them matter depends on the imported definitions.

Under these hypotheses the statement asserts both of the following equalities:

CRm,f,n(Pm,f,nprot)=1Δm,fandCRm,f,n(Pm,f,nord)=1Δm,f.\mathrm{CR}_{m,f,n}\big(P^{\text{prot}}_{m,f,n}\big) = \frac{1}{\Delta_{m,f}} \qquad\text{and}\qquad \mathrm{CR}_{m,f,n}\big(P^{\text{ord}}_{m,f,n}\big) = \frac{1}{\Delta_{m,f}}.CRm,f,n​(Pm,f,nprot​)=Δm,f​1​andCRm,f,n​(Pm,f,nord​)=Δm,f​1​.

The symbols are the four imported names, whose definitions are not shown:

  • CRm,f,n(⋅)\mathrm{CR}_{m,f,n}(\cdot)CRm,f,n​(⋅) is competitiveRatio, applied to mmm, fff, nnn and a policy.
  • Pm,f,nprotP^{\text{prot}}_{m,f,n}Pm,f,nprot​ is protectionPolicy, built from mmm, fff, nnn.
  • Pm,f,nordP^{\text{ord}}_{m,f,n}Pm,f,nord​ is orderQuantityPolicy, built from mmm, fff, nnn.
  • Δm,f\Delta_{m,f}Δm,f​ is Delta. It depends only on mmm and fff, not on nnn.

These are all declared in the imported module Definitions.Def_RobustBooking_MultiFare_NestedPolicies, in the namespace RobustBooking.MultiFare. Their bodies are not part of the code shown, so this read-back cannot unfold them. What they compute, including whether "competitive ratio" is an infimum, a supremum or a worst-case quotient, and over which demand scenarios, is not established by this statement. The only parameters the policies and the ratio receive are mmm, fff and nnn; no further parameter appears anywhere in the statement.

Degenerate cases:

  • Excluded values. The hypotheses rule out m=0m = 0m=0 and m=1m = 1m=1. The smallest admissible case is m=2m = 2m=2 with f1>f2>0f_1 > f_2 > 0f1​>f2​>0. The capacity nnn may be any positive real, however small, including non-integers.
  • Division by zero. The right-hand side 1/Δm,f1/\Delta_{m,f}1/Δm,f​ uses real division, under which 1/01/01/0 is defined to be 000. If Δm,f=0\Delta_{m,f} = 0Δm,f​=0 for some admissible m,fm, fm,f, the statement asserts that both competitive ratios equal 000. If Δm,f<0\Delta_{m,f} < 0Δm,f​<0, it asserts that they equal a negative number. Nothing in the hypotheses forces Δm,f>0\Delta_{m,f} > 0Δm,f​>0 or Δm,f≠0\Delta_{m,f} \neq 0Δm,f​=0; that depends on the imported definition.
  • Unseen defaults. If competitiveRatio is defined through an infimum or supremum, a quotient, or an integral, then default values may apply: the infimum of an empty set, the supremum of an unbounded set, division by zero, or the integral of a non-integrable function. The statement's equalities then refer to those default values. Whether this happens cannot be determined from the code shown.
  • Unconstrained values of fff. The values f0f_0f0​ and fjf_jfj​ for j>mj > mj>m are unconstrained. If any imported definition reads them, the statement holds for every choice of those values.
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