Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Balance at states k ≥ 3

Proved
BitcoinSelfishMining.balance_lead

by pitimespi · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

bitcoineyal-sirerformal-verificationgame-theorymarkov-chainmathlibminingselfish-mining

For 0<α<1/20 < \alpha < 1/20<α<1/2 and every nnn: pn+3=αpn+2+(1−α)pn+4p_{n+3} = \alpha p_{n+2} + (1-\alpha) p_{n+4}pn+3​=αpn+2​+(1−α)pn+4​ (in the encoding, stationary α (lead (n+2)) = α · stationary α (lead (n+1)) + (1-α) · stationary α (lead (n+3))).

Preamble
import Definitions.Def_BitcoinSelfishMining
Formal statement
theorem BitcoinSelfishMining.balance_lead (α : ℝ) (h0 : 0 < α) (h1 : α < 1 / 2) (n : ℕ) :
    BitcoinSelfishMining.stationary α (.lead (n + 2)) =
      α * BitcoinSelfishMining.stationary α (.lead (n + 1))
        + (1 - α) * BitcoinSelfishMining.stationary α (.lead (n + 3)) := by sorry
Source
I. Eyal, E. G. Sirer, Majority is not Enough: Bitcoin Mining is Vulnerable, Financial Cryptography 2014, arXiv:1311.0243, Section 4 (Figure 1, equations (7)-(11)): https://arxiv.org/abs/1311.0243
Read-back

What the Lean code literally says, in plain math · claude-fable-5-1 (independent sub-agent, blind: Lean code + auditor instructions only)

Read-back: BitcoinSelfishMining.balance_lead

Let α\alphaα be a real number with 0<α0 < \alpha0<α and α<12\alpha < \tfrac12α<21​ (both hypotheses are named and may be used in the proof), and let nnn be any natural number n∈{0,1,2,… }n \in \{0,1,2,\dots\}n∈{0,1,2,…}. Then

πα(leadn+2)  =  α⋅πα(leadn+1)  +  (1−α)⋅πα(leadn+3).\pi_\alpha(\mathrm{lead}_{n+2}) \;=\; \alpha\cdot\pi_\alpha(\mathrm{lead}_{n+1}) \;+\; (1-\alpha)\cdot\pi_\alpha(\mathrm{lead}_{n+3}).πα​(leadn+2​)=α⋅πα​(leadn+1​)+(1−α)⋅πα​(leadn+3​).

Here πα\pi_\alphaπα​ is the custom family stationary α\alphaα on the states {zero,tie}∪{leadm:m∈N}\{\mathrm{zero},\mathrm{tie}\}\cup\{\mathrm{lead}_m : m\in\mathbb{N}\}{zero,tie}∪{leadm​:m∈N}, whose values at the lead\mathrm{lead}lead states are

πα(leadm)=(α1−α)m⋅α−2α2D(α),D(α)=2α3−4α2+1,\pi_\alpha(\mathrm{lead}_m) = \left(\frac{\alpha}{1-\alpha}\right)^{m}\cdot\frac{\alpha-2\alpha^2}{D(\alpha)},\qquad D(\alpha) = 2\alpha^3-4\alpha^2+1,πα​(leadm​)=(1−αα​)m⋅D(α)α−2α2​,D(α)=2α3−4α2+1,

with real division by zero equal to 000 (so if D(α)=0D(\alpha) = 0D(α)=0 every πα(leadm)\pi_\alpha(\mathrm{lead}_m)πα​(leadm​) is 000 and both sides of the equation are 000; under the hypothesis α<12\alpha<\tfrac12α<21​ the factor 1−α1-\alpha1−α is non-zero). Writing c=(α−2α2)/D(α)c = (\alpha-2\alpha^2)/D(\alpha)c=(α−2α2)/D(α) and ρ=α/(1−α)\rho = \alpha/(1-\alpha)ρ=α/(1−α), the statement unfolds to the identity

ρ n+2 c  =  α ρ n+1 c  +  (1−α) ρ n+3 c\rho^{\,n+2}\,c \;=\; \alpha\,\rho^{\,n+1}\,c \;+\; (1-\alpha)\,\rho^{\,n+3}\,cρn+2c=αρn+1c+(1−α)ρn+3c

for all n∈Nn\in\mathbb{N}n∈N and all α∈(0,12)\alpha\in(0,\tfrac12)α∈(0,21​). The indices n+1n+1n+1, n+2n+2n+2, n+3n+3n+3 mean that the equation is asserted only for the states leadk\mathrm{lead}_kleadk​ with k≥2k\ge 2k≥2 on the left-hand side (never for lead0\mathrm{lead}_0lead0​ or lead1\mathrm{lead}_1lead1​). Only πα\pi_\alphaπα​ at lead states appears; neither the transition function nor γ\gammaγ is involved.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by pitimespi · Oct 29, 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