Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, p. 5 — P(ALG − E[ALG] < −nε) ≤ exp(−2nε²)

Proved
RandomListsMatching.Concentration.lemma1_alg_lower_tail

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

concentrationonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-lists

Let nnn requests arrive with outcomes ω1,…,ωn\omega_1, \dots, \omega_nω1​,…,ωn​ drawn i.i.d. from a probability law ν\nuν on a finite set X\mathcal XX, the jjj-th request receiving the list lst(ωj)\mathrm{lst}(\omega_j)lst(ωj​) of advertisers, and let ALG\mathrm{ALG}ALG be the number of requests assigned by the list-greedy rule (each request goes to the first unmatched advertiser of its list, or is dropped). Then for every ϵ>0\epsilon > 0ϵ>0,

P(ALG−E[ALG]<−nϵ)≤exp⁡(−2nϵ2).\mathbb P\bigl(\mathrm{ALG} - \mathbb E[\mathrm{ALG}] < -n\epsilon\bigr) \le \exp(-2n\epsilon^2).P(ALG−E[ALG]<−nϵ)≤exp(−2nϵ2).

The online algorithm therefore falls far below its mean only with exponentially small probability; with Lemma 2 this links the ratio of expectations to the ratio on most realizations.

Formalization Note The law of the arrivals is the product measure ν⊗n\nu^{\otimes n}ν⊗n on Xn\mathcal X^nXn, with the discrete σ-algebra on the finite set X\mathcal XX. Types play no role here, and the lists are arbitrary. The inequality inside the probability is strict and the bound is a single exponential, as printed. At n=0n = 0n=0 the event is empty.

Preamble
import Mathlib
import Definitions.Def_RandomListsMatching_Concentration_Setting
Formal statement
namespace RandomListsMatching.Concentration

open MeasureTheory

/-- **Lemma 1** (Jaillet & Lu, accepted manuscript (rev. June 2013), §2, p. 5).
`P(ALG − E[ALG] < −nε) ≤ exp(−2nε²)` for `n` i.i.d. arrivals, each carrying a list drawn
jointly with its type from a finite law `ν`. -/
theorem lemma1_alg_lower_tail {A X : Type} [DecidableEq A] [Fintype X] [MeasurableSpace X]
    [DiscreteMeasurableSpace X] (ν : Measure X) [IsProbabilityMeasure ν] (lst : X → List A)
    (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
    (arrivalLaw ν n).real {ω | (ALG lst ω : ℝ) - expALG ν lst n < -((n : ℝ) * ε)} ≤
      Real.exp (-2 * (n : ℝ) * ε ^ 2) := by sorry

end RandomListsMatching.Concentration
Source
Jaillet & Lu, Online Stochastic Matching: New Algorithms with Better Bounds, accepted manuscript (rev. June 2013), p. 5, Lemma 1
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

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