BDD library: Exchangeability Probability TimeReversalCrossing
DefinitionExchangeability_Probability_TimeReversalCrossingprobability
Core definitions and structural lemmas of the binary decision diagram library (Exchangeability_Probability_TimeReversalCrossing), machine-checked in Lean 4 against Mathlib. See the linked source module.
Definition code
import Mathlib.Probability.Martingale.Upcrossing
set_option autoImplicit true
namespace ENNReal
end ENNReal
namespace MeasureTheory
end MeasureTheory
/-
Copyright (c) 2025 Cameron Freer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Cameron Freer
-/
/-!
# Time-Reversal Crossing Bound
This file proves that upcrossings in a time-reversed and negated process complete
within the expected time bound, which is key to martingale convergence proofs.
## Main Results
* `timeReversal_crossing_bound`: For a process X with upcrossings [a→b] before time N,
the time-reversed negated process Y has its upcrossings [-b→-a] completing at time ≤ N.
## Mathematical Background
The bijection (τ, σ) ↦ (N-σ, N-τ) maps upcrossings of X to upcrossings of the
negated reversed process Y = -X(N-·). The key bound is:
- If X's crossing is at times (τ, σ) with 0 ≤ τ < σ < N
- Then Y's crossing is at times (N-σ, N-τ) with 0 < N-σ < N-τ ≤ N
Since τ ≥ 0, we have N-τ ≤ N, giving the desired bound.
The proof uses induction on the crossing index m, tracking that Y's m-th crossing
completes by time N - lowerCrossingTime X (k-m), which is ≤ N for m = k.
## Key Technique
The proof relies on `hittingBtwn_le_of_mem` to bound hitting times: if the target set
is reached at time t with the search starting at s ≤ t ≤ horizon, then hitting ≤ t.
## References
* Williams (1991), *Probability with Martingales*, Theorem 11.9 (upcrossing lemma)
* Durrett (2019), *Probability: Theory and Examples*, Section 5.5
-/
open MeasureTheory
open scoped ENNReal
/-- Negation of a stochastic process. -/
def negProcess {Ω : Type*} (X : ℕ → Ω → ℝ) : ℕ → Ω → ℝ :=
fun n ω => -X n ω
/-- Time reversal of a stochastic process up to time N. -/
def revProcess {Ω : Type*} (X : ℕ → Ω → ℝ) (N : ℕ) : ℕ → Ω → ℝ :=
fun n ω => X (N - n) ω
Source