Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3, p. 48, fact 2 — the regret f_π(ν) is continuous on ℰ₂ ∪ ℰ₃ in the metric ℳ, uniformly in π

Proved
PeriodicMAB.Lower.fact_2_continuity

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

continuitymulti-armed-banditnon-stationary-banditp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1periodicity

Let K≥2K \ge 2K≥2, let TTT be the horizon and T1,…,TK≥1T_1, \dots, T_K \ge 1T1​,…,TK​≥1 integer periods. For a policy π\piπ and an instance ν\nuν write fπ(ν)=Eν[RTπ]f_\pi(\nu) = \mathbb E_\nu[R^\pi_T]fπ​(ν)=Eν​[RTπ​] for the expected regret (1) of π\piπ on ν\nuν with unit-variance Gaussian rewards.

Fix ν1∈E2(T1)∪E3(T1,…,TK)\nu_1 \in \mathcal E_2(T_1) \cup \mathcal E_3(T_1, \dots, T_K)ν1​∈E2​(T1​)∪E3​(T1​,…,TK​). Then for every ε>0\varepsilon > 0ε>0 there is δ>0\delta > 0δ>0 such that for every policy π\piπ and every ν2∈E2(T1)∪E3(T1,…,TK)\nu_2 \in \mathcal E_2(T_1) \cup \mathcal E_3(T_1, \dots, T_K)ν2​∈E2​(T1​)∪E3​(T1​,…,TK​),

M(ν1,ν2)<δ  ⟹  ∣fπ(ν1)−fπ(ν2)∣<ε,\mathcal M(\nu_1, \nu_2) < \delta \implies |f_\pi(\nu_1) - f_\pi(\nu_2)| < \varepsilon,M(ν1​,ν2​)<δ⟹∣fπ​(ν1​)−fπ​(ν2​)∣<ε,

where M\mathcal MM is the metric (B-48). The same δ\deltaδ works for all policies.

This is the second of the two facts from which Theorem 3 follows: the slight perturbation provided by fact 1 changes the regret of any policy only slightly.

Formalization Note δ\deltaδ is chosen after ν1\nu_1ν1​ and ε\varepsilonε and before π\piπ and ν2\nu_2ν2​ (uniform continuity in π\piπ, as printed). The hypothesis Tk≥1T_k \ge 1Tk​≥1 is the paper's Tk∈N+T_k \in \mathbb N^+Tk​∈N+; without it the metric would ignore an arm. Assumption 3 is not needed and is dropped, which makes the statement stronger.

Preamble
import Mathlib
import Definitions.Def_BanditPolicy
import Definitions.Def_GaussianBandit
import Definitions.Def_PeriodicMAB_Lower_Model
Formal statement
namespace PeriodicMAB.Lower

open BanditAlgorithm

theorem fact_2_continuity (K T : ℕ) [NeZero K] (Tper : Fin K → ℕ) (hK : 2 ≤ K)
    (hTper : ∀ k, 1 ≤ Tper k) (μ₁ : Fin K → ℕ → ℝ)
    (hμ₁ : InE2 T (Tper 0) μ₁ ∨ InE3 T Tper μ₁) (ε : ℝ) (hε : 0 < ε) :
    ∃ δ > 0, ∀ (π : BanditPolicy K) (μ₂ : Fin K → ℕ → ℝ),
      (InE2 T (Tper 0) μ₂ ∨ InE3 T Tper μ₂) → instDist Tper μ₁ μ₂ < δ →
        |periodicRegret μ₁ π T - periodicRegret μ₂ π T| < ε := by sorry

end PeriodicMAB.Lower
Source
Chen, Wang and Wang, Learning and Optimization with Seasonal Patterns, arXiv:2005.08088v4, p. 48, proof of Theorem 3, fact 2 (f_π defined p. 48; proof pp. 48–49)
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