Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Prop. 3, p. 12 — ZiτZ^\tau_iZiτ​ is a uniformly integrable martingale and E[ZiTi]=0\mathbb E[Z^{T_i}_i]=0E[ZiTi​​]=0

Proved
CorrelatedTrials.Consistency.proposition_3

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

bayesian-learningmartingaleoptional-stoppingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1uniform-integrability

Let (μ,Σ)(\mu,\Sigma)(μ,Σ) be a belief and iii an arm with λi>0\lambda_i>0λi​>0 and Σi,i>0\Sigma_{i,i}>0Σi,i​>0. On the auxiliary space of repeated sampling of arm iii, let ZiτZ^\tau_iZiτ​ be the change in arm iii's posterior mean after τ\tauτ samples and (Fτ)(\mathcal F_\tau)(Fτ​) the filtration generated by the samples. Then:

  1. (Ziτ)τ≥0(Z^\tau_i)_{\tau\ge0}(Ziτ​)τ≥0​ is a martingale with respect to (Fτ)(\mathcal F_\tau)(Fτ​);
  2. the family {Ziτ:τ≥0}\{Z^\tau_i:\tau\ge0\}{Ziτ​:τ≥0} is uniformly integrable;
  3. for every stopping time TTT of (Fτ)(\mathcal F_\tau)(Fτ​) that is finite almost surely,
E[ZiT]=0.\mathbb E\big[Z^{T}_i\big]=0 .E[ZiT​]=0.

This is what removes the linear term bg(0)ZiTib_{g(0)}Z^{T_i}_ibg(0)​ZiTi​​ from the stopping problem in (18), giving (19)–(20).

Formalization Note The paper's "any stopping time" is read as any almost surely finite stopping time, since ZiTZ^{T}_iZiT​ is only defined where T<∞T<\inftyT<∞. Uniform integrability is Mathlib's notion, which includes measurability and boundedness in L1L^1L1.

Preamble
import Mathlib
import Definitions.Def_CorrelatedTrials_Consistency_AllocationIndex

open MeasureTheory ProbabilityTheory
Formal statement
namespace CorrelatedTrials.Consistency

/-- Prop. 3 (Chick, Gans, Yapar, Bayesian Sequential Learning for Clinical Trials of Multiple Correlated Medical Interventions, SSRN 3184758 (version of August 31, 2020), p. 12, Prop. 3; proof p. ec3):
"Z^τ_i is a uniformly integrable martingale. E_{T_i}[Z^{T_i}_i | µ^t, Σ^t] = 0 for any stopping
time T_i."

From a belief with `Σ_{i,i} > 0`, the predictive change `Z^τ_i` of arm `i`'s mean under repeated
sampling of arm `i` is a martingale for the sampling filtration, the family `(Z^τ_i)_τ` is
uniformly integrable, and `E[Z^{T}_i] = 0` for every stopping time `T`.

Formalization Note: "any stopping time" is read as every almost surely finite stopping time
(`Z^T` needs `T < ∞`; Lean's `stoppedValue` would read `Z^0` on `{T = ∞}`). Mathlib's
`UniformIntegrable` includes strong measurability and boundedness in `L¹`. -/
theorem proposition_3 {M : ℕ} (lam : Fin M → ℝ) (Sig : Matrix (Fin M) (Fin M) ℝ) (i : Fin M)
    (hlam : 0 < lam i) (hSig : 0 < Sig i i) :
    Martingale (Zproc (lam i) (Sig i i)) (auxFiltration (lam i)) (auxMeasure (Sig i i)) ∧
      UniformIntegrable (Zproc (lam i) (Sig i i)) 1 (auxMeasure (Sig i i)) ∧
      ∀ T : AuxSpace → WithTop ℕ, IsStoppingTime (auxFiltration (lam i)) T →
        (∀ᵐ ω ∂(auxMeasure (Sig i i)), T ω ≠ ⊤) →
        ∫ ω, stoppedValue (Zproc (lam i) (Sig i i)) T ω ∂(auxMeasure (Sig i i)) = 0 := by sorry

end CorrelatedTrials.Consistency
Source
Chick, Gans, Yapar, Bayesian Sequential Learning for Clinical Trials of Multiple Correlated Medical Interventions, SSRN 3184758 (version of August 31, 2020), p. 12, Prop. 3 (proof p. ec3, B.3)
Human review
  • Endorsed by Shuze Chen · Oct 18, 2026

    Confirmed by the moderator at approval.

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