Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Expectation under a finite categorical outcome measure

Proved
BanditAlgorithm.integral_pmOutcomeMeasure

by Harry_Xu · Aug 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

finite-distributionspartial-monitoringprobability

Let ppp be a probability vector on a finite set and let PpP_pPp​ be its categorical probability measure. Then every real-valued function ggg has expectation

∫g(i) dPp(i)=∑ipig(i).\int g(i)\,dP_p(i)=\sum_i p_i g(i).∫g(i)dPp​(i)=i∑​pi​g(i).

This is the integration rule that turns one-step action expectations under Algorithm 26 into finite weighted sums. The simplex hypothesis supplies nonnegative masses summing to one, including the finiteness needed by the Bochner integral.

Preamble
import Definitions.Def_PartialMonitoringStochastic
import Mathlib.MeasureTheory.Integral.Bochner.SumMeasure

open MeasureTheory
open scoped BigOperators ENNReal

namespace BanditAlgorithm
Formal statement
theorem integral_pmOutcomeMeasure
    {d : ℕ} (p : Fin d → ℝ) (hp : p ∈ stdSimplex ℝ (Fin d))
    (g : Fin d → ℝ) :
    ∫ i, g i ∂pmOutcomeMeasure p = ∑ i, p i * g i := by sorry
Source
Finite categorical expectation identity; used implicitly throughout Lattimore and Szepesvári, Bandit Algorithms (2020), proof of Theorem 37.15, printed pp. 494–495, https://tor-lattimore.com/downloads/book/book.pdf

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