Theorem 3.4 — Algorithm A is -competitive
ProvedSecretaryWD.Weighted.weighted_secretary_competitiveLet agents have nonnegative values and let goods have nonnegative weights in decreasing order. The offline benchmark matches the heaviest goods to the highest-value agents. Algorithm runs the reservation rule with probability or the classical secretary rule with probability , giving its winner the heaviest good. Over the uniform arrival order and the algorithm's independent choices,
This is the paper's weighted secretary guarantee, stated multiplicatively so a zero expected payoff cannot be hidden by division.
Formalization Note Ties favor the smaller agent index, the reservation sample size follows , and the classical rule observes arrivals. Goods beyond the number of agents may stay unassigned.
import Mathlib import Definitions.Def_SecretaryWD_Weighted_Assignment import Definitions.Def_SecretaryWD_Weighted_ReservationAlgorithm
namespace SecretaryWD.Weighted
/-- Theorem 3.4: Algorithm A has competitive ratio `8 + 3e`. -/
theorem weighted_secretary_competitive {n K : ℕ} (v : Fin n → ℝ) (w : Fin K → ℝ)
(hK : 0 < K) (hv : ∀ e, 0 ≤ v e) (hw : ∀ k, 0 ≤ w k)
(hmono : Antitone w) :
OPT v w ≤ (8 + 3 * Real.exp 1) * expectedAlgorithmA v w hK := by sorry
end SecretaryWD.Weighted
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.