Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p. 5 — P(OPT − E[OPT] > nε) ≤ exp(−2nε²)

Proved
RandomListsMatching.Concentration.lemma2_opt_upper_tail

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

bipartite-matchingconcentrationonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let G={A∪I,E}G = \{A \cup I, E\}G={A∪I,E} be a bipartite graph with finitely many advertisers AAA, and 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 having impression type typ(ωj)∈I\mathrm{typ}(\omega_j) \in Ityp(ωj​)∈I. Let OPT\mathrm{OPT}OPT be the cardinality of a maximum matching of the realized graph, in which request jjj may be assigned to advertiser aaa iff (a,typ(ωj))∈E(a, \mathrm{typ}(\omega_j)) \in E(a,typ(ωj​))∈E and every advertiser receives at most one request. Then for every ϵ>0\epsilon > 0ϵ>0,

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

The offline optimum exceeds its mean by a linear amount only with exponentially small probability; together with Lemma 1 this gives the concluding display of Section 2.

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. OPT depends on the outcomes only through the types. The inequality inside the probability is strict, as printed.

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

open MeasureTheory

/-- **Lemma 2** (Jaillet & Lu, accepted manuscript (rev. June 2013), §2, p. 5).
`P(OPT − E[OPT] > nε) ≤ exp(−2nε²)` for `n` i.i.d. arrivals whose impression types are
`typ (ω j)`. -/
theorem lemma2_opt_upper_tail {A I X : Type} [Fintype A] (E : Finset (A × I)) [Fintype X]
    [MeasurableSpace X] [DiscreteMeasurableSpace X] (ν : Measure X) [IsProbabilityMeasure ν]
    (typ : X → I) (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
    (arrivalLaw ν n).real {ω | (OPT E typ ω : ℝ) - expOPT ν E typ 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 2
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