Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, Eqs. (7)–(8) and M₁ — 0 ≤ δ[1 − δ/(1−γ)] ≤ 3 − 2^{3/2}, attained at (0, 2 − √2) and (2 − √2, 0)

Proved
RobbinsSeqDesign.StayOrSwitch.loss_max

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

bandit-algorithmsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1real-analysis

For real numbers 0≤α,β≤10\le\alpha,\beta\le10≤α,β≤1, not both 000 and not both 111, put γ=(α+β)/2\gamma = (\alpha+\beta)/2γ=(α+β)/2 and δ=∣α−β∣/2\delta = |\alpha-\beta|/2δ=∣α−β∣/2. Then

  1. max⁡(α,β)=γ+δ\max(\alpha,\beta) = \gamma+\deltamax(α,β)=γ+δ;
  2. the quantity L(α,β)=δ[1−δ1−γ]L(\alpha,\beta) = \delta\left[1 - \dfrac{\delta}{1-\gamma}\right]L(α,β)=δ[1−1−γδ​] satisfies
0≤δ[1−δ1−γ]≤3−23/2;0 \le \delta\left[1-\frac{\delta}{1-\gamma}\right] \le 3 - 2^{3/2};0≤δ[1−1−γδ​]≤3−23/2;
  1. the value M1=3−23/2M_1 = 3-2^{3/2}M1​=3−23/2 is taken at α=0\alpha = 0α=0, β=2−21/2\beta = 2-2^{1/2}β=2−21/2 and at α=2−21/2\alpha = 2 - 2^{1/2}α=2−21/2, β=0\beta = 0β=0.

This is the elementary half of the paper's comparison: LLL is the asymptotic loss per toss of the rule R1R_1R1​, and M1≈0.172M_1 \approx 0.172M1​≈0.172 is its worst case over all pairs of coins.

Formalization Note No probability enters this statement. 23/22^{3/2}23/2 is written as 2 * Real.sqrt 2. The numerical values ≈.172\approx .172≈.172 and ≈.586\approx .586≈.586 are not formalized.

Preamble
import Mathlib
import Definitions.Def_RobbinsSeqDesign_StayOrSwitch_Coins
Formal statement
namespace RobbinsSeqDesign.StayOrSwitch

/-- Section 2, Eqs. (7)–(8) and the maximum `M₁`, p. 531: for `0 ≤ α, β ≤ 1` not both `0` and
not both `1`, `max(α, β) = γ + δ` and `0 ≤ δ[1 − δ/(1 − γ)] ≤ 3 − 2^{3/2}`; the value
`3 − 2^{3/2}` is taken at `α = 0, β = 2 − 2^{1/2}` and at `α = 2 − 2^{1/2}, β = 0`. -/
theorem loss_max :
    (∀ α β : ℝ, 0 ≤ α → α ≤ 1 → 0 ≤ β → β ≤ 1 → ¬(α = 0 ∧ β = 0) → ¬(α = 1 ∧ β = 1) →
        max α β = gamma α β + delta α β ∧
          0 ≤ delta α β * (1 - delta α β / (1 - gamma α β)) ∧
          delta α β * (1 - delta α β / (1 - gamma α β)) ≤ 3 - 2 * Real.sqrt 2) ∧
      delta 0 (2 - Real.sqrt 2) * (1 - delta 0 (2 - Real.sqrt 2) / (1 - gamma 0 (2 - Real.sqrt 2)))
        = 3 - 2 * Real.sqrt 2 ∧
      delta (2 - Real.sqrt 2) 0 * (1 - delta (2 - Real.sqrt 2) 0 / (1 - gamma (2 - Real.sqrt 2) 0))
        = 3 - 2 * Real.sqrt 2 := 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, Eqs. (7), (8) and the maximum M₁
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