Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equation (2) — posterior-mean reward identity

Proved
GittinsUCB.Patient.equation_2

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

bayesian-banditgaussiangittins-indexoptimal-stoppingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

For each stopping time τ≥1\tau\ge1τ≥1 based on observed rewards, replacing the latent quality θ\thetaθ by its posterior mean μt\mu_tμt​ does not change the expected discounted stopped reward:

E ⁣[∑t=0τγt(θ−λ)]=E ⁣[∑t=0τγt(μt−λ)],0<γ<1.\mathbb E\!\left[\sum_{t=0}^{\tau}\gamma^t(\theta-\lambda)\right] =\mathbb E\!\left[\sum_{t=0}^{\tau}\gamma^t(\mu_t-\lambda)\right],\qquad 0<\gamma<1.E[t=0∑τ​γt(θ−λ)]=E[t=0∑τ​γt(μt​−λ)],0<γ<1.

Taking suprema over the same retirement times gives the second equality of equation (2), and connects the posterior recursion to the stochastic model.

Formalization Note The prior and observation-noise variances are positive. The integral is taken under the canonical Gaussian model, and τ\tauτ is a stopping time of the reward filtration.

Preamble
import Mathlib
import Definitions.Def_GittinsUCB_Patient_Model
open MeasureTheory ProbabilityTheory Filter Asymptotics NNReal
Formal statement
namespace GittinsUCB.Patient

/-- Equation (2), second equality, for each admissible stopping time. -/
theorem equation_2 (σW2 : ℝ≥0) (hW : 0 < σW2)
    (γ lam μ : ℝ) (hγ0 : 0 < γ) (hγ1 : γ < 1)
    (σ2 : ℝ≥0) (hσ : 0 < σ2) (τ : Ω → ℕ∞)
    (hτ : IsRetirementTime τ) :
    (∫ ω, stoppedReward γ lam (fun _ => θ) τ ω ∂(model μ σ2 σW2)) =
      ∫ ω, stoppedReward γ lam (postMean μ (σ2 : ℝ) (σW2 : ℝ)) τ ω
        ∂(model μ σ2 σW2) := by sorry

end GittinsUCB.Patient
Source
Russo, A Note on the Equivalence of Upper Confidence Bounds and Gittins Indices for Patient Agents, arXiv:1904.04732v1, p. 2, equation (2), second equality; pp. 9–10, Appendix A.3
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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