Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2) — transportation inequality for δ\deltaδ-PAC strategies

Proved
OptimalBAI.LowerBound.transportation_inequality

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

best-arm-identificationchange-of-measurelower-boundp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix a canonical one-parameter exponential family and KKK arms. Let S\mathcal SS be a set of bandit models of the family, each of which has a unique optimal arm, and let δ∈(0,1/2]\delta \in (0, 1/2]δ∈(0,1/2]. Consider a strategy (π,τ,ψ)(\pi, \tau, \psi)(π,τ,ψ) — τ\tauτ a stopping time of the natural filtration and ψ\psiψ an Fτ\mathcal F_\tauFτ​-measurable decision — that is δ\deltaδ-PAC on S\mathcal SS. For a model μ∈S\boldsymbol\mu \in \mathcal Sμ∈S write Eμ\mathbb E_{\boldsymbol\mu}Eμ​ for the expectation under the law of the trajectory it generates, and Na(t)N_a(t)Na​(t) for the number of draws of arm aaa among the first ttt rounds.

Then for every μ∈S\boldsymbol\mu \in \mathcal Sμ∈S and every λ∈S\boldsymbol\lambda \in \mathcal Sλ∈S whose optimal arm differs from that of μ\boldsymbol\muμ,

∑a=1Kd(μa,λa) Eμ[Na(τ)] ≥ kl(δ,1−δ),\sum_{a=1}^K d(\mu_a, \lambda_a)\, \mathbb E_{\boldsymbol\mu}\big[N_a(\tau)\big] \ \ge\ \mathrm{kl}(\delta, 1 - \delta),a=1∑K​d(μa​,λa​)Eμ​[Na​(τ)] ≥ kl(δ,1−δ),

where d(μa,λa)d(\mu_a, \lambda_a)d(μa​,λa​) is the Kullback–Leibler divergence between the reward laws of arm aaa under the two models and kl(x,y)=xlog⁡xy+(1−x)log⁡1−x1−y\mathrm{kl}(x, y) = x \log\frac{x}{y} + (1 - x) \log\frac{1 - x}{1 - y}kl(x,y)=xlogyx​+(1−x)log1−y1−x​ is the binary relative entropy.

This is the "transportation" inequality (Lemma 1 of Kaufmann, Cappé and Garivier, 2015) on which the proof of Theorem 1 rests: any strategy that distinguishes μ\boldsymbol\muμ from λ\boldsymbol\lambdaλ with error at most δ\deltaδ must collect, in expectation, at least kl(δ,1−δ)\mathrm{kl}(\delta, 1 - \delta)kl(δ,1−δ) nats of information.

Formalization Note The paper states the inequality for δ∈(0,1)\delta \in (0, 1)δ∈(0,1); it is false for δ∈(1/2,1)\delta \in (1/2, 1)δ∈(1/2,1) (a strategy that draws arm 1 once and decides by the fractional part of the reward is 0.90.90.9-PAC on unit-variance Gaussian models, while the left side can be arbitrarily small), so δ≤1/2\delta \le 1/2δ≤1/2 is assumed. Divergences and expectations are in [0,∞][0, \infty][0,∞]. Na(τ)N_a(\tau)Na​(τ) is read at τ\tauτ truncated to 000 where τ=∞\tau = \inftyτ=∞; that event has probability zero under the δ\deltaδ-PAC hypothesis. "Different optimal arms" is stated as: no arm is optimal for both models. Arms are 0-based in Lean.

Preamble
import Mathlib
import Definitions.Def_bernoulliRelativeEntropy
import Definitions.Def_TrackAndStop
import Definitions.Def_OptimalBAI_LowerBound_ExpFamily
import Definitions.Def_OptimalBAI_LowerBound_IsDeltaPAC

open MeasureTheory ENNReal InformationTheory BanditAlgorithm
Formal statement
namespace OptimalBAI.LowerBound

/-- Eq. (2) of Garivier–Kaufmann (arXiv:1602.04589v2, p. 4), the transportation inequality
(Lemma 1 of Kaufmann, Cappé, Garivier 2015), for `δ ∈ (0, 1/2]`. Let `𝒮` be any set of
exponential-family bandit models each with a unique optimal arm, `(π, τ, ψ)` a `δ`-PAC strategy on
`𝒮`, and `μ, λ ∈ 𝒮` with different optimal arms. Then
`∑_a d(μ_a, λ_a) E_μ[N_a(τ)] ≥ kl(δ, 1 - δ)`, with `d(μ_a, λ_a) = KL(ν_{θ_a}, ν_{θ'_a})` and
`N_a(τ)` the number of draws of arm `a` in the first `τ` rounds.

`(τ ω).toNat` is `0` when `τ ω = ⊤`; that event is null by the `δ`-PAC hypothesis. As in
Theorem 1, `δ ≤ 1/2` is added (false for `δ ∈ (1/2, 1)`). -/
theorem transportation_inequality {K : ℕ} (F : ExpFamily) (S : Set (Fin K → F.Θ))
    (hS : ∀ θ ∈ S, ∃ a, F.IsBestArm θ a)
    (δ : ℝ) (hδ_pos : 0 < δ) (hδ_le : δ ≤ 1 / 2)
    (π : BanditPolicy K) (τ : (ℕ → Fin K × ℝ) → ℕ∞) (ψ : (ℕ → Fin K × ℝ) → Fin K)
    (hτ : IsBanditStoppingTime τ) (hψ : Measurable[hτ.measurableSpace] ψ)
    (hPAC : IsDeltaPAC δ π τ ψ (expFamilyBandit F '' S))
    (θ θ' : Fin K → F.Θ) (hθ : θ ∈ S) (hθ' : θ' ∈ S)
    (hdiff : ∀ a, F.IsBestArm θ a → ¬ F.IsBestArm θ' a) :
    ENNReal.ofReal (bernoulliRelativeEntropy δ (1 - δ)) ≤
      ∑ a, klDiv ((expFamilyBandit F θ).P a) ((expFamilyBandit F θ').P a) *
        ∫⁻ ω, (trajPullCount a (τ ω).toNat ω : ℝ≥0∞)
          ∂banditTrajMeasure (expFamilyBandit F θ) π := by sorry

end OptimalBAI.LowerBound
Source
Garivier, Kaufmann, Optimal Best Arm Identification with Fixed Confidence, arXiv:1602.04589v2, p. 4, proof of Theorem 1, eq. (2) (Lemma 1 of Kaufmann, Cappé, Garivier 2015)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

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