Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.2 — a c/10c/10c/10-competitive rule stops in the first ntn_tnt​ steps of It\mathcal I_tIt​ with probability ≥t/c\ge t/c≥t/c

Proved
SecretaryWD.DiscLower.competitive_stopByProb_ge

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

lower-boundp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1secretary-problem

Let c≥1c\ge1c≥1, L=cL=cL=c, n=L4cn=L^{4c}n=L4c, with the step discount ddd, the block ends nt=L2tn_t=L^{2t}nt​=L2t and the instances I1,…,I2c\mathcal I_1,\dots,\mathcal I_{2c}I1​,…,I2c​ of §4.1.1. Let AAA be a randomized online stopping rule that is c/10c/10c/10-competitive on these instances:

E[OPT(Is)] ≤ c10 E[A(Is)](1≤s≤2c).\mathbb E[\mathrm{OPT}(\mathcal I_s)]\ \le\ \frac c{10}\,\mathbb E[A(\mathcal I_s)]\qquad(1\le s\le 2c).E[OPT(Is​)] ≤ 10c​E[A(Is​)](1≤s≤2c).

Then for every ttt with 1≤t≤2c1\le t\le 2c1≤t≤2c,

Pr⁡It[A selects one of the first nt arrivals] ≥ tc.\Pr_{\mathcal I_t}[A\text{ selects one of the first } n_t\text{ arrivals}]\ \ge\ \frac tc.It​Pr​[A selects one of the first nt​ arrivals] ≥ ct​.

At t=2ct=2ct=2c the bound is 2>12>12>1, which is how Theorem 4.3 follows.

Formalization Note Competitiveness is assumed only on I1,…,I2c\mathcal I_1,\dots,\mathcal I_{2c}I1​,…,I2c​, which is all the proof uses. For c<10c<10c<10 the hypothesis cannot hold (since E[A]≤E[OPT]\mathbb E[A]\le\mathbb E[\mathrm{OPT}]E[A]≤E[OPT] and E[OPT(Is)]>0\mathbb E[\mathrm{OPT}(\mathcal I_s)]>0E[OPT(Is​)]>0), so the lemma has content for c≥10c\ge10c≥10.

Preamble
import Mathlib
import Definitions.Def_SecretaryWD_DiscLower_DiscountedSecretary
import Definitions.Def_SecretaryWD_DiscLower_HardInstances
Formal statement
namespace SecretaryWD.DiscLower

theorem competitive_stopByProb_ge (c : ℕ) (hc : 1 ≤ c) (A : StoppingRule (horizon c))
    (hA : ∀ s : ℕ, 1 ≤ s → s ≤ 2 * c →
      expectedOPT (discount c) (hardInstance c s) ≤
        (c : ℝ) / 10 * expectedValue (discount c) (hardInstance c s) A)
    (t : ℕ) (ht1 : 1 ≤ t) (ht2 : t ≤ 2 * c) :
    (t : ℝ) / c ≤ stopByProb (hardInstance c t) A (blockEnd c t) := by sorry

end SecretaryWD.DiscLower
Source
Babaioff, Dinitz, Gupta, Immorlica and Talwar, Secretary Problems: Weights and Discounts, SODA 2009 (authors' version), p. 6, Lemma 4.2
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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