LeanMachineLearning

ProbabilityTheory.Kernel.eq_trajMeasureFin_map🔗

Lemma

No docstring.

Types
  • Ω : Type u_1mΩ : MeasurableSpace ΩA measurable space is a space equipped with a σ-algebra.
Given
  • P : MeasureTheory.Measure ΩA measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure.MeasureTheory.IsProbabilityMeasure PA measure μ is called a probability measure if μ univ = 1.
  • X : → Type u_2(n : ) → MeasurableSpace (X n)
  • κ' : (n : ) → Kernel ((i : Fin n) → X ↑i) (X n)A kernel from a measurable space α to another measurable space β is a measurable function κ : α → Measure β.∀ (n : ), IsMarkovKernel (κ' n)A kernel is a Markov kernel if every measure in its image is a probability measure.
  • Y : (n : ) → Ω → X n
  • N :
Assuming
  • hY_meas : ∀ (n : ), Measurable (Y n)A function f between measurable spaces is measurable if the preimage of every measurable set is measurable.
  • h_condDistrib : ∀ n < N, HasCondDistrib (Y n) (fun ω i => Y (↑i) ω) (κ' n) PPredicate stating that the conditional distribution of Y given X under the measure P is equal to the kernel κ.
Then
MeasureTheory.Measure.map (fun ω i => Y (↑i) ω) P = MeasureTheory.Measure.map (fun x i => x ↑i) (trajMeasureFin κ')
Code
lemma eq_trajMeasureFin_map [IsProbabilityMeasure P]
    {Y : (n : ℕ) → Ω → X n} (hY_meas : ∀ n, Measurable (Y n)) {N : ℕ}
    (h_condDistrib : ∀ n < N, HasCondDistrib (Y n) (fun ω (i : Fin n) ↦ Y i ω) (κ' n) P) :
    P.map (fun ω (i : Fin N) ↦ Y i ω) = (trajMeasureFin κ').map (fun x (i : Fin N) ↦ x i)
Proof
by
  cases N with
  | zero =>
    rw [show (fun ω (i : Fin 0) ↦ Y i ω) = fun _ ↦ default from
      funext fun _ ↦ Unique.eq_default _,
      show (fun (x : Π n, X n) (i : Fin 0) ↦ x i) = fun _ ↦ default from
      funext fun _ ↦ Unique.eq_default _,
      Measure.map_const, Measure.map_const, measure_univ, measure_univ]
  | succ N =>
    have h0 : HasLaw (Y 0) (κ' 0 default) P := by
      have h := h_condDistrib 0 (by omega)
      rw [show (fun ω (i : Fin 0) ↦ Y i ω) = fun _ ↦ default from
        funext fun _ ↦ Unique.eq_default _] at h
      exact h.hasLaw_of_const'
    have h := eq_trajMeasure_map_frestrictLe (κ := iicOfFin κ') h0 (N := N) fun n hn ↦
      (h_condDistrib (n + 1) (by omega)).measurableEquiv_comp_right
        (MeasurableEquiv.finSuccPiIic X n)
    have h1 : (fun ω (i : Fin (N + 1)) ↦ Y i ω) =
        (MeasurableEquiv.finSuccPiIic X N).symm ∘ (fun ω (n : Iic N) ↦ Y n ω) := rfl
    rw [h1, ← Measure.map_map (MeasurableEquiv.measurable _) (by fun_prop), h, trajMeasureFin_def,
      Measure.map_map (MeasurableEquiv.measurable _) (by fun_prop),
      MeasurableEquiv.finSuccPiIic_symm_comp_frestrictLe]

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10).

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file · open it in the Lean web editor.

Dependency graph

Audit surface: 3 project declarations, 46 external constants

✓ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.