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.Independence.BoundedContinuousFunction

29 declarations. Mathlib docs · Source

Characterizing independence via bounded continuous functions

Given two random variables X : Ω → E and Y : Ω → F such that E and F are Borel spaces satisfying HasOuterApproxClosed, X and Y are independent if for any real bounded continuous functions f and g, ∫ ω, f (X ω) * g (Y ω) ∂P = (∫ ω, f (X ω) ∂P) * (∫ ω, g (Y ω) ∂P).

Consider now X : (s : S) → Ω → E s, with Fintype S and each E s being a Borel space satisfying HasOuterApproxClosed. Then to apply the above result we need that Π s, E s is a Borel space, and therefore that each E s is second countable. We can circumvent this restriction by proving that fun ω s ↦ X s ω and Y are independent if for any family of bounded continuous functions f : (s : S) → E s → ℝ and any bounded continuous function g : F → ℝ we have ∫ ω, ∏ s, f s (X s ω) * g (Y ω) ∂P = ∫ ω, ∏ s, f s (X s ω) ∂P * ∫ ω, g (Y ω) ∂P. We can use this result in the case where S := Unit to deduce the first statement we mentioned.

We take this approach in this file. We first prove pi_indepFun_pi_of_prod_bcf, which allows to prove the result when E and F are product spaces without assuming second countability, and then we deduce the other cases from there.

Building on this, we also prove process_indepFun_process_of_prod_bcf. This time we do not require Fintype S and require the hypothesis to be satisfied for each I : Finset S. Then we similarly deduce other versions where one of the variables is not necessarily a process.

We then turn to independence between an event and a random variable. We prove indicator_indepFun_pi_of_prod_bcf: the indicator of an event A is independent of a finite family of random variables X : (s : S) → Ω → E s if for any family of bounded continuous functions f : (s : S) → E s → ℝ we have ∫ ω in A, ∏ s, f s (X s ω) ∂P = P.real A * ∫ ω, ∏ s, f s (X s ω) ∂P. Once again we deduce other versions from this, and also write versions where X is a stochastic process.

Then we build on that to show that a σ-algebra m is independent from a stochastic process X if for any A such that MeasurableSet[m] A, any I : Finset S and any bounded continuous function f : (Π s : I, E s) → ℝ, we have ∫ ω in A, f (X · ω) ∂P = P.real A * ∫ ω, f (X · ω) ∂P. This again is formulated with different versions. We also provide versions in terms of IndepSets instead of Indep.

Main statement

  • indep_comap_process_of_bcf: A σ-algebra m is independent from a stochastic process X if for any A such that MeasurableSet[m] A, any I : Finset S, and any bounded continuous function f : (Π s : I, E s) → ℝ, we have ∫ ω in A, f (X · ω) ∂P = P.real A * ∫ ω, f (X · ω) ∂P.

Notations

to avoid writing boundedContinuousFunction in the names, which is quite lengthy, we abbreviate it to bcf.

Tags

independence, bounded continuous functions

theorem IndepFun.singleton_indepSets_of_indicator E1 #

∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : Type u_4} [mX : MeasurableSpace 𝓧]
  {A : Set Ω} {X : Ω → 𝓧},
  ProbabilityTheory.IndepFun (A.indicator 1) X P → ProbabilityTheory.IndepSets {A} {s | MeasurableSet s} P

If the indicator of a set A is independent from a variable X, then the set A is independent from the sigma algebra generated by X.

theorem pi_indepFun_pi_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  {F : T → Type u_5} [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)]
  [∀ (s : S), BorelSpace (E s)] [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : (t : T) → TopologicalSpace (F t)]
  [inst_5 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)] [∀ (t : T), HasOuterApproxClosed (F t)]
  {X : (s : S) → Ω → E s} {Y : (t : T) → Ω → F t} [inst_8 : Fintype S] [inst_9 : Fintype T]
  [MeasureTheory.IsFiniteMeasure P],
  (∀ (s : S), AEMeasurable (X s) P) →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (f : (s : S) → BoundedContinuousFunction (E s) ℝ) (g : (t : T) → BoundedContinuousFunction (F t) ℝ),
          ∫ (x : Ω), ((∏ s, ⇑(f s) ∘ X s) * ∏ t, ⇑(g t) ∘ Y t) x ∂P =
            (∫ (x : Ω), (∏ s, ⇑(f s) ∘ X s) x ∂P) * ∫ (x : Ω), (∏ t, ⇑(g t) ∘ Y t) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) (fun ω t ↦ Y t ω) P

