Proof of Lemma 4, pp. 46–47 — counting bounds (46), (47) and revenue (48) for a deterministic online algorithm
ProvedMultiPriceOnline.Hardness.lemma_4_countsThis is the counting step in the proof of Lemma 4 (inequalities (46), (47) and the revenue expression (48)), stated for a single deterministic online algorithm.
Let be a price set and let be any reals. Consider the counterexample of §5 with items, each with inventory , and arrival sequence for a permutation of the items. There are customers, split into groups of consecutive customers each. Group is interested only in the items , at any price with . Fix a deterministic online algorithm .
Then there are numbers with:
- for all ;
- (the inventory of item , (46));
- for all (the size of group , (47));
- the revenue averaged over a uniformly random satisfies
In the paper is the expected number of group- customers that buy item , which by symmetry is the same for every . Together with the optimization step this yields Lemma 4.
Formalization Note Groups and positions are 0-based, so the paper's becomes . The statement is for one deterministic algorithm; the randomized case of Lemma 4 follows by integrating over the algorithm's randomness. The bound in item 4 is an inequality because a sale may happen at a price below .
import Mathlib import Definitions.Def_MultiPriceOnline_Hardness_PriceSet import Definitions.Def_MultiPriceOnline_Hardness_Model import Definitions.Def_MultiPriceOnline_Hardness_Instance
namespace MultiPriceOnline.Hardness
open Finset
theorem lemma_4_counts {m : ℕ} {r : ℕ → ℝ} (hr : MultiPriceOnline.Balance.IsPriceSet m r)
(B : ℕ → ℝ) (n k : ℕ) (hn : 1 ≤ n) (alg : OnlineAlg n) :
∃ q : ℕ → ℝ, (∀ t < n, 0 ≤ q t) ∧ (∑ t ∈ range n, q t) ≤ k ∧
(∀ t < n, ((n : ℝ) - t) * q t ≤ k) ∧
((Nat.factorial n : ℝ))⁻¹ * ∑ π : Equiv.Perm (Fin n), revenue k m r alg (hardInstance n k m B π)
≤ ∑ t ∈ range n, r (phaseOf n m B t) * ((n : ℝ) - t) * q t := by sorry
end MultiPriceOnline.Hardness