BDD library: Exchangeability DeFinetti ViaMartingale ShiftOperations
DefinitionExchangeability_DeFinetti_ViaMartingale_ShiftOperationsprobability
Core definitions and structural lemmas of the binary decision diagram library (Exchangeability_DeFinetti_ViaMartingale_ShiftOperations), machine-checked in Lean 4 against Mathlib. See the linked source module.
Definition code
import Mathlib.MeasureTheory.Measure.ProbabilityMeasure
import Definitions.Def_Exchangeability_Contractability
import Definitions.Def_Exchangeability_PathSpace_CylinderHelpers
import Definitions.Def_Exchangeability_PathSpace_Shift
import Definitions.Def_Exchangeability_Probability_InfiniteProduct
import Definitions.Def_Exchangeability_Tail_TailSigma
import Definitions.Def_Exchangeability_Util_StrictMono
set_option autoImplicit true
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
-/
/-!
# Shift Operations for Martingale Proof
Core definitions for sequence shifting and tail operations used throughout the
ViaMartingale proof:
* `path X` - The random path ω ↦ (n ↦ X n ω)
* `shiftRV X m` - Shifted path ω ↦ (n ↦ X (m + n) ω)
* `shiftProcess X m` - Shifted process (θₘX)ₙ = X_{m+n}
* `consRV`, `tailRV` - Cons and tail for sequences
These are extracted from ViaMartingale.lean to enable modular imports.
-/
noncomputable section
open scoped MeasureTheory
open MeasureTheory
namespace Exchangeability.DeFinetti.ViaMartingale
variable {Ω α : Type*} [MeasurableSpace Ω] [MeasurableSpace α]
/-! ### Path and Shift Definitions -/
/-- The random path of a process: ω ↦ (n ↦ X n ω). -/
def path (X : ℕ → Ω → α) : Ω → (ℕ → α) := fun ω n => X n ω
/-- Shifted random path: ω ↦ (n ↦ X (m + n) ω). -/
def shiftRV (X : ℕ → Ω → α) (m : ℕ) : Ω → (ℕ → α) :=
fun ω n => X (m + n) ω
/-! ### Cons and Tail Operations -/
/-- Cons a value onto a sequence: `consRV x t` produces `[x, t(0), t(1), ...]`. -/
def consRV (x : Ω → α) (t : Ω → ℕ → α) : Ω → ℕ → α
| ω, 0 => x ω
| ω, (n+1) => t ω n
/-- Tail of a sequence: drops index 0, so `tailRV t n = t (n+1)`. -/
def tailRV (t : Ω → ℕ → α) : Ω → ℕ → α := fun ω n => t ω (n+1)
omit [MeasurableSpace Ω] [MeasurableSpace α] in
@[simp]
lemma tailRV_consRV (x : Ω → α) (t : Ω → ℕ → α) : tailRV (consRV x t) = t := rfl
/-! ### Measurability -/
/-! ### Measurable combinators -/
/-- A process viewed as a full path is measurable. -/
@[fun_prop]
lemma measurable_path {X : ℕ → Ω → α} (hX : ∀ n, Measurable (X n)) : Measurable (path X) := by
unfold path; fun_prop
variable {X : ℕ → Ω → α}
@[fun_prop]
lemma measurable_shiftRV (hX : ∀ n, Measurable (X n)) {m : ℕ} :
Measurable (shiftRV X m) := by
simpa [shiftRV, path] using (measurable_path (fun n => hX (m + n)))
end Exchangeability.DeFinetti.ViaMartingale
Source