theorem pi_indepFun_pi_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  {F : T → Type u_5} [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)]
  [∀ (s : S), BorelSpace (E s)] [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : (t : T) → TopologicalSpace (F t)]
  [inst_5 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)] [∀ (t : T), HasOuterApproxClosed (F t)]
  {X : (s : S) → Ω → E s} {Y : (t : T) → Ω → F t} [MeasureTheory.IsFiniteMeasure P] [Finite S] [Finite T],
  (∀ (s : S), AEMeasurable (X s) P) →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (f : BoundedContinuousFunction ((s : S) → E s) ℝ) (g : BoundedContinuousFunction ((t : T) → F t) ℝ),
          ∫ (x : Ω), (fun ω ↦ (f fun x ↦ X x ω) * g fun x ↦ Y x ω) x ∂P =
            (∫ (x : Ω), (fun ω ↦ f fun x ↦ X x ω) x ∂P) * ∫ (x : Ω), (fun ω ↦ g fun x ↦ Y x ω) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) (fun ω t ↦ Y t ω) P

Two families of random variables $(X_1, ..., X_p)$ and $(Y_1, ..., Y_q)$ are independent if for all real bounded continuous functions $f$ and $g$, $$P[f(X_1, ..., X_p) g(Y_1, ..., Y_q)] = P[f(X_1, ..., X_p)] * P[g(Y_1, ..., Y_q)].$$

theorem indepFun_pi_of_prod_bcf E1 #

∀ {Ω : Type u_1} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {F : T → Type u_5} {G : Type u_6}
  [inst : (t : T) → TopologicalSpace (F t)] [inst_1 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)]
  [∀ (t : T), HasOuterApproxClosed (F t)] [inst_4 : TopologicalSpace G] [inst_5 : MeasurableSpace G] [BorelSpace G]
  [HasOuterApproxClosed G] {Y : (t : T) → Ω → F t} {Z : Ω → G} [inst_8 : Fintype T] [MeasureTheory.IsFiniteMeasure P],
  AEMeasurable Z P →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (f : BoundedContinuousFunction G ℝ) (g : (t : T) → BoundedContinuousFunction (F t) ℝ),
          ∫ (x : Ω), (⇑f ∘ Z * ∏ t, ⇑(g t) ∘ Y t) x ∂P =
            (∫ (x : Ω), (⇑f ∘ Z) x ∂P) * ∫ (x : Ω), (∏ t, ⇑(g t) ∘ Y t) x ∂P) →
        ProbabilityTheory.IndepFun Z (fun ω t ↦ Y t ω) P

theorem indepFun_pi_of_bcf E1 #

∀ {Ω : Type u_1} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {F : T → Type u_5} {G : Type u_6}
  [inst : (t : T) → TopologicalSpace (F t)] [inst_1 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)]
  [∀ (t : T), HasOuterApproxClosed (F t)] [inst_4 : TopologicalSpace G] [inst_5 : MeasurableSpace G] [BorelSpace G]
  [HasOuterApproxClosed G] {Y : (t : T) → Ω → F t} {Z : Ω → G} [MeasureTheory.IsFiniteMeasure P] [Finite T],
  AEMeasurable Z P →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (f : BoundedContinuousFunction G ℝ) (g : BoundedContinuousFunction ((t : T) → F t) ℝ),
          ∫ (x : Ω), (fun ω ↦ f (Z ω) * g fun x ↦ Y x ω) x ∂P =
            (∫ (x : Ω), (⇑f ∘ Z) x ∂P) * ∫ (x : Ω), (fun ω ↦ g fun x ↦ Y x ω) x ∂P) →
        ProbabilityTheory.IndepFun Z (fun ω t ↦ Y t ω) P

