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.Composition.IntegralCompProd

48 declarations. Mathlib docs · Source

Bochner integral of a function against the composition and the composition-products of two kernels

We prove properties of the composition and the composition-product of two kernels.

If κ is a kernel from α to β and η is a kernel from β to γ, we can form their composition η ∘ₖ κ : Kernel α γ. We proved in ProbabilityTheory.Kernel.lintegral_comp that it verifies ∫⁻ c, f c ∂((η ∘ₖ κ) a) = ∫⁻ b, ∫⁻ c, f c ∂(η b) ∂(κ a). In this file, we prove the same equality for the Bochner integral.

If κ is an s-finite kernel from α to β and η is an s-finite kernel from α × β to γ, we can form their composition-product κ ⊗ₖ η : Kernel α (β × γ). We proved in ProbabilityTheory.Kernel.lintegral_compProd that it verifies ∫⁻ bc, f bc ∂((κ ⊗ₖ η) a) = ∫⁻ b, ∫⁻ c, f (b, c) ∂(η (a, b)) ∂(κ a). In this file, we prove the same equality for the Bochner integral.

Main statements

  • ProbabilityTheory.integral_compProd: the integral against the composition-product is ∫ z, f z ∂((κ ⊗ₖ η) a) = ∫ x, ∫ y, f (x, y) ∂(η (a, x)) ∂(κ a).

  • ProbabilityTheory.integral_comp: the integral against the composition is ∫⁻ z, f z ∂((η ∘ₖ κ) a) = ∫⁻ x, ∫⁻ y, f y ∂(η x) ∂(κ a).

Implementation notes

This file is to a large extent a copy of part of Mathlib/MeasureTheory/Integral/Prod.lean. The product of two measures is a particular case of composition-product of kernels and it turns out that once the measurability of the Lebesgue integral of a kernel is proved, almost all proofs about integrals against products of measures extend with minimal modifications to the composition-product of two kernels.

The composition of kernels can also be expressed easily with the composition-product and therefore the proofs about the composition are only simplified versions of the ones for the composition-product. However it is necessary to do all the proofs once again because the composition-product requires s-finiteness while the composition does not.

Integrability

Bochner integral

Integrability with respect to composition

Bochner integral with respect to the composition

