The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V20. Probability

Mathlib.Probability.Kernel.Disintegration.StandardBorel

37 declarations. Mathlib docs · Source

Existence of disintegration of measures and kernels for standard Borel spaces

Let κ : Kernel α (β × Ω) be a finite kernel, where Ω is a standard Borel space. Then if α is countable or β has a countably generated σ-algebra (for example if it is standard Borel), then there exists a Kernel (α × β) Ω called conditional kernel and denoted by condKernel κ such that κ = fst κ ⊗ₖ condKernel κ. We also define a conditional kernel for a measure ρ : Measure (β × Ω), where Ω is a standard Borel space. This is a Kernel β Ω denoted by ρ.condKernel such that ρ = ρ.fst ⊗ₘ ρ.condKernel.

In order to obtain a disintegration for any standard Borel space Ω, we use that these spaces embed measurably into ℝ: it then suffices to define a suitable kernel for Ω = ℝ.

For κ : Kernel α (β × ℝ), the construction of the conditional kernel proceeds as follows:

  • Build a measurable function f : (α × β) → ℚ → ℝ such that for all measurable sets s and all q : ℚ, ∫ x in s, f (a, x) q ∂(Kernel.fst κ a) = (κ a).real (s ×ˢ Iic (q : ℝ)). We restrict to ℚ here to be able to prove the measurability.
  • Extend that function to (α × β) → StieltjesFunction ℝ. See the file MeasurableStieltjes.lean.
  • Finally obtain from the measurable Stieltjes function a measure on ℝ for each element of α × β in a measurable way: we have obtained a Kernel (α × β) ℝ. See the file CDFToKernel.lean for that step.

The first step (building the measurable function on ℚ) is done differently depending on whether α is countable or not.

  • If α is countable, we can provide for each a : α a function f : β → ℚ → ℝ and proceed as above to obtain a Kernel β ℝ. Since α is countable, measurability is not an issue and we can put those together into a Kernel (α × β) ℝ. The construction of that f is done in the CondCDF.lean file.
  • If α is not countable, we can't proceed separately for each a : α and have to build a function f : α × β → ℚ → ℝ which is measurable on the product. We are able to do so if β has a countably generated σ-algebra (this is the case in particular for standard Borel spaces). See the file Density.lean.

The conditional kernel is defined under the typeclass assumption CountableOrCountablyGenerated α β, which encodes the property Countable α ∨ CountablyGenerated β.

Properties of integrals involving condKernel are collated in the file Integral.lean. The conditional kernel is unique (almost everywhere w.r.t. fst κ): this is proved in the file Unique.lean.

Main definitions

  • ProbabilityTheory.Kernel.condKernel κ : Kernel (α × β) Ω: conditional kernel described above.
  • MeasureTheory.Measure.condKernel ρ : Kernel β Ω: conditional kernel of a measure.

Main statements

  • ProbabilityTheory.Kernel.compProd_fst_condKernel: fst κ ⊗ₖ condKernel κ = κ
  • MeasureTheory.Measure.compProd_fst_condKernel: ρ.fst ⊗ₘ ρ.condKernel = ρ

Disintegration of kernels from α to γ × ℝ for countably generated γ

Disintegration of kernels on standard Borel spaces

Since every standard Borel space embeds measurably into ℝ, we can generalize a disintegration property on ℝ to all these spaces.

theorem MeasureTheory.Measure.condKernel.congr_simp E1 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (ρ ρ_1 : MeasureTheory.Measure (α × Ω)) (e_ρ : ρ = ρ_1)
  [inst_2 : MeasureTheory.IsFiniteMeasure ρ], ρ.condKernel = ρ_1.condKernel

theorem MeasureTheory.embeddingReal.congr_simp E1 #

∀ (Ω : Type u_2) [inst : MeasurableSpace Ω] [inst_1 : StandardBorelSpace Ω] (a a_1 : Ω),
  a = a_1 → MeasureTheory.embeddingReal Ω a = MeasureTheory.embeddingReal Ω a_1

