LeanMachineLearning

ProbabilityTheory.Kernel.hasLaw_trajMeasureFin🔗

Lemma

From the authors

Uniqueness of trajMeasureFin.

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
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 : ), 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
HasLaw (fun ω n => Y n ω) (trajMeasureFin κ') P
The predicate HasLaw X μ P registers the fact that the random variable X has law μ under the measure P, in other words that P.map X = μ.
Code
lemma hasLaw_trajMeasureFin [IsProbabilityMeasure P]
    {Y : (n : ℕ) → Ω → X n} (hY_meas : ∀ n, Measurable (Y n))
    (h_condDistrib : ∀ n, HasCondDistrib (Y n) (fun ω (i : Fin n) ↦ Y i ω) (κ' n) P) :
    HasLaw (fun ω n ↦ Y n ω) (trajMeasureFin κ') P
Proof
by
  unfold trajMeasureFin
  refine hasLaw_trajMeasure hY_meas ?_ fun n ↦ ?_
  · have h := h_condDistrib 0
    rw [show (fun ω (i : Fin 0) ↦ Y i ω) = fun _ ↦ default from
      funext fun _ ↦ Unique.eq_default _] at h
    exact h.hasLaw_of_const'
  · exact (h_condDistrib (n + 1)).measurableEquiv_comp_right (MeasurableEquiv.finSuccPiIic X n)

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, 43 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.