roseking's picture
Add lean source and binary files (part 103)
a44267b verified
Raw History Blame Contribute Delete
1.5 kB
14
def kernelDiracGraph (κ : Kernel Z U) : Set (Z × U) :=
body · 1 line
  {z | κ z.1=Measure.dirac z.2}
17
lemma measurableSet_kernelDiracGraph (κ : Kernel Z U) [IsFiniteKernel κ] :
    MeasurableSet (kernelDiracGraph κ) := by
proof · 3 lines
  have h := measurableSet_finite_kernel_eq (κ.comap Prod.fst measurable_fst)
    (Kernel.deterministic Prod.snd measurable_snd)
  simpa only [kernelDiracGraph,Kernel.comap_apply,Kernel.deterministic_apply] using h
23
lemma kernelDiracGraph_fiber_unique (κ : Kernel Z U)
    {x y : Z × U} (hx : x ∈ kernelDiracGraph κ)
    (hy : y ∈ kernelDiracGraph κ) (hbase : x.1=y.1) : x.2=y.2 := by
proof · 2 lines
  apply MeasureTheory.injective_dirac
  exact hx.symm.trans ((congrArg κ hbase).trans hy)
29
theorem exists_full_measure_unique_fiber_graph
    (ρ : Measure (Z × U)) (κ : Kernel Z U) [IsFiniteKernel κ]
    (hκ : ∀ᵐ z ∂ρ, κ z.1=Measure.dirac z.2) :
    ∃ E : Set (Z × U), MeasurableSet E ∧ (∀ᵐ z ∂ρ, z ∈ E) ∧
      ∀ x ∈ E, ∀ y ∈ E, x.1=y.1 → x.2=y.2 :=
proof · 2 lines
  ⟨kernelDiracGraph κ,measurableSet_kernelDiracGraph κ,hκ,
    fun _ hx _ hy he => kernelDiracGraph_fiber_unique κ hx hy he⟩