Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, Eq. (6) — both E(S_n/n) and (p₁+⋯+p_n)/n tend to γ + δ²/(1−γ) under R₁

Proved
RobbinsSeqDesign.StayOrSwitch.expected_average_tendsto

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

bandit-algorithmsmarkov-chainsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let coins AAA and BBB have head probabilities α,β∈[0,1]\alpha, \beta\in[0,1]α,β∈[0,1], not both 000 and not both 111; let xi∈{0,1}x_i\in\{0,1\}xi​∈{0,1} be the payoff of the iii-th toss under the rule R1R_1R1​, Sn=x1+⋯+xnS_n = x_1+\dots+x_nSn​=x1​+⋯+xn​, pip_ipi​ the probability of heads on the iii-th toss, and γ,δ\gamma,\deltaγ,δ as in (5). Then

lim⁡n→∞E ⁣(Snn)=lim⁡n→∞p1+⋯+pnn=γ+δ21−γ.\lim_{n\to\infty}\mathrm E\!\left(\frac{S_n}{n}\right) = \lim_{n\to\infty}\frac{p_1+\dots+p_n}{n} = \gamma + \frac{\delta^2}{1-\gamma}.n→∞lim​E(nSn​​)=n→∞lim​np1​+⋯+pn​​=γ+1−γδ2​.

This is the long-run expected payoff per toss of a person who uses R1R_1R1​.

Formalization Note The Lean states both limits explicitly. The expectation is a Bochner integral of the average payoff over the trajectory law.

Preamble
import Mathlib
import Definitions.Def_RobbinsSeqDesign_StayOrSwitch_Rules

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace RobbinsSeqDesign.StayOrSwitch

/-- Section 2, Eq. (6), p. 531: if `α, β` are not both `0` and not both `1`, then under rule
`R₁`, both `E(S_n/n)` and `(p₁ + ⋯ + p_n)/n` tend to
`γ + δ²/(1 − γ)`. -/
theorem expected_average_tendsto (α β : unitInterval)
    (hnot0 : ¬((α : ℝ) = 0 ∧ (β : ℝ) = 0)) (hnot1 : ¬((α : ℝ) = 1 ∧ (β : ℝ) = 1)) :
    Tendsto (fun n => expectedAverage ruleR1 α β n) atTop
        (𝓝 (gamma α β + delta α β ^ 2 / (1 - gamma α β))) ∧
      Tendsto (fun n => (∑ i ∈ Finset.Icc 1 n, headProb ruleR1 α β i) / n) atTop
        (𝓝 (gamma α β + delta α β ^ 2 / (1 - gamma α β))) := by sorry

end RobbinsSeqDesign.StayOrSwitch
Source
Robbins, Some aspects of the sequential design of experiments, Bull. Amer. Math. Soc. 58 (1952), p. 531, Section 2, Eq. (6)
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