Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p. 17 — M-LinUCB with β_t = β*_t on the pricing PLB is Inner Algorithm B with UCB (2)

Proved
LuoSunLiu.DIP.lemma_2

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

dynamic-pricinglinear-banditsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1ucb

This statement has two parts.

  1. LinUCB in closed form. For λ>0\lambda > 0λ>0, β≥0\beta \ge 0β≥0, any actions AsA_sAs​ and rewards ZsZ_sZs​, and any a∈Rda \in \mathbb R^da∈Rd, the maximum of ⟨ξ,a⟩\langle\xi, a\rangle⟨ξ,a⟩ over the ellipsoid {ξ:∥ξ−ξ^t−1∥Vt−1(λ)2≤β}\{\xi : \|\xi - \hat\xi_{t-1}\|^2_{V_{t-1}(\lambda)} \le \beta\}{ξ:∥ξ−ξ^​t−1​∥Vt−1​(λ)2​≤β} is attained and equals
LinUCBt(a)=⟨ξ^t−1,a⟩+β ∥a∥Vt−1(λ)−1.\mathrm{LinUCB}_t(a) = \langle\hat\xi_{t-1}, a\rangle + \sqrt\beta\,\|a\|_{V_{t-1}(\lambda)^{-1}} .LinUCBt​(a)=⟨ξ^​t−1​,a⟩+β​∥a∥Vt−1​(λ)−1​.
  1. Equivalence of the algorithms. Let pmax⁡>0p_{\max} > 0pmax​>0, λ>0\lambda > 0λ>0, d≥1d \ge 1d≥1 and an estimate θ^\hat\thetaθ^ be given. Couple arms, prices and responses with the PLB by At=ptejtA_t = p_t e_{j_t}At​=pt​ejt​​, At={p ej:j∈Bt, p=mj+xt⊤θ^}\mathcal A_t = \{p\,e_j : j \in \mathcal B_t,\ p = m_j + x_t^\top\hat\theta\}At​={pej​:j∈Bt​, p=mj​+xt⊤​θ^} and Zt=ptytZ_t = p_t y_tZt​=pt​yt​. Then, on every sample path and for every horizon T0T_0T0​, the actions are a run of M-LinUCB (Algorithm 5) with
βt=βt∗=pmax⁡2(1∨(1pmax⁡λd+2log⁡(1/δ)+dlog⁡dλ+(t−1)pmax⁡2dλ)2)\beta_t = \beta^*_t = p_{\max}^2\Bigl(1 \vee \Bigl(\tfrac{1}{p_{\max}}\sqrt{\lambda d} + \sqrt{2\log(1/\delta) + d\log\tfrac{d\lambda + (t-1)p_{\max}^2}{d\lambda}}\Bigr)^2\Bigr)βt​=βt∗​=pmax2​(1∨(pmax​1​λd​+2log(1/δ)+dlogdλdλ+(t−1)pmax2​​​)2)

if and only if the arms and prices are a run of Inner Algorithm B (Algorithm 3) with the UCB construction (2) and βt=βt∗\beta_t = \beta^*_tβt​=βt∗​.

The equivalence lets the regret analysis of M-LinUCB on a perturbed linear bandit (Lemma 3) be applied to the pricing algorithm.

Formalization Note Part 1 is the step of the proof (pp. 37–38) that identifies max⁡ξ∈Ct⟨ξ,a⟩\max_{\xi\in\mathcal C_t}\langle\xi, a\ranglemaxξ∈Ct​​⟨ξ,a⟩; it justifies the closed form used in the definition of LinUCB. In part 2, Algorithm 3 is read with forced exploration of unpulled available arms, as the paper's proof of Lemma 2 requires (it sets 0/0=+∞0/0 = +\infty0/0=+∞ for unpulled arms, p. 36); with the printed (2) an unpulled arm would get a finite UCB βt/λ\sqrt{\beta_t/\lambda}βt​/λ​ and the equivalence would fail. The episode starts at period 111 (s0=0s_0 = 0s0​=0); the responses yty_tyt​ may be any real numbers.

Preamble
import Mathlib
import Definitions.Def_SelfNormalizedProcess
import Definitions.Def_LuoSunLiu_DIP_Model
import Definitions.Def_LuoSunLiu_DIP_InnerB
import Definitions.Def_LuoSunLiu_DIP_PLB

open MeasureTheory Matrix
Formal statement
namespace LuoSunLiu.DIP

/-- Lemma 2 (Luo, Sun and Liu, arXiv:2109.07340v2, p. 17; proof pp. 36–38).
(a) For `λ > 0` and `β ≥ 0`, `LinUCB_t(a)` is the maximum of `⟨ξ, a⟩` over the ellipsoid
`𝒞_t(β) = {ξ : ‖ξ - ξ̂_{t-1}‖²_{V_{t-1}(λ)} ≤ β}` (Algorithm 5, line 8).
(b) Under the price-action coupling `A_t = p_t e_{j_t}`, `𝒜_t = {Q_t(p) : p ∈ 𝒮_t}`,
`Z_t = p_t y_t`, M-LinUCB with `β_t = β*_t` runs on the sample path `ω` up to `T₀` exactly when
Inner Algorithm B with the UCB (2) and `β_t = β*_t` does. -/
theorem lemma_2 :
    (∀ {d : ℕ} {Ω : Type*} (lam β : ℝ) (A : ℕ → Ω → Fin d → ℝ) (Z : ℕ → Ω → ℝ)
        (t : ℕ) (ω : Ω) (a : Fin d → ℝ), 0 < lam → 0 ≤ β →
      IsGreatest
        {v : ℝ | ∃ ξ : Fin d → ℝ,
          (ξ - BanditAlgorithm.regularizedLeastSquares d lam A Z (t - 1) ω) ⬝ᵥ
              BanditAlgorithm.regularizedDesignMatrix d lam A (t - 1) ω *ᵥ
                (ξ - BanditAlgorithm.regularizedLeastSquares d lam A Z (t - 1) ω) ≤ β ∧
            v = ξ ⬝ᵥ a}
        (linUCB lam β A Z t ω a)) ∧
    (∀ {d0 d : ℕ} (M : PricingModel d0) (θh : Fin d0 → ℝ) (lam δ : ℝ) {Ω : Type*}
        (x : ℕ → Ω → Fin d0 → ℝ) (j : ℕ → Ω → Fin d) (p y : ℕ → Ω → ℝ) (T0 : ℕ) (ω : Ω),
      0 < M.pmax → 0 < lam → 1 ≤ d →
      (IsMLinUCBRunAt lam (betaStar M.pmax lam d δ)
          (fun t ω => pricingActions M θh d (x t ω))
          (fun t ω => Pi.single (j t ω) (p t ω)) (fun t ω => p t ω * y t ω) T0 ω ↔
        IsInnerBRun M.pmax θh lam (betaStar M.pmax lam d δ) 0 T0
          (fun t => x t ω) (fun t => j t ω) (fun t => p t ω) (fun t => y t ω))) := by sorry

end LuoSunLiu.DIP
Source
Luo, Sun and Liu, arXiv:2109.07340v2, p. 17, Lemma 2 and Algorithm 5; proof pp. 36–38
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

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