theorem pi_indepFun_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4} {H : Type u_7}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : TopologicalSpace H] [inst_5 : MeasurableSpace H] [BorelSpace H]
  [HasOuterApproxClosed H] {X : (s : S) → Ω → E s} {U : Ω → H} [inst_8 : Fintype S] [MeasureTheory.IsFiniteMeasure P],
  (∀ (s : S), AEMeasurable (X s) P) →
    AEMeasurable U P →
      (∀ (f : (s : S) → BoundedContinuousFunction (E s) ℝ) (g : BoundedContinuousFunction H ℝ),
          ∫ (x : Ω), ((∏ s, ⇑(f s) ∘ X s) * ⇑g ∘ U) x ∂P =
            (∫ (x : Ω), (∏ s, ⇑(f s) ∘ X s) x ∂P) * ∫ (x : Ω), (⇑g ∘ U) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) U P

theorem pi_indepFun_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4} {H : Type u_7}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : TopologicalSpace H] [inst_5 : MeasurableSpace H] [BorelSpace H]
  [HasOuterApproxClosed H] {X : (s : S) → Ω → E s} {U : Ω → H} [MeasureTheory.IsFiniteMeasure P] [Finite S],
  (∀ (s : S), AEMeasurable (X s) P) →
    AEMeasurable U P →
      (∀ (f : BoundedContinuousFunction ((s : S) → E s) ℝ) (g : BoundedContinuousFunction H ℝ),
          ∫ (x : Ω), (fun ω ↦ (f fun x ↦ X x ω) * g (U ω)) x ∂P =
            (∫ (x : Ω), (fun ω ↦ f fun x ↦ X x ω) x ∂P) * ∫ (x : Ω), (⇑g ∘ U) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) U P

theorem indepFun_of_bcf E1 #

∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {G : Type u_6} {H : Type u_7}
  [inst : TopologicalSpace G] [inst_1 : MeasurableSpace G] [BorelSpace G] [HasOuterApproxClosed G]
  [inst_4 : TopologicalSpace H] [inst_5 : MeasurableSpace H] [BorelSpace H] [HasOuterApproxClosed H] {Z : Ω → G}
  {U : Ω → H} [MeasureTheory.IsFiniteMeasure P],
  AEMeasurable Z P →
    AEMeasurable U P →
      (∀ (f : BoundedContinuousFunction G ℝ) (g : BoundedContinuousFunction H ℝ),
          ∫ (x : Ω), (⇑f ∘ Z * ⇑g ∘ U) x ∂P = (∫ (x : Ω), (⇑f ∘ Z) x ∂P) * ∫ (x : Ω), (⇑g ∘ U) x ∂P) →
        ProbabilityTheory.IndepFun Z U P

Two random variables $X$ and $Y$ are independent if for all real bounded continuous functions $f$ and $g$, $$P[f(X) g(Y)] = P[f(X)] * P[g(Y)].$$

theorem indicator_indepFun_pi_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [inst_4 : Fintype S]
  [MeasureTheory.IsProbabilityMeasure P] {A : Set Ω},
  MeasureTheory.NullMeasurableSet A P →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (f : (s : S) → BoundedContinuousFunction (E s) ℝ),
          ∫ (ω : Ω) in A, ∏ s, (f s) (X s ω) ∂P = P.real A * ∫ (ω : Ω), ∏ s, (f s) (X s ω) ∂P) →
        ProbabilityTheory.IndepFun (A.indicator 1) (fun ω s ↦ X s ω) P

theorem indicator_indepFun_pi_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P] [Finite S]
  {A : Set Ω},
  MeasureTheory.NullMeasurableSet A P →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (f : BoundedContinuousFunction ((s : S) → E s) ℝ),
          ∫ (ω : Ω) in A, f fun x ↦ X x ω ∂P = P.real A * ∫ (ω : Ω), f fun x ↦ X x ω ∂P) →
        ProbabilityTheory.IndepFun (A.indicator 1) (fun ω s ↦ X s ω) P

The indicator of a set $A$ and a family of random variables $(X_1, ..., X_p)$ are independent if for all real bounded continuous function $f$, $$P[\mathbb{I}_A f(X_1, ..., X_p)] = P(A) P[f(X_1, ..., X_p)].$$

theorem indicator_indepFun_of_bcf E1 #

∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {G : Type u_6} [inst : TopologicalSpace G]
  [inst_1 : MeasurableSpace G] [BorelSpace G] [HasOuterApproxClosed G] {Z : Ω → G}
  [MeasureTheory.IsProbabilityMeasure P] {A : Set Ω},
  MeasureTheory.NullMeasurableSet A P →
    AEMeasurable Z P →
      (∀ (f : BoundedContinuousFunction G ℝ), ∫ (ω : Ω) in A, f (Z ω) ∂P = P.real A * ∫ (ω : Ω), f (Z ω) ∂P) →
        ProbabilityTheory.IndepFun (A.indicator 1) Z P

