BDD library: Exchangeability Tail TailSigma
DefinitionExchangeability_Tail_TailSigmaprobability
Core definitions and structural lemmas of the binary decision diagram library (Exchangeability_Tail_TailSigma), machine-checked in Lean 4 against Mathlib. See the linked source module.
Definition code
import Mathlib.MeasureTheory.MeasurableSpace.Pi
import Mathlib.MeasureTheory.Measure.MeasureSpace
set_option autoImplicit true
namespace MeasureTheory
end MeasureTheory
/-
Copyright (c) 2025 Cameron Freer.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Cameron Freer
-/
/-!
# Tail σ-algebras on path space and for general processes
This file provides two canonical viewpoints on tail σ-algebras with explicit bridge lemmas
connecting them.
## Main definitions
* `tailFamily X n`: The n-th reverse (future) σ-algebra generated by the tails of X
* `tailProcess X`: Tail σ-algebra of a process X : ℕ → Ω → α
## Main results
* `tailFamily_antitone`, `tailProcess_le_tailFamily`: basic monotonicity
* `tailProcess_eq_iInf_revFiltration`: bridge to a reverse-filtration formulation
(parameterised by an arbitrary `revFiltration`)
* `tailProcess_le_ambient`: the tail σ-algebra is a sub-σ-algebra of the ambient one
## Implementation notes
This file is designed to be mathlib-ready:
- Only imports mathlib (no project dependencies)
- Comprehensive docstrings
- Conservative use of attributes (@[simp] only on definitional aliases)
-/
namespace Exchangeability.Tail
open MeasureTheory
section Tail
variable {Ω α : Type*} [MeasurableSpace Ω] [MeasurableSpace α]
/-! ### Index Arithmetic (isolate Nat arithmetic once) -/
section NatIndexArithmetic
end NatIndexArithmetic
/-! ### Process-Relative Tail -/
/-- The `n`-th reverse (future) σ-algebra generated by the tails of `X`. -/
@[reducible] def tailFamily (X : ℕ → Ω → α) (n : ℕ) : MeasurableSpace Ω :=
iSup (fun k : ℕ => MeasurableSpace.comap (fun ω => X (n + k) ω) inferInstance)
/-- Tail σ-algebra of a process `X : ℕ → Ω → α`. -/
@[reducible] def tailProcess (X : ℕ → Ω → α) : MeasurableSpace Ω :=
iInf (tailFamily X)
/-! ### Helper Lemmas for comap and Infima -/
namespace MeasurableSpace
end MeasurableSpace
-- All witnesses are equal when f is surjective
-- A set is measurable in comap f (iInf m) if it's the preimage of a canonically measurable set
/-! ### General Properties -/
/-- Tail σ-algebra is sub-σ-algebra of ambient space when all X_k are measurable. -/
lemma tailProcess_le_ambient (X : ℕ → Ω → α) (hX : ∀ k, Measurable (X k)) :
tailProcess X ≤ (inferInstance : MeasurableSpace Ω) := by
apply iInf_le_of_le 0
apply iSup_le
intro k
-- comap (X (0+k)) ≤ ambient iff ambient ≤ map (X (0+k)) ambient
-- which holds because X (0+k) is measurable
rw [MeasurableSpace.comap_le_iff_le_map]
exact (hX (0 + k)).le_map
/-! NOTE: For probability/finite measures, trimming to the tail σ-algebra preserves
sigma-finiteness. This is automatic via type class inference in mathlib. -/
end Tail
end Exchangeability.Tail
Source