Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5 — the optimal proportions w∗(μ)w^*(\boldsymbol\mu)w∗(μ) are xa(y∗)/∑ixi(y∗)x_a(y^*)/\sum_i x_i(y^*)xa​(y∗)/∑i​xi​(y∗) with Fμ(y∗)=1F_{\boldsymbol\mu}(y^*)=1Fμ​(y∗)=1

Proved
OptimalBAI.OptProportions.optimal_proportions_characterization

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

best-arm-identificationexponential-familyoptimal-proportionsp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let μ=(μ1,…,μK)\boldsymbol\mu=(\mu_1,\dots,\mu_K)μ=(μ1​,…,μK​), K≥2K\ge2K≥2, be an exponential-family bandit model (every μa\mu_aμa​ in the mean space b˙(Θ)\dot b(\Theta)b˙(Θ)) with sorted means

μ1>μ2≥⋯≥μK,\mu_1>\mu_2\ge\dots\ge\mu_K ,μ1​>μ2​≥⋯≥μK​,

and write D=d(μ1,μ2)D=d(\mu_1,\mu_2)D=d(μ1​,μ2​). Let xa=ga−1x_a=g_a^{-1}xa​=ga−1​ be the inverse functions of Section 2.2 (x1≡1x_1\equiv1x1​≡1) and

Fμ(y)=∑a=2Kd(μ1,μ1+xa(y)μa1+xa(y))d(μa,μ1+xa(y)μa1+xa(y)).F_{\boldsymbol\mu}(y)=\sum_{a=2}^K\frac{d\Big(\mu_1,\frac{\mu_1+x_a(y)\mu_a}{1+x_a(y)}\Big)}{d\Big(\mu_a,\frac{\mu_1+x_a(y)\mu_a}{1+x_a(y)}\Big)} .Fμ​(y)=a=2∑K​d(μa​,1+xa​(y)μ1​+xa​(y)μa​​)d(μ1​,1+xa​(y)μ1​+xa​(y)μa​​)​.

Then:

  1. FμF_{\boldsymbol\mu}Fμ​ is continuous and strictly increasing on [0,D[[0,D[[0,D[, Fμ(0)=0F_{\boldsymbol\mu}(0)=0Fμ​(0)=0, and Fμ(y)→+∞F_{\boldsymbol\mu}(y)\to+\inftyFμ​(y)→+∞ as y→Dy\to Dy→D from below;
  2. the equation Fμ(y)=1F_{\boldsymbol\mu}(y)=1Fμ​(y)=1 has a unique solution y∗∈[0,D[y^*\in[0,D[y∗∈[0,D[;
  3. a vector www is an optimal proportion vector (a maximizer over ΣK\Sigma_KΣK​ of w↦inf⁡λ∈Alt(μ)∑awad(μa,λa)w\mapsto\inf_{\boldsymbol\lambda\in\mathrm{Alt}(\boldsymbol\mu)}\sum_a w_ad(\mu_a,\lambda_a)w↦infλ∈Alt(μ)​∑a​wa​d(μa​,λa​)) if and only if, for every arm aaa,
wa=xa(y∗)∑i=1Kxi(y∗).w_a=\frac{x_a(y^*)}{\sum_{i=1}^K x_i(y^*)} .wa​=∑i=1K​xi​(y∗)xa​(y∗)​.

In particular the maximizer w∗(μ)w^*(\boldsymbol\mu)w∗(μ) in the definition of the characteristic time exists, is unique, and is computed by solving one scalar equation. This is the formula used by the Track-and-Stop strategy to compute the proportions it tracks.

Formalization Note Arm 111 is index 000 and arm 222 is index 111. The paper says "increasing"; its proof (App. A.2) shows "strictly increasing", which is what the uniqueness of y∗y^*y∗ uses, and that is what is stated. The paper's "wa∗(μ)=…w^*_a(\boldsymbol\mu)=\dotswa∗​(μ)=…" presupposes that the argmax exists and is a single point; clause 3 states exactly this, as an equivalence for every www. The sum in the denominator is written with a separate index. xax_axa​ is only evaluated on [0,D[⊆[0,d(μ1,μa)[[0,D[\subseteq[0,d(\mu_1,\mu_a)[[0,D[⊆[0,d(μ1​,μa​)[ (by the ordering), where it is the true inverse of gag_aga​.

Preamble
import Mathlib
import Definitions.Def_OptimalBAI_OptProportions_ExpFamily
import Definitions.Def_OptimalBAI_OptProportions_OptimalProportions
Formal statement
namespace OptimalBAI.OptProportions

/-- **Theorem 5** (Garivier–Kaufmann, arXiv:1602.04589v2, p. 5). Let `μ` be an exponential-family
bandit model with `K ≥ 2` arms, sorted as `μ_1 > μ_2 ≥ ⋯ ≥ μ_K` (0-based: `μ 0 > μ 1 ≥ ⋯`), and
`D = d(μ_1, μ_2)`. Then `F_μ` of eq. (6) is continuous and strictly increasing on `[0, D[`,
`F_μ(0) = 0`, `F_μ(y) → ∞` as `y → D⁻`; the equation `F_μ(y) = 1` has a unique solution `y*`
in `[0, D[`; and the optimal proportion vectors `w*(μ)` are exactly the vector
`w*_a = x_a(y*) / ∑_{i} x_i(y*)` of eq. (5) (so the argmax exists and is unique). -/
theorem optimal_proportions_characterization {K : ℕ} [NeZero K] (F : ExpFamily)
    (μ : Fin K → ℝ) (hK : 2 ≤ K) (hμ : ∀ a, μ a ∈ F.M) (hμ0 : μ 1 < μ 0)
    (hsorted : ∀ a b : Fin K, 1 ≤ a → a ≤ b → μ b ≤ μ a) :
    ContinuousOn (FFun F μ) (Set.Ico 0 (F.d (μ 0) (μ 1))) ∧
      StrictMonoOn (FFun F μ) (Set.Ico 0 (F.d (μ 0) (μ 1))) ∧
      FFun F μ 0 = 0 ∧
      Filter.Tendsto (FFun F μ)
        (nhdsWithin (F.d (μ 0) (μ 1)) (Set.Iio (F.d (μ 0) (μ 1)))) Filter.atTop ∧
      ∃ ystar : ℝ, ystar ∈ Set.Ico 0 (F.d (μ 0) (μ 1)) ∧ FFun F μ ystar = 1 ∧
        (∀ y ∈ Set.Ico 0 (F.d (μ 0) (μ 1)), FFun F μ y = 1 → y = ystar) ∧
        ∀ w : Fin K → ℝ, IsOptimalProportion F μ w ↔
          ∀ a, w a = xFun F μ a ystar / ∑ i, xFun F μ i ystar := by sorry

end OptimalBAI.OptProportions
Source
Garivier, Kaufmann, Optimal Best Arm Identification with Fixed Confidence, arXiv:1602.04589v2, p. 5, Theorem 5, eqs. (5)-(6) (proof: App. A.2, pp. 17-18)
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