LeanMachineLearning

MeasureTheory.Measure.map_compProd_comap🔗

Lemma

From the authors

Transporting μ ⊗ₘ η.comap f along f in the first coordinate gives μ.map f ⊗ₘ η.

Types
  • α : Type u_1mα : MeasurableSpace αA measurable space is a space equipped with a σ-algebra.
  • β : Type u_2mβ : MeasurableSpace β
  • γ : Type u_3mγ : MeasurableSpace γ
Given
  • μ : 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.SFinite μA measure is called s-finite if it is a countable sum of finite measures.
  • η : ProbabilityTheory.Kernel β γA kernel from a measurable space α to another measurable space β is a measurable function κ : α → Measure β.ProbabilityTheory.IsSFiniteKernel ηA kernel is s-finite if it can be written as the sum of countably many finite kernels.
  • f : α → β
Assuming
  • hf : Measurable fA function f between measurable spaces is measurable if the preimage of every measurable set is measurable.
Then
map (fun p => (f p.1, p.2)) (μ.compProd (η.comap f hf)) = (map f μ).compProd η
Code
lemma _root_.MeasureTheory.Measure.map_compProd_comap (μ : Measure α) [SFinite μ]
    (η : Kernel β γ) [IsSFiniteKernel η] {f : α → β} (hf : Measurable f) :
    (μ ⊗ₘ η.comap f hf).map (fun p : α × γ ↦ (f p.1, p.2)) = μ.map f ⊗ₘ η
Proof
by
  ext s hs
  rw [Measure.map_apply (by fun_prop) hs, Measure.compProd_apply (hs.preimage (by fun_prop)),
    Measure.compProd_apply hs, lintegral_map (Kernel.measurable_kernel_prodMk_left hs) hf]
  rfl

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

Nothing to draw. Its statement rests on no other declaration in this project, and names nothing from a package left unaudited — so the graph is this declaration alone. That is the answer, not a missing picture.

Audit surface: 0 project declarations, 15 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.