Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — congestion raises the attack-chain fee per block

Proved
MajorityAttack.NegCost.lemma_2

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

blockchainorder-statisticsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1transaction-fees

Let μ\muμ be a nonnegative, non-degenerate probability distribution of transaction fees with a finite first moment. Each block holds b≥1b\ge1b≥1 transactions. Suppose n>bn>bn>b transactions are available to an honest block, while n′>nn'>nn′>n are available to a slower attack-chain block. Users keep the same fee distribution on both chains. Then

Φb(n′)>Φb(n),\Phi_b(n')>\Phi_b(n),Φb​(n′)>Φb​(n),

where Φb(k)\Phi_b(k)Φb​(k) is the expected sum of the bbb highest fees among kkk independent transactions. This is the strict fee comparison used in Proposition 1.

Formalization Note The paper writes congestion as τσ>b\tau\sigma>bτσ>b and derives more arrivals on the attacking chain from hA<Hh_A<HhA​<H. Here the arrivals are natural counts b<n<n′b<n<n'b<n<n′. Non-degeneracy and integrability make explicit the qualifications in the proof on p. 13.

Preamble
import Mathlib
import Definitions.Def_MajorityAttack_NegCost_Fees
Formal statement
namespace MajorityAttack.NegCost

/-- Lemma 2, pp. 12–13: congestion and slower attack blocks increase expected fees. -/
theorem lemma_2 (μ : MeasureTheory.Measure ℝ) (hμ : FeeLaw μ)
    (b n n' : ℕ) (hb : 0 < b) (hbn : b < n) (hnn' : n < n') :
    blockFees μ b n < blockFees μ b n' := by sorry

end MajorityAttack.NegCost
Source
Gans & Halaburda, “Zero Cost” Majority Attacks on Permissionless Blockchains, arXiv:2308.06568v1, pp. 12–13, Lemma 2
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

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