Documentation

CslibFrontier.Probability.OptimalStopping.MultiProphet

Multiple-choice k-prophet inequality #

A gambler with selection capacity k ≥ 1 observes n independent nonnegative values X₀, …, Xₙ₋₁ with laws μ : Fin n → PMF ℝ≥0 sequentially in fixed (adversarial) order and may accept at most k of them, collecting their sum. The offline prophet selects the k largest values, collecting MatroidProphet.expectedOpt (MatroidProphet.uniformMatroid (Fin n) k) μ.

Whereas MatroidProphet.expectedOpt_uniformMatroid_le_two_mul establishes the 1/2 bound for every k, this module proves Alaei's 1 - 1 / √(k + 3) multiple-choice prophet inequality ([Ala14]): for every k ≥ 1, an online k-selection algorithm achieves expected total weight at least (1 - 1 / √(k + 3)) · E[OPT_k] (exists_multiProphet_bound), matching 1/2 at k = 1, strictly beating 1/2 for every k ≥ 2 (one_half_lt_magicianGamma), and approaching 1 at the optimal 1 - O(1 / √k) rate (tendsto_magicianGamma). The result requires no integrability hypothesis (expectedOpt may be ⊤) and applies to arbitrary countable-support discrete laws with atoms, under any arrival order (exists_multiProphet_bound_perm).

The proof follows Alaei's γ-conservative magician framework ([Ala14]):

  1. Ex-ante relaxation: fix an offline optimal k-subset I*(w) for each realization w and let xᵢ = P(i ∈ I*(X)), so ∑ᵢ xᵢ ≤ k. For each i with xᵢ > 0, Prophet.exists_tieAccept_eq yields a threshold (τᵢ, coinᵢ) accepting item i with probability xᵢ and expected accepted value at least E[Xᵢ · 1_{i ∈ I*(X)}].
  2. γ-conservative magician (magicianDist, magician_openProb_eq): given k ≥ 1, γ = 1 - 1 / √(k + 3), and independent break probabilities xᵢ ∈ [0, 1] with ∑ᵢ xᵢ ≤ k, the threshold magician tracks the law pᵢ of broken wands Wᵢ ∈ {0, …, k} and opens box i with state-dependent probability magicianOpenProb k γ pᵢ s (with magicianOpenProb … k = 0), achieving exact marginal opening probability γ whenever pᵢ k ≤ 1 - γ. The stop-loss potential Φᵢ(s) = E[(Wᵢ - s)₊] satisfies the monotone recurrence Φ_{i+1}(s) ≤ max(Φᵢ(s), (1 - xᵢ) Φᵢ(s) + xᵢ (Φᵢ(s - 1) - (1 - γ))). For k = 1, Φᵢ(0) ≤ γ ∑_{j<i} xⱼ ≤ 1/2 = 1 - γ. For k ≥ 2, an explicit C¹ convex quadratic spline super-solution U(t, s) = f_R(a t - s) with a = 1 - 1/(2s) - 1/(2s²) and R = a² / (4(a - γ)) (where s = √(k + 3)) bounds pᵢ(k) = Φᵢ(k - 1) ≤ U(k, k - 1) ≤ 1 - γ at every step (magicianDist_last_le).
  3. Online execution and derandomization: running the magician online with independent per-step coins achieves exact opening probability γ at every item independently of its value, giving expected total weight at least γ · E[OPT_k]. Averaging over the finite coin table extracts a single deterministic online k-selection policy DetKPolicy n with the same bound.

Main definitions #

Main results #

References #

Alaei's competitive ratio 1 - 1 / √(k + 3) #

Alaei's multiple-choice competitive ratio 1 - 1 / √(k + 3).

For every k ≥ 2, 1 - 1 / √(k + 3) strictly beats the 1/2 barrier.

As the capacity k → ∞, Alaei's ratio 1 - 1 / √(k + 3) tends to 1.

Quadratic spline super-solution for the γ-conservative magician #

The γ-conservative magician on Fin (k + 1) #

noncomputable def Cslib.Probability.OptimalStopping.MultiProphet.magicianOpenProb (k : ℕ) (γ : ℝ) (p : Fin (k + 1) → ℝ) (s : Fin (k + 1)) :

State-dependent box-opening probability of the γ-conservative magician when s wands have broken so far (always 0 at s = k).

