Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(1.4), second and third equalities — excess decomposition

Proved
SamuelCahnProphet.Median.eq_1_4_decomp

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

optimal-stoppingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1prophet-inequalitythreshold-rule

For measurable observations and any real mmm, the excess reward under the strict threshold rule decomposes as

E(Xs(m)−m)+=∑i=1nE ⁣[(Xi−m)+ 1{s(m)>i−1}].E(X_{s(m)}-m)^+ =\sum_{i=1}^n E\!\left[(X_i-m)^+\,\mathbf1_{\{s(m)>i-1\}}\right].E(Xs(m)​−m)+=i=1∑n​E[(Xi​−m)+1{s(m)>i−1}​].

This is the pathwise part of (1.4), before independence factors the terms.

Formalization Note The paper passes through the indicator of {s(m)=i}\{s(m)=i\}{s(m)=i}; this statement records the resulting equality without the common mpmpmp summand. Formalization Note Indices are zero based in Lean, so the paper's event s(m)>i−1s(m)>i-1s(m)>i−1 or t(m)>i−1t(m)>i-1t(m)>i−1 becomes i≤s(m)i\le s(m)i≤s(m) or i≤t(m)i\le t(m)i≤t(m). Expectations are extended nonnegative integrals, and the final observation is always taken if no earlier one crosses the threshold.

Preamble
import Mathlib
import Definitions.Def_SamuelCahnProphet_Median_Setting
Formal statement
namespace SamuelCahnProphet.Median

open MeasureTheory ProbabilityTheory

theorem eq_1_4_decomp {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    {n : ℕ} [NeZero n] (X : Fin n → Ω → ℝ) (hXm : ∀ i, Measurable (X i))
    (m : ℝ) :
    (∫⁻ ω, ENNReal.ofReal (X (sRule X m ω) ω - m) ∂P) =
      ∑ i : Fin n, ∫⁻ ω, (if i ≤ sRule X m ω
        then ENNReal.ofReal (X i ω - m) else 0) ∂P := by sorry
end SamuelCahnProphet.Median
Source
Samuel-Cahn, Comparison of threshold stop rules and maximum for independent nonnegative random variables, Ann. Probab. 12 (1984), p. 1214, (1.4), second and third equalities
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