theorem ProbabilityTheory.hasFiniteIntegral_prodMk_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} {κ : ProbabilityTheory.Kernel α β} [ProbabilityTheory.IsSFiniteKernel κ]
  {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η] (a : α) {s : Set (β × γ)},
  ((κ.compProd η) a) s ≠ ⊤ → MeasureTheory.HasFiniteIntegral (fun b ↦ (η (a, b)).real (Prod.mk b ⁻¹' s)) (κ a)

theorem ProbabilityTheory.integrable_kernel_prodMk_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} {κ : ProbabilityTheory.Kernel α β} [ProbabilityTheory.IsSFiniteKernel κ]
  {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η] (a : α) {s : Set (β × γ)},
  MeasurableSet s →
    ((κ.compProd η) a) s ≠ ⊤ → MeasureTheory.Integrable (fun b ↦ (η (a, b)).real (Prod.mk b ⁻¹' s)) (κ a)

theorem MeasureTheory.AEStronglyMeasurable.integral_kernel_compProd E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f : β × γ → E⦄,
  MeasureTheory.AEStronglyMeasurable f ((κ.compProd η) a) →
    MeasureTheory.AEStronglyMeasurable (fun x ↦ ∫ (y : γ), f (x, y) ∂η (a, x)) (κ a)

theorem MeasureTheory.AEStronglyMeasurable.compProd_mk_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} {a : α} {κ : ProbabilityTheory.Kernel α β} [ProbabilityTheory.IsSFiniteKernel κ]
  {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η] {δ : Type u_5}
  [inst : TopologicalSpace δ] {f : β × γ → δ},
  MeasureTheory.AEStronglyMeasurable f ((κ.compProd η) a) →
    ∀ᵐ (x : β) ∂κ a, MeasureTheory.AEStronglyMeasurable (fun y ↦ f (x, y)) (η (a, x))

theorem ProbabilityTheory.hasFiniteIntegral_compProd_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  ⦃f : β × γ → E⦄,
  MeasureTheory.StronglyMeasurable f →
    (MeasureTheory.HasFiniteIntegral f ((κ.compProd η) a) ↔
      (∀ᵐ (x : β) ∂κ a, MeasureTheory.HasFiniteIntegral (fun y ↦ f (x, y)) (η (a, x))) ∧
        MeasureTheory.HasFiniteIntegral (fun x ↦ ∫ (y : γ), ‖f (x, y)‖ ∂η (a, x)) (κ a))

theorem ProbabilityTheory.hasFiniteIntegral_compProd_iff' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  ⦃f : β × γ → E⦄,
  MeasureTheory.AEStronglyMeasurable f ((κ.compProd η) a) →
    (MeasureTheory.HasFiniteIntegral f ((κ.compProd η) a) ↔
      (∀ᵐ (x : β) ∂κ a, MeasureTheory.HasFiniteIntegral (fun y ↦ f (x, y)) (η (a, x))) ∧
        MeasureTheory.HasFiniteIntegral (fun x ↦ ∫ (y : γ), ‖f (x, y)‖ ∂η (a, x)) (κ a))

theorem ProbabilityTheory.integrable_compProd_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  ⦃f : β × γ → E⦄,
  MeasureTheory.AEStronglyMeasurable f ((κ.compProd η) a) →
    (MeasureTheory.Integrable f ((κ.compProd η) a) ↔
      (∀ᵐ (x : β) ∂κ a, MeasureTheory.Integrable (fun y ↦ f (x, y)) (η (a, x))) ∧
        MeasureTheory.Integrable (fun x ↦ ∫ (y : γ), ‖f (x, y)‖ ∂η (a, x)) (κ a))

theorem MeasureTheory.Integrable.ae_of_compProd E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  ⦃f : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    ∀ᵐ (x : β) ∂κ a, MeasureTheory.Integrable (fun y ↦ f (x, y)) (η (a, x))

theorem MeasureTheory.Integrable.integral_norm_compProd E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  ⦃f : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable (fun x ↦ ∫ (y : γ), ‖f (x, y)‖ ∂η (a, x)) (κ a)

theorem MeasureTheory.Integrable.integral_compProd E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) → MeasureTheory.Integrable (fun x ↦ ∫ (y : γ), f (x, y) ∂η (a, x)) (κ a)

theorem ProbabilityTheory.Kernel.integral_fn_integral_add E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] {E' : Type u_5} [inst_4 : NormedAddCommGroup E'] [inst_5 : NormedSpace ℝ E']
  ⦃f g : β × γ → E⦄ (F : E → E'),
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫ (x : β), F (∫ (y : γ), f (x, y) + g (x, y) ∂η (a, x)) ∂κ a =
        ∫ (x : β), F (∫ (y : γ), f (x, y) ∂η (a, x) + ∫ (y : γ), g (x, y) ∂η (a, x)) ∂κ a

theorem ProbabilityTheory.Kernel.integral_fn_integral_sub E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] {E' : Type u_5} [inst_4 : NormedAddCommGroup E'] [inst_5 : NormedSpace ℝ E']
  ⦃f g : β × γ → E⦄ (F : E → E'),
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫ (x : β), F (∫ (y : γ), f (x, y) - g (x, y) ∂η (a, x)) ∂κ a =
        ∫ (x : β), F (∫ (y : γ), f (x, y) ∂η (a, x) - ∫ (y : γ), g (x, y) ∂η (a, x)) ∂κ a

theorem ProbabilityTheory.Kernel.lintegral_fn_integral_sub E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f g : β × γ → E⦄ (F : E → ENNReal),
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫⁻ (x : β), F (∫ (y : γ), f (x, y) - g (x, y) ∂η (a, x)) ∂κ a =
        ∫⁻ (x : β), F (∫ (y : γ), f (x, y) ∂η (a, x) - ∫ (y : γ), g (x, y) ∂η (a, x)) ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_add E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f g : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫ (x : β), ∫ (y : γ), f (x, y) + g (x, y) ∂η (a, x) ∂κ a =
        ∫ (x : β), ∫ (y : γ), f (x, y) ∂η (a, x) ∂κ a + ∫ (x : β), ∫ (y : γ), g (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_add' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f g : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫ (x : β), ∫ (y : γ), (f + g) (x, y) ∂η (a, x) ∂κ a =
        ∫ (x : β), ∫ (y : γ), f (x, y) ∂η (a, x) ∂κ a + ∫ (x : β), ∫ (y : γ), g (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_sub E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f g : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫ (x : β), ∫ (y : γ), f (x, y) - g (x, y) ∂η (a, x) ∂κ a =
        ∫ (x : β), ∫ (y : γ), f (x, y) ∂η (a, x) ∂κ a - ∫ (x : β), ∫ (y : γ), g (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_sub' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] ⦃f g : β × γ → E⦄,
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    MeasureTheory.Integrable g ((κ.compProd η) a) →
      ∫ (x : β), ∫ (y : γ), (f - g) (x, y) ∂η (a, x) ∂κ a =
        ∫ (x : β), ∫ (y : γ), f (x, y) ∂η (a, x) ∂κ a - ∫ (x : β), ∫ (y : γ), g (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.Kernel.continuous_integral_integral E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E], Continuous fun f ↦ ∫ (x : β), ∫ (y : γ), ↑↑f (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.integral_compProd E3 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] {f : β × γ → E},
  MeasureTheory.Integrable f ((κ.compProd η) a) →
    ∫ (z : β × γ), f z ∂(κ.compProd η) a = ∫ (x : β), ∫ (y : γ), f (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.setIntegral_compProd E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] {f : β × γ → E} {s : Set β} {t : Set γ},
  MeasurableSet s →
    MeasurableSet t →
      MeasureTheory.IntegrableOn f (s ×ˢ t) ((κ.compProd η) a) →
        ∫ (z : β × γ) in s ×ˢ t, f z ∂(κ.compProd η) a = ∫ (x : β) in s, ∫ (y : γ) in t, f (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.setIntegral_compProd_univ_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] (f : β × γ → E) {s : Set β},
  MeasurableSet s →
    MeasureTheory.IntegrableOn f (s ×ˢ Set.univ) ((κ.compProd η) a) →
      ∫ (z : β × γ) in s ×ˢ Set.univ, f z ∂(κ.compProd η) a = ∫ (x : β) in s, ∫ (y : γ), f (x, y) ∂η (a, x) ∂κ a

theorem ProbabilityTheory.setIntegral_compProd_univ_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  [ProbabilityTheory.IsSFiniteKernel κ] {η : ProbabilityTheory.Kernel (α × β) γ} [ProbabilityTheory.IsSFiniteKernel η]
  [inst_3 : NormedSpace ℝ E] (f : β × γ → E) {t : Set γ},
  MeasurableSet t →
    MeasureTheory.IntegrableOn f (Set.univ ×ˢ t) ((κ.compProd η) a) →
      ∫ (z : β × γ) in Set.univ ×ˢ t, f z ∂(κ.compProd η) a = ∫ (x : β), ∫ (y : γ) in t, f (x, y) ∂η (a, x) ∂κ a

theorem MeasureTheory.AEStronglyMeasurable.integral_kernel_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f : γ → E⦄,
  MeasureTheory.AEStronglyMeasurable f ((η.comp κ) a) →
    MeasureTheory.AEStronglyMeasurable (fun x ↦ ∫ (y : γ), f y ∂η x) (κ a)

theorem MeasureTheory.AEStronglyMeasurable.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} {a : α} {κ : ProbabilityTheory.Kernel α β} {η : ProbabilityTheory.Kernel β γ} {δ : Type u_5}
  [inst : TopologicalSpace δ] {f : γ → δ},
  MeasureTheory.AEStronglyMeasurable f ((η.comp κ) a) → ∀ᵐ (x : β) ∂κ a, MeasureTheory.AEStronglyMeasurable f (η x)

theorem ProbabilityTheory.hasFiniteIntegral_comp_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} ⦃f : γ → E⦄,
  MeasureTheory.StronglyMeasurable f →
    (MeasureTheory.HasFiniteIntegral f ((η.comp κ) a) ↔
      (∀ᵐ (x : β) ∂κ a, MeasureTheory.HasFiniteIntegral f (η x)) ∧
        MeasureTheory.HasFiniteIntegral (fun x ↦ ∫ (y : γ), ‖f y‖ ∂η x) (κ a))

theorem ProbabilityTheory.hasFiniteIntegral_comp_iff' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} ⦃f : γ → E⦄,
  MeasureTheory.AEStronglyMeasurable f ((η.comp κ) a) →
    (MeasureTheory.HasFiniteIntegral f ((η.comp κ) a) ↔
      (∀ᵐ (x : β) ∂κ a, MeasureTheory.HasFiniteIntegral f (η x)) ∧
        MeasureTheory.HasFiniteIntegral (fun x ↦ ∫ (y : γ), ‖f y‖ ∂η x) (κ a))

theorem ProbabilityTheory.integrable_comp_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} ⦃f : γ → E⦄,
  MeasureTheory.AEStronglyMeasurable f ((η.comp κ) a) →
    (MeasureTheory.Integrable f ((η.comp κ) a) ↔
      (∀ᵐ (y : β) ∂κ a, MeasureTheory.Integrable f (η y)) ∧
        MeasureTheory.Integrable (fun y ↦ ∫ (z : γ), ‖f z‖ ∂η y) (κ a))

theorem MeasureTheory.Measure.integrable_comp_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  [inst : NormedAddCommGroup E] {κ : ProbabilityTheory.Kernel α β} {μ : MeasureTheory.Measure α} {f : β → E},
  MeasureTheory.AEStronglyMeasurable f (μ.bind ⇑κ) →
    (MeasureTheory.Integrable f (μ.bind ⇑κ) ↔
      (∀ᵐ (x : α) ∂μ, MeasureTheory.Integrable f (κ x)) ∧ MeasureTheory.Integrable (fun x ↦ ∫ (y : β), ‖f y‖ ∂κ x) μ)

theorem MeasureTheory.Integrable.ae_of_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} ⦃f : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) → ∀ᵐ (x : β) ∂κ a, MeasureTheory.Integrable f (η x)

theorem MeasureTheory.Integrable.integral_norm_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} ⦃f : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) → MeasureTheory.Integrable (fun x ↦ ∫ (y : γ), ‖f y‖ ∂η x) (κ a)

