Proposition 1 — the nested policy with protection level (1 − b(r))n has competitive ratio b(r)
ProvedRobustBooking.TwoFare.nested_protection_ratioConsider the continuous two-fare booking problem with capacity and fares , and let be the discount ratio. Let be the nested protection-level policy with protection level
that is, with low-fare booking limit . Then the competitive ratio of equals :
This is the achievability half of Theorem 1: the nested policy guarantees at least a fraction of the offline optimum on every instance, and the guarantee is attained (on ).
import Mathlib import Definitions.Def_RobustBooking_TwoFare_Booking import Definitions.Def_RobustBooking_TwoFare_BookingPolicies
namespace RobustBooking.TwoFare
/-- Proposition 1 (Ball–Queyranne 2009, p. 953). For the continuous two-fare booking problem with
fares `f₁ > f₂ > 0` and capacity `n > 0`, the nested policy with protection level
`θ₁ = (1 - b(r)) n`, `r = f₂ / f₁`, has competitive ratio exactly `b(r) = 1 / (2 - r)`. -/
theorem nested_protection_ratio (f₁ f₂ n : ℝ) (hf₂ : 0 < f₂) (hf₁₂ : f₂ < f₁) (hn : 0 < n) :
competitiveRatio f₁ f₂ n (nested n ((1 - b (f₂ / f₁)) * n)) = 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
Put
Then . The low-fare threshold equals .
The policy. The statement is about the "nested" policy with parameters and . For a current request with , and a history of earlier (request, accepted-amount) pairs, it proposes:
- if is high;
- if is low, where is the sum of the recorded accepted amounts of all earlier low requests.
Running the policy. Run it with capacity on a finite instance , where each is an arbitrary real. Requests are processed in order, starting with used capacity . Request is accepted in amount
where is the proposal above. Then . So:
- a high request gets ;
- a low request gets , with the total already accepted from low requests.
The online revenue is
The optimal offline revenue is the supremum of over all real vectors satisfying and .
Claim. The theorem asserts the exact equality
The infimum is over all finite request sequences, of any length, order and real positive quantities. It is not claimed that any instance attains the value.
Degenerate cases. The hypotheses rule out each default value:
- , so is an ordinary division.
- , so .
- Fares are positive and , so exactly when is non-empty. The empty instance has and is excluded. The set of ratios is therefore non-empty.
- Accepted amounts are , so every ratio is . The infimum is therefore a genuine infimum, not the default value .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.