§2 — the classical secretary rule selects the maximum with probability at least
ProvedSecretaryWD.DiscUpper.classical_secretary_guaranteeLet and let be arbitrary real values of elements, ranked by the tie-break order (larger value first, smaller index on equal values). Let the elements arrive in a uniformly random order and run the classical secretary rule on their keys: observe the first arrivals, then select the first arrival ranking above all earlier ones. Then
This is the guarantee behind the paper's statement that the classical secretary algorithm is -competitive; Theorem 4.4 applies it to the arrivals in one discount class.
Formalization Note. The probability is the fraction of the orders for which the rule returns a position whose element is the maximum of the tie-break order. Because the tie-break order is strict and total, no distinctness of values is assumed.
import Mathlib import Definitions.Def_SecretaryWD_DiscUpper_ClassicalSecretary
namespace SecretaryWD.DiscUpper
theorem classical_secretary_guarantee (m : ℕ) (hm : 1 ≤ m) (v : Fin m → ℝ) :
1 / Real.exp 1 ≤
(1 / (m.factorial : ℝ)) *
((Finset.univ.filter fun σ : Equiv.Perm (Fin m) =>
∃ t : Fin m, classicalSecretary m (fun s => tieKey v (σ s)) = some t ∧
∀ e : Fin m, tieKey v e ≤ tieKey v (σ t)).card : ℝ) := by sorry
end SecretaryWD.DiscUpper
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.