Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Relation (19) — F̂(x, s, M) = φᵢ(xᵢ, sᵢ, M) Pᵢ(x, s, M) + ∫_M^∞ φᵢ(xᵢ, sᵢ, m) d_m Pᵢ(x, s, m)

Proved
WhittleGittins.Retirement.relation19_partial_integration

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

bandit-algorithmsdynamic-programminggittins-indexp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1stieltjes-integral

In Whittle's bandit process with per-project horizons sss, let

F^(x,s,M)=K−∫MK∏j∂φj(xj,sj,m)∂m dm(13)\hat F(x, s, M) = K - \int_M^K \prod_j \frac{\partial \varphi_j(x_j, s_j, m)}{\partial m}\, dm \qquad (13)F^(x,s,M)=K−∫MK​j∏​∂m∂φj​(xj​,sj​,m)​dm(13)

and let Pi(x,s,M)=∏j≠i∂φj(xj,sj,M)/∂MP_i(x, s, M) = \prod_{j\ne i}\partial\varphi_j(x_j, s_j, M)/\partial MPi​(x,s,M)=∏j=i​∂φj​(xj​,sj​,M)/∂M as in (17). Then, for every project iii and every MMM, partial integration of (13) gives

F^(x,s,M)=φi(xi,si,M) Pi(x,s,M)+∫M∞φi(xi,si,m) dmPi(x,s,m),(19)\hat F(x, s, M) = \varphi_i(x_i, s_i, M)\, P_i(x, s, M) + \int_M^\infty \varphi_i(x_i, s_i, m)\, d_m P_i(x, s, m), \qquad (19)F^(x,s,M)=φi​(xi​,si​,M)Pi​(x,s,M)+∫M∞​φi​(xi​,si​,m)dm​Pi​(x,s,m),(19)

where the last integral is the Lebesgue–Stieltjes integral over m>Mm > Mm>M against the distribution function Pi(x,s,⋅)P_i(x, s, \cdot)Pi​(x,s,⋅).

Relation (19) expresses F^\hat FF^ as a mixture of single-project values, which is how the one-project dynamic programming equation (14) transfers to F^\hat FF^.

Formalization Note The Stieltjes measure dmPid_mP_idm​Pi​ is supplied as the measure of any StieltjesFunction GGG (a monotone right-continuous function) that agrees with Pi(x,s,⋅)P_i(x, s, \cdot)Pi​(x,s,⋅) everywhere; such a GGG exists because right derivatives of convex functions are non-decreasing and right-continuous. The integral ∫M∞\int_M^\infty∫M∞​ is taken over the open half-line (M,∞)(M, \infty)(M,∞), so a jump of PiP_iPi​ at MMM is accounted for by the first term. ∂/∂m\partial/\partial m∂/∂m is the right derivative.

Preamble
import Mathlib
import Definitions.Def_WhittleGittins_Retirement_BanditProcess
Formal statement
namespace WhittleGittins.Retirement

open MeasureTheory ProbabilityTheory

/-- Relation (19) (p. 147), partial integration of (13):
`F̂(x, s, M) = φᵢ(xᵢ, sᵢ, M) Pᵢ(x, s, M) + ∫_M^∞ φᵢ(xᵢ, sᵢ, m) d_m Pᵢ(x, s, m)`, the Stieltjes
integral being taken against any Stieltjes function `G` that agrees with `Pᵢ(x, s, ·)`, over
`m > M`. -/
theorem relation19_partial_integration {N : ℕ} {X : Fin N → Type*} [∀ i, MeasurableSpace (X i)]
    (B : BanditProcess N X) (x : ∀ j, X j) (s : Fin N → ℕ) (i : Fin N) (M : ℝ)
    (G : StieltjesFunction ℝ) (hG : ∀ m, G m = Pdist B x s i m) :
    Fhat B x s M = phi B i (x i) (s i) M * Pdist B x s i M +
      ∫ m in Set.Ioi M, phi B i (x i) (s i) m ∂G.measure := by sorry

end WhittleGittins.Retirement
Source
Whittle, Multi-armed Bandits and the Gittins Index, J. R. Statist. Soc. B 42 (1980), p. 147 (PDF 5), Section 4, relation (19)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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