Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.1 (Chernoff bound 1) — P(Ξ ≥ (1+δ)s) ≤ (e^δ/(1+δ)^{1+δ})^s for weighted Bernoulli sums

Proved
BudgetedAffine.Budget.lemma_B_1

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

chernoff-boundp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let ξ1,…,ξr\xi_1,\dots,\xi_rξ1​,…,ξr​ be independent Bernoulli trials with parameters pi∈[0,1]p_i\in[0,1]pi​∈[0,1], and let Ξ=∑i=1rαiξi\Xi=\sum_{i=1}^r\alpha_i\xi_iΞ=∑i=1r​αi​ξi​ with α1,…,αr∈[0,1]\alpha_1,\dots,\alpha_r\in[0,1]α1​,…,αr​∈[0,1]. Let s>0s>0s>0 with E(Ξ)≤s\mathbb E(\Xi)\le sE(Ξ)≤s. Then for every δ>0\delta>0δ>0,

P(Ξ≥(1+δ)s)≤(eδ(1+δ)1+δ)s.\mathbb P\big(\Xi\ge(1+\delta)s\big)\le\left(\frac{e^\delta}{(1+\delta)^{1+\delta}}\right)^s.P(Ξ≥(1+δ)s)≤((1+δ)1+δeδ​)s.

This variant of the Raghavan–Spencer inequality is the concentration bound behind Claim 3.2.

Formalization Note The probability and expectation are those of independent Bernoulli selection (the referenced definition SpectralSparsify.Sampling.BernoulliSubset): the outcome is the set TTT of indices iii with ξi=1\xi_i=1ξi​=1, so Ξ=∑i∈Tαi\Xi=\sum_{i\in T}\alpha_iΞ=∑i∈T​αi​. The powers are real powers.

Preamble
import Mathlib
import Definitions.Def_SpectralSparsify_Sampling_BernoulliSubset
Formal statement
namespace BudgetedAffine.Budget

open SpectralSparsify.Sampling

/-- Lemma B.1 (Chernoff bound 1): for independent Bernoulli `ξ₁, …, ξ_r` (parameters `pᵢ`; the
outcome is the set `T` of indices with `ξᵢ = 1`), `Ξ = ∑ αᵢ ξᵢ = ∑_{i ∈ T} αᵢ` with `αᵢ ∈ [0,1]`,
`s > 0` with `E(Ξ) ≤ s` and `δ > 0`: `P(Ξ ≥ (1 + δ) s) ≤ (e^δ / (1 + δ)^{1+δ})^s`. -/
theorem lemma_B_1 (r : ℕ) (p a : Fin r → ℝ) (hp : ∀ i, 0 ≤ p i ∧ p i ≤ 1)
    (ha : ∀ i, 0 ≤ a i ∧ a i ≤ 1) (s : ℝ) (hs : 0 < s)
    (hE : expect Finset.univ p (fun T => ∑ i ∈ T, a i) ≤ s) (δ : ℝ) (hδ : 0 < δ) :
    prob Finset.univ p (fun T => (1 + δ) * s ≤ ∑ i ∈ T, a i) ≤
      (Real.exp δ / (1 + δ) ^ (1 + δ)) ^ s := by sorry

end BudgetedAffine.Budget
Source
El Housni, Goyal, On the Optimality of Affine Policies for Budgeted Uncertainty Sets, arXiv:1807.00163v2, Lemma B.1, p. 32
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

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