The indicator of a set $A$ and a random variable $X$ are independent if for all real bounded continuous function $f$, $$P[\mathbb{I}_A f(X)] = P(A) P[f(X)].$$

theorem indepSets_comap_pi_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [inst_4 : Fintype S]
  [MeasureTheory.IsProbabilityMeasure P] {𝒜 : Set (Set Ω)},
  (∀ A ∈ 𝒜, MeasureTheory.NullMeasurableSet A P) →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ A ∈ 𝒜,
          ∀ (f : (s : S) → BoundedContinuousFunction (E s) ℝ),
            ∫ (ω : Ω) in A, ∏ s, (f s) (X s ω) ∂P = P.real A * ∫ (ω : Ω), ∏ s, (f s) (X s ω) ∂P) →
        ProbabilityTheory.IndepSets 𝒜 {A | MeasurableSet A} P

theorem indepSets_comap_pi_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P] [Finite S]
  {𝒜 : Set (Set Ω)},
  (∀ A ∈ 𝒜, MeasureTheory.NullMeasurableSet A P) →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ A ∈ 𝒜,
          ∀ (f : BoundedContinuousFunction ((s : S) → E s) ℝ),
            ∫ (ω : Ω) in A, f fun x ↦ X x ω ∂P = P.real A * ∫ (ω : Ω), f fun x ↦ X x ω ∂P) →
        ProbabilityTheory.IndepSets 𝒜 {A | MeasurableSet A} P

theorem indepSets_comap_of_bcf E1 #

∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {G : Type u_6} [inst : TopologicalSpace G]
  [inst_1 : MeasurableSpace G] [BorelSpace G] [HasOuterApproxClosed G] {Z : Ω → G}
  [MeasureTheory.IsProbabilityMeasure P] {𝒜 : Set (Set Ω)},
  (∀ A ∈ 𝒜, MeasureTheory.NullMeasurableSet A P) →
    AEMeasurable Z P →
      (∀ A ∈ 𝒜, ∀ (f : BoundedContinuousFunction G ℝ), ∫ (ω : Ω) in A, f (Z ω) ∂P = P.real A * ∫ (ω : Ω), f (Z ω) ∂P) →
        ProbabilityTheory.IndepSets 𝒜 {A | MeasurableSet A} P

theorem indep_comap_pi_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {m mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [inst_4 : Fintype S]
  [MeasureTheory.IsProbabilityMeasure P],
  m ≤ mΩ →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (A : Set Ω),
          MeasurableSet A →
            ∀ (f : (s : S) → BoundedContinuousFunction (E s) ℝ),
              ∫ (ω : Ω) in A, ∏ s, (f s) (X s ω) ∂P = P.real A * ∫ (ω : Ω), ∏ s, (f s) (X s ω) ∂P) →
        ProbabilityTheory.Indep m (MeasurableSpace.comap (fun ω s ↦ X s ω) MeasurableSpace.pi) P

theorem indep_comap_pi_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {m mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P] [Finite S],
  m ≤ mΩ →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (A : Set Ω),
          MeasurableSet A →
            ∀ (f : BoundedContinuousFunction ((s : S) → E s) ℝ),
              ∫ (ω : Ω) in A, f fun x ↦ X x ω ∂P = P.real A * ∫ (ω : Ω), f fun x ↦ X x ω ∂P) →
        ProbabilityTheory.Indep m (MeasurableSpace.comap (fun ω s ↦ X s ω) MeasurableSpace.pi) P

A sigma-algebra $\mathcal{A}$ and a family of random variables $(X_1, ..., X_p)$ are independent if for all set $A \in \mathcal{A}$ and for all real bounded continuous function $f$, $$P[\mathbb{I}_A f(X_1, ..., X_p)] = P(A) P[f(X_1, ..., X_p)].$$

theorem indep_comap_of_bcf E1 #

