Proposition 2 — no deterministic online booking policy has competitive ratio larger than b(r)
ProvedRobustBooking.TwoFare.deterministic_upper_boundConsider the continuous two-fare booking problem with capacity and fares , . For every deterministic online booking policy ,
Together with Proposition 1 this shows the nested policy is best possible among deterministic policies.
import Mathlib import Definitions.Def_RobustBooking_TwoFare_Booking import Definitions.Def_RobustBooking_TwoFare_BookingPolicies
namespace RobustBooking.TwoFare
/-- Proposition 2 (Ball–Queyranne 2009, p. 953). For the continuous two-fare problem with fares
`f₁ > f₂ > 0` and capacity `n > 0`, no deterministic online booking policy has a competitive
ratio larger than `b(r) = 1 / (2 - r)`, `r = f₂ / f₁`. -/
theorem deterministic_upper_bound (f₁ f₂ n : ℝ) (hf₂ : 0 < f₂) (hf₁₂ : f₂ < f₁) (hn : 0 < n)
(A : DetPolicy) :
competitiveRatio f₁ f₂ n A ≤ b (f₂ / f₁) := by sorry
end RobustBooking.TwoFare
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses. Let be real numbers with
Let be an arbitrary deterministic online policy. It is any function assigning a real proposal to each pair (history, current request). It may be chosen after are fixed, and so may depend on them. A history is a finite list of earlier requests, each paired with a real number. A request is a fare class (high or low) with a real quantity .
Running the policy. Run with capacity on a finite instance . Requests are processed in order with used capacity . Request is accepted in amount
where:
- is the list of pairs for ;
- .
The online revenue is
The optimal offline revenue is the supremum of over real vectors with and .
Claim. The theorem asserts
The inequality is non-strict.
Degenerate cases. The hypotheses rule out each default value:
- and , so neither division is by zero.
- and positive fares make for every non-empty instance. The set of ratios is therefore non-empty.
- Every , so the ratios are . The infimum is therefore genuine rather than the default value .
- Policies that propose negative, huge or erratic amounts are included. Their proposals are clipped as above.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.