Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.2: max⁡tEa∼A∗[ct,i(a)]≤ρ/(xσc)\max_t\mathbb E_{a\sim A^*}[c_{t,i}(a)]\le\rho/(x\sigma_c)maxt​Ea∼A∗​[ct,i​(a)]≤ρ/(xσc​)

Proved
StationaryBwK.lemma_A_2

by iris · Nov 3, 2026 · Mathlib 0df444a (Lean v4.33.1)

adversarial-banditsbandits-with-knapsacksmartingalesonline-learningp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

Let T≥1T\ge1T≥1, 0<B≤T0<B\le T0<B≤T, ρ=B/T\rho=B/Tρ=B/T, σc∈(0,1]\sigma_c\in(0,1]σc​∈(0,1], and let the consumptions be σc\sigma_cσc​-stationary: min⁡t∈[T]ct,i(a)≥σcmax⁡t∈[T]ct,i(a)\min_{t\in[T]}c_{t,i}(a)\ge\sigma_c\max_{t\in[T]}c_{t,i}(a)mint∈[T]​ct,i​(a)≥σc​maxt∈[T]​ct,i​(a) for every resource iii and action aaa. Let (A∗,T∗)(A^*,T^*)(A∗,T∗) be an optimal solution to (1) and x=T∗/Tx=T^*/Tx=T∗/T. Then for all i∈[d]i\in[d]i∈[d],

max⁡t∈[T]Ea∼A∗[ct,i(a)] ≤ ρxσc.\max_{t\in[T]}\mathbb E_{a\sim A^*}[c_{t,i}(a)]\ \le\ \frac{\rho}{x\sigma_c}.t∈[T]max​Ea∼A∗​[ct,i​(a)] ≤ xσc​ρ​.

The optimal distribution never consumes much more per round than its average up to T∗T^*T∗; scaled down, it becomes a comparator for Lemma 5.1.

Differences from the source:

  • generalization: r_t(a), c_{t,i}(a) the conditional expectations of one realized history, in [0, 1] → arbitrary real sequences r, c; reason: the proof uses only the stated hypotheses; the paper applies it at each outcome, where r, c are such sequences
  • generalization: a (σr, σc)-stationary adversary (Appendix A, p.17: the two lemmas 'show the effects of a (σr, σc)-stationary adversary') → only the consumptions are σc-stationary; nothing is assumed about the rewards; reason: the proof on p.18 uses only σc-stationarity of c; every (σr, σc)-stationary instance satisfies the Lean hypotheses
  • reading: (A*, T*) the optimal solution to (1) → any optimal solution of (1) (feasible, with value at least that of every feasible point); reason: the paper writes 'the' solution; nothing in the proof depends on which optimal solution is chosen
  • encoding: σc ∈ [0, 1] → 0 < σc ≤ 1; reason: ρ/(xσc) is undefined at σc = 0 (Lean would read ρ/0 as 0); the excluded case is one where the printed bound has no value
  • encoding: max_t E_{a∼A*}[c_{t,i}(a)] ≤ ρ/(xσc) → E_{a∼A*}[c_{t,i}(a)] ≤ ρ/(xσc) for every t ∈ [T]; reason: a bound on the maximum over a finite set is a bound on every element
  • encoding: min_t f(t) ≥ σ max_t f(t) over t ∈ [T] (Definition 3.1) → σ f(s) ≤ f(t) for all s, t ∈ [T] (IsStationarySeq); reason: equivalent for a finite nonempty index set
  • encoding: rounds t ∈ [T], actions [K] with a null action, resources [d], Alg_min's choice i ∈ [d] ∪ {0} → rounds are natural numbers 1, …, T; actions Fin K with a designated null action a₀; resources Fin d; i ∈ Option (Fin d) with none = 0; reason: Lean convention; same instances
Preamble
import Mathlib
import Definitions.Def_StationaryBwK_Benchmark
import Definitions.Def_StationaryBwK_StationarySeq
Formal statement
namespace StationaryBwK

/-- **Lemma A.2** (Fikioris & Tardos, arXiv:2302.14686v2, Lemma A.2, p.17; proof p.18). Let the
consumptions be `σc`-stationary (Definition 3.1) with `σc > 0`, let `(A*, T*)` be the optimal
solution to (1) and let `x = T*/T`. Then for all `i ∈ [d]`,
`max_t E_{a∼A*}[c_{t,i}(a)] ≤ ρ/(x σc)`, where `ρ = B/T` and `t` ranges over `[T]`.

**Formalization Note.** Deterministic: `r`, `c` are real sequences. `σc > 0` is needed for
`ρ/(xσc)` to be defined (Lean would read `ρ/0` as `0`). The maximum over `t` is written as a bound
for every `t ∈ [T]`. -/
theorem lemma_A_2 {d K : ℕ} (T : ℕ) (B : ℝ) (hT : 1 ≤ T) (hB : 0 < B) (hBT : B ≤ T)
    (σc : ℝ) (hσc₀ : 0 < σc) (hσc₁ : σc ≤ 1) (r : ℕ → Fin K → ℝ) (c : ℕ → Fin d → Fin K → ℝ)
    (hc : ∀ (i : Fin d) (a : Fin K), IsStationarySeq σc T (fun t => c t i a))
    (Ts : ℕ) (p : Fin K → ℝ) (hopt : IsOptFDSolution T B r c Ts p) :
    ∀ i : Fin d, ∀ t ∈ Finset.Icc 1 T,
      expect p (fun a => c t i a) ≤ B / T / ((Ts : ℝ) / T * σc) := by sorry

end StationaryBwK
Source
G. Fikioris and É. Tardos, Approximately Stationary Bandits with Knapsacks, arXiv:2302.14686v2 [cs.LG] (preprint, 8 Jul 2023), https://arxiv.org/abs/2302.14686v2, Appendix A, Lemma A.2, p.17; proof p.18
Human review
  • Endorsed by Shuze Chen · Nov 3, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 3, 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