theorem MeasureTheory.Integrable.integral_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) → MeasureTheory.Integrable (fun x ↦ ∫ (y : γ), f y ∂η x) (κ a)

theorem ProbabilityTheory.Kernel.integral_fn_integral_add_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] {E' : Type u_5} [inst_2 : NormedAddCommGroup E']
  [inst_3 : NormedSpace ℝ E'] ⦃f g : γ → E⦄ (F : E → E'),
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫ (x : β), F (∫ (y : γ), f y + g y ∂η x) ∂κ a = ∫ (x : β), F (∫ (y : γ), f y ∂η x + ∫ (y : γ), g y ∂η x) ∂κ a

theorem ProbabilityTheory.Kernel.integral_fn_integral_sub_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] {E' : Type u_5} [inst_2 : NormedAddCommGroup E']
  [inst_3 : NormedSpace ℝ E'] ⦃f g : γ → E⦄ (F : E → E'),
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫ (x : β), F (∫ (y : γ), f y - g y ∂η x) ∂κ a = ∫ (x : β), F (∫ (y : γ), f y ∂η x - ∫ (y : γ), g y ∂η x) ∂κ a

theorem ProbabilityTheory.Kernel.lintegral_fn_integral_sub_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f g : γ → E⦄ (F : E → ENNReal),
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫⁻ (x : β), F (∫ (y : γ), f y - g y ∂η x) ∂κ a = ∫⁻ (x : β), F (∫ (y : γ), f y ∂η x - ∫ (y : γ), g y ∂η x) ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_add_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f g : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫ (x : β), ∫ (y : γ), f y + g y ∂η x ∂κ a =
        ∫ (x : β), ∫ (y : γ), f y ∂η x ∂κ a + ∫ (x : β), ∫ (y : γ), g y ∂η x ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_add'_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f g : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫ (x : β), ∫ (y : γ), (f + g) y ∂η x ∂κ a =
        ∫ (x : β), ∫ (y : γ), f y ∂η x ∂κ a + ∫ (x : β), ∫ (y : γ), g y ∂η x ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_sub_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f g : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫ (x : β), ∫ (y : γ), f y - g y ∂η x ∂κ a =
        ∫ (x : β), ∫ (y : γ), f y ∂η x ∂κ a - ∫ (x : β), ∫ (y : γ), g y ∂η x ∂κ a

