Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma EC.2, p. ec2 — for q_i ∈ (0,1), 1/∏q_i + 1/∏(1−q_i) ≥ 2^{n+1}, with equality iff every q_i = 1/2

Proved
SwitchbackExp.Design.lemma_EC_2

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

fair-coininequalityp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1product-inequality

For every nnn and all q1,…,qn∈(0,1)q_1,\dots,q_n\in(0,1)q1​,…,qn​∈(0,1), the function

f(q1,…,qn)=1∏i=1nqi+1∏i=1n(1−qi)f(q_1,\dots,q_n)=\frac1{\prod_{i=1}^n q_i}+\frac1{\prod_{i=1}^n(1-q_i)}f(q1​,…,qn​)=∏i=1n​qi​1​+∏i=1n​(1−qi​)1​

satisfies

f(q1,…,qn)≥2n+1,f(q_1,\dots,q_n)\ge 2^{n+1},f(q1​,…,qn​)≥2n+1,

and equality holds if and only if q1=⋯=qn=1/2q_1=\dots=q_n=1/2q1​=⋯=qn​=1/2.

This inequality is what makes fair coins optimal in Theorem 1: at the extreme outcomes every term of the risk has the form f(⋅) B2f(\cdot)\,B^2f(⋅)B2.

Formalization Note The page's n∈Nn\in\mathbb Nn∈N means n≥1n\ge1n≥1 (p. ec1). The statement also holds at n=0n=0n=0 (both sides equal 222, and the equality condition is vacuous), so the restriction is dropped; this is a strengthening.

Preamble
import Mathlib
import Definitions.Def_SwitchbackExp_Design_Model
import Definitions.Def_SwitchbackExp_Design_Setting
Formal statement
namespace SwitchbackExp.Design

/-- Lemma EC.2 (p. ec2): for `q₁, …, q_n ∈ (0,1)`, `1/∏ q_i + 1/∏ (1 − q_i) ≥ 2^{n+1}`, with equality
iff every `q_i = 1/2`. -/
theorem lemma_EC_2 (n : ℕ) (q : Fin n → ℝ) (hq : ∀ i, 0 < q i ∧ q i < 1) :
    2 ^ (n + 1) ≤ 1 / ∏ i, q i + 1 / ∏ i, (1 - q i) ∧
    (1 / ∏ i, q i + 1 / ∏ i, (1 - q i) = 2 ^ (n + 1) ↔ ∀ i, q i = 1 / 2) := by sorry

end SwitchbackExp.Design
Source
Bojinov, Simchi-Levi, Zhao, Design and Analysis of Switchback Experiments, arXiv:2009.00148v4 (Management Science 69(7), 2023), Lemma EC.2, p. ec2
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me