Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 (Compensated Coupling) — expected regret bound

Proved
BayesProphet.MultiSec.compensated_coupling_expectation

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

couplingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1probabilityregret

Let an online decision problem satisfy the standing assumption, let πon\pi^{\mathrm{on}}πon be an online policy for horizon TTT started in s0s_0s0​, and let the arrival sequence θ[ω]\theta[\omega]θ[ω] be random on a probability space (Ω,F,P)(\Omega,\mathcal F,\mathbb P)(Ω,F,P), with integrable regret. If CCC bounds every marginal compensation of a feasible action, ∂R(t,a,s)[ω]≤C\partial R(t,a,s)[\omega]\le C∂R(t,a,s)[ω]≤C for all t∈[T]t\in[T]t∈[T], states sss, feasible aaa and ω∈Ω\omega\in\Omegaω∈Ω (the smallest such CCC is max⁡a,j∂r(a,j)\max_{a,j}\partial r(a,j)maxa,j​∂r(a,j)), then

E[Reg]≤C⋅∑t∈[T]P[Q(t,St)].\mathbb E[\mathrm{Reg}]\le C\cdot\sum_{t\in[T]}\mathbb P\big[Q(t,S^t)\big].E[Reg]≤C⋅t∈[T]∑​P[Q(t,St)].

This is the expectation form of the compensated coupling: the expected regret is at most the largest compensation times the expected number of disagreements.

Formalization Note The paper writes ∑tE[P[Q(t,St)∣St]]\sum_t\mathbb E[\mathbb P[Q(t,S^t)\mid S^t]]∑t​E[P[Q(t,St)∣St]], which equals ∑tP[Q(t,St)]\sum_t\mathbb P[Q(t,S^t)]∑t​P[Q(t,St)] by the tower property. The maximum max⁡a,j∂r(a,j)\max_{a,j}\partial r(a,j)maxa,j​∂r(a,j) is replaced by an arbitrary upper bound CCC of the compensations of feasible actions (infeasible actions carry reward −∞-\infty−∞ in the paper and are never taken by Online). Integrability of the regret is assumed explicitly; under the standing assumption the regret is bounded, so this is a measurability requirement.

Preamble
import Mathlib
import Definitions.Def_BayesProphet_MultiSec_OnlineProblem
Formal statement
namespace BayesProphet.MultiSec

theorem compensated_coupling_expectation {S Θ A : Type*} (P : OnlineProblem S Θ A)
    (hP : P.StandingAssumption) (T : ℕ) (π : Policy S Θ A) (hπ : P.IsOnlinePolicy T π)
    (s₀ : S) {Ω : Type*} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω)
    [MeasureTheory.IsProbabilityMeasure μ] (X : Ω → ℕ → Θ)
    (hint : MeasureTheory.Integrable (fun ω => P.regret π T s₀ (X ω)) μ)
    (C : ℝ)
    (hC : ∀ t ∈ Finset.Icc 1 T, ∀ (s : S), ∀ a ∈ P.feasible s, ∀ ω : Ω,
      P.margComp (X ω) t a s ≤ C) :
    ∫ ω, P.regret π T s₀ (X ω) ∂μ ≤
      C * ∑ t ∈ Finset.Icc 1 T,
        (μ {ω | P.Disagree (X ω) t (π t (X ω) (P.onlineState π T s₀ (X ω) t))
          (P.onlineState π T s₀ (X ω) t)}).toReal := by sorry

end BayesProphet.MultiSec
Source
Vera & Banerjee, The Bayesian Prophet: A Low-Regret Framework for Online Decision Making, SSRN 3158062 (doi:10.2139/ssrn.3158062), p. 12, Lemma 1 (second statement)
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