BDD library: Exchangeability Probability Martingale Crossings Pathwise
DefinitionExchangeability_Probability_Martingale_Crossings_Pathwiseprobability
Core definitions and structural lemmas of the binary decision diagram library (Exchangeability_Probability_Martingale_Crossings_Pathwise), machine-checked in Lean 4 against Mathlib. See the linked source module.
Definition code
import Definitions.Def_Exchangeability_Probability_TimeReversalCrossing
set_option autoImplicit true
namespace BigOperators
end BigOperators
namespace ENNReal
end ENNReal
namespace Filter
end Filter
namespace Function
end Function
namespace MeasureTheory
end MeasureTheory
namespace ProbabilityTheory
end ProbabilityTheory
namespace Set
end Set
namespace Topology
end Topology
/-
Copyright (c) 2025 Cameron Freer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Cameron Freer
-/
/-!
# Crossings: Pathwise Reversal Lemmas
Pathwise reversal lemmas relating upcrossings of a process to downcrossings of its
time reversal. No filtration / integrability content here — this file is the purely
combinatorial / pathwise layer.
## Main Definitions
* `downcrossingsBefore`: Downcrossings before time `N`
* `downcrossings`: Total downcrossings (supremum over all time horizons)
## Main Results
* `up_neg_flip_eq_down`: `up(-b, -a, -X) = down(a, b, X)`
* `down_neg_flip_eq_up`: `down(-b, -a, -X) = up(a, b, X)`
* `upBefore_le_downBefore_rev_succ`: upcrossing–downcrossing inequality
-/
open Filter MeasureTheory
open scoped Topology ENNReal BigOperators
noncomputable section
open scoped MeasureTheory ProbabilityTheory Topology
open MeasureTheory Filter Set Function
namespace Exchangeability.Probability
variable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
variable {𝔽 : ℕ → MeasurableSpace Ω}
-- `negProcess` and `revProcess` are imported from
-- Exchangeability.Probability.TimeReversalCrossing
/-- Downcrossings before N: defined as upcrossings of negated process with flipped interval.
Returns a random variable Ω → ℕ. -/
noncomputable def downcrossingsBefore {Ω : Type*} (a b : ℝ) (X : ℕ → Ω → ℝ) (N : ℕ) : Ω → ℕ :=
upcrossingsBefore (-b) (-a) (negProcess X) N
/-- Total downcrossings: supremum over all time horizons. -/
noncomputable def downcrossings {Ω : Type*} (a b : ℝ) (X : ℕ → Ω → ℝ) : Ω → ℝ≥0∞ :=
fun ω => ⨆ N, ((downcrossingsBefore a b X N ω : ℕ) : ℝ≥0∞)
-- `timeReversal_crossing_bound` is imported from
-- `Exchangeability.Probability.TimeReversalCrossing`.
end Exchangeability.Probability
Source