Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 (Compensated Coupling) — pathwise regret identity

Proved
BayesProphet.MultiSec.compensated_coupling_identity

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

couplingdynamic-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1regret

Let an online decision problem satisfy the standing assumption, let T∈NT\in\mathbb NT∈N, and let πon\pi^{\mathrm{on}}πon be an online policy for horizon TTT started in state ST=s0S^T=s_0ST=s0​, with state process StS^tSt. Then on every sample path

Reg=∑t∈[T]∂R(t,πon(t,St,θt),St)⋅1Q(t,St),\mathrm{Reg}=\sum_{t\in[T]}\partial R\big(t,\pi^{\mathrm{on}}(t,S^t,\theta^t),S^t\big)\cdot\mathbf 1_{Q(t,S^t)},Reg=t∈[T]∑​∂R(t,πon(t,St,θt),St)⋅1Q(t,St)​,

where Q(t,St)=Q(t,πon(t,St,θt),St)Q(t,S^t)=Q(t,\pi^{\mathrm{on}}(t,S^t,\theta^t),S^t)Q(t,St)=Q(t,πon(t,St,θt),St) is the event that Offline is not satisfied with Online's action.

The identity expresses the regret of any online policy as the total compensation paid to Offline for following Online; it is the basis of every regret bound in the paper.

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

theorem compensated_coupling_identity {S Θ A : Type*} (P : OnlineProblem S Θ A)
    (hP : P.StandingAssumption) (T : ℕ) (π : Policy S Θ A) (hπ : P.IsOnlinePolicy T π)
    (s₀ : S) (θ : ℕ → Θ) :
    P.regret π T s₀ θ =
      ∑ t ∈ Finset.Icc 1 T,
        P.margComp θ t (π t θ (P.onlineState π T s₀ θ t)) (P.onlineState π T s₀ θ t) *
          P.disagreeInd θ t (π t θ (P.onlineState π T s₀ θ t)) (P.onlineState π T s₀ θ t) := 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 (first display)
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