Theorem 7 — with θ(f) from (15), both bid-price policies A_θ and A′_θ are at least 1/(1 − ln r)-competitive
ProvedRobustBooking.BidPrice.theorem7_bid_price_competitiveLet , and capacity , and let be the protection levels of Eq. (15),
with and its order quantity control function. Then for every instance whose fares all lie in , the protection-level control policy based on and the order quantity control policy based on both satisfy
i.e. both achieve competitive ratio at least .
With Theorem 6 this makes the bid-price policies of Eq. (15) optimal among all online booking policies, deterministic or randomized, for the continuous bid-price problem.
Formalization Note. "Competitive ratio at least " is stated per instance as , which is equivalent to and avoids the sInf. is the true offline maximum (sSup), the policies are the paper's sup rules (the protection constraint over the whole continuum ), and requests are sized, with the paper's unit orders as qty = 1. The hypothesis that fares lie in is part of the problem and cannot be dropped.
import Mathlib import Definitions.Def_RobustBooking_BidPrice_Model import Definitions.Def_RobustBooking_BidPrice_Policy import Definitions.Def_RobustBooking_BidPrice_Controls
namespace RobustBooking.BidPrice
/-- Theorem 7 (Ball–Queyranne 2009, p. 959). For the continuous bid-price control problem with
fares `0 < f_min < f_max`, `r = f_min / f_max`, and capacity `n > 0`, if `θ(f)` is defined by
Eq. (15), then the protection-level control policy `A_θ` based on `Q(f) = n - θ(f)` and the order
quantity control policy `A′_θ` based on `P(q)` both achieve competitive ratios of at least
`1 / (1 - ln r)`: on every instance whose fares all lie in `[f_min, f_max]`, each earns at least
`1 / (1 - ln r)` times the optimal offline revenue. -/
theorem theorem7_bid_price_competitive (fmin fmax n : ℝ) (hfmin : 0 < fmin) (hf : fmin < fmax)
(hn : 0 < n) (I : List Request) (hI : FaresIn (Set.Icc fmin fmax) I) :
1 / (1 - Real.log (discountRatio fmin fmax)) * offlineOpt n I ≤
revenue n (protectionLevelPolicy fmax (protectionControl fmin fmax n)) I ∧
1 / (1 - Real.log (discountRatio fmin fmax)) * offlineOpt n I ≤
revenue n (orderQuantityPolicy fmin fmax n (protectionControl fmin fmax n)) I := by sorry
end RobustBooking.BidPrice
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns three real numbers , and , and a finite list of objects of type Request, which I will call requests. The list is ordered and may contain repeats. The hypotheses are:
- ;
- ;
- , where is a real number, not necessarily an integer;
- . This is a predicate from the imported definitions, applied to the closed interval and the list . Its body is not shown here. Its name suggests that every fare carried by a request in lies in that interval, but the code shown does not fix its meaning.
No other assumptions are made. There are no type parameters and no typeclass hypotheses.
The statement uses several quantities from the imported definition files. Their bodies are not part of the code given, so they cannot be unfolded here:
- is a real number computed from the two fare bounds. Nothing shown says it equals .
- is a real number computed from and .
- is some object computed from the three reals.
- is a policy built from and only. It does not receive or directly.
- is a policy built from all three reals and .
- is a real number assigned to the parameter , a policy and the list .
Define the coefficient
where is the real logarithm with its total-function conventions: , and for . Division is also total, so .
The conclusion is the conjunction of two inequalities:
Both use the same and the same control . Both are non-strict inequalities between real numbers.
The statement asserts that both inequalities hold for every choice of satisfying the three strict inequalities, and for every list satisfying . The claim is stated instance by instance, for each fixed list . It contains no supremum or infimum over instances, and no separate "competitive ratio" quantity appears.
Degenerate cases.
- Sign and size of . The value of depends entirely on the unshown definition of .
- If equals or , then , so by Lean's convention. Both conclusions then reduce to and .
- If , then and .
- If , then is negative.
- The code alone fixes none of these cases, because nothing in the statement constrains .
- Empty list. When is empty, the hypothesis is presumably satisfied vacuously, though its definition is not shown. The statement then asserts , and the same for . Whether this is trivial depends on how and treat an empty list.
- One-element list. A one-element list is also covered, with no extra hypothesis.
- The parameter . It ranges over all positive reals, including non-integers and values below 1, such as . It is never required to be a natural number.
- Unconstrained fields. The only condition on the requests is . Any other field a
Requestmay carry (for example, a quantity) is unconstrained by the statement. - Totality of the definitions. and are real-valued. If they are defined through operations such as a supremum over an empty or unbounded set, or through division, their Lean default values take part in the inequalities just like any other value. Whether this happens cannot be determined from the code shown.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.