theorem ProbabilityTheory.Kernel.condKernelBorel.congr_simp E1 #

∀ {α : Type u_1} {γ : Type u_3} {Ω : Type u_4} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] {mΩ : MeasurableSpace Ω} [inst_1 : StandardBorelSpace Ω]
  [inst_2 : Nonempty Ω] (κ κ_1 : ProbabilityTheory.Kernel α (γ × Ω)) (e_κ : κ = κ_1)
  [inst_3 : ProbabilityTheory.IsFiniteKernel κ], κ.condKernelBorel = κ_1.condKernelBorel

theorem ProbabilityTheory.Kernel.condKernelUnitBorel.congr_simp E1 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (κ κ_1 : ProbabilityTheory.Kernel Unit (α × Ω)) (e_κ : κ = κ_1)
  [inst_2 : ProbabilityTheory.IsFiniteKernel κ], κ.condKernelUnitBorel = κ_1.condKernelUnitBorel

theorem ProbabilityTheory.Kernel.borelMarkovFromReal.congr_simp E1 #

∀ {α : Type u_1} {mα : MeasurableSpace α} (Ω : Type u_5) [inst : Nonempty Ω] [inst_1 : MeasurableSpace Ω]
  [inst_2 : StandardBorelSpace Ω] (η η_1 : ProbabilityTheory.Kernel α ℝ),
  η = η_1 → ProbabilityTheory.Kernel.borelMarkovFromReal Ω η = ProbabilityTheory.Kernel.borelMarkovFromReal Ω η_1

theorem ProbabilityTheory.Kernel.isRatCondKernelCDFAux_density_Iic E1 #

∀ {α : Type u_1} {γ : Type u_3} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] (κ : ProbabilityTheory.Kernel α (γ × ℝ))
  [ProbabilityTheory.IsFiniteKernel κ],
  ProbabilityTheory.IsRatCondKernelCDFAux (fun p q ↦ κ.density κ.fst p.1 p.2 (Set.Iic ↑q)) κ κ.fst

theorem ProbabilityTheory.Kernel.isRatCondKernelCDF_density_Iic E1 #

∀ {α : Type u_1} {γ : Type u_3} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] (κ : ProbabilityTheory.Kernel α (γ × ℝ))
  [ProbabilityTheory.IsFiniteKernel κ],
  ProbabilityTheory.IsRatCondKernelCDF (fun p q ↦ κ.density κ.fst p.1 p.2 (Set.Iic ↑q)) κ κ.fst

Taking the kernel density of intervals Iic q for q : ℚ gives a function with the property isRatCondKernelCDF.

def ProbabilityTheory.Kernel.condKernelCDF E1 #

{α : Type u_1} →
  {γ : Type u_3} →
    {mα : MeasurableSpace α} →
      {mγ : MeasurableSpace γ} →
        [MeasurableSpace.CountablyGenerated γ] →
          (κ : ProbabilityTheory.Kernel α (γ × ℝ)) → [ProbabilityTheory.IsFiniteKernel κ] → α × γ → StieltjesFunction ℝ

The conditional kernel CDF of a kernel κ : Kernel α (γ × ℝ), where γ is countably generated.

theorem ProbabilityTheory.Kernel.isCondKernelCDF_condKernelCDF E1 #

∀ {α : Type u_1} {γ : Type u_3} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] (κ : ProbabilityTheory.Kernel α (γ × ℝ))
  [inst_1 : ProbabilityTheory.IsFiniteKernel κ], ProbabilityTheory.IsCondKernelCDF κ.condKernelCDF κ κ.fst

def ProbabilityTheory.Kernel.condKernelReal E1 #

{α : Type u_1} →
  {γ : Type u_3} →
    {mα : MeasurableSpace α} →
      {mγ : MeasurableSpace γ} →
        [MeasurableSpace.CountablyGenerated γ] →
          (κ : ProbabilityTheory.Kernel α (γ × ℝ)) →
            [ProbabilityTheory.IsFiniteKernel κ] → ProbabilityTheory.Kernel (α × γ) ℝ

