Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(A31) — P(∣X−π1∣>ε)≥π1(1−π1)−ε21−ε2>0\mathbb{P}(|X-\pi_1|>\varepsilon) \ge \frac{\pi_1(1-\pi_1)-\varepsilon^2}{1-\varepsilon^2} > 0P(∣X−π1​∣>ε)≥1−ε2π1​(1−π1​)−ε2​>0

Proved
PoSShares.Stability.eq_A31

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

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1probability-inequality

Let π1∈(0,1)\pi_1 \in (0, 1)π1​∈(0,1) and let XXX be a random variable with values in [0,1][0, 1][0,1] almost surely, with mean EX=π1\mathbb{E}X = \pi_1EX=π1​ and variance Var(X)=π1(1−π1)\mathrm{Var}(X) = \pi_1(1 - \pi_1)Var(X)=π1​(1−π1​). Then for every ε∈(0,π1(1−π1))\varepsilon \in \big(0, \sqrt{\pi_1(1-\pi_1)}\big)ε∈(0,π1​(1−π1​)​),

P(∣X−π1∣>ε)≥π1(1−π1)−ε21−ε2>0.\mathbb{P}\big(|X - \pi_1| > \varepsilon\big) \ge \frac{\pi_1(1-\pi_1) - \varepsilon^2}{1 - \varepsilon^2} > 0.P(∣X−π1​∣>ε)≥1−ε2π1​(1−π1​)−ε2​>0.

In the paper X=π1,∞X = \pi_{1,\infty}X=π1,∞​ for γ≥1\gamma \ge 1γ≥1; the bound does not depend on the initial supply NNN, which rules out concentration as N→∞N \to \inftyN→∞.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace PoSShares.Stability

/-- **(A31)**, proof of Proposition 4, p. 24. Roşu, Saleh, *Evolution of Shares in a Proof-of-Stake Cryptocurrency*, author's manuscript of
July 30, 2020 (sha256 90d9c06b…2b35eb).

Let `π_1 ∈ (0, 1)` and let `X` (the paper's `π_{1,∞}`) be a random variable with values in
`[0, 1]` almost surely, mean `π_1` and variance `π_1(1 − π_1)`. For every
`ε ∈ (0, √(π_1(1 − π_1)))`,
`P(|X − π_1| > ε) ≥ (π_1(1 − π_1) − ε^2)/(1 − ε^2) > 0`.

**Formalization Note.** The page derives this for `X = π_{1,∞}` from (A30) using exactly
`|π_{1,∞} − π_1| < 1` a.s., `E π_{1,∞} = π_1` and `Var(π_{1,∞}) = π_1(1 − π_1)`; those are the
hypotheses here. The printed strict inequality `> ε` is kept. -/
theorem eq_A31 {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (π₁ ε : ℝ) (X : Ω → ℝ) (hπ₁ : π₁ ∈ Set.Ioo (0 : ℝ) 1) (hX : Measurable X)
    (hX01 : ∀ᵐ ω ∂μ, X ω ∈ Set.Icc (0 : ℝ) 1) (hmean : ∫ ω, X ω ∂μ = π₁)
    (hvar : variance X μ = π₁ * (1 - π₁))
    (hε : ε ∈ Set.Ioo (0 : ℝ) (Real.sqrt (π₁ * (1 - π₁)))) :
    (π₁ * (1 - π₁) - ε ^ 2) / (1 - ε ^ 2) ≤ μ.real {ω | ε < |X ω - π₁|} ∧
      0 < (π₁ * (1 - π₁) - ε ^ 2) / (1 - ε ^ 2) := by sorry

end PoSShares.Stability
Source
Roşu, Saleh, Evolution of Shares in a Proof-of-Stake Cryptocurrency, author's manuscript of July 30, 2020 (sha256 90d9c06b…2b35eb), p. 24, proof of Proposition 4, (A30)–(A31)
Human review
  • Endorsed by Shuze Chen · Oct 18, 2026

    Confirmed by the moderator at approval.

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