Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 11, p. 22 — the oracle's expected regret is ≤CTdlog⁡2(T)log⁡(T/d)\le C\sqrt{Td\log^2(T)\log(T/d)}≤CTdlog2(T)log(T/d)​, CCC independent of TTT, KKK and the periods

Proved
PeriodicMAB.Upper.lemma_11

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

multi-armed-banditnon-stationary-banditp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1regret-upper-bound

Fix the noise parameter σ>0\sigma>0σ>0. There is a constant C>0C>0C>0, depending only on σ\sigmaσ, such that the following holds for every number of arms K≥1K\ge1K≥1, horizon TTT, periods T1,…,TKT_1,\dots,T_KT1​,…,TK​, means μ\muμ and noise ϵ\epsilonϵ satisfying: each μk\mu_kμk​ has minimum period TkT_kTk​, Assumption 1, Assumption 2 with parameter σ\sigmaσ, and Assumption 3 with the parameters (7). Run the weak oracle with n=⌊T/K⌋n=\lfloor\sqrt{T/K}\rfloorn=⌊T/K​⌋ and δ=8/T\delta=8/Tδ=8/T. Then its pseudo-regret RTπ~R^{\tilde\pi}_TRTπ~​ satisfies

E[RTπ~]≤CT d log⁡2(T)log⁡(T/d),d=∑k=1KTk.\mathbb E\big[R^{\tilde\pi}_T\big]\le C\sqrt{T\,d\,\log^2(T)\log(T/d)},\qquad d=\sum_{k=1}^KT_k .E[RTπ~​]≤CTdlog2(T)log(T/d)​,d=k=1∑K​Tk​.

This is the regret of the oracle that knows the periods; the proof of Theorem 1 transfers it to the two-stage policy on the event Λ\LambdaΛ.

Formalization Note The expectation is an outer expectation: there is an integrable ZZZ with RTπ~≤ZR^{\tilde\pi}_T\le ZRTπ~​≤Z pointwise and E[Z]\mathbb E[Z]E[Z] below the bound, so no measurability of the regret is presupposed. The constant is chosen after σ\sigmaσ and before KKK, TTT, the periods, the means and the noise, matching "the Constant is not related to TTT, KKK or any TkT_kTk​". The page states the lemma "under Assumption 1 and 2"; its proof also uses n=⌊T/K⌋n=\lfloor\sqrt{T/K}\rfloorn=⌊T/K​⌋ (p. 45), δ=8T−1\delta=8T^{-1}δ=8T−1 (p. 46) and Assumption 3 (through Lemma 16), which are standing assumptions of §4 and are stated as hypotheses. Without Assumption 3, d≥Td\ge Td≥T is possible and the right-hand side can vanish.

Preamble
import Mathlib
import Definitions.Def_PeriodicMAB_Upper_Model
import Definitions.Def_PeriodicMAB_Upper_Spectral
import Definitions.Def_PeriodicMAB_Upper_Policy

open MeasureTheory ProbabilityTheory Finset
open scoped NNReal
Formal statement
namespace PeriodicMAB.Upper

/-- Lemma 11 (p. 22): under Assumptions 1–3, with the parameters (7) and `δ = 8/T`, the oracle's
expected pseudo-regret is at most `C √(T d log²(T) log(T/d))` with a constant `C` depending on
`σ` only (not on `T`, `K` or the periods). The expectation is an outer expectation. -/
theorem lemma_11 (σ : ℝ≥0) (hσ : 0 < σ) :
    ∃ C : ℝ, 0 < C ∧
      ∀ (K : ℕ) [NeZero K] (T : ℕ) (Tper : Fin K → ℕ) (μ : Fin K → ℕ → ℝ)
        {Ω : Type} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
        (ε : ℕ → Ω → ℝ),
        (∀ k, IsMinPeriod (μ k) (Tper k)) → Assumption1 μ T → IsSubGaussianNoise P ε σ →
        Assumption3 T (nPar T K) (gPar (nPar T K)) Tper →
        ∃ Z : Ω → ℝ, Integrable Z P ∧
          (∀ ω, pseudoRegret μ T (oracle μ ε σ (8 / T) T (nPar T K) Tper ω) ≤ Z ω) ∧
          ∫ ω, Z ω ∂P ≤ C * Real.sqrt (T * effArms Tper * Real.log T ^ 2 *
            Real.log (T / effArms Tper)) := by sorry

end PeriodicMAB.Upper
Source
Chen, Wang and Wang, Learning and Optimization with Seasonal Patterns, arXiv:2005.08088v4, p. 22, Lemma 11 (proof pp. 44–46)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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