Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5, p. 37 — within a length-w piece the sliding-window potentials are dominated by the restarted ones

Proved
DriftLinBandit.BOB.lemma_5

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

elliptical-potentialgram-matrixlinear-banditp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sliding-window

Let X1,X2,⋯∈RdX_1,X_2,\dots\in\mathbb R^dX1​,X2​,⋯∈Rd be arbitrary vectors, λ>0\lambda>0λ>0, w≥1w\ge1w≥1 a window size and TTT a horizon. Write 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⊤​ for the sliding-window Gram matrix and, for a piece index iii,

V‾t−1=∑s=iw+1t−1XsXs⊤+λI(49)\overline V_{t-1}=\sum_{s=iw+1}^{t-1}X_sX_s^\top+\lambda I \tag{49}Vt−1​=s=iw+1∑t−1​Xs​Xs⊤​+λI(49)

for the Gram matrix restarted at round iw+1iw+1iw+1. Then for every i≤⌈T/w⌉−1i\le\lceil T/w\rceil-1i≤⌈T/w⌉−1,

∑t=iw+1(i+1)w1∧∥Xt∥Vt−1−12≤∑t=iw+1(i+1)w1∧∥Xt∥V‾t−1−12.\sum_{t=iw+1}^{(i+1)w}1\wedge\|X_t\|^2_{V_{t-1}^{-1}}\le\sum_{t=iw+1}^{(i+1)w}1\wedge\|X_t\|^2_{\overline V_{t-1}^{-1}} .t=iw+1∑(i+1)w​1∧∥Xt​∥Vt−1−1​2​≤t=iw+1∑(i+1)w​1∧∥Xt​∥Vt−1−1​2​.

It replaces the elliptical-potential argument of Abbasi-Yadkori et al., which breaks for sliding windows, in the proof of Theorem 3.

Formalization Note. 1∧a1\wedge a1∧a is min⁡(1,a)\min(1,a)min(1,a) and ∥x∥A−12=x⊤A−1x\|x\|^2_{A^{-1}}=x^\top A^{-1}x∥x∥A−12​=x⊤A−1x. The condition i≤⌈T/w⌉−1i\le\lceil T/w\rceil-1i≤⌈T/w⌉−1 is written i+1≤⌈T/w⌉i+1\le\lceil T/w\rceili+1≤⌈T/w⌉ over the naturals. The vectors are not required to come from an instance.

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

open Matrix

/-- Lemma 5 (p. 37). For any vectors `X_t`, any `λ > 0`, any window size `w ≥ 1`, any horizon `T`
and any `i ≤ ⌈T/w⌉ − 1`,
`∑_{t=iw+1}^{(i+1)w} 1 ∧ ‖X_t‖²_{V_{t−1}^{−1}} ≤ ∑_{t=iw+1}^{(i+1)w} 1 ∧ ‖X_t‖²_{V̄_{t−1}^{−1}}`,
where `V_{t−1} = λI + ∑_{s=1∨(t−w)}^{t−1} X_s X_sᵀ` is the sliding-window Gram matrix and
`V̄_{t−1} = ∑_{s=iw+1}^{t−1} X_s X_sᵀ + λI` (49). -/
theorem lemma_5 {d : ℕ} (X : ℕ → Fin d → ℝ) (lam : ℝ) (hlam : 0 < lam) (w : ℕ) (hw : 1 ≤ w)
    (T : ℕ) (i : ℕ) (hi : i + 1 ≤ ⌈(T : ℝ) / (w : ℝ)⌉₊) :
    ∑ t ∈ Finset.Icc (i * w + 1) ((i + 1) * w),
        min 1 (X t ⬝ᵥ ((gram lam X (win 1 w t))⁻¹ *ᵥ X t)) ≤
      ∑ t ∈ Finset.Icc (i * w + 1) ((i + 1) * w),
        min 1 (X t ⬝ᵥ ((gram lam X (Finset.Icc (i * w + 1) (t - 1)))⁻¹ *ᵥ X t)) := by sorry

end DriftLinBandit.BOB
Source
Cheung, Simchi-Levi & Zhu, arXiv:1903.01461v4, p. 37, Lemma 5 and (49) (Appendix C)
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