BanditAlgorithm.bandit_regret_decomposition
Proved(Regret decomposition) For any policy and -armed bandit with finite means,
where is the number of pulls of arm .
import Definitions.Def_banditRegret open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.bandit_regret_decomposition {k : ℕ} (ν : StochasticBandit k)
(hInt : ∀ i, Integrable id (ν.P i)) (π : BanditPolicy k) (n : ℕ) :
banditRegret ν π n =
∑ i, banditGap ν i *
∫ h, (armPullCount i h : ℝ) ∂(banditMeasure ν π n) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Notation (all unfolded from the imported definitions). Fix and a -armed stochastic bandit : probability measures on , with arm means , optimal mean ( by convention when ), and gaps . A policy is a family of Markov kernels from length- histories to arms; is the history measure defined by and , where draws then . Write for the number of rounds of playing arm , and
for the regret (with the convention that a non-integrable integrand makes the integral ).
Claim. For every , every bandit such that is -integrable for every arm , every policy , and every horizon :
Hypotheses:
- integrability of the identity under each — nothing more (no subgaussianity, no boundedness, no moment conditions beyond the first);
- no positivity constraint on or on .
Edge cases:
- The statement is an exact equality, not an inequality in either direction.
- Each pull count satisfies , so the right-hand integrands are bounded; the total-reward integrand inside carries no integrability hypothesis, and if it is not -integrable its integral is the junk value — the claimed equality is asserted for that case too.
- For no policy exists (a Markov kernel into an empty arm set is impossible), so the statement is vacuous there; for both sides are .
Confirmed by the mission captain (proposal self-audit).