Auxiliary definition for ProbabilityTheory.Kernel.condKernel. A conditional kernel for κ : Kernel α (γ × ℝ) where γ is countably generated.

instance ProbabilityTheory.Kernel.instIsMarkovKernelCondKernelReal E0 #

∀ {α : Type u_1} {γ : Type u_3} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] (κ : ProbabilityTheory.Kernel α (γ × ℝ))
  [inst_1 : ProbabilityTheory.IsFiniteKernel κ], ProbabilityTheory.IsMarkovKernel κ.condKernelReal

theorem ProbabilityTheory.Kernel.compProd_fst_condKernelReal E1 #

∀ {α : Type u_1} {γ : Type u_3} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] (κ : ProbabilityTheory.Kernel α (γ × ℝ))
  [inst_1 : ProbabilityTheory.IsFiniteKernel κ], κ.fst.compProd κ.condKernelReal = κ

def ProbabilityTheory.Kernel.condKernelUnitReal E1 #

{α : Type u_1} →
  {mα : MeasurableSpace α} →
    (κ : ProbabilityTheory.Kernel Unit (α × ℝ)) →
      [ProbabilityTheory.IsFiniteKernel κ] → ProbabilityTheory.Kernel (Unit × α) ℝ

Auxiliary definition for MeasureTheory.Measure.condKernel and ProbabilityTheory.Kernel.condKernel. A conditional kernel for κ : Kernel Unit (α × ℝ).

instance ProbabilityTheory.Kernel.instIsMarkovKernelCondKernelUnitReal E0 #

∀ {α : Type u_1} {mα : MeasurableSpace α} (κ : ProbabilityTheory.Kernel Unit (α × ℝ))
  [inst : ProbabilityTheory.IsFiniteKernel κ], ProbabilityTheory.IsMarkovKernel κ.condKernelUnitReal

instance ProbabilityTheory.Kernel.condKernelUnitReal.instIsCondKernel E0 #

∀ {α : Type u_1} {mα : MeasurableSpace α} (κ : ProbabilityTheory.Kernel Unit (α × ℝ))
  [inst : ProbabilityTheory.IsFiniteKernel κ], κ.IsCondKernel κ.condKernelUnitReal

def ProbabilityTheory.Kernel.borelMarkovFromReal E1 #

{α : Type u_1} →
  {mα : MeasurableSpace α} →
    (Ω : Type u_5) →
      [Nonempty Ω] →
        [inst : MeasurableSpace Ω] →
          [StandardBorelSpace Ω] → ProbabilityTheory.Kernel α ℝ → ProbabilityTheory.Kernel α Ω

Auxiliary definition for ProbabilityTheory.Kernel.condKernel. A Borel space Ω embeds measurably into ℝ (with embedding e), hence we can get a Kernel α Ω from a Kernel α ℝ by taking the comap by e. Here we take the comap of a modification of η : Kernel α ℝ, useful when η a is a probability measure with all its mass on range e almost everywhere with respect to some measure and we want to ensure that the comap is a Markov kernel. We thus take the comap by e of a kernel defined piecewise: η when η a (range (embeddingReal Ω))ᶜ = 0, and an arbitrary deterministic kernel otherwise.

theorem ProbabilityTheory.Kernel.borelMarkovFromReal_apply E0 #

∀ {α : Type u_1} {mα : MeasurableSpace α} (Ω : Type u_5) [inst : Nonempty Ω] [inst_1 : MeasurableSpace Ω]
  [inst_2 : StandardBorelSpace Ω] (η : ProbabilityTheory.Kernel α ℝ) (a : α),
  (ProbabilityTheory.Kernel.borelMarkovFromReal Ω η) a =
    if (η a) (Set.range (MeasureTheory.embeddingReal Ω))ᶜ = 0 then
      MeasureTheory.Measure.comap (MeasureTheory.embeddingReal Ω) (η a)
    else MeasureTheory.Measure.comap (MeasureTheory.embeddingReal Ω) (MeasureTheory.Measure.dirac (Exists.choose ⋯))

