Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 6 — the PPL policy with θ₁ = n/2 has competitive ratio 1/2, best possible among PPL policies

Proved
RobustBooking.TwoFare.ppl_ratio

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

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

Consider the continuous two-fare booking problem with capacity n>0n > 0n>0 and fares f1>f2>0f_1 > f_2 > 0f1​>f2​>0. For a protection level θ1∈[0,n]\theta_1 \in [0, n]θ1​∈[0,n], the partitioned protection-level policy PPLθ1\mathrm{PPL}_{\theta_1}PPLθ1​​ accepts at most θ1\theta_1θ1​ units of high-fare quantity and at most θ2=n−θ1\theta_2 = n - \theta_1θ2​=n−θ1​ units of low-fare quantity. Then

CR(PPLn/2)=12andCR(PPLθ1)≤12  for every θ1∈[0,n],\mathrm{CR}(\mathrm{PPL}_{n/2}) = \tfrac12 \qquad\text{and}\qquad \mathrm{CR}(\mathrm{PPL}_{\theta_1}) \le \tfrac12 \ \text{ for every } \theta_1 \in [0, n],CR(PPLn/2​)=21​andCR(PPLθ1​​)≤21​  for every θ1​∈[0,n],

where CR(A)=inf⁡I:v∗(I)>0vA′(I)/v∗(I)\mathrm{CR}(A) = \inf_{I : v^*(I) > 0} v'_A(I)/v^*(I)CR(A)=infI:v∗(I)>0​vA′​(I)/v∗(I). The bound quantifies over PPL policies only, not over all online policies.

Preamble
import Mathlib
import Definitions.Def_RobustBooking_TwoFare_Booking
import Definitions.Def_RobustBooking_TwoFare_BookingPolicies
Formal statement
namespace RobustBooking.TwoFare

/-- Proposition 6 (Ball–Queyranne 2009, p. 955). For the continuous two-fare booking problem with
fares `f₁ > f₂ > 0` and capacity `n > 0`, the partitioned protection-level policy with
`θ₁ = n / 2` has competitive ratio exactly `1 / 2`, and no partitioned protection-level policy
(any `θ₁ ∈ [0, n]`) has a larger competitive ratio. -/
theorem ppl_ratio (f₁ f₂ n : ℝ) (hf₂ : 0 < f₂) (hf₁₂ : f₂ < f₁) (hn : 0 < n) :
    competitiveRatio f₁ f₂ n (ppl n (n / 2)) = 1 / 2 ∧
    ∀ θ₁ : ℝ, 0 ≤ θ₁ → θ₁ ≤ n → competitiveRatio f₁ f₂ n (ppl n θ₁) ≤ 1 / 2 := by sorry

end RobustBooking.TwoFare
Source
Ball, Queyranne, Toward Robust Revenue Management: Competitive Analysis of Online Booking, Oper. Res. 57(4), 2009, p. 955, Proposition 6
Read-back

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

Hypotheses. Let f1,f2,nf_1, f_2, nf1​,f2​,n be real numbers with

0<f2<f1,n>0.0 < f_2 < f_1, \qquad n > 0 .0<f2​<f1​,n>0.

The policy family. For a real parameter θ1\theta_1θ1​, the partitioned protection-level policy proposes, for current request (c,q)(c,q)(c,q) and history HHH:

  • θ1−Shigh(H)\theta_1 - S_{\text{high}}(H)θ1​−Shigh​(H) if ccc is high;
  • (n−θ1)−Slow(H)(n - \theta_1) - S_{\text{low}}(H)(n−θ1​)−Slow​(H) if ccc is low.

Here Sc(H)S_c(H)Sc​(H) is the sum of the recorded accepted amounts of the earlier requests of class ccc.

Running a policy. Run it with capacity nnn on a finite instance I=((c1,q1),…,(cm,qm))I = ((c_1,q_1),\dots,(c_m,q_m))I=((c1​,q1​),…,(cm​,qm​)), with each qi>0q_i > 0qi​>0 real. Requests are processed in order with u1=0u_1 = 0u1​=0. Request iii is accepted in amount

ai=max⁡(0,min⁡(pi,qi,n−ui)),ui+1=ui+ai,a_i = \max\big(0,\min(p_i, q_i, n-u_i)\big), \qquad u_{i+1} = u_i + a_i,ai​=max(0,min(pi​,qi​,n−ui​)),ui+1​=ui​+ai​,

where pip_ipi​ is the proposal above.

Revenues and competitive ratio. The online revenue is

Rθ1(I)=∑iϕ(ci)ai,ϕ(high)=f1, ϕ(low)=f2.R_{\theta_1}(I) = \sum_i \phi(c_i)a_i, \qquad \phi(\text{high}) = f_1,\ \phi(\text{low}) = f_2 .Rθ1​​(I)=i∑​ϕ(ci​)ai​,ϕ(high)=f1​, ϕ(low)=f2​.

The optimal offline revenue R∗(I)R^*(I)R∗(I) is the supremum of ∑iϕ(ci)xi\sum_i\phi(c_i)x_i∑i​ϕ(ci​)xi​ over real vectors with 0≤xi≤qi0\le x_i\le q_i0≤xi​≤qi​ and ∑ixi≤n\sum_i x_i\le n∑i​xi​≤n. Write the competitive ratio as

CR(θ1)=inf⁡{Rθ1(I)R∗(I):I a finite list of requests with R∗(I)>0}.\mathrm{CR}(\theta_1) = \inf\Big\{ \tfrac{R_{\theta_1}(I)}{R^*(I)} : I \text{ a finite list of requests with } R^*(I) > 0\Big\}.CR(θ1​)=inf{R∗(I)Rθ1​​(I)​:I a finite list of requests with R∗(I)>0}.

Claim. The theorem asserts both of the following.

CR(n/2)=12.\mathrm{CR}(n/2) = \tfrac12 .CR(n/2)=21​.

This is an exact equality, and it does not depend on f1,f2f_1, f_2f1​,f2​. 2. For every real θ1\theta_1θ1​ with 0≤θ1≤n0 \le \theta_1 \le n0≤θ1​≤n:

CR(θ1)≤12.\mathrm{CR}(\theta_1) \le \tfrac12 .CR(θ1​)≤21​.

This is non-strict. Values of θ1\theta_1θ1​ outside [0,n][0,n][0,n] are not covered by the second claim.

Degenerate cases. The hypotheses rule out each default value:

  • Positive fares and n>0n>0n>0 make R∗(I)>0R^*(I)>0R∗(I)>0 exactly for non-empty instances. The ratio sets are non-empty.
  • Accepted amounts are ≥0\ge 0≥0, so every ratio is ≥0\ge 0≥0 and each infimum is genuine rather than the default value 000.
  • The endpoints θ1=0\theta_1 = 0θ1​=0 and θ1=n\theta_1 = nθ1​=n are included in the second claim. At those endpoints one class's threshold is 000, so that class's proposal is at most 000 on every history and it is never accepted.
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