Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, p. 6 — P(ALG/OPT ≥ E[ALG]/E[OPT] − 2ε/(c+ε)) ≥ 1 − 2exp(−2nε²), c = E[OPT]/n, for every random-lists algorithm

Proved
RandomListsMatching.Concentration.ratio_concentration

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

competitive-ratioconcentrationonline-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. Let n≥1n \ge 1n≥1 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 has impression type typ(ωj)\mathrm{typ}(\omega_j)typ(ωj​) and receives the list lst(ωj)\mathrm{lst}(\omega_j)lst(ωj​), and every list only contains advertisers interested in the type it comes with. Let ALG\mathrm{ALG}ALG be the number of requests assigned by the list-greedy rule of the Random Lists Algorithms, and OPT\mathrm{OPT}OPT the cardinality of a maximum matching of the realized graph. Put c=E[OPT]/nc = \mathbb E[\mathrm{OPT}]/nc=E[OPT]/n. Then for every ϵ>0\epsilon > 0ϵ>0,

P(ALGOPT≥E[ALG]E[OPT]−2ϵc+ϵ)≥1−2exp⁡(−2nϵ2).\mathbb P\left(\frac{\mathrm{ALG}}{\mathrm{OPT}} \ge \frac{\mathbb E[\mathrm{ALG}]}{\mathbb E[\mathrm{OPT}]} - \frac{2\epsilon}{c + \epsilon}\right) \ge 1 - 2\exp(-2n\epsilon^2).P(OPTALG​≥E[OPT]E[ALG]​−c+ϵ2ϵ​)≥1−2exp(−2nϵ2).

For every algorithm of the class, the competitive ratio in expectation, E[ALG]/E[OPT]\mathbb E[\mathrm{ALG}]/\mathbb E[\mathrm{OPT}]E[ALG]/E[OPT], and the ratio ALG/OPT\mathrm{ALG}/\mathrm{OPT}ALG/OPT achieved on most realizations are therefore close whenever E[OPT]\mathbb E[\mathrm{OPT}]E[OPT] grows linearly in nnn.

Formalization Note The law of the arrivals is ν⊗n\nu^{\otimes n}ν⊗n on Xn\mathcal X^nXn with the discrete σ-algebra; any joint law of type and list is allowed, which covers every Random Lists Algorithm. The hypothesis n≥1n \ge 1n≥1 is the paper's implicit "n requests" (c=E[OPT]/nc = \mathbb E[\mathrm{OPT}]/nc=E[OPT]/n). No hypothesis E[OPT]>0\mathbb E[\mathrm{OPT}] > 0E[OPT]>0 or OPT>0\mathrm{OPT} > 0OPT>0 is made; on realizations with OPT=0\mathrm{OPT} = 0OPT=0, and when E[OPT]=0\mathbb E[\mathrm{OPT}] = 0E[OPT]=0, Lean's convention x/0=0x/0 = 0x/0=0 applies, and the statement remains true under it.

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

open MeasureTheory

/-- The display concluding §2 (Jaillet & Lu, accepted manuscript (rev. June 2013), p. 6): for every
Random Lists Algorithm, every `n ≥ 1` and every `ε > 0`,
`P(ALG/OPT ≥ E[ALG]/E[OPT] − 2ε/(c + ε)) ≥ 1 − 2 exp(−2nε²)`, where `c = E[OPT]/n`. -/
theorem ratio_concentration {A I X : Type} [DecidableEq A] [Fintype A] (E : Finset (A × I))
    [Fintype X] [MeasurableSpace X] [DiscreteMeasurableSpace X] (ν : Measure X)
    [IsProbabilityMeasure ν] (typ : X → I) (lst : X → List A)
    (hint : ListsInterested E typ lst) (n : ℕ) (hn : 0 < n) (ε : ℝ) (hε : 0 < ε) :
    1 - 2 * Real.exp (-2 * (n : ℝ) * ε ^ 2) ≤
      (arrivalLaw ν n).real
        {ω | expALG ν lst n / expOPT ν E typ n - 2 * ε / (expOPT ν E typ n / (n : ℝ) + ε) ≤
          (ALG lst ω : ℝ) / (OPT E typ ω : ℝ)} := by sorry

end RandomListsMatching.Concentration
Source
Jaillet & Lu, Online Stochastic Matching: New Algorithms with Better Bounds, accepted manuscript (rev. June 2013), p. 6, display after Lemma 2 (concluding §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