Lemma 2, pp. 13–14 — law of Ñ(x): E[Ñ(x)] = exp(Σ Φ(−√n x)/n) for x > 0; Pr{Ñ(x) < ∞} = 1 − exp(−Σ Φ(√n x)/n) for x < 0
ProvedGreedyRS.Greedy.lemma2_crossing_timeLet be i.i.d. , , and let be the first time the running average drops below ( if it never does). Let be the standard normal distribution function.
- For every , and
moreover is continuous and strictly decreasing on . 2. For every , and
moreover is continuous and strictly increasing on . 3. For , and .
These are Spitzer-type identities for the Gaussian random walk . Part 1 gives the closed form of the expected boundary-crossing time used throughout the paper, and its continuity and monotonicity are what make the constant of Theorem 1 well defined.
Formalization Note is valued in and its expectation is a lower Lebesgue integral in , so "" is literal and continuity is in the topology of . Probabilities are in . The sums are written with in place of , starting from .
import Mathlib import Definitions.Def_GreedyRS_Greedy_Setting open MeasureTheory ProbabilityTheory open scoped ENNReal NNReal
namespace GreedyRS.Greedy
theorem lemma2_crossing_time :
-- x > 0: finiteness and (4.1)
(∀ x : ℝ, 0 < x →
stdNormalSeq {z | crossTime x 1 z < ⊤} = 1 ∧ Cn0 x 1 = ENNReal.ofReal (Cfun x)) ∧
StrictAntiOn (fun x => Cn0 x 1) (Set.Ioi 0) ∧
ContinuousOn (fun x => Cn0 x 1) (Set.Ioi 0) ∧
-- x < 0: infinite mean and (4.2)
(∀ x : ℝ, x < 0 →
Cn0 x 1 = ⊤ ∧
stdNormalSeq {z | crossTime x 1 z < ⊤} =
ENNReal.ofReal (1 - Real.exp (-∑' n : ℕ,
Phi (Real.sqrt ((n : ℝ) + 1) * x) / ((n : ℝ) + 1)))) ∧
StrictMonoOn (fun x => stdNormalSeq {z | crossTime x 1 z < ⊤}) (Set.Iio 0) ∧
ContinuousOn (fun x => stdNormalSeq {z | crossTime x 1 z < ⊤}) (Set.Iio 0) ∧
-- x = 0
stdNormalSeq {z | crossTime 0 1 z < ⊤} = 1 ∧ Cn0 0 1 = ⊤ := by sorry
end GreedyRS.Greedy
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.