Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Relation (18) — Pᵢ(x, s, M) = ∏_{j≠i} ∂φⱼ/∂M is a distribution function in M, equal to 1 for M ≥ M₍ᵢ₎

Proved
WhittleGittins.Retirement.relation18_P_distribution

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

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

In Whittle's bandit process with per-project horizons s=(s1,…,sN)s = (s_1,\dots,s_N)s=(s1​,…,sN​), let φj(xj,sj,M)\varphi_j(x_j, s_j, M)φj​(xj​,sj​,M) be the value of the single-project MMM-process for project jjj (14), let Mj=Mj(xj,sj)M_j = M_j(x_j, s_j)Mj​=Mj​(xj​,sj​) be its index, the infimal MMM with φj(xj,sj,M)=M\varphi_j(x_j, s_j, M) = Mφj​(xj​,sj​,M)=M, and define

Pi(x,s,M)=∏j≠i∂φj(xj,sj,M)∂M.(17)P_i(x, s, M) = \prod_{j\ne i} \frac{\partial \varphi_j(x_j, s_j, M)}{\partial M}. \qquad (17)Pi​(x,s,M)=j=i∏​∂M∂φj​(xj​,sj​,M)​.(17)

Regarded as a function of MMM, PiP_iPi​ is non-negative, non-decreasing and at most 111, and

Pi(x,s,M)=1forM≥M(i)≜max⁡j≠iMj,(18)P_i(x, s, M) = 1 \quad\text{for}\quad M \ge M_{(i)} \triangleq \max_{j\ne i} M_j, \qquad (18)Pi​(x,s,M)=1forM≥M(i)​≜j=imax​Mj​,(18)

the maximum being over the other projects that can still be operated (sj>0s_j > 0sj​>0). Moreover each such index satisfies Mj≤KM_j \le KMj​≤K. Hence Pi(x,s,⋅)P_i(x, s, \cdot)Pi​(x,s,⋅) is a distribution function in MMM with all its support in M≤M(i)≤KM \le M_{(i)} \le KM≤M(i)​≤K.

This is the step of the proof of Theorem 1 that allows F^\hat FF^ of (13) to be integrated by parts against PiP_iPi​.

Formalization Note ∂/∂M\partial/\partial M∂/∂M is the right derivative. Projects jjj with sj=0s_j = 0sj​=0 have φj(xj,0,M)=M\varphi_j(x_j, 0, M) = Mφj​(xj​,0,M)=M, derivative 111 and index −∞-\infty−∞; they are excluded from the maximum defining M(i)M_{(i)}M(i)​ (if no other project is active, M(i)=−∞M_{(i)} = -\inftyM(i)​=−∞ and Pi≡1P_i \equiv 1Pi​≡1). Projects are indexed by Fin N.

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

open MeasureTheory ProbabilityTheory

/-- Relation (18) (p. 147): `Pᵢ(x, s, M) = ∏_{j≠i} ∂φⱼ(xⱼ, sⱼ, M)/∂M` is, as a function of `M`,
non-negative, non-decreasing, at most one, and equal to one for `M ≥ M₍ᵢ₎ = max_{j≠i} Mⱼ` (the
maximum over the other active projects); moreover every index of an active project is `≤ K`. -/
theorem relation18_P_distribution {N : ℕ} {X : Fin N → Type*} [∀ i, MeasurableSpace (X i)]
    (B : BanditProcess N X) (x : ∀ j, X j) (s : Fin N → ℕ) (i : Fin N) :
    (∀ M, 0 ≤ Pdist B x s i M) ∧ Monotone (Pdist B x s i) ∧ (∀ M, Pdist B x s i M ≤ 1) ∧
      (∀ M, (∀ j, j ≠ i → 0 < s j → index B j (x j) (s j) ≤ M) → Pdist B x s i M = 1) ∧
      (∀ j, 0 < s j → index B j (x j) (s j) ≤ B.K) := 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, relations (17) and (18)
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