Theorem 1.5 — a 3e-competitive algorithm for the graphic matroid secretary problem
ProvedSecretaryWD.Graphic.graphic_matroid_secretary_competitiveLet be a finite simple graph and let assign a value to each edge. The edges arrive one at a time in a uniformly random order, and an online algorithm must decide irrevocably on arrival whether to select each edge; the selected edges must form a forest. is the largest total value of an acyclic set of edges.
The algorithm: before the first arrival, draw the random partition of the edges of Lemma 5.3, independently of the order. On each part, run the classical secretary rule on that part's arrivals. Output all selected edges.
Then
- every output of the algorithm (for every partition it can draw and every arrival order) is a set of edges of containing no cycle; and
- the algorithm is -competitive:
where the expectation is over the random partition and the uniformly random arrival order.
This is Theorem 1.5 of the paper (), which improved the earlier -competitive algorithm for graphic matroids.
Formalization Note. The constant is explicit: from Lemma 5.3 and from the classical secretary rule in each part. Competitiveness is multiplicative, so a zero expected value is not a loophole. Part 1 rules out the trivial algorithm that selects every edge. Ties between equal values are broken by a fixed enumeration of the edges; the classical rule observes of the arrivals of a part. Simple graphs only: parallel edges and loops are excluded.
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib import Definitions.Def_SecretaryWD_Graphic_RandomPartition import Definitions.Def_SecretaryWD_Graphic_PartitionSecretary
namespace SecretaryWD.Graphic
theorem graphic_matroid_secretary_competitive {V : Type*} [Fintype V] [DecidableEq V]
(G : SimpleGraph V) [DecidableRel G.Adj] (v : Sym2 V → ℝ) (hv : ∀ e, 0 ≤ v e) :
(∀ P ∈ (partitionPMF G.edgeFinset).support, ∀ π : Equiv.Perm (Fin G.edgeFinset.card),
partitionSecretaryOutput G.edgeFinset v P π ⊆ G.edgeFinset ∧
IsAcyclicSet (partitionSecretaryOutput G.edgeFinset v P π)) ∧
OPT G.edgeFinset v ≤
3 * Real.exp 1 * expectedAlgValue G.edgeFinset v (partitionPMF G.edgeFinset) := by sorry
end SecretaryWD.Graphic
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.