Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(7), p. 1461 — E(max Xᵢ) = ∫₀^∞ 1 − Fⁿ = ∫₀¹ F⁻¹(ⁿ√z) dz = n∫₀¹(1 − q)ⁿ⁻¹F⁻¹(1 − q) dq = n∫₀¹ψ(q)R(q) dq

Proved
CorreaThreshold.Adaptive.eq_7

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

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

Throughout, X1,…,XnX_1,\ldots,X_nX1​,…,Xn​ are i.i.d. with common law μ\muμ on R\mathbb RR, where μ\muμ is a probability measure with μ((−∞,0))=0\mu((-\infty,0))=0μ((−∞,0))=0 (the variables are nonnegative), and F(x)=μ((−∞,x])F(x)=\mu((-\infty,x])F(x)=μ((−∞,x]) is their distribution function. Let n≥2n\ge2n≥2, ψ(q)=(n−1)(1−q)n−2\psi(q)=(n-1)(1-q)^{n-2}ψ(q)=(n−1)(1−q)n−2 and R(q)=∫0qF−1(1−θ) dθR(q)=\int_0^qF^{-1}(1-\theta)\,d\thetaR(q)=∫0q​F−1(1−θ)dθ. Then

E(max⁡{X1,…,Xn})=∫0∞1−Fn(t) dt=∫01F−1(zn) dz=n∫01(1−q)n−1F−1(1−q) dq=n∫01(n−1)(1−q)n−2R(q) dq.E(\max\{X_1,\ldots,X_n\})=\int_0^\infty 1-F^n(t)\,dt=\int_0^1F^{-1}(\sqrt[n]{z})\,dz=n\int_0^1(1-q)^{n-1}F^{-1}(1-q)\,dq=n\int_0^1(n-1)(1-q)^{n-2}R(q)\,dq.E(max{X1​,…,Xn​})=∫0∞​1−Fn(t)dt=∫01​F−1(nz​)dz=n∫01​(1−q)n−1F−1(1−q)dq=n∫01​(n−1)(1−q)n−2R(q)dq.

The last form expresses the prophet's value as a ψ\psiψ-weighted average of RRR, which is the shape the quantile rule is designed to reproduce.

Formalization Note All quantities are in [0,∞][0,\infty][0,∞] (lower Lebesgue integrals), so the identity also covers EX=∞E X=\inftyEX=∞. The first three equalities hold for n≥1n\ge1n≥1; the last uses (1−q)n−1=0(1-q)^{n-1}=0(1−q)n−1=0 at q=1q=1q=1 and is stated for n≥2n\ge2n≥2, the range of §4 (for n=1n=1n=1, ψ≡0\psi\equiv0ψ≡0). The integrals over [0,1][0,1][0,1] are taken over the open interval (0,1)(0,1)(0,1), which avoids the junk value of F−1(1)F^{-1}(1)F−1(1).

Preamble
import Mathlib
import Definitions.Def_CorreaThreshold_Adaptive_Setting
Formal statement
namespace CorreaThreshold.Adaptive

open MeasureTheory ProbabilityTheory

theorem eq_7 (μ : Measure ℝ) [IsProbabilityMeasure μ] (hμ : μ (Set.Iio 0) = 0)
    {n : ℕ} [NeZero n] (hn : 2 ≤ n) :
    SamuelCahnProphet.IID.Emax μ n = ∫⁻ t in Set.Ioi 0, ENNReal.ofReal (1 - cdf μ t ^ n) ∧
      SamuelCahnProphet.IID.Emax μ n =
        ∫⁻ z in Set.Ioo 0 1, ENNReal.ofReal (Finv μ (z ^ ((1 : ℝ) / n))) ∧
      SamuelCahnProphet.IID.Emax μ n =
        ∫⁻ q in Set.Ioo 0 1, ENNReal.ofReal (n * (1 - q) ^ (n - 1)) * ENNReal.ofReal (Finv μ (1 - q)) ∧
      SamuelCahnProphet.IID.Emax μ n =
        ∫⁻ q in Set.Ioo 0 1, ENNReal.ofReal (n * psi n q) * Rq μ q := by sorry

end CorreaThreshold.Adaptive
Source
Correa, Foncea, Hoeksma, Oosterwijk, Vredeveld, Posted price mechanisms and optimal threshold strategies for random arrivals, Math. Oper. Res. 46 (2021), p. 1461, (7)
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

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