∀ {Ω : Type u_1} {m mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {G : Type u_6} [inst : TopologicalSpace G]
  [inst_1 : MeasurableSpace G] [BorelSpace G] [HasOuterApproxClosed G] {Z : Ω → G}
  [MeasureTheory.IsProbabilityMeasure P],
  m ≤ mΩ →
    AEMeasurable Z P →
      (∀ (A : Set Ω),
          MeasurableSet A →
            ∀ (f : BoundedContinuousFunction G ℝ), ∫ (ω : Ω) in A, f (Z ω) ∂P = P.real A * ∫ (ω : Ω), f (Z ω) ∂P) →
        ProbabilityTheory.Indep m (MeasurableSpace.comap Z inferInstance) P

A sigma-algebra $\mathcal{A}$ and a random variable $X$ are independent if for all set $A \in \mathcal{A}$ and for all real bounded continuous function $f$, $$P[\mathbb{I}_A f(X)] = P(A) P[f(X)].$$

theorem process_indepFun_process_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  {F : T → Type u_5} [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)]
  [∀ (s : S), BorelSpace (E s)] [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : (t : T) → TopologicalSpace (F t)]
  [inst_5 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)] [∀ (t : T), HasOuterApproxClosed (F t)]
  {X : (s : S) → Ω → E s} {Y : (t : T) → Ω → F t} [MeasureTheory.IsZeroOrProbabilityMeasure P],
  (∀ (s : S), AEMeasurable (X s) P) →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (I : Finset S) (J : Finset T) (f : (s : ↥I) → BoundedContinuousFunction (E ↑s) ℝ)
          (g : (t : ↥J) → BoundedContinuousFunction (F ↑t) ℝ),
          ∫ (x : Ω), ((∏ s, ⇑(f s) ∘ X ↑s) * ∏ t, ⇑(g t) ∘ Y ↑t) x ∂P =
            (∫ (x : Ω), (∏ s, ⇑(f s) ∘ X ↑s) x ∂P) * ∫ (x : Ω), (∏ t, ⇑(g t) ∘ Y ↑t) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) (fun ω t ↦ Y t ω) P

theorem process_indepFun_process_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  {F : T → Type u_5} [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)]
  [∀ (s : S), BorelSpace (E s)] [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : (t : T) → TopologicalSpace (F t)]
  [inst_5 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)] [∀ (t : T), HasOuterApproxClosed (F t)]
  {X : (s : S) → Ω → E s} {Y : (t : T) → Ω → F t} [MeasureTheory.IsZeroOrProbabilityMeasure P],
  (∀ (s : S), AEMeasurable (X s) P) →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (I : Finset S) (J : Finset T) (f : BoundedContinuousFunction ((s : ↥I) → E ↑s) ℝ)
          (g : BoundedContinuousFunction ((t : ↥J) → F ↑t) ℝ),
          ∫ (x : Ω), (fun ω ↦ (f fun x ↦ X (↑x) ω) * g fun x ↦ Y (↑x) ω) x ∂P =
            (∫ (x : Ω), (fun ω ↦ f fun x ↦ X (↑x) ω) x ∂P) * ∫ (x : Ω), (fun ω ↦ g fun x ↦ Y (↑x) ω) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) (fun ω t ↦ Y t ω) P

Two stochastic processes $(X_s){s \in S}$ and $(Y_t){t \in T}$ are independent if for all $s_1, ..., s_p \in S, t_1, ..., t_q \in T$ and for all real bounded continuous functions $f$ and $g$, $$P[f(X_{s_1}, ..., X_{s_p}) g(Y_{t_1}, ..., Y_{t_q})] = P[f(X_{s_1}, ..., X_{s_p})] * P[g(Y_{t_1}, ..., Y_{t_q})].$$

theorem indepFun_process_of_prod_bcf E1 #

∀ {Ω : Type u_1} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {F : T → Type u_5} {G : Type u_6}
  [inst : (t : T) → TopologicalSpace (F t)] [inst_1 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)]
  [∀ (t : T), HasOuterApproxClosed (F t)] [inst_4 : TopologicalSpace G] [inst_5 : MeasurableSpace G] [BorelSpace G]
  [HasOuterApproxClosed G] {Y : (t : T) → Ω → F t} {Z : Ω → G} [MeasureTheory.IsZeroOrProbabilityMeasure P],
  AEMeasurable Z P →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (f : BoundedContinuousFunction G ℝ) (J : Finset T) (g : (t : ↥J) → BoundedContinuousFunction (F ↑t) ℝ),
          ∫ (x : Ω), (⇑f ∘ Z * ∏ t, ⇑(g t) ∘ Y ↑t) x ∂P =
            (∫ (x : Ω), (⇑f ∘ Z) x ∂P) * ∫ (x : Ω), (∏ t, ⇑(g t) ∘ Y ↑t) x ∂P) →
        ProbabilityTheory.IndepFun Z (fun ω t ↦ Y t ω) P

