Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — E[(B − k)₊] ≤ 1/(4ε) if (p + ε)n ≤ k, and E[(k − B)₊] ≤ 1/(4ε) if k ≤ (p − ε)n

Proved
MultiSecretary.NonAdaptive.binomial_overshoot

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

binomialconcentrationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let BBB be a binomial random variable with nnn trials and success probability p∈[0,1]p\in[0,1]p∈[0,1], let k≥0k\ge0k≥0 be an integer and ε>0\varepsilon>0ε>0. Then

E[(B−k)+]≤14εif (p+ε)n≤k,E[(k−B)+]≤14εif k≤(p−ε)n.\mathbb E[(B-k)_+]\le\frac1{4\varepsilon}\quad\text{if }(p+\varepsilon)n\le k,\qquad \mathbb E[(k-B)_+]\le\frac1{4\varepsilon}\quad\text{if }k\le(p-\varepsilon)n.E[(B−k)+​]≤4ε1​if (p+ε)n≤k,E[(k−B)+​]≤4ε1​if k≤(p−ε)n.

The overshoot of a binomial beyond a level a constant fraction above (or below) its mean is bounded uniformly in nnn. It is used repeatedly: for Lemma 4, Proposition 6 and the proof of Theorem 3.

Formalization Note The expectations are written with the binomial probability mass function. The paper states the conditions as p+ε≤k/np+\varepsilon\le k/np+ε≤k/n and k/n≤p−εk/n\le p-\varepsilonk/n≤p−ε; they are stated in the multiplied form its proof uses (p. 32), which agrees for n≥1n\ge1n≥1 and avoids k/0=0k/0=0k/0=0 in Lean.

Preamble
import Mathlib
Formal statement
namespace MultiSecretary.NonAdaptive

open Finset

/-- Lemma 2 (p. 8): for `B ~ Binomial(n, p)` and `ε > 0`,
`E[(B - k)_+] ≤ 1/(4ε)` if `(p + ε) n ≤ k`, and `E[(k - B)_+] ≤ 1/(4ε)` if `k ≤ (p - ε) n`. -/
theorem binomial_overshoot (n k : ℕ) (p ε : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1) (hε : 0 < ε) :
    ((p + ε) * n ≤ k →
      ∑ i ∈ range (n + 1), (n.choose i : ℝ) * p ^ i * (1 - p) ^ (n - i) *
        max ((i : ℝ) - k) 0 ≤ 1 / (4 * ε)) ∧
    ((k : ℝ) ≤ (p - ε) * n →
      ∑ i ∈ range (n + 1), (n.choose i : ℝ) * p ^ i * (1 - p) ^ (n - i) *
        max ((k : ℝ) - i) 0 ≤ 1 / (4 * ε)) := by sorry

end MultiSecretary.NonAdaptive
Source
Arlotto, Gurvich, Uniformly Bounded Regret in the Multi-Secretary Problem, arXiv:1710.07719v2, Lemma 2, eq. (8), p. 8 (proof p. 32)
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