Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.4 (first clause) — e-competitive algorithm on partition matroids

Proved
SecretaryWD.Graphic.partition_secretary_competitive

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

online-algorithmsp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1partition-matroidsecretary-problem

Let EEE be a finite set of edges and let PPP be a partition of a subset of EEE: a finite family of nonempty, pairwise disjoint parts contained in EEE. Let v≥0v\ge 0v≥0 be edge values. Run the classical secretary rule separately on the arrivals of each part, with the edges of EEE arriving in a uniformly random order π\piπ. Then

  1. for every order π\piπ, the output is independent in the partition matroid: every selected edge lies in a part, and at most one edge is selected from each part;
  2. the expected value of the output is at least a 1/e1/e1/e fraction of the max-weight base of the partition matroid:
∑p∈Pmax⁡e∈pv(e)  ≤  e⋅1∣E∣!∑πALG(P,π).\sum_{p\in P}\max_{e\in p} v(e)\;\le\; e\cdot \frac{1}{|E|!}\sum_\pi \mathrm{ALG}(P,\pi).p∈P∑​e∈pmax​v(e)≤e⋅∣E∣!1​π∑​ALG(P,π).

This is the first clause of Theorem 5.4: on partition matroids there is an eee-competitive algorithm for the matroid secretary problem. Combined with an α\alphaα-partition property it yields an eαe\alphaeα-competitive algorithm.

Formalization Note. The partition is fixed (deterministic) here. The competitive ratio is stated multiplicatively. Ties between equal values are broken by a fixed enumeration of EEE.

Preamble
import Mathlib
import Definitions.Def_SecretaryWD_Graphic_PartitionSecretary
Formal statement
namespace SecretaryWD.Graphic
theorem partition_secretary_competitive {V : Type*} [Fintype V] [DecidableEq V]
    (E : Finset (Sym2 V)) (P : Finset (Finset (Sym2 V))) (hP : IsPartitionOf E P)
    (v : Sym2 V → ℝ) (hv : ∀ e, 0 ≤ v e) :
    (∀ π : Equiv.Perm (Fin E.card), IsPartIndep P (partitionSecretaryOutput E v P π)) ∧
      partitionValue P v ≤
        Real.exp 1 * SecretaryWD.DiscUpper.uniformAvg fun π => partitionSecretaryValue E v P π := by sorry
end SecretaryWD.Graphic
Source
Babaioff, Dinitz, Gupta, Immorlica and Talwar, Secretary Problems: Weights and Discounts, SODA 2009 (authors' version), pp. 9-10, Theorem 5.4 (first clause) and its proof
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me