Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, (A8) — Vart(πt+1)=(Rt+1/Nt+1)2 πt(1−πt)\mathrm{Var}_t(\pi_{t+1}) = (R_{t+1}/N_{t+1})^2\,\pi_t(1-\pi_t)Vart​(πt+1​)=(Rt+1​/Nt+1​)2πt​(1−πt​)

Proved
PoSShares.Stability.lemma_1

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

conditional-variancep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1proof-of-stake

In the PoS model, the conditional variance at ttt of the investor's share at t+1t+1t+1 is

Vart(πt+1)=(Rt+1Nt+1)2πt(1−πt)\mathrm{Var}_t(\pi_{t+1}) = \Big(\frac{R_{t+1}}{N_{t+1}}\Big)^2 \pi_t(1 - \pi_t)Vart​(πt+1​)=(Nt+1​Rt+1​​)2πt​(1−πt​)

almost surely, for every t≥0t \ge 0t≥0. Here Vart(X)=E[(X−E[X∣Ft])2∣Ft]\mathrm{Var}_t(X) = \mathbb{E}\big[(X - \mathbb{E}[X \mid \mathcal{F}_t])^2 \mid \mathcal{F}_t\big]Vart​(X)=E[(X−E[X∣Ft​])2∣Ft​].

This feeds the recursion for the unconditional variance (Lemma 2).

Preamble
import Mathlib
import Definitions.Def_PoSShares_Stability_Model

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace PoSShares.Stability

/-- **Lemma 1, (A8)**, p. 19. Roşu, Saleh, *Evolution of Shares in a Proof-of-Stake Cryptocurrency*, author's manuscript of
July 30, 2020 (sha256 90d9c06b…2b35eb).

The conditional variance at `t` of the investor's share at `t + 1` is
`Var_t(π_{t+1}) = (R_{t+1}/N_{t+1})^2 π_t (1 − π_t)`.

**Formalization Note.** `Var_t` is Mathlib's `condVar (ℱ t)`, i.e. `E[(X − E[X | ℱ_t])^2 | ℱ_t]`,
and the identity holds almost surely. -/
theorem lemma_1 {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (M : Model Ω) (hPoS : IsPoS μ M) (t : ℕ) :
    condVar (M.ℱ t) (share M (t + 1)) μ =ᵐ[μ]
      fun ω => (M.R (t + 1) / coinSupply M.N₀ M.R (t + 1)) ^ 2 *
        (share M t ω * (1 - share M t ω)) := 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. 19, Lemma 1, (A8)
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