theorem ProbabilityTheory.Kernel.integral_integral_sub'_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] ⦃f g : γ → E⦄,
  MeasureTheory.Integrable f ((η.comp κ) a) →
    MeasureTheory.Integrable g ((η.comp κ) a) →
      ∫ (x : β), ∫ (y : γ), (f - g) y ∂η x ∂κ a =
        ∫ (x : β), ∫ (y : γ), f y ∂η x ∂κ a - ∫ (x : β), ∫ (y : γ), g y ∂η x ∂κ a

theorem ProbabilityTheory.Kernel.continuous_integral_integral_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E],
  Continuous fun f ↦ ∫ (x : β), ∫ (y : γ), ↑↑f y ∂η x ∂κ a

theorem ProbabilityTheory.Kernel.integral_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] {f : γ → E},
  MeasureTheory.Integrable f ((η.comp κ) a) → ∫ (z : γ), f z ∂(η.comp κ) a = ∫ (x : β), ∫ (y : γ), f y ∂η x ∂κ a

theorem ProbabilityTheory.Kernel.setIntegral_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {E : Type u_4} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst : NormedAddCommGroup E] {a : α} {κ : ProbabilityTheory.Kernel α β}
  {η : ProbabilityTheory.Kernel β γ} [inst_1 : NormedSpace ℝ E] {f : γ → E} {s : Set γ},
  MeasurableSet s →
    MeasureTheory.IntegrableOn f s ((η.comp κ) a) →
      ∫ (z : γ) in s, f z ∂(η.comp κ) a = ∫ (x : β), ∫ (y : γ) in s, f y ∂η x ∂κ a