theorem ProbabilityTheory.Kernel.borelMarkovFromReal_apply' E1 #

∀ {α : Type u_1} {mα : MeasurableSpace α} (Ω : Type u_5) [inst : Nonempty Ω] [inst_1 : MeasurableSpace Ω]
  [inst_2 : StandardBorelSpace Ω] (η : ProbabilityTheory.Kernel α ℝ) (a : α) {s : Set Ω},
  MeasurableSet s →
    ((ProbabilityTheory.Kernel.borelMarkovFromReal Ω η) a) s =
      if (η a) (Set.range (MeasureTheory.embeddingReal Ω))ᶜ = 0 then (η a) (MeasureTheory.embeddingReal Ω '' s)
      else (MeasureTheory.embeddingReal Ω '' s).indicator 1 (Exists.choose ⋯)

instance ProbabilityTheory.Kernel.instIsSFiniteKernelBorelMarkovFromReal E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (η : ProbabilityTheory.Kernel α ℝ) [ProbabilityTheory.IsSFiniteKernel η],
  ProbabilityTheory.IsSFiniteKernel (ProbabilityTheory.Kernel.borelMarkovFromReal Ω η)

When η is an s-finite kernel, borelMarkovFromReal Ω η is an s-finite kernel.

instance ProbabilityTheory.Kernel.instIsFiniteKernelBorelMarkovFromReal E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (η : ProbabilityTheory.Kernel α ℝ) [ProbabilityTheory.IsFiniteKernel η],
  ProbabilityTheory.IsFiniteKernel (ProbabilityTheory.Kernel.borelMarkovFromReal Ω η)

When η is a finite kernel, borelMarkovFromReal Ω η is a finite kernel.

instance ProbabilityTheory.Kernel.instIsMarkovKernelBorelMarkovFromReal E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (η : ProbabilityTheory.Kernel α ℝ) [ProbabilityTheory.IsMarkovKernel η],
  ProbabilityTheory.IsMarkovKernel (ProbabilityTheory.Kernel.borelMarkovFromReal Ω η)

When η is a Markov kernel, borelMarkovFromReal Ω η is a Markov kernel.

theorem ProbabilityTheory.Kernel.compProd_fst_borelMarkovFromReal_eq_comapRight_compProd E1 #

∀ {α : Type u_1} {β : Type u_2} {Ω : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] [inst_1 : Nonempty Ω] (κ : ProbabilityTheory.Kernel α (β × Ω))
  [ProbabilityTheory.IsSFiniteKernel κ] (η : ProbabilityTheory.Kernel (α × β) ℝ) [ProbabilityTheory.IsSFiniteKernel η],
  (κ.map (Prod.map id (MeasureTheory.embeddingReal Ω))).fst.compProd η =
      κ.map (Prod.map id (MeasureTheory.embeddingReal Ω)) →
    κ.fst.compProd (ProbabilityTheory.Kernel.borelMarkovFromReal Ω η) =
      ((κ.map (Prod.map id (MeasureTheory.embeddingReal Ω))).fst.compProd η).comapRight ⋯

For κ' := map κ (Prod.map (id : β → β) e), the hypothesis hη is fst κ' ⊗ₖ η = κ'. The conclusion of the lemma is fst κ ⊗ₖ borelMarkovFromReal Ω η = comapRight (fst κ' ⊗ₖ η) _.

theorem ProbabilityTheory.Kernel.compProd_fst_borelMarkovFromReal E1 #

∀ {α : Type u_1} {β : Type u_2} {Ω : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] [inst_1 : Nonempty Ω] (κ : ProbabilityTheory.Kernel α (β × Ω))
  [ProbabilityTheory.IsSFiniteKernel κ] (η : ProbabilityTheory.Kernel (α × β) ℝ) [ProbabilityTheory.IsSFiniteKernel η],
  (κ.map (Prod.map id (MeasureTheory.embeddingReal Ω))).fst.compProd η =
      κ.map (Prod.map id (MeasureTheory.embeddingReal Ω)) →
    κ.fst.compProd (ProbabilityTheory.Kernel.borelMarkovFromReal Ω η) = κ

