Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

BanditAlgorithm.least_squares_confidence_ellipsoid

Proved

by Shuze Chen · Jul 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

(Confidence ellipsoid; L&S Theorem 20.5) With the setup above and rewards Xt+1=⟨θ∗,At+1⟩+ηt+1X_{t+1} = \langle \theta_*, A_{t+1}\rangle + \eta_{t+1}Xt+1​=⟨θ∗​,At+1​⟩+ηt+1​, let

θ^t=Vt(λ)−1∑s=1tXsAs\hat\theta_t = V_t(\lambda)^{-1} \sum_{s=1}^t X_s A_sθ^t​=Vt​(λ)−1s=1∑t​Xs​As​

be the λ\lambdaλ-regularized least-squares estimator (λ>0\lambda > 0λ>0). For δ∈(0,1)\delta \in (0,1)δ∈(0,1), with probability at least 1−δ1 - \delta1−δ, simultaneously for all t∈Nt \in \mathbb{N}t∈N:

∥θ^t−θ∗∥Vt(λ)<λ ∥θ∗∥2+2log⁡1δ+log⁡det⁡Vt(λ)λd,\|\hat\theta_t - \theta_*\|_{V_t(\lambda)} < \sqrt{\lambda}\,\|\theta_*\|_2 + \sqrt{2\log\frac{1}{\delta} + \log\frac{\det V_t(\lambda)}{\lambda^d}},∥θ^t​−θ∗​∥Vt​(λ)​<λ​∥θ∗​∥2​+2logδ1​+logλddetVt​(λ)​​,

where ∥v∥M=v⊤Mv\|v\|_M = \sqrt{v^\top M v}∥v∥M​=v⊤Mv​.

Preamble
import Mathlib.Probability.Moments.SubGaussian
import Mathlib.Probability.Martingale.Basic
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Data.Real.Sqrt
import Definitions.Def_SelfNormalizedProcess


open MeasureTheory ProbabilityTheory Matrix
Formal statement
theorem BanditAlgorithm.least_squares_confidence_ellipsoid
    {Ω : Type} {mΩ : MeasurableSpace Ω} [StandardBorelSpace Ω]
    {P : Measure Ω} [IsProbabilityMeasure P]
    {d : ℕ} (ℱ : Filtration ℕ mΩ)
    (A : ℕ → Ω → Fin d → ℝ) (η : ℕ → Ω → ℝ) (X : ℕ → Ω → ℝ) (θs : Fin d → ℝ)
    (hA : ∀ t : ℕ, Measurable[ℱ t] (A (t + 1)))
    (hη : ∀ t : ℕ, Measurable[ℱ (t + 1)] (η (t + 1)))
    (hsg : ∀ t : ℕ, HasCondSubgaussianMGF (ℱ t) (ℱ.le t) (η (t + 1)) 1 P)
    (hX : ∀ (t : ℕ) (ω : Ω), X (t + 1) ω = θs ⬝ᵥ A (t + 1) ω + η (t + 1) ω)
    {lam : ℝ} (hlam : 0 < lam) {δ : ℝ} (hδ : δ ∈ Set.Ioo (0 : ℝ) 1) :
    1 - δ ≤ P.real {ω | ∀ t : ℕ,
        Real.sqrt ((regularizedLeastSquares d lam A X t ω - θs) ⬝ᵥ
            regularizedDesignMatrix d lam A t ω *ᵥ
              (regularizedLeastSquares d lam A X t ω - θs))
          < Real.sqrt lam * Real.sqrt (θs ⬝ᵥ θs)
            + Real.sqrt (2 * Real.log (1 / δ)
                + Real.log ((regularizedDesignMatrix d lam A t ω).det / lam ^ d))} := by
  sorry
Source
L&S Theorem 20.5, p.260

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me