Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

App. B.3 — total compensation ∑t≤Tq(t,Bt)≤∑j>12/pj\sum_{t\le T}q(t,B^t)\le\sum_{j>1}2/p_j∑t≤T​q(t,Bt)≤∑j>1​2/pj​

Proved
BayesProphet.MultiSec.total_disagreement_bound

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

multi-secretaryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1regret

Under the hypotheses of the multi-secretary analysis (pj>0p_j>0pj​>0, ∑jpj=1\sum_jp_j=1∑j​pj​=1, r1≥⋯≥rn≥0r_1\ge\dots\ge r_n\ge0r1​≥⋯≥rn​≥0), for every horizon TTT and every sequence of budgets (Bt)t∈[T](B^t)_{t\in[T]}(Bt)t∈[T]​,

∑t≤Tq(t,Bt) ≤ ∑j>1pj∑t≤Te−pj2t/2 ≤ ∑j>1pj 2pj2,\sum_{t\le T}q(t,B^t)\ \le\ \sum_{j>1}p_j\sum_{t\le T}e^{-p_j^2t/2}\ \le\ \sum_{j>1}p_j\,\frac{2}{p_j^2},t≤T∑​q(t,Bt) ≤ j>1∑​pj​t≤T∑​e−pj2​t/2 ≤ j>1∑​pj​pj2​2​,

where q(t,b)=∑jpj qj(t,b)q(t,b)=\sum_jp_j\,q_j(t,b)q(t,b)=∑j​pj​qj​(t,b) is the probability that Offline is not satisfied with the Fluid Bayes Selector's action at time-to-go ttt with budget bbb, and the sums over ttt run over t=1,…,Tt=1,\dots,Tt=1,…,T.

This bounds the expected number of disagreements of the policy by a constant independent of TTT and of the budgets.

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

theorem total_disagreement_bound {n : ℕ} [NeZero n] (p r : Fin n → ℝ) (hp : ∀ j, 0 < p j)
    (hsum : ∑ j, p j = 1) (hr : Antitone r) (hr₀ : ∀ j, 0 ≤ r j)
    (T : ℕ) (bud : ℕ → ℕ) :
    ∑ t ∈ Finset.Icc 1 T, disagreeProb p r t (bud t) ≤
        ∑ j ∈ Finset.univ.erase (0 : Fin n),
          p j * ∑ t ∈ Finset.Icc 1 T, Real.exp (-(p j ^ 2 * t / 2)) ∧
    ∑ j ∈ Finset.univ.erase (0 : Fin n),
          p j * ∑ t ∈ Finset.Icc 1 T, Real.exp (-(p j ^ 2 * t / 2)) ≤
        ∑ j ∈ Finset.univ.erase (0 : Fin n), p j * (2 / p j ^ 2) := 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. 37, Appendix B.3, display before 'Using compensated coupling (Lemma 1)'
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