Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4.2), p. 13 — first-order condition: for an active miner, (R/H∗)(1−hi∗/H∗)=ci+γhi∗(R/H^*)(1-h^*_i/H^*)=c_i+\gamma h^*_i(R/H∗)(1−hi∗​/H∗)=ci​+γhi∗​

Proved
PoWMining.Equilibrium.eq_4_2

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

first-order-conditionmining-gamep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider the mining game with N≥2N\ge 2N≥2 miners, reward R>0R>0R>0, capacity parameter γ≥0\gamma\ge 0γ≥0 and sorted positive costs-per-hash 0<c1≤⋯≤cN0<c_1\le\cdots\le c_N0<c1​≤⋯≤cN​ (payoff (3.4) without the fixed cost). Let h∗h^*h∗ be an equilibrium hash rate profile with aggregate H∗=∑jhj∗H^*=\sum_j h^*_jH∗=∑j​hj∗​, and let iii be an active miner, hi∗>0h^*_i>0hi∗​>0. Then marginal gain equals marginal cost:

RH∗(1−hi∗H∗)=ci+γhi∗.(4.2)\frac{R}{H^*}\Bigl(1-\frac{h^*_i}{H^*}\Bigr)=c_i+\gamma h^*_i. \tag{4.2}H∗R​(1−H∗hi∗​​)=ci​+γhi∗​.(4.2)

This is the first-order condition of miner iii's objective at an interior best response. Summing it over the active miners gives (B.1), and solving it for hi∗h^*_ihi∗​ gives the hash rate formula of Proposition 4.1.

Formalization Note H∗>0H^*>0H∗>0 follows from hi∗>0h^*_i>0hi∗​>0 and the nonnegativity of the profile, so the divisions are genuine.

Preamble
import Mathlib
import Definitions.Def_PoWMining_Equilibrium_Setting
Formal statement
namespace PoWMining.Equilibrium

/-- First-order condition (4.2), p. 13: for an active miner `i` in equilibrium,
`(R/H*)(1 − h*ᵢ/H*) = cᵢ + γ h*ᵢ`. -/
theorem eq_4_2 {N : ℕ} (P : Params N) (hP : P.Standing) (h : Fin N → ℝ)
    (hh : IsMiningEq P h) (i : Fin N) (hi : 0 < h i) :
    P.R / aggH h * (1 - h i / aggH h) = P.c i + P.γ * h i := by sorry

end PoWMining.Equilibrium
Source
Capponi, Ólafsson & Alsabah, Proof-of-Work Cryptocurrencies: Does Mining Technology Undermine Decentralization?, arXiv:2106.09783v1, p. 13, (4.2)
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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me