Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — self-normalized bound for vector-valued martingales

Proved
ImprovedLinBandits.OFUL.self_normalized_bound

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

linear-banditsmartingalep2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1self-normalized

Let (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P) be a probability space with a filtration {Ft}t≥0\{F_t\}_{t \ge 0}{Ft​}t≥0​. Let {ηt}t≥1\{\eta_t\}_{t \ge 1}{ηt​}t≥1​ be real random variables such that ηt\eta_tηt​ is FtF_tFt​-measurable and conditionally RRR-sub-Gaussian for some R≥0R \ge 0R≥0:

∀λ∈R,E[eληt∣Ft−1]≤exp⁡(λ2R22).\forall \lambda \in \mathbb R, \qquad \mathbf E\left[e^{\lambda \eta_t} \mid F_{t-1}\right] \le \exp\left(\frac{\lambda^2 R^2}{2}\right).∀λ∈R,E[eληt​∣Ft−1​]≤exp(2λ2R2​).

Let {Xt}t≥1\{X_t\}_{t \ge 1}{Xt​}t≥1​ be Rd\mathbb R^dRd-valued with XtX_tXt​ Ft−1F_{t-1}Ft−1​-measurable, and let VVV be a d×dd \times dd×d positive definite matrix. For t≥0t \ge 0t≥0 put V‾t=V+∑s=1tXsXs⊤\overline V_t = V + \sum_{s=1}^t X_s X_s^\topVt​=V+∑s=1t​Xs​Xs⊤​ and St=∑s=1tηsXsS_t = \sum_{s=1}^t \eta_s X_sSt​=∑s=1t​ηs​Xs​. Then for every δ>0\delta > 0δ>0, with probability at least 1−δ1 - \delta1−δ, simultaneously for all t≥0t \ge 0t≥0,

∥St∥V‾t−12≤2R2log⁡(det⁡(V‾t)1/2det⁡(V)−1/2δ).\|S_t\|^2_{\overline V_t^{-1}} \le 2R^2 \log\left(\frac{\det(\overline V_t)^{1/2}\det(V)^{-1/2}}{\delta}\right).∥St​∥Vt−1​2​≤2R2log(δdet(Vt​)1/2det(V)−1/2​).

The bound is uniform in time and holds for adaptively chosen XtX_tXt​; it is the source of the confidence sets of Theorem 2.

Formalization Note The statement bounds the outer probability of the failure event "there is ttt with ∥St∥V‾t−12>2R2log⁡(⋯ )\|S_t\|^2_{\overline V_t^{-1}} > 2R^2 \log(\cdots)∥St​∥Vt−1​2​>2R2log(⋯)" by δ\deltaδ, so no measurability of that event is needed. Conditional sub-Gaussianity is Mathlib's HasCondSubgaussianMGF with variance proxy R2R^2R2, and StandardBorelSpace Ω\OmegaΩ is added so that it is available. Rounds are indexed t+1t+1t+1; StS_tSt​ is the platform's selfNormalizedSum. V≻0V \succ 0V≻0 makes every V‾t\overline V_tVt​ positive definite, so Lean's inverse and both determinants are the genuine ones.

Preamble
import Mathlib
import Definitions.Def_SelfNormalizedProcess
import Definitions.Def_ImprovedLinBandits_OFUL_gramMatrix

open MeasureTheory ProbabilityTheory Matrix NNReal
Formal statement
namespace ImprovedLinBandits.OFUL

/-- **Theorem 1** (Self-Normalized Bound for Vector-Valued Martingales; Abbasi-Yadkori, Pál,
Szepesvári, NIPS 2011, p. 4). Let `ℱ` be a filtration, `η_{t+1}` be `ℱ_{t+1}`-measurable and
conditionally `R`-sub-Gaussian given `ℱ_t` (Mathlib's variance proxy `R ^ 2`), `X_{t+1}` be
`ℱ_t`-measurable, and `V` positive definite. With `V̄_t = V + ∑_{s≤t} X_s X_sᵀ` and
`S_t = ∑_{s≤t} η_s X_s`, for any `δ > 0` the event that for some `t ≥ 0`
`‖S_t‖²_{V̄_t⁻¹} > 2R² log(det(V̄_t)^{1/2} det(V)^{-1/2} / δ)` has (outer) probability at most `δ`.
`StandardBorelSpace Ω` is added so that Mathlib's conditional sub-Gaussianity is available. -/
theorem self_normalized_bound
    {Ω : Type} {mΩ : MeasurableSpace Ω} [StandardBorelSpace Ω]
    {P : Measure Ω} [IsProbabilityMeasure P]
    {d : ℕ} (ℱ : Filtration ℕ mΩ)
    (X : ℕ → Ω → Fin d → ℝ) (η : ℕ → Ω → ℝ) (R : ℝ≥0)
    (hX : ∀ t : ℕ, Measurable[ℱ t] (X (t + 1)))
    (hη : ∀ t : ℕ, Measurable[ℱ (t + 1)] (η (t + 1)))
    (hsg : ∀ t : ℕ, HasCondSubgaussianMGF (ℱ t) (ℱ.le t) (η (t + 1)) (R ^ 2) P)
    (V : Matrix (Fin d) (Fin d) ℝ) (hV : V.PosDef)
    {δ : ℝ} (hδ : 0 < δ) :
    P {ω | ∃ t : ℕ,
        2 * (R : ℝ) ^ 2 * Real.log
            (Real.sqrt (gramMatrix V X t ω).det * (Real.sqrt V.det)⁻¹ / δ)
          < BanditAlgorithm.selfNormalizedSum d η X t ω ⬝ᵥ
              (gramMatrix V X t ω)⁻¹ *ᵥ BanditAlgorithm.selfNormalizedSum d η X t ω}
      ≤ ENNReal.ofReal δ := by sorry

end ImprovedLinBandits.OFUL
Source
Abbasi-Yadkori, Pál, Szepesvári, Improved Algorithms for Linear Stochastic Bandits, NIPS 2011, p. 4, Theorem 1
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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