Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9, p. 24 — Poisson deviation P(∣N(rn)−rn∣>rnϵn)≤C/nk\mathbb P(|N(r_n)-r_n|>r_n\epsilon_n)\le C/n^kP(∣N(rn​)−rn​∣>rn​ϵn​)≤C/nk

Proved
PrimalDualPricing.Regret.lemma_9

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

concentrationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1poisson-distribution

Let a,β,γ,η,q>0a,\beta,\gamma,\eta,q>0a,β,γ,η,q>0. For a sequence (rn)n≥1(r_n)_{n\ge1}(rn​)n≥1​ with rn≥anβr_n\ge a n^\betarn​≥anβ, set

ϵn=γ(log⁡n)1/2+ηrn−1/2,\epsilon_n=\gamma(\log n)^{1/2+\eta}r_n^{-1/2},ϵn​=γ(logn)1/2+ηrn−1/2​,

and let N(μ)N(\mu)N(μ) denote a Poisson random variable with mean μ\muμ. Then there is a constant CCC, depending only on a,β,γ,η,qa,\beta,\gamma,\eta,qa,β,γ,η,q and not on nnn or on the sequence, such that

P(∣N(rn)−rn∣>rnϵn)≤Cnqfor all n≥1.\mathbb P\big(|N(r_n)-r_n|>r_n\epsilon_n\big)\le\frac{C}{n^q}\qquad\text{for all }n\ge1.P(∣N(rn​)−rn​∣>rn​ϵn​)≤nqC​for all n≥1.

The lemma controls every Poisson count of the algorithm at once. Its bound decays faster than any power of nnn, so a union bound over the polynomially many grid points and phases costs nothing.

Formalization Note The page's α\alphaα and kkk are renamed aaa and qqq; they would clash with the algorithm's mark-up α\alphaα and phase index kkk. The page leaves α,γ>0\alpha,\gamma>0α,γ>0 implicit; they are stated here. CCC is chosen before the sequence (rn)(r_n)(rn​), as the page's "may depend on α,β,γ,η\alpha,\beta,\gamma,\etaα,β,γ,η and kkk" says. The probability is under the Poisson law with mean rnr_nrn​.

Preamble
import Mathlib
Formal statement
namespace PrimalDualPricing.Regret

open MeasureTheory ProbabilityTheory

/-- Lemma 9 (Chen–Gallego, arXiv:1812.09234v3, p. 24). Let `a, β, γ, η, q > 0` (the page's `α, β, γ, η, k`,
renamed to avoid a clash with the algorithm's mark-up `α` and phase index `k`). There is a constant `C`,
depending only on `a, β, γ, η, q`, such that for every sequence `(r_n)` with `r_n ≥ a n^β` (`n ≥ 1`) and
`ε_n = γ (log n)^{1/2+η} r_n^{−1/2}`,
`P(|N(r_n) − r_n| > r_n ε_n) ≤ C / n^q` for all `n ≥ 1`, where `N(μ)` is Poisson with mean `μ`. -/
theorem lemma_9 (a β γ η q : ℝ) (ha : 0 < a) (hβ : 0 < β) (hγ : 0 < γ) (hη : 0 < η)
    (hq : 0 < q) :
    ∃ C : ℝ, ∀ r : ℕ → ℝ, (∀ n : ℕ, 1 ≤ n → a * (n : ℝ) ^ β ≤ r n) →
      ∀ n : ℕ, 1 ≤ n →
        (poissonMeasure (r n).toNNReal
            {x : ℕ | r n * (γ * Real.log n ^ (1 / 2 + η) * r n ^ (-(1 / 2 : ℝ)))
              < |(x : ℝ) - r n|}).toReal
          ≤ C / (n : ℝ) ^ q := by sorry

end PrimalDualPricing.Regret
Source
Chen, Gallego, A Primal-dual Learning Algorithm for Personalized Dynamic Pricing with an Inventory Constraint, arXiv:1812.09234v3, p. 24, Appendix B, Lemma 9
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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