Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.3 (independence) — the random partition is a partition matroid whose independent sets are forests

Proved
SecretaryWD.Graphic.random_partition_indep_acyclic

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

graphic-matroidmatroidp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1partition-matroid

Let GGG be a finite simple graph with edge set EEE, and let PPP be any outcome of the random partition of Lemma 5.3 (any family of parts with positive probability). Then

  1. PPP is a partition of a subset of EEE: its parts are nonempty, pairwise disjoint, and contained in EEE;
  2. every set SSS that is independent in the partition matroid of PPP (each element of SSS in some part, at most one element of SSS per part) is acyclic.

This is the second bullet of Definition 5.1 for the construction of Lemma 5.3. The paper argues it as follows: picking one bichromatic edge incident on each red node gives a forest, and the union of such a forest with a forest of blue-blue edges is still a forest. Together with the expectation bound it gives the 333-partition property.

Formalization Note. The claim is for every partition in the support, not on average.

Preamble
import Mathlib
import Definitions.Def_SecretaryWD_Graphic_GraphicMatroid
import Definitions.Def_SecretaryWD_Graphic_RandomPartition
Formal statement
namespace SecretaryWD.Graphic
theorem random_partition_indep_acyclic {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] :
    ∀ P ∈ (partitionPMF G.edgeFinset).support,
      IsPartitionOf G.edgeFinset P ∧
        ∀ S : Finset (Sym2 V), IsPartIndep P S → IsAcyclicSet S := by sorry
end SecretaryWD.Graphic
Source
Babaioff, Dinitz, Gupta, Immorlica and Talwar, Secretary Problems: Weights and Discounts, SODA 2009 (authors' version), p. 9, proof of Lemma 5.3 ("It is easy to see that picking one bichromatic edge ...")
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