Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 4, Eq. (25) — g(n₁, n₂, α) < (1 − Φ(α))/(1 − Φ(α(λ^{1/2} − 1)/(λ − 1)^{1/2})), λ = n₂/n₁

Proved
RobbinsSeqDesign.OptionalStopping.optional_stopping_window_bound

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

gaussianmaximal-inequalityoptional-stoppingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilitystatistics

Let x1,x2,…x_1,x_2,\dotsx1​,x2​,… be independent random variables, each normal with mean 000 and variance 111, and Sn=x1+⋯+xnS_n=x_1+\cdots+x_nSn​=x1​+⋯+xn​. For integers 1≤n1<n21\le n_1<n_21≤n1​<n2​ and a real constant α\alphaα let

g(n1,n2,α)=P[Sn>αn1/2 for some n1≤n≤n2]g(n_1,n_2,\alpha)=P\bigl[S_n>\alpha n^{1/2}\ \text{for some } n_1\le n\le n_2\bigr]g(n1​,n2​,α)=P[Sn​>αn1/2 for some n1​≤n≤n2​]

be the probability that the fixed-sample test (21) rejects at some sample size of the window (24), and put λ=n2/n1>1\lambda=n_2/n_1>1λ=n2​/n1​>1. Then

g(n1,n2,α)<1−Φ(α)1−Φ ⁣(α⋅λ1/2−1(λ−1)1/2),g(n_1,n_2,\alpha)<\frac{1-\Phi(\alpha)}{1-\Phi\!\Bigl(\alpha\cdot\dfrac{\lambda^{1/2}-1}{(\lambda-1)^{1/2}}\Bigr)},g(n1​,n2​,α)<1−Φ(α⋅(λ−1)1/2λ1/2−1​)1−Φ(α)​,

where Φ\PhiΦ is the standard normal distribution function (23).

A statistician who allows the sample size to be chosen anywhere in [n1,n2][n_1,n_2][n1​,n2​] thus controls the probability of wrongly rejecting H0H_0H0​ by the fixed-sample error 1−Φ(α)1-\Phi(\alpha)1−Φ(α) inflated by a factor depending only on α\alphaα and the ratio λ\lambdaλ; the paper notes the bound is useful when λ\lambdaλ is not too large.

Formalization Note. The inequality is strict, as printed. The paper's range of the parameters is made explicit: n1≥1n_1\ge 1n1​≥1 (so that λ=n2/n1\lambda=n_2/n_1λ=n2​/n1​ is defined) and n1<n2n_1<n_2n1​<n2​ (so that λ>1\lambda>1λ>1 and (λ−1)1/2≠0(\lambda-1)^{1/2}\ne 0(λ−1)1/2=0); λ\lambdaλ is the real quotient n2/n1n_2/n_1n2​/n1​. No sign condition is put on α\alphaα: the paper's α\alphaα is "some constant", and the inequality holds for every real α\alphaα (for α≤0\alpha\le 0α≤0 the right side is at least 111 while g<1g<1g<1). The window includes both endpoints n1n_1n1​ and n2n_2n2​. The remarks "useful when λ\lambdaλ is not too large" and "sharper inequalities can no doubt be devised" are not formalized.

Preamble
import Mathlib
import Definitions.Def_RobbinsSeqDesign_OptionalStopping_Setup
Formal statement
namespace RobbinsSeqDesign.OptionalStopping

open MeasureTheory ProbabilityTheory

theorem optional_stopping_window_bound {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (X : ℕ → Ω → ℝ) (hindep : iIndepFun X P)
    (hlaw : ∀ i, HasLaw (X i) (gaussianReal 0 1) P) (n₁ n₂ : ℕ) (hn₁ : 1 ≤ n₁)
    (hn₁₂ : n₁ < n₂) (α : ℝ) :
    g P X n₁ n₂ α <
      (1 - Phi α) /
        (1 - Phi (α * ((Real.sqrt ((n₂ : ℝ) / n₁) - 1) / Real.sqrt ((n₂ : ℝ) / n₁ - 1)))) := by sorry

end RobbinsSeqDesign.OptionalStopping
Source
Robbins, Some aspects of the sequential design of experiments, Bull. Amer. Math. Soc. 58 (1952), p. 535, Section 4, Eqs. (24), (25)
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