theorem indepFun_process_of_bcf E1 #

∀ {Ω : Type u_1} {T : Type u_3} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {F : T → Type u_5} {G : Type u_6}
  [inst : (t : T) → TopologicalSpace (F t)] [inst_1 : (t : T) → MeasurableSpace (F t)] [∀ (t : T), BorelSpace (F t)]
  [∀ (t : T), HasOuterApproxClosed (F t)] [inst_4 : TopologicalSpace G] [inst_5 : MeasurableSpace G] [BorelSpace G]
  [HasOuterApproxClosed G] {Y : (t : T) → Ω → F t} {Z : Ω → G} [MeasureTheory.IsZeroOrProbabilityMeasure P],
  AEMeasurable Z P →
    (∀ (t : T), AEMeasurable (Y t) P) →
      (∀ (f : BoundedContinuousFunction G ℝ) (J : Finset T) (g : BoundedContinuousFunction ((t : ↥J) → F ↑t) ℝ),
          ∫ (x : Ω), (fun ω ↦ f (Z ω) * g fun x ↦ Y (↑x) ω) x ∂P =
            (∫ (x : Ω), (⇑f ∘ Z) x ∂P) * ∫ (x : Ω), (fun ω ↦ g fun x ↦ Y (↑x) ω) x ∂P) →
        ProbabilityTheory.IndepFun Z (fun ω t ↦ Y t ω) P

theorem process_indepFun_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4} {H : Type u_7}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : TopologicalSpace H] [inst_5 : MeasurableSpace H] [BorelSpace H]
  [HasOuterApproxClosed H] {X : (s : S) → Ω → E s} {U : Ω → H} [MeasureTheory.IsZeroOrProbabilityMeasure P],
  (∀ (s : S), AEMeasurable (X s) P) →
    AEMeasurable U P →
      (∀ (I : Finset S) (f : (s : ↥I) → BoundedContinuousFunction (E ↑s) ℝ) (g : BoundedContinuousFunction H ℝ),
          ∫ (x : Ω), ((∏ s, ⇑(f s) ∘ X ↑s) * ⇑g ∘ U) x ∂P =
            (∫ (x : Ω), (∏ s, ⇑(f s) ∘ X ↑s) x ∂P) * ∫ (x : Ω), (⇑g ∘ U) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) U P

theorem process_indepFun_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4} {H : Type u_7}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] [inst_4 : TopologicalSpace H] [inst_5 : MeasurableSpace H] [BorelSpace H]
  [HasOuterApproxClosed H] {X : (s : S) → Ω → E s} {U : Ω → H} [MeasureTheory.IsZeroOrProbabilityMeasure P],
  (∀ (s : S), AEMeasurable (X s) P) →
    AEMeasurable U P →
      (∀ (I : Finset S) (f : BoundedContinuousFunction ((s : ↥I) → E ↑s) ℝ) (g : BoundedContinuousFunction H ℝ),
          ∫ (x : Ω), (fun ω ↦ (f fun x ↦ X (↑x) ω) * g (U ω)) x ∂P =
            (∫ (x : Ω), (fun ω ↦ f fun x ↦ X (↑x) ω) x ∂P) * ∫ (x : Ω), (⇑g ∘ U) x ∂P) →
        ProbabilityTheory.IndepFun (fun ω s ↦ X s ω) U P

theorem indicator_indepFun_process_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P] {A : Set Ω},
  MeasureTheory.NullMeasurableSet A P →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (I : Finset S) (f : (s : ↥I) → BoundedContinuousFunction (E ↑s) ℝ),
          ∫ (ω : Ω) in A, ∏ s, (f s) (X (↑s) ω) ∂P = P.real A * ∫ (ω : Ω), ∏ s, (f s) (X (↑s) ω) ∂P) →
        ProbabilityTheory.IndepFun (A.indicator 1) (fun ω s ↦ X s ω) P

