Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3, p. 35 — under Assumption 1 the drift term of the sliding-window estimator is at most the window's variation

Proved
DriftLinBandit.BOB.lemma_3

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

linear-banditnon-stationaryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1ridge-regressionsliding-window

Let D1,…,DT⊆RdD_1,\dots,D_T\subseteq\mathbb R^dD1​,…,DT​⊆Rd and θ1,…,θT\theta_1,\dots,\theta_Tθ1​,…,θT​ be an instance satisfying Assumption 1 (every action is a multiple of one vector of a fixed orthonormal basis), let Xs∈DsX_s\in D_sXs​∈Ds​ be arbitrary actions, λ>0\lambda>0λ>0, and w≥1w\ge1w≥1 a window size. For a round t∈[T]t\in[T]t∈[T] put Vt−1=λI+∑s=1∨(t−w)t−1XsXs⊤V_{t-1}=\lambda I+\sum_{s=1\vee(t-w)}^{t-1}X_sX_s^\topVt−1​=λI+∑s=1∨(t−w)t−1​Xs​Xs⊤​. Then

∥Vt−1−1∑s=1∨(t−w)t−1XsXs⊤(θs−θt)∥2≤∑s=1∨(t−w)t−1∥θs−θs+1∥2.\Big\|V_{t-1}^{-1}\sum_{s=1\vee(t-w)}^{t-1}X_sX_s^\top(\theta_s-\theta_t)\Big\|_2\le\sum_{s=1\vee(t-w)}^{t-1}\|\theta_s-\theta_{s+1}\|_2 .​Vt−1−1​s=1∨(t−w)∑t−1​Xs​Xs⊤​(θs​−θt​)​2​≤s=1∨(t−w)∑t−1​∥θs​−θs+1​∥2​.

This bounds the bias of the sliding-window estimator caused by the drift of θ\thetaθ, the first term of the decomposition (34) of θ^t−θt\hat\theta_t-\theta_tθ^t​−θt​.

Formalization Note. XsXs⊤vX_sX_s^\top vXs​Xs⊤​v is written ⟨Xs,v⟩Xs\langle X_s,v\rangle X_s⟨Xs​,v⟩Xs​. Assumption 1 is a hypothesis: §5 makes it standing (p. 10), and the inequality fails for actions in general position.

Preamble
import Mathlib
import Definitions.Def_DriftLinBandit_BOB_Model
Formal statement
namespace DriftLinBandit.BOB

open Matrix

/-- Lemma 3 (p. 35). Under Assumption 1, for any actions `X_s ∈ D_s`, any `λ > 0`, any window size
`w ≥ 1` and any round `t ∈ [T]`,
`‖V_{t−1}^{−1} ∑_{s=1∨(t−w)}^{t−1} X_s X_sᵀ (θ_s − θ_t)‖₂ ≤ ∑_{s=1∨(t−w)}^{t−1} ‖θ_s − θ_{s+1}‖₂`,
where `V_{t−1} = λI + ∑_{s=1∨(t−w)}^{t−1} X_s X_sᵀ`. -/
theorem lemma_3 {d : ℕ} (I : Instance d) (hA : Assumption1 I) (lam : ℝ) (hlam : 0 < lam)
    (w : ℕ) (hw : 1 ≤ w) (X : ℕ → Fin d → ℝ) (hX : ∀ s ∈ Finset.Icc 1 I.T, X s ∈ I.D s)
    (t : ℕ) (ht : t ∈ Finset.Icc 1 I.T) :
    l2 ((gram lam X (win 1 w t))⁻¹ *ᵥ
        ∑ s ∈ win 1 w t, (X s ⬝ᵥ (I.θ s - I.θ t)) • X s) ≤
      ∑ s ∈ win 1 w t, l2 (I.θ s - I.θ (s + 1)) := by sorry

end DriftLinBandit.BOB
Source
Cheung, Simchi-Levi & Zhu, arXiv:1903.01461v4, p. 35, Lemma 3 (Appendix B); Assumption 1, p. 10
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