Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof sketch of Theorem 2.1, PDF p. 2 — given |Y ∩ T| = r, the expected modified value of Y is (r/k)v

Proved
MultiChoiceSecretary.Alg.modVal_given_card

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

conditional-expectationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-ordersecretary-problem

Let SSS be a finite set of nnn non-negative reals, 1≤k≤n1 \le k \le n1≤k≤n, TTT the kkk largest elements of SSS and vvv their sum. The modified value of a set is the sum of its elements lying in TTT. Let YYY be the set of the first mmm arrivals of a uniformly random order of SSS, m∼B(n,1/2)m \sim B(n,1/2)m∼B(n,1/2) independent. Conditional on ∣Y∩T∣=r|Y\cap T| = r∣Y∩T∣=r, the expected modified value of YYY is (r/k)v(r/k)v(r/k)v. Multiplied by the probability of the event, this reads: for every r≥0r \ge 0r≥0,

E[modval(Y) 1{∣Y∩T∣=r}]=(kr)2−k⋅rk v.\mathbb E\big[\mathrm{modval}(Y)\,\mathbf 1\{|Y\cap T| = r\}\big] = \binom{k}{r}2^{-k}\cdot\frac{r}{k}\,v.E[modval(Y)1{∣Y∩T∣=r}]=(rk​)2−k⋅kr​v.

This is the "second consequence" in the proof sketch of Theorem 2.1.

Formalization Note. The conditional expectation is stated multiplied by Pr⁡(∣Y∩T∣=r)=(kr)2−k\Pr(|Y\cap T| = r) = \binom{k}{r}2^{-k}Pr(∣Y∩T∣=r)=(rk​)2−k, which avoids dividing by a probability. The hypothesis k≤nk \le nk≤n is added, as for the distribution of ∣Y∩T∣|Y \cap T|∣Y∩T∣.

Preamble
import Mathlib
import Definitions.Def_MultiChoiceSecretary_Alg_Setting
Formal statement
namespace MultiChoiceSecretary.Alg

theorem modVal_given_card (S : Finset ℝ) (hS : ∀ x ∈ S, 0 ≤ x) (k : ℕ) (hk : 1 ≤ k)
    (hkn : k ≤ S.card) :
    ∀ r : ℕ, splitAvg S (fun Y => if (Y ∩ topK S k).card = r then modVal S k Y else 0) =
      (k.choose r : ℝ) / 2 ^ k * ((r : ℝ) / k * topSum S k) := by sorry

end MultiChoiceSecretary.Alg
Source
Kleinberg, A multiple-choice secretary algorithm with applications to online auctions, SODA 2005, PDF p. 2, proof sketch of Theorem 2.1, "Second, conditional on the event |Y ∩ T| = r, the expected modified value of Y is (r/k)v."
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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