Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 11 — the Krichevsky–Trofimov distribution is a probability law within a factor 2√n of the maximum likelihood

Proved
OptimalBAI.ChernoffPAC.kt_ratio_bound

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

best-arm-identificationkrichevsky-trofimovp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1universal-coding

For x∈{0,1}nx \in \{0,1\}^nx∈{0,1}n and u∈[0,1]u \in [0,1]u∈[0,1] let pu(x)=∏iuxi(1−u)1−xip_u(x) = \prod_i u^{x_i}(1-u)^{1-x_i}pu​(x)=∏i​uxi​(1−u)1−xi​ be the likelihood of the successive observations xxx of a Bernoulli random variable with mean uuu, and let

kt(x)=∫011πu(1−u) pu(x) du\mathrm{kt}(x) = \int_0^1 \frac{1}{\pi\sqrt{u(1-u)}}\, p_u(x)\,\mathrm dukt(x)=∫01​πu(1−u)​1​pu​(x)du

be the Krichevsky–Trofimov distribution. Then:

  1. kt\mathrm{kt}kt is a probability law on {0,1}n\{0,1\}^n{0,1}n: kt(x)≥0\mathrm{kt}(x) \ge 0kt(x)≥0 for all xxx and ∑x∈{0,1}nkt(x)=1\sum_{x \in \{0,1\}^n} \mathrm{kt}(x) = 1∑x∈{0,1}n​kt(x)=1;
  2. if n≥1n \ge 1n≥1, then for every x∈{0,1}nx \in \{0,1\}^nx∈{0,1}n and every u∈[0,1]u \in [0,1]u∈[0,1],
pu(x)≤2n kt(x),equivalentlysup⁡x∈{0,1}n sup⁡u∈[0,1]pu(x)kt(x)≤2n.p_u(x) \le 2\sqrt n\ \mathrm{kt}(x), \qquad\text{equivalently}\qquad \sup_{x\in\{0,1\}^n}\ \sup_{u\in[0,1]} \frac{p_u(x)}{\mathrm{kt}(x)} \le 2\sqrt n .pu​(x)≤2n​ kt(x),equivalentlyx∈{0,1}nsup​ u∈[0,1]sup​kt(x)pu​(x)​≤2n​.

The lemma is due to Willems, Shtarkov and Tjalkens (1995); the paper quotes it without proof. It is the tool that turns the maximum likelihood in the numerator of the GLR statistic into a genuine mixture density, at a cost of a factor 2n2\sqrt n2n​ per arm, in the proof of Theorem 10.

Formalization Note The bound is stated multiplicatively, which avoids dividing by kt(x)\mathrm{kt}(x)kt(x); since kt(x)>0\mathrm{kt}(x) > 0kt(x)>0 this is equivalent to the printed ratio form (and the multiplicative form itself forces kt(x)>0\mathrm{kt}(x) > 0kt(x)>0, as p1/2(x)>0p_{1/2}(x) > 0p1/2​(x)>0). The hypothesis n≥1n \ge 1n≥1 is added: at n=0n = 0n=0 the ratio is pu(∅)/kt(∅)=1>0=20p_u(\emptyset)/\mathrm{kt}(\emptyset) = 1 > 0 = 2\sqrt 0pu​(∅)/kt(∅)=1>0=20​, so the printed bound fails there. The probability-law part is stated for all nnn, including n=0n = 0n=0 where kt(∅)=1\mathrm{kt}(\emptyset) = 1kt(∅)=1.

Preamble
import Mathlib
import Definitions.Def_OptimalBAI_ChernoffPAC_KrichevskyTrofimov
Formal statement
namespace OptimalBAI.ChernoffPAC

theorem kt_ratio_bound (n : ℕ) :
    (∀ x : Fin n → Bool, 0 ≤ ktProb x) ∧
    (∑ x : Fin n → Bool, ktProb x) = 1 ∧
    (1 ≤ n → ∀ x : Fin n → Bool, ∀ u ∈ Set.Icc (0 : ℝ) 1,
      bernSeqLik u x ≤ 2 * Real.sqrt n * ktProb x) := by sorry

end OptimalBAI.ChernoffPAC
Source
Garivier, Kaufmann, Optimal Best Arm Identification with Fixed Confidence, arXiv:1602.04589v2, pp. 10–11, Lemma 11 [Willems et al. (1995)]
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