BanditAlgorithm.least_squares_confidence_ellipsoid
Proved(Confidence ellipsoid; L&S Theorem 20.5) With the setup above and rewards , let
be the -regularized least-squares estimator (). For , with probability at least , simultaneously for all :
where .
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
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. Let be a probability space with standard Borel, filtration , dimension (no positivity assumed), actions , noise , responses , and a fixed parameter vector . Define pointwise
and write for the Euclidean norm.
Assertion. For and ,
the probability being expressed as a real number, all quantities inside evaluated at .
Hypotheses.
- Predictability: is -measurable for every ; adaptedness: is -measurable for every .
- Conditional -sub-Gaussian noise: for every and every , -almost surely (via the regular conditional distribution given , with the requisite integrability); variance proxy fixed to .
- Exact linear model, pointwise: for every and every (not merely a.s.), .
- (strict), (open).
- standard Borel, a probability measure.
Edge cases.
- The inequality inside the event is strict (), and it must hold simultaneously for all , including , where and the left side equals — strictly below the right side since .
- Since , every is positive definite: the inverse in is genuine, the quadratic form under the left square root is nonnegative, and .
- Real square roots of negative arguments would be by convention; under the stated hypotheses all radicands here are nonnegative.
- No boundedness is assumed on actions, on , or on the responses; is admitted.
- The claim is a lower bound on the probability of the good event (not an equality).
Human review
Confirmed by the mission captain (proposal self-audit).