For κ' := map κ (Prod.map (id : β → β) e), the hypothesis hη is fst κ' ⊗ₖ η = κ'. With that hypothesis, fst κ ⊗ₖ borelMarkovFromReal κ η = κ.

def ProbabilityTheory.Kernel.condKernelBorel E1 #

{α : Type u_1} →
  {γ : Type u_3} →
    {Ω : Type u_4} →
      {mα : MeasurableSpace α} →
        {mγ : MeasurableSpace γ} →
          [MeasurableSpace.CountablyGenerated γ] →
            {mΩ : MeasurableSpace Ω} →
              [StandardBorelSpace Ω] →
                [Nonempty Ω] →
                  (κ : ProbabilityTheory.Kernel α (γ × Ω)) →
                    [ProbabilityTheory.IsFiniteKernel κ] → ProbabilityTheory.Kernel (α × γ) Ω

Auxiliary definition for ProbabilityTheory.Kernel.condKernel. A conditional kernel for κ : Kernel α (γ × Ω) where γ is countably generated and Ω is standard Borel.

instance ProbabilityTheory.Kernel.instIsMarkovKernelCondKernelBorel E0 #

∀ {α : Type u_1} {γ : Type u_3} {Ω : Type u_4} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] {mΩ : MeasurableSpace Ω} [inst_1 : StandardBorelSpace Ω]
  [inst_2 : Nonempty Ω] (κ : ProbabilityTheory.Kernel α (γ × Ω)) [inst_3 : ProbabilityTheory.IsFiniteKernel κ],
  ProbabilityTheory.IsMarkovKernel κ.condKernelBorel

instance ProbabilityTheory.Kernel.condKernelBorel.instIsCondKernel E0 #

∀ {α : Type u_1} {γ : Type u_3} {Ω : Type u_4} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ}
  [inst : MeasurableSpace.CountablyGenerated γ] {mΩ : MeasurableSpace Ω} [inst_1 : StandardBorelSpace Ω]
  [inst_2 : Nonempty Ω] (κ : ProbabilityTheory.Kernel α (γ × Ω)) [inst_3 : ProbabilityTheory.IsFiniteKernel κ],
  κ.IsCondKernel κ.condKernelBorel

def ProbabilityTheory.Kernel.condKernelUnitBorel E1 #

{α : Type u_1} →
  {Ω : Type u_4} →
    {mα : MeasurableSpace α} →
      {mΩ : MeasurableSpace Ω} →
        [StandardBorelSpace Ω] →
          [Nonempty Ω] →
            (κ : ProbabilityTheory.Kernel Unit (α × Ω)) →
              [ProbabilityTheory.IsFiniteKernel κ] → ProbabilityTheory.Kernel (Unit × α) Ω

Auxiliary definition for MeasureTheory.Measure.condKernel and ProbabilityTheory.Kernel.condKernel. A conditional kernel for κ : Kernel Unit (α × Ω) where Ω is standard Borel.

instance ProbabilityTheory.Kernel.instIsMarkovKernelCondKernelUnitBorel E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (κ : ProbabilityTheory.Kernel Unit (α × Ω)) [inst_2 : ProbabilityTheory.IsFiniteKernel κ],
  ProbabilityTheory.IsMarkovKernel κ.condKernelUnitBorel

instance ProbabilityTheory.Kernel.condKernelUnitBorel.instIsCondKernel E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (κ : ProbabilityTheory.Kernel Unit (α × Ω)) [inst_2 : ProbabilityTheory.IsFiniteKernel κ],
  κ.IsCondKernel κ.condKernelUnitBorel

def MeasureTheory.Measure.condKernel E3 #

{α : Type u_1} →
  {Ω : Type u_4} →
    {mα : MeasurableSpace α} →
      {mΩ : MeasurableSpace Ω} →
        [StandardBorelSpace Ω] →
          [Nonempty Ω] →
            (ρ : MeasureTheory.Measure (α × Ω)) → [MeasureTheory.IsFiniteMeasure ρ] → ProbabilityTheory.Kernel α Ω

