Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fact 1 — Beta–Binomial duality of cdfs

Proved
AgrawalGoyalTS.TwoArmed.beta_cdf_eq_one_sub_binom_cdf

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

beta-distributionbinomial-distributionp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let α,β\alpha,\betaα,β be positive integers and y∈[0,1]y\in[0,1]y∈[0,1]. Write Fα,βbetaF^{beta}_{\alpha,\beta}Fα,βbeta​ for the cdf of the Beta(α,β)\mathrm{Beta}(\alpha,\beta)Beta(α,β) distribution and Fn,pBF^B_{n,p}Fn,pB​ for the cdf of Binomial(n,p)\mathrm{Binomial}(n,p)Binomial(n,p). Then

Fα,βbeta(y)=1−Fα+β−1, yB(α−1).F^{beta}_{\alpha,\beta}(y)=1-F^B_{\alpha+\beta-1,\,y}(\alpha-1).Fα,βbeta​(y)=1−Fα+β−1,yB​(α−1).

This identity converts tail probabilities of the Thompson Sampling posterior samples into binomial tail probabilities, which can then be bounded by Chernoff–Hoeffding inequalities.

Formalization Note The restriction y∈[0,1]y\in[0,1]y∈[0,1] is implicit in the paper (the binomial parameter must be a probability; the paper's proof uses Pr⁡[U≤y]=y\Pr[U\le y]=yPr[U≤y]=y for uniforms on [0,1][0,1][0,1]).

Preamble
import Mathlib
import Definitions.Def_AgrawalGoyalTS_TwoArmed_BetaBinomial
Formal statement
namespace AgrawalGoyalTS.TwoArmed

/-- Fact 1 (p. 12): for positive integers `α, β` and `y ∈ [0,1]`,
`F^beta_{α,β}(y) = 1 - F^B_{α+β-1,y}(α - 1)`. -/
theorem beta_cdf_eq_one_sub_binom_cdf (α β : ℕ) (hα : 0 < α) (hβ : 0 < β)
    (y : ℝ) (hy0 : 0 ≤ y) (hy1 : y ≤ 1) :
    betaCDF (α : ℝ) (β : ℝ) y = 1 - binomCDF (α + β - 1) y ((α : ℝ) - 1) := by sorry

end AgrawalGoyalTS.TwoArmed
Source
Agrawal and Goyal, Analysis of Thompson Sampling for the Multi-armed Bandit Problem, arXiv:1111.1797v3, p. 12, Fact 1
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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