Theorem 4.4 — for the discounted secretary problem
ProvedSecretaryWD.DiscUpper.discounted_secretary_upper_boundConsider the discounted secretary problem with elements of values , arriving in a uniformly random order , and a discount function on the times, known to the algorithm; selecting the element arriving at time earns . Let be the algorithm that chooses a discount class , , uniformly at random and runs the classical secretary rule on the arrivals at the times . Then
In particular is -competitive.
This is the logarithmic upper bound for the discounted secretary problem with an arbitrary discount function, which together with the paper's lower bound determines the competitive ratio up to a factor.
Formalization Note. The paper states . The statement is multiplicative (no division by ) and the constant is the explicit one the proof yields: from the top-classes estimate, from the per-class classical rule, from the uniform choice of class. Both expectations are exact finite averages over the orders (and over ). The comparisons use the tie-break order (larger value first, smaller index on equal values); no distinctness of values is assumed.
import Mathlib import Definitions.Def_SecretaryWD_DiscUpper_Algorithm
namespace SecretaryWD.DiscUpper
theorem discounted_secretary_upper_bound (n : ℕ) (hn : 1 ≤ n) (d v : Fin n → ℝ)
(hd : ∀ t, 0 ≤ d t) (hv : ∀ e, 0 ≤ v e) :
expectedOpt d v ≤ 4 * Real.exp 1 * (classCount n : ℝ) * algorithmValue d v := by sorry
end SecretaryWD.DiscUpper
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.