The classical secretary rule selects the maximum with probability at least 1/e
ProvedSecretaryWD.Graphic.classical_secretary_guaranteeLet and let be real values, ranked by the tie-break order (larger value first, and among equal values the smaller index first). Let the elements arrive in a uniformly random order. The classical secretary rule observes the first arrivals and then selects the first arrival that ranks above every earlier arrival. Then
This is the guarantee behind the paper's remark that the classical secretary algorithm is -competitive. Theorem 5.4 applies it to each part of a partition matroid.
Formalization Note. The probability is the number of arrival orders for which the selected position carries the top-ranked element, divided by . The arrival order is (time element), and the keys handed to the rule are the tie-break keys of . For the sample is empty and the probability is and .
import Mathlib import Definitions.Def_SecretaryWD_DiscUpper_ClassicalSecretary
namespace SecretaryWD.Graphic
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, SecretaryWD.DiscUpper.classicalSecretary m (fun s => SecretaryWD.DiscUpper.tieKey v (σ s)) = some t ∧
∀ e : Fin m, SecretaryWD.DiscUpper.tieKey v e ≤ SecretaryWD.DiscUpper.tieKey v (σ t)).card : ℝ) := by sorry
end SecretaryWD.Graphic
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.