theorem indicator_indepFun_process_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P] {A : Set Ω},
  MeasureTheory.NullMeasurableSet A P →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (I : Finset S) (f : BoundedContinuousFunction ((s : ↥I) → E ↑s) ℝ),
          ∫ (ω : Ω) in A, f fun x ↦ X (↑x) ω ∂P = P.real A * ∫ (ω : Ω), f fun x ↦ X (↑x) ω ∂P) →
        ProbabilityTheory.IndepFun (A.indicator 1) (fun ω s ↦ X s ω) P

The indicator of a set $A$ and a stochastic process $(X_s){s \in S}$ are independent if for all $s_1, ..., s_p \in S$ and for all real bounded continuous function $f$, $$P[\mathbb{I}A f(X{s_1}, ..., X{s_p})] = P(A) P[f(X_{s_1}, ..., X_{s_p})].$$

theorem indepSets_comap_process_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P]
  {𝒜 : Set (Set Ω)},
  (∀ A ∈ 𝒜, MeasureTheory.NullMeasurableSet A P) →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ A ∈ 𝒜,
          ∀ (I : Finset S) (f : (s : ↥I) → BoundedContinuousFunction (E ↑s) ℝ),
            ∫ (ω : Ω) in A, ∏ s, (f s) (X (↑s) ω) ∂P = P.real A * ∫ (ω : Ω), ∏ s, (f s) (X (↑s) ω) ∂P) →
        ProbabilityTheory.IndepSets 𝒜 {A | MeasurableSet A} P

theorem indepSets_comap_process_of_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P]
  {𝒜 : Set (Set Ω)},
  (∀ A ∈ 𝒜, MeasureTheory.NullMeasurableSet A P) →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ A ∈ 𝒜,
          ∀ (I : Finset S) (f : BoundedContinuousFunction ((s : ↥I) → E ↑s) ℝ),
            ∫ (ω : Ω) in A, f fun x ↦ X (↑x) ω ∂P = P.real A * ∫ (ω : Ω), f fun x ↦ X (↑x) ω ∂P) →
        ProbabilityTheory.IndepSets 𝒜 {A | MeasurableSet A} P

theorem indep_comap_process_of_prod_bcf E1 #

∀ {Ω : Type u_1} {S : Type u_2} {m mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P],
  m ≤ mΩ →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (A : Set Ω),
          MeasurableSet A →
            ∀ (I : Finset S) (f : (s : ↥I) → BoundedContinuousFunction (E ↑s) ℝ),
              ∫ (ω : Ω) in A, ∏ s, (f s) (X (↑s) ω) ∂P = P.real A * ∫ (ω : Ω), ∏ s, (f s) (X (↑s) ω) ∂P) →
        ProbabilityTheory.Indep m (MeasurableSpace.comap (fun ω s ↦ X s ω) MeasurableSpace.pi) P

theorem indep_comap_process_of_bcf E3 #

∀ {Ω : Type u_1} {S : Type u_2} {m mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {E : S → Type u_4}
  [inst : (s : S) → TopologicalSpace (E s)] [inst_1 : (s : S) → MeasurableSpace (E s)] [∀ (s : S), BorelSpace (E s)]
  [∀ (s : S), HasOuterApproxClosed (E s)] {X : (s : S) → Ω → E s} [MeasureTheory.IsProbabilityMeasure P],
  m ≤ mΩ →
    (∀ (s : S), AEMeasurable (X s) P) →
      (∀ (A : Set Ω),
          MeasurableSet A →
            ∀ (I : Finset S) (f : BoundedContinuousFunction ((s : ↥I) → E ↑s) ℝ),
              ∫ (ω : Ω) in A, f fun x ↦ X (↑x) ω ∂P = P.real A * ∫ (ω : Ω), f fun x ↦ X (↑x) ω ∂P) →
        ProbabilityTheory.Indep m (MeasurableSpace.comap (fun ω s ↦ X s ω) MeasurableSpace.pi) P

A sigma-algebra $\mathcal{A}$ and a stochastic process $(X_s){s \in S}$ are independent if for all $A \in \mathcal{A}$, for all $s_1, ..., s_p \in S$ and for all real bounded continuous function $f$, $$P[\mathbb{I}A f(X{s_1}, ..., X{s_p})] = P(A) P[f(X_{s_1}, ..., X_{s_p})].$$