Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Observation 1a) — the Prediction Policy has regret at most 2ℓTa2\ell T^a2ℓTa

Proved
NonstatNV.observation_1a

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

learning-augmented-algorithmsnewsvendornonstationary-demandonline-learningp2o-gran-per-chapterp2o-plan-paperp2o-v1regret

Consider a model satisfying the standing assumptions and Assumption 2 with constant ℓ\ellℓ, and an argmin selection. Fix v∈[0,1]v\in[0,1]v∈[0,1] and α∈[0,1]\alpha\in[0,1]α∈[0,1]. For every horizon TTT, every instance (μt,bt,ht)t≤T(\mu_t,b_t,h_t)_{t\le T}(μt​,bt​,ht​)t≤T​ with demand variation Vμ≤TvV_\mu\le T^vVμ​≤Tv, and every prediction sequence (at)(a_t)(at​) with total error

∑t=1T∣at−μt∣≤Tα,\sum_{t=1}^{T}|a_t-\mu_t|\le T^{\alpha},t=1∑T​∣at​−μt​∣≤Tα,

the regret of the Prediction Policy satisfies

E[∑t=1T(Ct(μt,qt)−Ct(μt,qt∗))]≤2ℓ Tα.\mathbb E\Big[\sum_{t=1}^{T}\big(C_t(\mu_t,q_t)-C_t(\mu_t,q_t^*)\big)\Big]\le 2\ell\,T^{\alpha}.E[t=1∑T​(Ct​(μt​,qt​)−Ct​(μt​,qt∗​))]≤2ℓTα.

The Prediction Policy translates prediction error directly into regret, without knowing α\alphaα; this is the "aaa" branch of the main result.

Differences from the source:

  • encoding: worst-case regret R(T) = sup over D(v) and predictions with error ≤ T^a, bounded by C T^a with C ≤ 2ℓ → the regret of every instance of the class is at most 2ℓ T^α; reason: a bound for every instance is equivalent to a bound on the supremum, and C ≤ 2ℓ is equivalent to C = 2ℓ
  • encoding: a is the smallest exponent with prediction error ≤ T^a → any α ∈ [0, 1] with prediction error ≤ T^α; reason: the bound 2ℓT^α increases with α for T ≥ 1, so the two forms are equivalent (for T = 0 both sides are 0)
  • encoding: q_t ← argmin_{q∈Q} C_t(μ̂_t, q) → q_t = sel(μ̂_t, b_t, h_t) for an arbitrary measurable argmin selection sel; reason: ties are broken by an arbitrary selection; the statement holds for every selection
Preamble
import Definitions.Def_NonstatNV_Model_Standing
import Definitions.Def_NonstatNV_Model_LipschitzCost
import Definitions.Def_NonstatNV_Model_IsArgminSelection
import Definitions.Def_NonstatNV_Model_IsInstance
import Definitions.Def_NonstatNV_demandVariation
import Definitions.Def_NonstatNV_Model_intervalRegret
import Definitions.Def_NonstatNV_Model_predictionPolicy

open MeasureTheory
Formal statement
namespace NonstatNV

/-- **Observation 1 a)** (An, Li, Moseley, Ravi, *The Nonstationary Newsvendor with (and without) Predictions*, arXiv:2305.07993v4, p.21; proof p.34). Fix any variation parameter `v ∈ [0, 1]` and
any accuracy parameter `a ∈ [0, 1]`. The Prediction Policy achieves worst-case regret
`R^{π^prediction}(T) ≤ C T^a` with `C ≤ 2ℓ`: for every horizon `T`, every instance in `𝒟(v)`
(`V_μ ≤ T^v`) whose predictions have total error `Σ_{t=1}^T |a_t − μ_t| ≤ T^α`, the regret is at most
`2ℓ T^α`.

**Formalization Note** The accuracy exponent is named `α` (the predictions are the sequence `a`).
The bound is stated with `C = 2ℓ`, which is equivalent to `C ≤ 2ℓ`. The argmin is taken by an
arbitrary measurable selection `sel`; the worst-case regret is stated as a bound for every instance. -/
theorem observation_1a (M : Model) (ℓ : ℝ) (hM : M.Standing) (hℓ : M.LipschitzCost ℓ)
    (sel : ℝ → ℝ → ℝ → ℝ) (hsel : M.IsArgminSelection sel)
    (T : ℕ) (v α : ℝ) (hv : v ∈ Set.Icc (0 : ℝ) 1) (hα : α ∈ Set.Icc (0 : ℝ) 1)
    (μ b h a : ℕ → ℝ) (hinst : M.IsInstance T μ b h)
    (hV : demandVariation μ T ≤ (T : ℝ) ^ v)
    (hpred : ∑ t ∈ Finset.Icc 1 T, |a t - μ t| ≤ (T : ℝ) ^ α) :
    M.intervalRegret μ b h (M.predictionPolicy sel b h a) 1 T ≤ 2 * ℓ * (T : ℝ) ^ α := by sorry

end NonstatNV
Source
L. An, A. A. Li, B. Moseley, R. Ravi, The Nonstationary Newsvendor with (and without) Predictions, arXiv:2305.07993v4 (20 Feb 2025), https://arxiv.org/abs/2305.07993v4, Observation 1 a), p.21 (proof p.34)
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me