Conditional kernel of a measure on a product space: a Markov kernel such that ρ = ρ.fst ⊗ₘ ρ.condKernel (see MeasureTheory.Measure.compProd_fst_condKernel).

theorem MeasureTheory.Measure.condKernel_apply E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (ρ : MeasureTheory.Measure (α × Ω)) [inst_2 : MeasureTheory.IsFiniteMeasure ρ] (a : α),
  ρ.condKernel a = (ProbabilityTheory.Kernel.const Unit ρ).condKernelUnitBorel ((), a)

instance MeasureTheory.Measure.condKernel.instIsCondKernel E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (ρ : MeasureTheory.Measure (α × Ω)) [inst_2 : MeasureTheory.IsFiniteMeasure ρ],
  ρ.IsCondKernel ρ.condKernel

instance MeasureTheory.Measure.instIsMarkovKernelCondKernel E0 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] (ρ : MeasureTheory.Measure (α × Ω)) [inst_2 : MeasureTheory.IsFiniteMeasure ρ],
  ProbabilityTheory.IsMarkovKernel ρ.condKernel

theorem MeasureTheory.Measure.condKernel_apply_of_ne_zero E1 #

∀ {α : Type u_1} {Ω : Type u_4} {mα : MeasurableSpace α} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  [inst_1 : Nonempty Ω] {ρ : MeasureTheory.Measure (α × Ω)} [inst_2 : MeasureTheory.IsFiniteMeasure ρ]
  [MeasurableSingletonClass α] {x : α}, ρ.fst {x} ≠ 0 → ∀ (s : Set Ω), (ρ.condKernel x) s = (ρ.fst {x})⁻¹ * ρ ({x} ×ˢ s)

If the singleton {x} has non-zero mass for ρ.fst, then for all s : Set Ω, ρ.condKernel x s = (ρ.fst {x})⁻¹ * ρ ({x} ×ˢ s) .

def ProbabilityTheory.Kernel.condKernel E3 #

{α : Type u_1} →
  {β : Type u_2} →
    {Ω : Type u_4} →
      {mα : MeasurableSpace α} →
        {mβ : MeasurableSpace β} →
          {mΩ : MeasurableSpace Ω} →
            [StandardBorelSpace Ω] →
              [Nonempty Ω] →
                [h : MeasurableSpace.CountableOrCountablyGenerated α β] →
                  (κ : ProbabilityTheory.Kernel α (β × Ω)) →
                    [ProbabilityTheory.IsFiniteKernel κ] → ProbabilityTheory.Kernel (α × β) Ω

Conditional kernel of a kernel κ : Kernel α (β × Ω): a Markov kernel such that fst κ ⊗ₖ condKernel κ = κ (see MeasureTheory.Measure.compProd_fst_condKernel). It exists whenever Ω is standard Borel and either α is countable or β is countably generated.

instance ProbabilityTheory.Kernel.instIsMarkovKernelCondKernel E0 #

∀ {α : Type u_1} {β : Type u_2} {Ω : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] [inst_1 : Nonempty Ω]
  [h : MeasurableSpace.CountableOrCountablyGenerated α β] (κ : ProbabilityTheory.Kernel α (β × Ω))
  [inst_2 : ProbabilityTheory.IsFiniteKernel κ], ProbabilityTheory.IsMarkovKernel κ.condKernel

condKernel κ is a Markov kernel.

instance ProbabilityTheory.Kernel.condKernel.instIsCondKernel E0 #

∀ {α : Type u_1} {β : Type u_2} {Ω : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] [inst_1 : Nonempty Ω]
  [h : MeasurableSpace.CountableOrCountablyGenerated α β] (κ : ProbabilityTheory.Kernel α (β × Ω))
  [inst_2 : ProbabilityTheory.IsFiniteKernel κ], κ.IsCondKernel κ.condKernel