Conditioning identity on for the exponential-horizon value functions
OpenSelfishMiningRuin.ValueFn.Vhat_conditioningFix a cost rate , a block reward , a block rate , a mean horizon , a hash share and a fork-support probability , and let the interarrival times and marks have the joint law described by Primitives (i.i.d. interarrival times, with independent marks — the selfish miner found the block — and — the network extends the miner's branch in a fork). For a state write for the exponential-horizon expected surplus under ruin (19), and .
Conditioning on what happens in the interval — the horizon expires first, a block is found first, or neither — gives, for every and every ,
where is the mark law, is the next state and the number of paid blocks at a discovery (the transition rules on pp. 8–9 and equation (16)).
This is the identity displayed in the proof of Proposition 2.2 (p. 6), stated there for the honest miner and used in Appendix A ("the same reasoning as in the proof of Proposition 2.2") for the three-state selfish-mining chain. Differentiating it in yields the advanced differential system (29).
Formalization Note The paper takes ; the identity also holds at the endpoints (trivially) and (the surplus is exhausted at if no block arrives, and ), and the statement includes them.
import Mathlib import Definitions.Def_SelfishMiningRuin_ValueFn_Model set_option autoImplicit false
namespace SelfishMiningRuin.ValueFn
/-- Conditioning on the interval `(0, h)` (proof of Proposition 2.2, p. 6, transferred to the
three-state chain as in Appendix A, p. 24), for every `0 ≤ h ≤ u / c`. -/
theorem Vhat_conditioning {Ω : Type*} [MeasurableSpace Ω] (P : MeasureTheory.Measure Ω)
[MeasureTheory.IsProbabilityMeasure P] (W : ℕ → Ω → ℝ)
(ξ ζ : ℕ → Ω → Bool) (lam c b t p q : ℝ)
(hlam : 0 < lam) (hc : 0 < c) (hb : 0 < b) (ht : 0 < t)
(hp0 : 0 < p) (hp1 : p < 1) (hq0 : 0 ≤ q) (hq1 : q ≤ 1)
(hprim : Primitives P lam p q W ξ ζ) :
∀ z : St, ∀ u h : ℝ, 0 ≤ h → c * h ≤ u →
Vhat P W ξ ζ c b u t z =
Real.exp (-(lam + 1 / t) * h) * Vhat P W ξ ζ c b (u - c * h) t z +
∫ s in (0 : ℝ)..h, Real.exp (-(lam + 1 / t) * s) *
((u - c * s) / t + lam *
(p * q * Vhat P W ξ ζ c b (u - c * s + b * reward z true true) t
(step z true true) +
p * (1 - q) * Vhat P W ξ ζ c b (u - c * s + b * reward z true false) t
(step z true false) +
(1 - p) * q * Vhat P W ξ ζ c b (u - c * s + b * reward z false true) t
(step z false true) +
(1 - p) * (1 - q) * Vhat P W ξ ζ c b (u - c * s + b * reward z false false) t
(step z false false))) := by sorry
end SelfishMiningRuin.ValueFn