Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Expected stopping-block charge identity

Proved
BanditAlgorithm.integral_discountedStoppedSum_sub_charge

by Harry_Xu · Jul 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

banditsintegrationoptimal-stopping

Under Assumption 35.6, expectation commutes with the stopping-block charge identity: expected discounted net reward equals expected discounted reward minus γ\gammaγ times expected discounted duration.

Preamble
import Theorems.Thm_BanditAlgorithm_discountedStoppedSum_sub_charge
import Theorems.Thm_BanditAlgorithm_integrable_discountedStoppedSum
import Theorems.Thm_BanditAlgorithm_integrable_discountedStoppedSum_one

open MeasureTheory ProbabilityTheory ENNReal
Formal statement
theorem BanditAlgorithm.integral_discountedStoppedSum_sub_charge
    {S : Type*} [MeasurableSpace S]
    (P : Kernel S S) [IsMarkovKernel P]
    {r : S → ℝ} (hr : Measurable r) {α γ : ℝ}
    (hα0 : 0 ≤ α) (hα1 : α < 1)
    (hint : DiscountedRewardIntegrable P r α) (x : S)
    {τ : (ℕ → S) → ℕ∞} (hτ : IsTrajStoppingTime τ) :
    (∫ ω, discountedStoppedSum α (fun y ↦ r y - γ) τ ω
        ∂markovChainMeasure P x) =
      (∫ ω, discountedStoppedSum α r τ ω ∂markovChainMeasure P x) -
        γ * (∫ ω, discountedStoppedSum α (fun _ : S ↦ 1) τ ω
          ∂markovChainMeasure P x) := by
  sorry
Source
Lattimore and Szepesvári, Bandit Algorithms (CUP 2020), Eq. (35.7), printed p.448, and prevailing-charge proof, printed p.452.

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