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.threshold
Let α,γ be real numbers with the four hypotheses 0<α, α<21, 0≤γ, γ≤1. The hypothesis 0≤γ carries an underscore-prefixed name (_hγ0), signalling that the proof is not expected to use it; it is nevertheless a hypothesis of the theorem, so the claim is made only for γ∈[0,1] (and α∈(0,21)). The other three are named and usable. Then the following two statements are equivalent (if and only if):
Rα,γ>α⟺α>τ(γ).
Both inequalities are strict.
τ(γ) is the custom profitThreshold γ:
τ(γ)=3−2γ1−γ,
with real division by zero equal to 0; under γ≤1 the denominator satisfies 3−2γ≥1, so the division is genuine. For instance τ(0)=31, τ(1)=0.
Rα,γ is the custom relativeRevenue αγ:
Rα,γ=rα,γpool+rα,γothrα,γpool(=0 if the denominator is 0),
where rα,γpool (poolRevenue) and rα,γoth (othersRevenue) are the custom stateSums
rα,γpool=s∑πα(s)gα,γpool(s),rα,γoth=s∑πα(s)gα,γoth(s),
each meaning: the value at zero, plus the value at tie, plus Mathlib's tsum over n∈N of the values at leadn (the tsum being 0 for a non-summable family). Here πα is stationary α: πα(zero)=(1−2α)/D(α), πα(tie)=(1−α)(α−2α2)/D(α), πα(leadn)=(α/(1−α))n(α−2α2)/D(α), D(α)=2α3−4α2+1, with real division by zero equal to 0. The expected gains use the weights p(pool)=α, p(honestOnPool)=(1−α)γ, p(honestOnOthers)=(1−α)(1−γ) and the integer tables poolGain / othersGain, giving
gpool(zero)=0, gpool(tie)=2α+(1−α)γ, gpool(lead0)=0, gpool(lead1)=2(1−α)γ+2(1−α)(1−γ), gpool(leadm+2)=(1−α)γ+(1−α)(1−γ),
goth(zero)=(1−α)γ+(1−α)(1−γ), goth(tie)=(1−α)γ+2(1−α)(1−γ), goth(leadn)=0.
So the theorem asserts, for every α∈(0,21) and every γ∈[0,1]: the real number Rα,γ (as defined above via total operations) strictly exceeds α exactly when α strictly exceeds (1−γ)/(3−2γ). Nothing is claimed for α≥21, α≤0, or γ∈/[0,1], and nothing is claimed about the case Rα,γ=α beyond what the biconditional implies (namely that it can occur only when α≤τ(γ)).
Confirmed by the moderator at approval.