theorem MeasureTheory.AEStronglyMeasurable.ae_of_compProd E1 #

∀ {α : Type u_5} {β : Type u_6} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
  {μ : MeasureTheory.Measure α} [MeasureTheory.SFinite μ] [ProbabilityTheory.IsSFiniteKernel κ] {E : Type u_8}
  [inst : NormedAddCommGroup E] {f : α → β → E},
  MeasureTheory.AEStronglyMeasurable (Function.uncurry f) (μ.compProd κ) →
    ∀ᵐ (x : α) ∂μ, MeasureTheory.AEStronglyMeasurable (f x) (κ x)

theorem MeasureTheory.Measure.integrable_compProd_iff E0 #

∀ {α : Type u_5} {β : Type u_6} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
  {μ : MeasureTheory.Measure α} [MeasureTheory.SFinite μ] [ProbabilityTheory.IsSFiniteKernel κ] {E : Type u_8}
  [inst : NormedAddCommGroup E] {f : α × β → E},
  MeasureTheory.AEStronglyMeasurable f (μ.compProd κ) →
    (MeasureTheory.Integrable f (μ.compProd κ) ↔
      (∀ᵐ (x : α) ∂μ, MeasureTheory.Integrable (fun y ↦ f (x, y)) (κ x)) ∧
        MeasureTheory.Integrable (fun x ↦ ∫ (y : β), ‖f (x, y)‖ ∂κ x) μ)

