Proposition 6 — the PPL policy with θ₁ = n/2 has competitive ratio 1/2, best possible among PPL policies
ProvedRobustBooking.TwoFare.ppl_ratioConsider the continuous two-fare booking problem with capacity and fares . For a protection level , the partitioned protection-level policy accepts at most units of high-fare quantity and at most units of low-fare quantity. Then
where . The bound quantifies over PPL policies only, not over all online policies.
import Mathlib import Definitions.Def_RobustBooking_TwoFare_Booking import Definitions.Def_RobustBooking_TwoFare_BookingPolicies
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses. Let be real numbers with
The policy family. For a real parameter , the partitioned protection-level policy proposes, for current request and history :
- if is high;
- if is low.
Here is the sum of the recorded accepted amounts of the earlier requests of class .
Running a policy. Run it with capacity on a finite instance , with each real. Requests are processed in order with . Request is accepted in amount
where is the proposal above.
Revenues and competitive ratio. The online revenue is
The optimal offline revenue is the supremum of over real vectors with and . Write the competitive ratio as
Claim. The theorem asserts both of the following.
This is an exact equality, and it does not depend on . 2. For every real with :
This is non-strict. Values of outside are not covered by the second claim.
Degenerate cases. The hypotheses rule out each default value:
- Positive fares and make exactly for non-empty instances. The ratio sets are non-empty.
- Accepted amounts are , so every ratio is and each infimum is genuine rather than the default value .
- The endpoints and are included in the second claim. At those endpoints one class's threshold is , so that class's proposal is at most on every history and it is never accepted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.