Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1(ii), p. 1272 — h(p, ε) ≥ ε²/[2(p + ε/3)(q − ε/3)] + εφ(t)/t, t = ε/(q − ε)

Proved
MassartDKW.Binom.lemma_1_ii

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

binomialconcentrationcramer-transformp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1relative-entropy

Let 0<ε≤q=1−p<10 < \varepsilon \le q = 1 - p < 10<ε≤q=1−p<1 (so p>0p > 0p>0), and let

h(p,ε)=(p+ε)log⁡p+εp+(q−ε)log⁡q−εq,φ(t)=t−t22(1+2t/3)−log⁡(1+t).h(p,\varepsilon) = (p+\varepsilon)\log\frac{p+\varepsilon}{p} + (q-\varepsilon)\log\frac{q-\varepsilon}{q}, \qquad \varphi(t) = t - \frac{t^2}{2(1 + 2t/3)} - \log(1+t).h(p,ε)=(p+ε)logpp+ε​+(q−ε)logqq−ε​,φ(t)=t−2(1+2t/3)t2​−log(1+t).

Then, with t=ε/(q−ε)t = \varepsilon/(q-\varepsilon)t=ε/(q−ε),

h(p,ε)  ≥  ε22 (p+ε/3)(q−ε/3)+ε φ(t)t.h(p,\varepsilon) \;\ge\; \frac{\varepsilon^2}{2\,(p + \varepsilon/3)(q - \varepsilon/3)} + \frac{\varepsilon\,\varphi(t)}{t}.h(p,ε)≥2(p+ε/3)(q−ε/3)ε2​+tεφ(t)​.

When ε=q\varepsilon = qε=q the parameter ttt is +∞+\infty+∞, and the term εφ(t)/t\varepsilon\varphi(t)/tεφ(t)/t is read as its limit ε/4\varepsilon/4ε/4 (Lemma 1(i)); the inequality then reads h(p,q)≥q2/[2(p+q/3)(2q/3)]+q/4h(p,q) \ge q^2/[2(p+q/3)(2q/3)] + q/4h(p,q)≥q2/[2(p+q/3)(2q/3)]+q/4.

This is part (ii) of Massart's Lemma 1: a lower bound for the Cramér transform of the Bernoulli law that sharpens the classical quadratic (Bernstein-type) bound. Combined with the Cramér–Chernoff bound (Comment 3) and φ≥0\varphi \ge 0φ≥0 it yields the binomial tail inequality of Theorem 2; in the paper it is also an ingredient of Proposition 1.

Formalization Note. The statement is split into the two cases ε<q\varepsilon < qε<q, where t=ε/(q−ε)t = \varepsilon/(q - \varepsilon)t=ε/(q−ε) is a real number, and ε=q\varepsilon = qε=q, where the correction term takes its limiting value ε/4\varepsilon/4ε/4. Without the split, Lean's convention x/0=0x/0 = 0x/0=0 would turn the case ε=q\varepsilon = qε=q into the weaker claim with correction term 000. The page's hypothesis q<1q < 1q<1 is p>0p > 0p>0; qqq is written out as 1−p1 - p1−p.

Preamble
import Mathlib
import Definitions.Def_MassartDKW_Binom_Setting
Formal statement
namespace MassartDKW.Binom

/-- Massart (1990), Lemma 1(ii), p. 1272: for `0 < ε ≤ q = 1 − p < 1`,
`h(p, ε) ≥ ε²/[2(p + ε/3)(q − ε/3)] + εφ(t)/t` with `t = ε/(q − ε)`.
For `ε < q` the term `εφ(t)/t` is evaluated at the real number `t = ε/(q − ε)`; at `ε = q`
(`t = ∞`) it takes its limiting value `ε/4` (Lemma 1(i)). -/
theorem lemma_1_ii (p ε : ℝ) (hp : 0 < p) (hε : 0 < ε) (hεq : ε ≤ 1 - p) :
    (ε < 1 - p →
      ε ^ 2 / (2 * (p + ε / 3) * (1 - p - ε / 3))
          + ε * phi (ε / (1 - p - ε)) / (ε / (1 - p - ε)) ≤ h p ε) ∧
    (ε = 1 - p →
      ε ^ 2 / (2 * (p + ε / 3) * (1 - p - ε / 3)) + ε / 4 ≤ h p ε) := by sorry

end MassartDKW.Binom
Source
Massart, The tight constant in the Dvoretzky–Kiefer–Wolfowitz inequality, Ann. Probab. 18 (1990), p. 1272, Lemma 1(ii)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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