theorem MeasureTheory.Measure.integral_compProd E1 #

∀ {α : Type u_5} {β : Type u_6} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
  {μ : MeasureTheory.Measure α} [MeasureTheory.SFinite μ] [ProbabilityTheory.IsSFiniteKernel κ] {E : Type u_8}
  [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : α × β → E},
  MeasureTheory.Integrable f (μ.compProd κ) → ∫ (x : α × β), f x ∂μ.compProd κ = ∫ (a : α), ∫ (b : β), f (a, b) ∂κ a ∂μ

theorem MeasureTheory.Measure.setIntegral_compProd E1 #

∀ {α : Type u_5} {β : Type u_6} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
  {μ : MeasureTheory.Measure α} [MeasureTheory.SFinite μ] [ProbabilityTheory.IsSFiniteKernel κ] {E : Type u_8}
  [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set α},
  MeasurableSet s →
    ∀ {t : Set β},
      MeasurableSet t →
        ∀ {f : α × β → E},
          MeasureTheory.IntegrableOn f (s ×ˢ t) (μ.compProd κ) →
            ∫ (x : α × β) in s ×ˢ t, f x ∂μ.compProd κ = ∫ (a : α) in s, ∫ (b : β) in t, f (a, b) ∂κ a ∂μ

theorem MeasureTheory.Measure.integrable_compProd_snd_iff E0 #

∀ {α : Type u_5} {β : Type u_6} {E : Type u_7} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  [inst : NormedAddCommGroup E] {κ : ProbabilityTheory.Kernel α β} {μ : MeasureTheory.Measure α} {f : β → E}
  [MeasureTheory.SFinite μ] [ProbabilityTheory.IsSFiniteKernel κ],
  MeasureTheory.AEStronglyMeasurable f (μ.bind ⇑κ) →
    (MeasureTheory.Integrable (fun p ↦ f p.2) (μ.compProd κ) ↔ MeasureTheory.Integrable f (μ.bind ⇑κ))

theorem MeasureTheory.Measure.ae_integrable_of_integrable_comp E1 #

∀ {α : Type u_5} {β : Type u_6} {E : Type u_7} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  [inst : NormedAddCommGroup E] {κ : ProbabilityTheory.Kernel α β} {μ : MeasureTheory.Measure α} {f : β → E},
  MeasureTheory.Integrable f (μ.bind ⇑κ) → ∀ᵐ (x : α) ∂μ, MeasureTheory.Integrable f (κ x)

theorem MeasureTheory.Measure.integrable_integral_norm_of_integrable_comp E1 #

∀ {α : Type u_5} {β : Type u_6} {E : Type u_7} {mα : MeasurableSpace α} {mβ : MeasurableSpace β}
  [inst : NormedAddCommGroup E] {κ : ProbabilityTheory.Kernel α β} {μ : MeasureTheory.Measure α} {f : β → E},
  MeasureTheory.Integrable f (μ.bind ⇑κ) → MeasureTheory.Integrable (fun x ↦ ∫ (y : β), ‖f y‖ ∂κ x) μ