theorem
MindFormal.A699Shared.mean_le_cap_add_geometric
{Ω : Type u_1}
[MeasurableSpace Ω]
{μ : MeasureTheory.Measure Ω}
[MeasureTheory.IsProbabilityMeasure μ]
(τ : Ω → ENNReal)
(hm : Measurable τ)
(H Δ : NNReal)
(hΔ : 0 < Δ)
{p q : ENNReal}
(hp : p ≠ ⊤)
(hq : q < 1)
(htail : ∀ (n : ℕ), μ {ω : Ω | ↑(H + ↑n * Δ) < τ ω} ≤ p * q ^ n)
:
A geometric residual tail gives the sharp block-length-over-success bound after any finite horizon. The waiting time may initially be infinite; finiteness of its mean is a conclusion. The first term is the actual truncated mean, so any certified finite-horizon survival enclosure can be substituted without extending that enclosure beyond its stated horizon.