MindFormal v1.0.0One Mind

MindFormal.Tools.A699Shared.ResidualMean

theorem MindFormal.A699Shared.time_le_cap_add_tail (t : ENNReal) (H Δ : NNReal) (hΔ : 0 < Δ) :
t ≤ min t ↑H + ↑Δ * ∑' (n : ℕ), if ↑(H + ↑n * Δ) < t then 1 else 0
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) :
∫⁻ (ω : Ω), τ ω ∂μ ≤ ∫⁻ (ω : Ω), min (τ ω) ↑H ∂μ + p * ↑Δ / (1 - q) ∧ ∫⁻ (ω : Ω), τ ω ∂μ < ⊤

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.