Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 (first claim) — confidence ellipsoid CtC_tCt​

Proved
ImprovedLinBandits.OFUL.confidence_ellipsoid

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

confidence-setlinear-banditsp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Assume the setting of Theorem 1 with V=λIV = \lambda IV=λI, λ>0\lambda > 0λ>0: a filtration {Ft}\{F_t\}{Ft​}, actions XtX_tXt​ that are Ft−1F_{t-1}Ft−1​-measurable, and noise ηt\eta_tηt​ that is FtF_tFt​-measurable and conditionally RRR-sub-Gaussian given Ft−1F_{t-1}Ft−1​. Let the rewards be Yt=⟨Xt,θ∗⟩+ηtY_t = \langle X_t, \theta_* \rangle + \eta_tYt​=⟨Xt​,θ∗​⟩+ηt​ for a parameter θ∗∈Rd\theta_* \in \mathbb R^dθ∗​∈Rd with ∥θ∗∥2≤S\|\theta_*\|_2 \le S∥θ∗​∥2​≤S. Then for every δ>0\delta > 0δ>0, with probability at least 1−δ1 - \delta1−δ, for all t≥0t \ge 0t≥0, θ∗\theta_*θ∗​ lies in

Ct={θ∈Rd:∥θ^t−θ∥V‾t≤R2log⁡(det⁡(V‾t)1/2det⁡(λI)−1/2δ)+λ1/2S},C_t = \left\{\theta \in \mathbb R^d : \left\|\widehat\theta_t - \theta\right\|_{\overline V_t} \le R\sqrt{2\log\left(\frac{\det(\overline V_t)^{1/2}\det(\lambda I)^{-1/2}}{\delta}\right)} + \lambda^{1/2} S\right\},Ct​=⎩⎨⎧​θ∈Rd:​θt​−θ​Vt​​≤R2log(δdet(Vt​)1/2det(λI)−1/2​)​+λ1/2S⎭⎬⎫​,

where θ^t\widehat\theta_tθt​ is the λ\lambdaλ-regularized least-squares estimate from the first ttt rounds and V‾t=λI+∑s≤tXsXs⊤\overline V_t = \lambda I + \sum_{s \le t} X_s X_s^\topVt​=λI+∑s≤t​Xs​Xs⊤​.

These are the confidence sets with which the OFUL algorithm is run in Theorem 3.

Formalization Note The outer probability of the failure event "θ∗∉Ct\theta_* \notin C_tθ∗​∈/Ct​ for some ttt" is bounded by δ\deltaδ; the time quantifier is inside the event. The platform row BanditAlgorithm.least_squares_confidence_ellipsoid is the special case R=1R = 1R=1, S=∥θ∗∥2S = \|\theta_*\|_2S=∥θ∗​∥2​, δ<1\delta < 1δ<1, stated with P.real. StandardBorelSpace Ω\OmegaΩ is added as in Theorem 1.

Preamble
import Mathlib
import Definitions.Def_SelfNormalizedProcess
import Definitions.Def_ImprovedLinBandits_OFUL_confidenceSet

open MeasureTheory ProbabilityTheory Matrix NNReal
Formal statement
namespace ImprovedLinBandits.OFUL

/-- **Theorem 2, first claim** (Confidence Ellipsoid; Abbasi-Yadkori, Pál, Szepesvári, NIPS 2011,
p. 4). Under the assumptions of Theorem 1 with `V = λI`, `λ > 0`, rewards
`Y_{t+1} = ⟨X_{t+1}, θ*⟩ + η_{t+1}` and `‖θ*‖₂ ≤ S`, for any `δ > 0` the event that `θ* ∉ C_t` for
some `t ≥ 0` has (outer) probability at most `δ`. -/
theorem confidence_ellipsoid
    {Ω : Type} {mΩ : MeasurableSpace Ω} [StandardBorelSpace Ω]
    {P : Measure Ω} [IsProbabilityMeasure P]
    {d : ℕ} (ℱ : Filtration ℕ mΩ)
    (X : ℕ → Ω → Fin d → ℝ) (η : ℕ → Ω → ℝ) (Y : ℕ → Ω → ℝ) (θstar : Fin d → ℝ)
    (R : ℝ≥0) {S lam δ : ℝ}
    (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)
    (hY : ∀ (t : ℕ) (ω : Ω), Y (t + 1) ω = X (t + 1) ω ⬝ᵥ θstar + η (t + 1) ω)
    (hS : Real.sqrt (θstar ⬝ᵥ θstar) ≤ S)
    (hlam : 0 < lam) (hδ : 0 < δ) :
    P {ω | ∃ t : ℕ, θstar ∉ confidenceSet d R S lam δ X Y 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 2 (first claim)
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