Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 4, Eq. (22) — for a fixed sample size n ≥ 1, P(S_n > αn^{1/2}) = 1 − Φ(α) under H₀

Proved
RobbinsSeqDesign.OptionalStopping.rejection_prob_eq

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

gaussianhypothesis-testingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilitystatistics

Let x1,x2,…x_1,x_2,\dotsx1​,x2​,… be independent random variables, each normally distributed with mean 000 and variance 111 (the null hypothesis H0:θ=0H_0:\theta=0H0​:θ=0 of Section 4), and let Sn=x1+⋯+xnS_n=x_1+\cdots+x_nSn​=x1​+⋯+xn​. The fixed-sample test (21) rejects H0H_0H0​ when Sn>αn1/2S_n>\alpha n^{1/2}Sn​>αn1/2, where α\alphaα is a real constant. For every sample size n≥1n\ge 1n≥1 and every real α\alphaα, the probability of rejecting H0H_0H0​ when it is true is

ε(α)=P[Sn>αn1/2]=1−Φ(α),\varepsilon(\alpha)=P\bigl[S_n>\alpha n^{1/2}\bigr]=1-\Phi(\alpha),ε(α)=P[Sn​>αn1/2]=1−Φ(α),

where Φ\PhiΦ is the standard normal distribution function (23). In particular this error probability does not depend on nnn.

This is the size of the fixed-sample test; it is the numerator of the optional-stopping bound (25), and the reason the paper says that by choosing α\alphaα large the error can be made as small as one pleases.

Formalization Note. The paper writes (22) as ε(α)=1−Φ(α)\varepsilon(\alpha)=1-\Phi(\alpha)ε(α)=1−Φ(α) for the test (21) at a fixed nnn; the Lean statement makes the probability explicit and requires n≥1n\ge 1n≥1 (at n=0n=0n=0 the sum is empty and the event is empty when α⋅0≥0\alpha\cdot 0\ge 0α⋅0≥0). Normality is HasLaw (X i) (gaussianReal 0 1) P, which includes almost-everywhere measurability; independence is iIndepFun X P. The numerical example "α=3.09\alpha=3.09α=3.09 then ε(α)≅.001\varepsilon(\alpha)\cong .001ε(α)≅.001" is not formalized.

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

open MeasureTheory ProbabilityTheory

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

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