Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5, p. 58 (second inequality) — d_KL(q‖p) ≥ (p−q)²/(2q) for 0 ≤ p ≤ q ≤ 1

Proved
BwSC.LowerBound.lemma_5_reverse

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

information-theorykl-divergencep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pinsker-inequality

Let 0≤p≤q≤10\le p\le q\le 10≤p≤q≤1 and let dKL(x ∥ y)=xlog⁡xy+(1−x)log⁡1−x1−yd_{\rm KL}(x\,\|\,y)=x\log\frac xy+(1-x)\log\frac{1-x}{1-y}dKL​(x∥y)=xlogyx​+(1−x)log1−y1−x​ be the Kullback–Leibler divergence between Bernoulli distributions of parameters xxx and yyy (valued in [0,∞][0,\infty][0,∞]). Then

dKL(q ∥ p) ≥ (p−q)22q.d_{\rm KL}(q\,\|\,p)\ \ge\ \frac{(p-q)^2}{2q}.dKL​(q∥p) ≥ 2q(p−q)2​.

This is the second half of the localized Pinsker inequality (Lemma 5); the first half, dKL(p ∥ q)≥(p−q)2/(2q)d_{\rm KL}(p\,\|\,q)\ge (p-q)^2/(2q)dKL​(p∥q)≥(p−q)2/(2q), is the published ExploreFirst.Collective.lemma_6. The reverse half is what the generalized reverse Fano inequality needs when DDD is the reverse KL divergence.

Formalization Note The Bernoulli divergence is the published ExploreFirst.FundIneq.klBer, the KL divergence of the two Bernoulli laws, which is +∞+\infty+∞ when p∈{0,1}p\in\{0,1\}p∈{0,1} and q≠pq\neq pq=p. The bound is stated in [0,∞][0,\infty][0,∞]. At q=0q=0q=0 the right side is 0/00/00/0, which is 000 in Lean; then p=q=0p=q=0p=q=0 and the claim is trivially true, as on the page.

Preamble
import Mathlib
import Definitions.Def_ExploreFirst_FundIneq_Setting

open MeasureTheory ProbabilityTheory InformationTheory
open scoped ENNReal
Formal statement
namespace BwSC.LowerBound

/-- Lemma 5, p. 58, second inequality: if `0 ≤ p ≤ q ≤ 1` then
`d_KL(q ∥ p) ≥ (p - q)² / (2q)`, where `d_KL(q ∥ p)` is the Bernoulli divergence. -/
theorem lemma_5_reverse (p q : ℝ) (hp : 0 ≤ p) (hpq : p ≤ q) (hq : q ≤ 1) :
    ENNReal.ofReal ((p - q) ^ 2 / (2 * q)) ≤ ExploreFirst.FundIneq.klBer q p := by sorry

end BwSC.LowerBound
Source
Simchi-Levi & Xu, Phase Transitions in Bandits with Switching Constraints, arXiv:1905.10825v4, p. 58, Lemma 5 (Localized Pinsker's Inequality, version 2), second inequality
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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