LeanMachineLearning

ProbabilityTheory.Kernel.swap_lift🔗

Lemma

No docstring.

🔗theorem
ProbabilityTheory.Kernel.swap_lift.{x, y, w} {X : Type x} [MeasurableSpace X] {Y : Type y} [MeasurableSpace Y] {X' : Type w} [MeasurableSpace X'] {Y' : Type w} [MeasurableSpace Y'] (ex : X' ≃ᔐ X) (ey : Y' ≃ᔐ Y) : swap X' Y' = lift (swap X Y)
ProbabilityTheory.Kernel.swap_lift.{x, y, w} {X : Type x} [MeasurableSpace X] {Y : Type y} [MeasurableSpace Y] {X' : Type w} [MeasurableSpace X'] {Y' : Type w} [MeasurableSpace Y'] (ex : X' ≃ᔐ X) (ey : Y' ≃ᔐ Y) : swap X' Y' = lift (swap X Y)

Code

lemma swap_lift : swap X' Y' = (swap X Y).lift (ex := ex.prodCongr ey) (ey := ey.prodCongr ex)
Proof
by
  ext a s hs
  rw [lift_apply' _ _ _ _ hs]
  simp only [swap_apply]
  rw [Measure.dirac_apply' _ hs, Measure.dirac_apply']
  · refine Set.indicator_eq_indicator ?_ rfl
    simp only [prodCongr, MeasurableEquiv.coe_mk, Equiv.prodCongr_apply, Prod.map, coe_toEquiv,
      Prod.swap_prod_mk, Set.mem_image, Prod.mk.injEq, EmbeddingLike.apply_eq_iff_eq, Prod.exists,
      exists_eq_right_right, exists_eq_right]
    grind
  · measurability

Actions: Source · Open Issue

Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23).

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: 1 project declarations, 14 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.