noncomputable def Cslib.Probability.OptimalStopping.MultiProphet.magicianDist {n : ℕ} (k : ℕ) (γ : ℝ) (x : Fin n → ℝ) :
ℕ → Fin (k + 1) → ℝ

Distribution of broken wands before step i under the γ-conservative magician on break probabilities x : Fin n → ℝ.

theorem Cslib.Probability.OptimalStopping.MultiProphet.magicianOpenProb_mem_Icc {k : ℕ} (γ : ℝ) {p : Fin (k + 1) → ℝ} (hp : ∀ (j : Fin (k + 1)), 0 ≤ p j) (s : Fin (k + 1)) :

The state-dependent opening probability magicianOpenProb k γ p s lies in [0, 1] whenever p is nonnegative.

When all k wands have broken (s = Fin.last k), the magician never opens a box.

theorem Cslib.Probability.OptimalStopping.MultiProphet.magicianDist_valid {n : ℕ} (k : ℕ) (γ : ℝ) {x : Fin n → ℝ} (hx0 : ∀ (i : Fin n), 0 ≤ x i) (hx1 : ∀ (i : Fin n), x i ≤ 1) (i : ℕ) :
(∀ (s : Fin (k + 1)), 0 ≤ magicianDist k γ x i s) ∧ ∑ s : Fin (k + 1), magicianDist k γ x i s = 1

For break probabilities x i ∈ [0, 1], every step magicianDist k γ x i is a valid probability distribution on Fin (k + 1).

theorem Cslib.Probability.OptimalStopping.MultiProphet.magicianDist_last_le {n k : ℕ} (hk : 1 ≤ k) {x : Fin n → ℝ} (hx0 : ∀ (i : Fin n), 0 ≤ x i) (hx1 : ∀ (i : Fin n), x i ≤ 1) (hsum : ∑ i : Fin n, x i ≤ ↑k) (i : ℕ) :

Alaei's γ-conservative magician feasibility bound: for every capacity k ≥ 1 and break probabilities x : Fin n → ℝ in [0, 1] with ∑ i, x i ≤ k, at every step i the probability that all k wands are broken is at most 1 - magicianGamma k = 1 / √(k + 3).

theorem Cslib.Probability.OptimalStopping.MultiProphet.magician_openProb_eq {n k : ℕ} (hk : 1 ≤ k) {x : Fin n → ℝ} (hx0 : ∀ (i : Fin n), 0 ≤ x i) (hx1 : ∀ (i : Fin n), x i ≤ 1) (hsum : ∑ i : Fin n, x i ≤ ↑k) (i : ℕ) :

Alaei's γ-conservative magician marginal guarantee: at every step i, the marginal probability that the magician opens box i equals magicianGamma k = 1 - 1 / √(k + 3).

Deterministic online k-selection policies #

@[reducible, inline]

A deterministic online k-selection policy: at arrival i : Fin n, given the subset A of earlier items already accepted and the current item's value x : ℝ≥0, decides whether to accept item i.

The subset of Fin n accepted by running the deterministic online k-selection policy policy on weights w : Fin n → ℝ≥0, enforcing the capacity bound k.

theorem Cslib.Probability.OptimalStopping.MultiProphet.detKRun_card_le {n : ℕ} (k : ℕ) (policy : DetKPolicy n) (w : Fin n → NNReal) :
(detKRun k policy w).card ≤ k

Every deterministic online k-selection policy outputs a subset of size at most k.

Expected total weight collected by a deterministic online k-selection policy policy under independent nonnegative weight laws μ : Fin n → PMF ℝ≥0.

Ex-ante relaxation and online magician reduction #

Alaei's multiple-choice k-prophet inequality ([Ala14]): for every capacity k ≥ 1, every n : ℕ, and all independent nonnegative distributions μ : Fin n → PMF ℝ≥0 (with no integrability hypothesis), there exists a deterministic online k-selection policy policy (selecting at most k items on every realization) achieving expected total weight at least (1 - 1 / √(k + 3)) · expectedOpt (uniformMatroid (Fin n) k) μ.

Multiple-choice k-prophet inequality for arbitrary arrival orders: for any finite ground set E, capacity k ≥ 1, independent nonnegative distributions μ : E → PMF ℝ≥0, and arrival bijection σ : Fin (Fintype.card E) ≃ E, there exists a deterministic online k-selection policy in the order σ achieving at least (1 - 1 / √(k + 3)) · expectedOpt (uniformMatroid E k) μ.