Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 5, p. 54 — μ̂_{a,n} and the sample mean of arm a converge a.s. to μ_a(θ_a)

Proved
InfoRelaxTS.Asymptotic.proposition_5

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

bayesian-banditmartingale-convergencep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1strong-law

In the Bayesian bandit model with a conjugate prior family {Pa(ya)}\{\mathcal P_a(y_a)\}{Pa​(ya​)} and a measurable Bayesian update Ua\mathcal U_aUa​, fix a belief vector yyy and an arm aaa, and assume Ey∣Ra,n∣<∞\mathbb E_y|R_{a,n}| < \inftyEy​∣Ra,n​∣<∞. Let ω=(θ,(Rb,n)b,n)∼I(y)\omega = (\theta, (R_{b,n})_{b,n}) \sim \mathcal I(y)ω=(θ,(Rb,n​)b,n​)∼I(y) be the outcome. Then, almost surely,

lim⁡n→∞μ^a,n(ω;ya)=lim⁡n→∞1n∑i=1nRa,i=μa(θa).\lim_{n\to\infty} \hat\mu_{a,n}(\omega; y_a) = \lim_{n \to \infty} \frac1n \sum_{i=1}^n R_{a,i} = \mu_a(\theta_a).n→∞lim​μ^​a,n​(ω;ya​)=n→∞lim​n1​i=1∑n​Ra,i​=μa​(θa​).

Here μ^a,n(ω;ya)\hat\mu_{a,n}(\omega; y_a)μ^​a,n​(ω;ya​) is the posterior predictive mean of arm aaa after its first nnn rewards, and μa(θa)\mu_a(\theta_a)μa​(θa​) is its conditional mean reward.

Both the Bayesian estimate and the frequentist estimate of an arm's mean are thus consistent. This is the fact that makes the IRS policies behave like Thompson sampling for long horizons (Proposition 1).

Formalization Note. The paper defines μ^a,n=Eya[μa(θa)∣Ra,1,…,Ra,n]\hat\mu_{a,n} = \mathbb E_{y_a}[\mu_a(\theta_a) \mid R_{a,1},\dots,R_{a,n}]μ^​a,n​=Eya​​[μa​(θa​)∣Ra,1​,…,Ra,n​] (10). In the formalization, μ^a,n(ω;ya)=μˉa(ya,n)\hat\mu_{a,n}(\omega; y_a) = \bar\mu_a(y_{a,n})μ^​a,n​(ω;ya​)=μˉ​a​(ya,n​) is the predictive mean of the belief ya,ny_{a,n}ya,n​ obtained by nnn conjugate updates. Under conjugacy this is a version of the conditional expectation (10), so the statement is (108) for that version. The conjugacy hypothesis and the measurability of Ua\mathcal U_aUa​ belong to the model of §2.1. The integrability hypothesis is the page's Ey∣Ra,n∣<∞\mathbb E_y|R_{a,n}| < \inftyEy​∣Ra,n​∣<∞, stated for the first reward of arm aaa under the belief yay_aya​. Rewards are 0-based (the paper's Ra,iR_{a,i}Ra,i​ is index i−1i-1i−1); at n=0n = 0n=0 the sample mean is 0/0=00/0 = 00/0=0, which does not affect the limit.

Preamble
import Mathlib
import Definitions.Def_InfoRelaxTS_Asymptotic_Setting

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace InfoRelaxTS.Asymptotic

/-- Proposition 5 (p. 54): under the outcome law `ℐ(y)`, almost surely the posterior predictive
mean `μ̂_{a,n}` and the sample mean `(1/n) Σ_{i=1}^n R_{a,i}` of arm `a` both converge to the
conditional mean reward `μ_a(θ_a)`. -/
theorem proposition_5 {K : ℕ} {Θ Y : Type*} [MeasurableSpace Θ] [MeasurableSpace Y]
    (R : Fin K → Kernel Θ ℝ) [∀ a, IsMarkovKernel (R a)]
    (P : Fin K → Kernel Y Θ) [∀ a, IsMarkovKernel (P a)]
    (U : Fin K → Y → ℝ → Y) (hU : ∀ a, Measurable (Function.uncurry (U a)))
    (hconj : IsConjugate R P U) (y : Fin K → Y) (a : Fin K)
    (hint : Integrable (fun r : ℝ => r) ((R a) ∘ₘ (P a (y a)))) :
    ∀ᵐ ω ∂(I R P y),
      Tendsto (fun n => muHat R P U y a n ω) atTop (𝓝 (Monotone.mu R a (ω a).1)) ∧
      Tendsto (fun n : ℕ => (∑ i ∈ Finset.range n, (ω a).2 i) / (n : ℝ)) atTop
        (𝓝 (Monotone.mu R a (ω a).1)) := by sorry

end InfoRelaxTS.Asymptotic
Source
Min, Maglaras, Moallemi, Thompson Sampling with Information Relaxation Penalties, arXiv:1902.04251v2, p. 54, Proposition 5, (108)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

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