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.Conditional

108 declarations. Mathlib docs · Source

Conditional Independence

We define conditional independence of sets/σ-algebras/functions with respect to a σ-algebra.

Two σ-algebras m₁ and m₂ are conditionally independent given a third σ-algebra m' if for all m₁-measurable sets t₁ and m₂-measurable sets t₂, μ⟦t₁ ∩ t₂ | m'⟧ =ᵐ[μ] μ⟦t₁ | m'⟧ * μ⟦t₂ | m'⟧.

On standard Borel spaces, the conditional expectation with respect to m' defines a kernel ProbabilityTheory.condExpKernel, and the definition above is equivalent to ∀ᵐ ω ∂μ, condExpKernel μ m' ω (t₁ ∩ t₂) = condExpKernel μ m' ω t₁ * condExpKernel μ m' ω t₂. We use this property as the definition of conditional independence.

Main definitions

We provide four definitions of conditional independence:

  • iCondIndepSets: conditional independence of a family of sets of sets pi : ι → Set (Set Ω). This is meant to be used with π-systems.
  • iCondIndep: conditional independence of a family of measurable space structures m : ι → MeasurableSpace Ω,
  • iCondIndepSet: conditional independence of a family of sets s : ι → Set Ω,
  • iCondIndepFun: conditional independence of a family of functions. For measurable spaces m : Π (i : ι), MeasurableSpace (β i), we consider functions f : Π (i : ι), Ω → β i.

Additionally, we provide four corresponding statements for two measurable space structures (resp. sets of sets, sets, functions) instead of a family. These properties are denoted by the same names as for a family, but without the starting i, for example CondIndepFun is the version of iCondIndepFun for two functions.

Main statements

  • ProbabilityTheory.iCondIndepSets.iCondIndep: if π-systems are conditionally independent as sets of sets, then the measurable space structures they generate are conditionally independent.
  • ProbabilityTheory.condIndepSets.condIndep: variant with two π-systems.

Notation

  • X ⟂ᵢ[Z, hZ; μ] Y for CondIndepFun (MeasurableSpace.comap Z inferInstance) hZ.comap_le X Y μ, independence of X and Y given Z.
  • X ⟂ᵢ[Z, hZ] Y for the cases of μ = volume.

These notations are scoped in the ProbabilityTheory namespace.

Implementation notes

The definitions of conditional independence in this file are a particular case of independence with respect to a kernel and a measure, as defined in the file Mathlib/Probability/Independence/Kernel.lean. The kernel used is ProbabilityTheory.condExpKernel.

Deducing CondIndep from iCondIndep

π-system lemma

Conditional independence of measurable spaces is equivalent to conditional independence of generating π-systems.

Conditional independence of σ-algebras implies conditional independence of

generating π-systems

Conditional independence of generating π-systems implies conditional independence of

σ-algebras

Conditional independence of measurable sets

Conditional independence of random variables

theorem ProbabilityTheory.iCondIndep.congr_simp E1 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' m'_1 : MeasurableSpace Ω) (e_m' : m' = m'_1) {mΩ : MeasurableSpace Ω}
  [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ) (m m_1 : ι → MeasurableSpace Ω),
  m = m_1 →
    ∀ (μ μ_1 : MeasureTheory.Measure Ω) (e_μ : μ = μ_1) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndep m' hm' m μ = ProbabilityTheory.iCondIndep m'_1 ⋯ m_1 μ_1

theorem ProbabilityTheory.iCondIndepFun.congr_simp E1 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' m'_1 : MeasurableSpace Ω) (e_m' : m' = m'_1) {mΩ : MeasurableSpace Ω}
  [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ) {β : ι → Type u_3} [m : (x : ι) → MeasurableSpace (β x)]
  (f f_1 : (x : ι) → Ω → β x),
  f = f_1 →
    ∀ (μ μ_1 : MeasureTheory.Measure Ω) (e_μ : μ = μ_1) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndepFun m' hm' f μ = ProbabilityTheory.iCondIndepFun m'_1 ⋯ f_1 μ_1

def ProbabilityTheory.iCondIndepSets E3 #

{Ω : Type u_1} →
  {ι : Type u_2} →
    (m' : MeasurableSpace Ω) →
      {mΩ : MeasurableSpace Ω} →
        [StandardBorelSpace Ω] →
          m' ≤ mΩ →
            (ι → Set (Set Ω)) →
              (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.iCondIndepSets._auto_1) →
                [MeasureTheory.IsFiniteMeasure μ] → Prop

A family of sets of sets π : ι → Set (Set Ω) is conditionally independent given m' with respect to a measure μ if for any finite set of indices s = {i_1, ..., i_n}, for any sets f i_1 ∈ π i_1, ..., f i_n ∈ π i_n, then μ⟦⋂ i in s, f i | m'⟧ =ᵐ[μ] ∏ i ∈ s, μ⟦f i | m'⟧. See ProbabilityTheory.iCondIndepSets_iff. It will be used for families of π-systems.

def ProbabilityTheory.CondIndepSets E1 #

{Ω : Type u_1} →
  (m' : MeasurableSpace Ω) →
    {mΩ : MeasurableSpace Ω} →
      [StandardBorelSpace Ω] →
        m' ≤ mΩ →
          Set (Set Ω) →
            Set (Set Ω) →
              (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.CondIndepSets._auto_1) →
                [MeasureTheory.IsFiniteMeasure μ] → Prop

Two sets of sets s₁, s₂ are conditionally independent given m' with respect to a measure μ if for any sets t₁ ∈ s₁, t₂ ∈ s₂, then μ⟦t₁ ∩ t₂ | m'⟧ =ᵐ[μ] μ⟦t₁ | m'⟧ * μ⟦t₂ | m'⟧. See ProbabilityTheory.condIndepSets_iff.

def ProbabilityTheory.iCondIndep E3 #

{Ω : Type u_1} →
  {ι : Type u_2} →
    (m' : MeasurableSpace Ω) →
      {mΩ : MeasurableSpace Ω} →
        [StandardBorelSpace Ω] →
          m' ≤ mΩ →
            (ι → MeasurableSpace Ω) →
              (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.iCondIndep._auto_1) →
                [MeasureTheory.IsFiniteMeasure μ] → Prop

A family of measurable space structures (i.e. of σ-algebras) is conditionally independent given m' with respect to a measure μ (typically defined on a finer σ-algebra) if the family of sets of measurable sets they define is independent. m : ι → MeasurableSpace Ω is conditionally independent given m' with respect to measure μ if for any finite set of indices s = {i_1, ..., i_n}, for any sets f i_1 ∈ m i_1, ..., f i_n ∈ m i_n, then μ⟦⋂ i in s, f i | m'⟧ =ᵐ[μ] ∏ i ∈ s, μ⟦f i | m'⟧ . See ProbabilityTheory.iCondIndep_iff.

def ProbabilityTheory.CondIndep E1 #

{Ω : Type u_1} →
  (m' : MeasurableSpace Ω) →
    MeasurableSpace Ω →
      MeasurableSpace Ω →
        {mΩ : MeasurableSpace Ω} →
          [StandardBorelSpace Ω] →
            m' ≤ mΩ →
              (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.CondIndep._auto_1) →
                [MeasureTheory.IsFiniteMeasure μ] → Prop

Two measurable space structures (or σ-algebras) m₁, m₂ are conditionally independent given m' with respect to a measure μ (defined on a third σ-algebra) if for any sets t₁ ∈ m₁, t₂ ∈ m₂, μ⟦t₁ ∩ t₂ | m'⟧ =ᵐ[μ] μ⟦t₁ | m'⟧ * μ⟦t₂ | m'⟧. See ProbabilityTheory.condIndep_iff.

def ProbabilityTheory.iCondIndepSet E3 #

{Ω : Type u_1} →
  {ι : Type u_2} →
    (m' : MeasurableSpace Ω) →
      {mΩ : MeasurableSpace Ω} →
        [StandardBorelSpace Ω] →
          m' ≤ mΩ →
            (ι → Set Ω) →
              (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.iCondIndepSet._auto_1) →
                [MeasureTheory.IsFiniteMeasure μ] → Prop

A family of sets is conditionally independent if the family of measurable space structures they generate is conditionally independent. For a set s, the generated measurable space has measurable sets ∅, s, sᶜ, univ. See ProbabilityTheory.iCondIndepSet_iff.

def ProbabilityTheory.CondIndepSet E1 #

{Ω : Type u_1} →
  (m' : MeasurableSpace Ω) →
    {mΩ : MeasurableSpace Ω} →
      [StandardBorelSpace Ω] →
        m' ≤ mΩ →
          Set Ω →
            Set Ω →
              (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.CondIndepSet._auto_1) →
                [MeasureTheory.IsFiniteMeasure μ] → Prop

Two sets are conditionally independent if the two measurable space structures they generate are conditionally independent. For a set s, the generated measurable space structure has measurable sets ∅, s, sᶜ, univ. See ProbabilityTheory.condIndepSet_iff.

def ProbabilityTheory.iCondIndepFun E3 #

{Ω : Type u_1} →
  {ι : Type u_2} →
    (m' : MeasurableSpace Ω) →
      {mΩ : MeasurableSpace Ω} →
        [StandardBorelSpace Ω] →
          m' ≤ mΩ →
            {β : ι → Type u_3} →
              [m : (x : ι) → MeasurableSpace (β x)] →
                ((x : ι) → Ω → β x) →
                  (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.iCondIndepFun._auto_1) →
                    [MeasureTheory.IsFiniteMeasure μ] → Prop

A family of functions defined on the same space Ω and taking values in possibly different spaces, each with a measurable space structure, is conditionally independent if the family of measurable space structures they generate on Ω is conditionally independent. For a function g with codomain having measurable space structure m, the generated measurable space structure is m.comap g. See ProbabilityTheory.iCondIndepFun_iff.

def ProbabilityTheory.CondIndepFun E3 #

{Ω : Type u_1} →
  (m' : MeasurableSpace Ω) →
    {mΩ : MeasurableSpace Ω} →
      [StandardBorelSpace Ω] →
        m' ≤ mΩ →
          {β : Type u_3} →
            {γ : Type u_4} →
              [MeasurableSpace β] →
                [MeasurableSpace γ] →
                  (Ω → β) →
                    (Ω → γ) →
                      (μ : autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.CondIndepFun._auto_1) →
                        [MeasureTheory.IsFiniteMeasure μ] → Prop

Two functions are conditionally independent if the two measurable space structures they generate are conditionally independent. For a function f with codomain having measurable space structure m, the generated measurable space structure is m.comap f. See ProbabilityTheory.condIndepFun_iff. We use the notation X ⟂ᵢ[Z, hZ; μ] Y to write that X and Y are conditionally independent given (the σ-algebra generated by) Z (scoped in ProbabilityTheory).

def ProbabilityTheory.«term_⟂ᵢ[_,_;_]_» E1 #

Lean.TrailingParserDescr

Two functions are conditionally independent if the two measurable space structures they generate are conditionally independent. For a function f with codomain having measurable space structure m, the generated measurable space structure is m.comap f. See ProbabilityTheory.condIndepFun_iff. We use the notation X ⟂ᵢ[Z, hZ; μ] Y to write that X and Y are conditionally independent given (the σ-algebra generated by) Z (scoped in ProbabilityTheory).

def ProbabilityTheory.«term_⟂ᵢ[_,_]_» E1 #

Lean.TrailingParserDescr

Two functions are conditionally independent if the two measurable space structures they generate are conditionally independent. For a function f with codomain having measurable space structure m, the generated measurable space structure is m.comap f. See ProbabilityTheory.condIndepFun_iff. We use the notation X ⟂ᵢ[Z, hZ; μ] Y to write that X and Y are conditionally independent given (the σ-algebra generated by) Z (scoped in ProbabilityTheory).

theorem ProbabilityTheory.iCondIndepSets_iff E0 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (π : ι → Set (Set Ω)),
  (∀ (i : ι), ∀ s ∈ π i, MeasurableSet s) →
    ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndepSets m' hm' π μ ↔
        ∀ (s : Finset ι) {f : ι → Set Ω},
          (∀ i ∈ s, f i ∈ π i) →
            μ[(⋂ i ∈ s, f i).indicator fun ω ↦ 1 | m'] =ᵐ[μ] ∏ i ∈ s, μ[(f i).indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.condIndepSets_iff E0 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  (s1 s2 : Set (Set Ω)),
  (∀ s ∈ s1, MeasurableSet s) →
    (∀ s ∈ s2, MeasurableSet s) →
      ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
        ProbabilityTheory.CondIndepSets m' hm' s1 s2 μ ↔
          ∀ (t1 t2 : Set Ω),
            t1 ∈ s1 →
              t2 ∈ s2 →
                μ[(t1 ∩ t2).indicator fun ω ↦ 1 | m'] =ᵐ[μ]
                  μ[t1.indicator fun ω ↦ 1 | m'] * μ[t2.indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.iCondIndepSets_singleton_iff E0 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (s : ι → Set Ω),
  (∀ (i : ι), MeasurableSet (s i)) →
    ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndepSets m' hm' (fun i ↦ {s i}) μ ↔
        ∀ (S : Finset ι), μ[(⋂ i ∈ S, s i).indicator fun ω ↦ 1 | m'] =ᵐ[μ] ∏ i ∈ S, μ[(s i).indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.condIndepSets_singleton_iff E0 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s t : Set Ω},
  MeasurableSet s →
    MeasurableSet t →
      (ProbabilityTheory.CondIndepSets m' hm' {s} {t} μ ↔
        μ[(s ∩ t).indicator fun ω ↦ 1 | m'] =ᵐ[μ] μ[s.indicator fun ω ↦ 1 | m'] * μ[t.indicator fun ω ↦ 1 | m'])

theorem ProbabilityTheory.iCondIndep_iff_iCondIndepSets E1 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (m : ι → MeasurableSpace Ω) (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.iCondIndep m' hm' m μ ↔ ProbabilityTheory.iCondIndepSets m' hm' (fun x ↦ {s | MeasurableSet s}) μ

theorem ProbabilityTheory.iCondIndep_iff E0 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (m : ι → MeasurableSpace Ω),
  (∀ (i : ι), m i ≤ mΩ) →
    ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndep m' hm' m μ ↔
        ∀ (s : Finset ι) {f : ι → Set Ω},
          (∀ i ∈ s, MeasurableSet (f i)) →
            μ[(⋂ i ∈ s, f i).indicator fun ω ↦ 1 | m'] =ᵐ[μ] ∏ i ∈ s, μ[(f i).indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.condIndep_iff_condIndepSets E1 #

∀ {Ω : Type u_1} (m' m₁ m₂ : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ ↔
    ProbabilityTheory.CondIndepSets m' hm' {s | MeasurableSet s} {s | MeasurableSet s} μ

theorem ProbabilityTheory.condIndep_iff E0 #

∀ {Ω : Type u_1} (m' m₁ m₂ : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ),
  m₁ ≤ mΩ →
    m₂ ≤ mΩ →
      ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
        ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ ↔
          ∀ (t1 t2 : Set Ω),
            MeasurableSet t1 →
              MeasurableSet t2 →
                μ[(t1 ∩ t2).indicator fun ω ↦ 1 | m'] =ᵐ[μ]
                  μ[t1.indicator fun ω ↦ 1 | m'] * μ[t2.indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.iCondIndepSet_iff_iCondIndep E1 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (s : ι → Set Ω) (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.iCondIndepSet m' hm' s μ ↔
    ProbabilityTheory.iCondIndep m' hm' (fun i ↦ MeasurableSpace.generateFrom {s i}) μ

theorem ProbabilityTheory.iCondIndepSet_iff_iCondIndepSets_singleton E1 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (s : ι → Set Ω),
  (∀ (i : ι), MeasurableSet (s i)) →
    ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndepSet m' hm' s μ ↔ ProbabilityTheory.iCondIndepSets m' hm' (fun i ↦ {s i}) μ

theorem ProbabilityTheory.iCondIndepSet_iff E0 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) (s : ι → Set Ω),
  (∀ (i : ι), MeasurableSet (s i)) →
    ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndepSet m' hm' s μ ↔
        ∀ (S : Finset ι), μ[(⋂ i ∈ S, s i).indicator fun ω ↦ 1 | m'] =ᵐ[μ] ∏ i ∈ S, μ[(s i).indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.condIndepSet_iff_condIndep E1 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  (s t : Set Ω) (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndepSet m' hm' s t μ ↔
    ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom {s}) (MeasurableSpace.generateFrom {t}) hm' μ

theorem ProbabilityTheory.condIndepSet_iff_condIndepSets_singleton E1 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  {s t : Set Ω},
  MeasurableSet s →
    MeasurableSet t →
      ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
        ProbabilityTheory.CondIndepSet m' hm' s t μ ↔ ProbabilityTheory.CondIndepSets m' hm' {s} {t} μ

theorem ProbabilityTheory.condIndepSet_iff E0 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  (s t : Set Ω),
  MeasurableSet s →
    MeasurableSet t →
      ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
        ProbabilityTheory.CondIndepSet m' hm' s t μ ↔
          μ[(s ∩ t).indicator fun ω ↦ 1 | m'] =ᵐ[μ] μ[s.indicator fun ω ↦ 1 | m'] * μ[t.indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.iCondIndepFun_iff_iCondIndep E1 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) {β : ι → Type u_3} (m : (x : ι) → MeasurableSpace (β x)) (f : (x : ι) → Ω → β x)
  (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.iCondIndepFun m' hm' f μ ↔
    ProbabilityTheory.iCondIndep m' hm' (fun x ↦ MeasurableSpace.comap (f x) (m x)) μ

theorem ProbabilityTheory.iCondIndepFun_iff E0 #

∀ {Ω : Type u_1} {ι : Type u_2} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  (hm' : m' ≤ mΩ) {β : ι → Type u_3} (m : (x : ι) → MeasurableSpace (β x)) (f : (x : ι) → Ω → β x),
  (∀ (i : ι), Measurable (f i)) →
    ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
      ProbabilityTheory.iCondIndepFun m' hm' f μ ↔
        ∀ (s : Finset ι) {g : ι → Set Ω},
          (∀ i ∈ s, MeasurableSet (g i)) →
            μ[(⋂ i ∈ s, g i).indicator fun ω ↦ 1 | m'] =ᵐ[μ] ∏ i ∈ s, μ[(g i).indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.condIndepFun_iff_condIndep E1 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  {β : Type u_3} {γ : Type u_4} [mβ : MeasurableSpace β] [mγ : MeasurableSpace γ] (f : Ω → β) (g : Ω → γ)
  (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
    ProbabilityTheory.CondIndep m' (MeasurableSpace.comap f mβ) (MeasurableSpace.comap g mγ) hm' μ

theorem ProbabilityTheory.condIndepFun_iff E0 #

∀ {Ω : Type u_1} (m' : MeasurableSpace Ω) {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] (hm' : m' ≤ mΩ)
  {β : Type u_3} {γ : Type u_4} [mβ : MeasurableSpace β] [mγ : MeasurableSpace γ] (f : Ω → β) (g : Ω → γ),
  Measurable f →
    Measurable g →
      ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
        ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
          ∀ (t1 t2 : Set Ω),
            MeasurableSet t1 →
              MeasurableSet t2 →
                μ[(t1 ∩ t2).indicator fun ω ↦ 1 | m'] =ᵐ[μ]
                  μ[t1.indicator fun ω ↦ 1 | m'] * μ[t2.indicator fun ω ↦ 1 | m']

theorem ProbabilityTheory.CondIndepSets.symm E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s₁ s₂ : Set (Set Ω)},
  ProbabilityTheory.CondIndepSets m' hm' s₁ s₂ μ → ProbabilityTheory.CondIndepSets m' hm' s₂ s₁ μ

theorem ProbabilityTheory.condIndepSets_of_condIndepSets_of_le_left E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s₁ s₂ s₃ : Set (Set Ω)},
  ProbabilityTheory.CondIndepSets m' hm' s₁ s₂ μ → s₃ ⊆ s₁ → ProbabilityTheory.CondIndepSets m' hm' s₃ s₂ μ

theorem ProbabilityTheory.condIndepSets_of_condIndepSets_of_le_right E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s₁ s₂ s₃ : Set (Set Ω)},
  ProbabilityTheory.CondIndepSets m' hm' s₁ s₂ μ → s₃ ⊆ s₂ → ProbabilityTheory.CondIndepSets m' hm' s₁ s₃ μ

theorem ProbabilityTheory.CondIndepSets.union E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s₁ s₂ s' : Set (Set Ω)},
  ProbabilityTheory.CondIndepSets m' hm' s₁ s' μ →
    ProbabilityTheory.CondIndepSets m' hm' s₂ s' μ → ProbabilityTheory.CondIndepSets m' hm' (s₁ ∪ s₂) s' μ

theorem ProbabilityTheory.CondIndepSets.union_iff E0 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s₁ s₂ s' : Set (Set Ω)},
  ProbabilityTheory.CondIndepSets m' hm' (s₁ ∪ s₂) s' μ ↔
    ProbabilityTheory.CondIndepSets m' hm' s₁ s' μ ∧ ProbabilityTheory.CondIndepSets m' hm' s₂ s' μ

theorem ProbabilityTheory.CondIndepSets.iUnion E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set (Set Ω)} {s' : Set (Set Ω)},
  (∀ (n : ι), ProbabilityTheory.CondIndepSets m' hm' (s n) s' μ) →
    ProbabilityTheory.CondIndepSets m' hm' (⋃ n, s n) s' μ

theorem ProbabilityTheory.CondIndepSets.biUnion E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set (Set Ω)} {s' : Set (Set Ω)}
  {u : Set ι},
  (∀ n ∈ u, ProbabilityTheory.CondIndepSets m' hm' (s n) s' μ) →
    ProbabilityTheory.CondIndepSets m' hm' (⋃ n ∈ u, s n) s' μ

theorem ProbabilityTheory.CondIndepSets.inter E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s₁ s' : Set (Set Ω)} (s₂ : Set (Set Ω)),
  ProbabilityTheory.CondIndepSets m' hm' s₁ s' μ → ProbabilityTheory.CondIndepSets m' hm' (s₁ ∩ s₂) s' μ

theorem ProbabilityTheory.CondIndepSets.iInter E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set (Set Ω)} {s' : Set (Set Ω)},
  (∃ n, ProbabilityTheory.CondIndepSets m' hm' (s n) s' μ) → ProbabilityTheory.CondIndepSets m' hm' (⋂ n, s n) s' μ

theorem ProbabilityTheory.CondIndepSets.bInter E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set (Set Ω)} {s' : Set (Set Ω)}
  {u : Set ι},
  (∃ n ∈ u, ProbabilityTheory.CondIndepSets m' hm' (s n) s' μ) →
    ProbabilityTheory.CondIndepSets m' hm' (⋂ n ∈ u, s n) s' μ

theorem ProbabilityTheory.condIndepSet_empty_right E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] (s : Set Ω), ProbabilityTheory.CondIndepSet m' hm' s ∅ μ

theorem ProbabilityTheory.condIndepSet_empty_left E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] (s : Set Ω), ProbabilityTheory.CondIndepSet m' hm' ∅ s μ

theorem ProbabilityTheory.CondIndep.symm E1 #

∀ {Ω : Type u_1} {m' m₁ m₂ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ → ProbabilityTheory.CondIndep m' m₂ m₁ hm' μ

theorem ProbabilityTheory.condIndep_bot_right E1 #

∀ {Ω : Type u_1} (m₁ : MeasurableSpace Ω) {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ], ProbabilityTheory.CondIndep m' m₁ ⊥ hm' μ

theorem ProbabilityTheory.condIndep_bot_left E1 #

∀ {Ω : Type u_1} (m₁ : MeasurableSpace Ω) {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ], ProbabilityTheory.CondIndep m' ⊥ m₁ hm' μ

theorem ProbabilityTheory.condIndep_of_condIndep_of_le_left E1 #

∀ {Ω : Type u_1} {m' m₁ m₂ m₃ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ → m₃ ≤ m₁ → ProbabilityTheory.CondIndep m' m₃ m₂ hm' μ

theorem ProbabilityTheory.condIndep_of_condIndep_of_le_right E1 #

∀ {Ω : Type u_1} {m' m₁ m₂ m₃ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ → m₃ ≤ m₂ → ProbabilityTheory.CondIndep m' m₁ m₃ hm' μ

theorem ProbabilityTheory.iCondIndepSets.condIndepSets E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set (Set Ω)},
  ProbabilityTheory.iCondIndepSets m' hm' s μ →
    ∀ {i j : ι}, i ≠ j → ProbabilityTheory.CondIndepSets m' hm' (s i) (s j) μ

theorem ProbabilityTheory.iCondIndep.condIndep E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : ι → MeasurableSpace Ω},
  ProbabilityTheory.iCondIndep m' hm' m μ → ∀ {i j : ι}, i ≠ j → ProbabilityTheory.CondIndep m' (m i) (m j) hm' μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_3}
  {m : (x : ι) → MeasurableSpace (β x)} {f : (i : ι) → Ω → β i},
  ProbabilityTheory.iCondIndepFun m' hm' f μ → ∀ {i j : ι}, i ≠ j → ProbabilityTheory.CondIndepFun m' hm' (f i) (f j) μ

theorem ProbabilityTheory.iCondIndep.iCondIndepSets E3 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : ι → MeasurableSpace Ω}
  {s : ι → Set (Set Ω)},
  (∀ (n : ι), m n = MeasurableSpace.generateFrom (s n)) →
    ProbabilityTheory.iCondIndep m' hm' m μ → ProbabilityTheory.iCondIndepSets m' hm' s μ

theorem ProbabilityTheory.CondIndep.condIndepSets E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s1 s2 : Set (Set Ω)},
  ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom s1) (MeasurableSpace.generateFrom s2) hm' μ →
    ProbabilityTheory.CondIndepSets m' hm' s1 s2 μ

theorem ProbabilityTheory.CondIndepSets.condIndep E1 #

∀ {Ω : Type u_1} {m' m₁ m₂ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {p1 p2 : Set (Set Ω)},
  m₁ ≤ mΩ →
    m₂ ≤ mΩ →
      IsPiSystem p1 →
        IsPiSystem p2 →
          m₁ = MeasurableSpace.generateFrom p1 →
            m₂ = MeasurableSpace.generateFrom p2 →
              ProbabilityTheory.CondIndepSets m' hm' p1 p2 μ → ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ

theorem ProbabilityTheory.CondIndepSets.condIndep' E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {p1 p2 : Set (Set Ω)},
  (∀ s ∈ p1, MeasurableSet s) →
    (∀ s ∈ p2, MeasurableSet s) →
      IsPiSystem p1 →
        IsPiSystem p2 →
          ProbabilityTheory.CondIndepSets m' hm' p1 p2 μ →
            ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom p1) (MeasurableSpace.generateFrom p2) hm' μ

theorem ProbabilityTheory.condIndepSets_piiUnionInter_of_disjoint E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set (Set Ω)} {S T : Set ι},
  ProbabilityTheory.iCondIndepSets m' hm' s μ →
    Disjoint S T → ProbabilityTheory.CondIndepSets m' hm' (piiUnionInter s S) (piiUnionInter s T) μ

theorem ProbabilityTheory.iCondIndepSet.condIndep_generateFrom_of_disjoint E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ι → Set Ω},
  (∀ (n : ι), MeasurableSet (s n)) →
    ProbabilityTheory.iCondIndepSet m' hm' s μ →
      ∀ (S T : Set ι),
        Disjoint S T →
          ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom {t | ∃ n ∈ S, s n = t})
            (MeasurableSpace.generateFrom {t | ∃ k ∈ T, s k = t}) hm' μ

theorem ProbabilityTheory.condIndep_iSup_of_disjoint E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : ι → MeasurableSpace Ω},
  (∀ (i : ι), m i ≤ mΩ) →
    ProbabilityTheory.iCondIndep m' hm' m μ →
      ∀ {S T : Set ι}, Disjoint S T → ProbabilityTheory.CondIndep m' (⨆ i ∈ S, m i) (⨆ i ∈ T, m i) hm' μ

theorem ProbabilityTheory.condIndep_iSup_of_directed_le E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' m₁ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : ι → MeasurableSpace Ω},
  (∀ (i : ι), ProbabilityTheory.CondIndep m' (m i) m₁ hm' μ) →
    (∀ (i : ι), m i ≤ mΩ) →
      m₁ ≤ mΩ → Directed (fun x1 x2 ↦ x1 ≤ x2) m → ProbabilityTheory.CondIndep m' (⨆ i, m i) m₁ hm' μ

theorem ProbabilityTheory.iCondIndepSet.condIndep_generateFrom_lt E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : Preorder ι] {s : ι → Set Ω},
  (∀ (n : ι), MeasurableSet (s n)) →
    ProbabilityTheory.iCondIndepSet m' hm' s μ →
      ∀ (i : ι),
        ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom {s i})
          (MeasurableSpace.generateFrom {t | ∃ j < i, s j = t}) hm' μ

theorem ProbabilityTheory.iCondIndepSet.condIndep_generateFrom_le E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : Preorder ι] {s : ι → Set Ω},
  (∀ (n : ι), MeasurableSet (s n)) →
    ProbabilityTheory.iCondIndepSet m' hm' s μ →
      ∀ (i : ι) {k : ι},
        i < k →
          ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom {s k})
            (MeasurableSpace.generateFrom {t | ∃ j ≤ i, s j = t}) hm' μ

theorem ProbabilityTheory.iCondIndepSet.condIndep_generateFrom_le_nat E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : ℕ → Set Ω},
  (∀ (n : ℕ), MeasurableSet (s n)) →
    ProbabilityTheory.iCondIndepSet m' hm' s μ →
      ∀ (n : ℕ),
        ProbabilityTheory.CondIndep m' (MeasurableSpace.generateFrom {s (n + 1)})
          (MeasurableSpace.generateFrom {t | ∃ k ≤ n, s k = t}) hm' μ

theorem ProbabilityTheory.condIndep_iSup_of_monotone E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' m₁ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : SemilatticeSup ι]
  {m : ι → MeasurableSpace Ω},
  (∀ (i : ι), ProbabilityTheory.CondIndep m' (m i) m₁ hm' μ) →
    (∀ (i : ι), m i ≤ mΩ) → m₁ ≤ mΩ → Monotone m → ProbabilityTheory.CondIndep m' (⨆ i, m i) m₁ hm' μ

theorem ProbabilityTheory.condIndep_iSup_of_antitone E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' m₁ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : SemilatticeInf ι]
  {m : ι → MeasurableSpace Ω},
  (∀ (i : ι), ProbabilityTheory.CondIndep m' (m i) m₁ hm' μ) →
    (∀ (i : ι), m i ≤ mΩ) → m₁ ≤ mΩ → Antitone m → ProbabilityTheory.CondIndep m' (⨆ i, m i) m₁ hm' μ

theorem ProbabilityTheory.iCondIndepSets.piiUnionInter_of_notMem E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {π : ι → Set (Set Ω)} {a : ι} {S : Finset ι},
  ProbabilityTheory.iCondIndepSets m' hm' π μ →
    a ∉ S → ProbabilityTheory.CondIndepSets m' hm' (piiUnionInter π ↑S) (π a) μ

theorem ProbabilityTheory.iCondIndepSets.iCondIndep E3 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] (m : ι → MeasurableSpace Ω),
  (∀ (i : ι), m i ≤ mΩ) →
    ∀ (π : ι → Set (Set Ω)),
      (∀ (n : ι), IsPiSystem (π n)) →
        (∀ (i : ι), m i = MeasurableSpace.generateFrom (π i)) →
          ProbabilityTheory.iCondIndepSets m' hm' π μ → ProbabilityTheory.iCondIndep m' hm' m μ

The σ-algebras generated by conditionally independent pi-systems are conditionally independent.

theorem ProbabilityTheory.CondIndepSets.condIndepSet_of_mem E1 #

∀ {Ω : Type u_1} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ} {s t : Set Ω}
  (S T : Set (Set Ω)),
  s ∈ S →
    t ∈ T →
      MeasurableSet s →
        MeasurableSet t →
          ∀ (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
            ProbabilityTheory.CondIndepSets m' hm' S T μ → ProbabilityTheory.CondIndepSet m' hm' s t μ

theorem ProbabilityTheory.CondIndep.condIndepSet_of_measurableSet E1 #

∀ {Ω : Type u_1} {m' m₁ m₂ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ →
    ∀ {s t : Set Ω}, MeasurableSet s → MeasurableSet t → ProbabilityTheory.CondIndepSet m' hm' s t μ

theorem ProbabilityTheory.condIndep_iff_forall_condIndepSet E1 #

∀ {Ω : Type u_1} {m' m₁ m₂ mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  (μ : MeasureTheory.Measure Ω) [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.CondIndep m' m₁ m₂ hm' μ ↔
    ∀ (s t : Set Ω), MeasurableSet s → MeasurableSet t → ProbabilityTheory.CondIndepSet m' hm' s t μ

theorem ProbabilityTheory.condIndepFun_iff_condExp_inter_preimage_eq_mul E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'},
  Measurable f →
    Measurable g →
      (ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
        ∀ (s : Set β) (t : Set β'),
          MeasurableSet s →
            MeasurableSet t →
              μ[(f ⁻¹' s ∩ g ⁻¹' t).indicator fun ω ↦ 1 | m'] =ᵐ[μ] fun ω ↦
                μ[(f ⁻¹' s).indicator fun ω ↦ 1 | m'] ω * μ[(g ⁻¹' t).indicator fun ω ↦ 1 | m'] ω)

theorem ProbabilityTheory.iCondIndepFun_iff_condExp_inter_preimage_eq_mul E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_5}
  (m : (x : ι) → MeasurableSpace (β x)) (f : (i : ι) → Ω → β i),
  (∀ (i : ι), Measurable (f i)) →
    (ProbabilityTheory.iCondIndepFun m' hm' f μ ↔
      ∀ (S : Finset ι) {sets : (i : ι) → Set (β i)},
        (∀ i ∈ S, MeasurableSet (sets i)) →
          μ[(⋂ i ∈ S, f i ⁻¹' sets i).indicator fun ω ↦ 1 | m'] =ᵐ[μ]
            ∏ i ∈ S, μ[(f i ⁻¹' sets i).indicator fun ω ↦ 1 | m'])

theorem ProbabilityTheory.condIndepFun_iff_condIndepSet_preimage E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'},
  Measurable f →
    Measurable g →
      (ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
        ∀ (s : Set β) (t : Set β'),
          MeasurableSet s → MeasurableSet t → ProbabilityTheory.CondIndepSet m' hm' (f ⁻¹' s) (g ⁻¹' t) μ)

theorem ProbabilityTheory.CondIndepFun.symm E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} {f : Ω → β} {g : Ω → β'},
  ProbabilityTheory.CondIndepFun m' hm' f g μ → ProbabilityTheory.CondIndepFun m' hm' g f μ

theorem ProbabilityTheory.CondIndepFun.comp E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {γ : Type u_5} {γ' : Type u_6} {_mβ : MeasurableSpace β} {_mβ' : MeasurableSpace β'} {_mγ : MeasurableSpace γ}
  {_mγ' : MeasurableSpace γ'} {φ : β → γ} {ψ : β' → γ'},
  ProbabilityTheory.CondIndepFun m' hm' f g μ →
    Measurable φ → Measurable ψ → ProbabilityTheory.CondIndepFun m' hm' (φ ∘ f) (ψ ∘ g) μ

theorem ProbabilityTheory.condIndepFun_const_left E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} (c : β) (X : Ω → β'), ProbabilityTheory.CondIndepFun m' hm' (fun x ↦ c) X μ

theorem ProbabilityTheory.condIndepFun_const_right E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} (X : Ω → β) (c : β'), ProbabilityTheory.CondIndepFun m' hm' X (fun x ↦ c) μ

theorem ProbabilityTheory.CondIndepFun.neg_right E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {_mβ : MeasurableSpace β} {_mβ' : MeasurableSpace β'} [inst_2 : Neg β'] [MeasurableNeg β'],
  ProbabilityTheory.CondIndepFun m' hm' f g μ → ProbabilityTheory.CondIndepFun m' hm' f (-g) μ

theorem ProbabilityTheory.CondIndepFun.neg_left E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {_mβ : MeasurableSpace β} {_mβ' : MeasurableSpace β'} [inst_2 : Neg β] [MeasurableNeg β],
  ProbabilityTheory.CondIndepFun m' hm' f g μ → ProbabilityTheory.CondIndepFun m' hm' (-f) g μ

theorem ProbabilityTheory.condIndepFun_of_measurable_left E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} {X : Ω → β} {Y : Ω → β'},
  Measurable X → Measurable Y → ProbabilityTheory.CondIndepFun m' hm' X Y μ

theorem ProbabilityTheory.condIndepFun_of_measurable_right E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} {X : Ω → β} {Y : Ω → β'},
  Measurable X → Measurable Y → ProbabilityTheory.CondIndepFun m' hm' X Y μ

theorem ProbabilityTheory.condIndepFun_self_left E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} {X : Ω → β} {Z : Ω → β'},
  Measurable X → ∀ (hZ : Measurable Z), ProbabilityTheory.CondIndepFun (MeasurableSpace.comap Z inferInstance) ⋯ Z X μ

theorem ProbabilityTheory.condIndepFun_self_right E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {mβ : MeasurableSpace β}
  {mβ' : MeasurableSpace β'} {X : Ω → β} {Z : Ω → β'},
  Measurable X → ∀ (hZ : Measurable Z), ProbabilityTheory.CondIndepFun (MeasurableSpace.comap Z inferInstance) ⋯ X Z μ

theorem ProbabilityTheory.condIndepFun_iff_compProd_map_prod_eq_compProd_prod_map_map E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'},
  Measurable f →
    Measurable g →
      (ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
        (μ.trim hm').compProd ((ProbabilityTheory.condExpKernel μ m').map fun ω ↦ (f ω, g ω)) =
          (μ.trim hm').compProd
            (((ProbabilityTheory.condExpKernel μ m').map f).prod ((ProbabilityTheory.condExpKernel μ m').map g)))

Two random variables are conditionally independent iff they satisfy the almost sure equality of conditional expectations μ⟦f ⁻¹' s ∩ g ⁻¹' t | m'⟧ =ᵐ[μ] μ⟦f ⁻¹' s | m'⟧ * μ⟦g ⁻¹' t | m'⟧ for all measurable sets s and t (see condIndepFun_iff_condExp_inter_preimage_eq_mul). Here, this is phrased with Markov kernels associated to the conditional expectations, and the almost sure equality is expressed as equality of the composition-product with the measure, which is equivalent to a.e. equality. See condIndepFun_iff_map_prod_eq_prod_map_map for the a.e. equality version with kernels.

For a random variable f, (condExpKernel μ m').map f is the law of the conditional expectation of f given m': almost surely, (condExpKernel μ m').map f ω s = μ⟦f ⁻¹' s | m'⟧ ω.

theorem ProbabilityTheory.condIndepFun_iff_map_prod_eq_prod_map_map E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'} [MeasurableSpace.CountableOrCountablyGenerated Ω (β × β')],
  Measurable f →
    Measurable g →
      (ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
        ⇑((ProbabilityTheory.condExpKernel μ m').map fun ω ↦ (f ω, g ω)) =ᵐ[μ.trim hm']
          ⇑(((ProbabilityTheory.condExpKernel μ m').map f).prod ((ProbabilityTheory.condExpKernel μ m').map g)))

Two random variables are conditionally independent iff they satisfy the almost sure equality of conditional expectations μ⟦f ⁻¹' s ∩ g ⁻¹' t | m'⟧ =ᵐ[μ] μ⟦f ⁻¹' s | m'⟧ * μ⟦g ⁻¹' t | m'⟧ for all measurable sets s and t (see condIndepFun_iff_condExp_inter_preimage_eq_mul). Here, this is phrased with Markov kernels associated to the conditional expectations.

For a random variable f, (condExpKernel μ m').map f is the law of the conditional expectation of f given m': almost surely, (condExpKernel μ m').map f ω s = μ⟦f ⁻¹' s | m'⟧ ω.

theorem ProbabilityTheory.condIndepFun_iff_map_prod_eq_prod_comp_trim E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {hm' : m' ≤ mΩ} {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'}
  {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'},
  Measurable f →
    Measurable g →
      (ProbabilityTheory.CondIndepFun m' hm' f g μ ↔
        MeasureTheory.Measure.map (fun ω ↦ (ω, f ω, g ω)) μ =
          (μ.trim hm').bind
            ⇑(ProbabilityTheory.Kernel.id.prod
                (((ProbabilityTheory.condExpKernel μ m').map f).prod ((ProbabilityTheory.condExpKernel μ m').map g))))

Two random variables are conditionally independent with respect to m' iff the law of (id, f, g) under μ, in which the identity is to the space with σ-algebra m', can be written as a product involving the conditional expectations of f and g given m'.

For a random variable f, (condExpKernel μ m').map f is the law of the conditional expectation of f given m': almost surely, (condExpKernel μ m').map f ω s = μ⟦f ⁻¹' s | m'⟧ ω.

theorem ProbabilityTheory.condIndepFun_iff_map_prod_eq_prod_condDistrib_prod_condDistrib E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'} {γ : Type u_5}
  {mγ : MeasurableSpace γ} {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'} [inst_2 : StandardBorelSpace β]
  [inst_3 : Nonempty β] [inst_4 : StandardBorelSpace β'] [inst_5 : Nonempty β'],
  Measurable f →
    Measurable g →
      ∀ {k : Ω → γ} (hk : Measurable k),
        ProbabilityTheory.CondIndepFun (MeasurableSpace.comap k inferInstance) ⋯ f g μ ↔
          MeasureTheory.Measure.map (fun ω ↦ (k ω, f ω, g ω)) μ =
            (MeasureTheory.Measure.map k μ).bind
              ⇑(ProbabilityTheory.Kernel.id.prod
                  ((ProbabilityTheory.condDistrib f k μ).prod (ProbabilityTheory.condDistrib g k μ)))

Two random variables f, g are conditionally independent given a third k iff the joint distribution of k, f, g factors into a product of their conditional distributions given k.

theorem ProbabilityTheory.condIndepFun_iff_condDistrib_prod_ae_eq_prodMkRight E1 #

∀ {Ω : Type u_1} {β : Type u_3} {β' : Type u_4} {mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {f : Ω → β} {g : Ω → β'} {γ : Type u_5}
  {mγ : MeasurableSpace γ} {mβ : MeasurableSpace β} {mβ' : MeasurableSpace β'} [inst_2 : StandardBorelSpace β]
  [inst_3 : Nonempty β] [StandardBorelSpace β'] [Nonempty β'],
  Measurable f →
    Measurable g →
      ∀ {k : Ω → γ} (hk : Measurable k),
        ProbabilityTheory.CondIndepFun (MeasurableSpace.comap k inferInstance) ⋯ g f μ ↔
          ⇑(ProbabilityTheory.condDistrib f (fun ω ↦ (k ω, g ω)) μ) =ᵐ[MeasureTheory.Measure.map (fun ω ↦ (k ω, g ω)) μ]
            ⇑(ProbabilityTheory.Kernel.prodMkRight β' (ProbabilityTheory.condDistrib f k μ))

Two random variables f, g are conditionally independent given a third k iff the conditional distribution of f given k and g is equal to the conditional distribution of f given k.

theorem ProbabilityTheory.iCondIndepFun.of_subsingleton E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_5}
  {m : (i : ι) → MeasurableSpace (β i)} {f : (i : ι) → Ω → β i} [Subsingleton ι],
  ProbabilityTheory.iCondIndepFun m' hm' f μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_set E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_6}
  {m : (i : ι) → MeasurableSpace (β i)} {f : (i : ι) → Ω → β i} (S T : Set ι),
  Disjoint S T →
    ProbabilityTheory.iCondIndepFun m' hm' f μ →
      (∀ (i : ι), Measurable (f i)) → ProbabilityTheory.CondIndepFun m' hm' (fun a i ↦ f (↑i) a) (fun a i ↦ f (↑i) a) μ

If f is a family of mutually conditionally independent random variables (iCondIndepFun m' hm' m f μ) and S, T are two disjoint index sets, then the tuple formed by f i for i ∈ S is conditionally independent of the tuple (f i)_i for i ∈ T.

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_finset E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_6}
  {m : (i : ι) → MeasurableSpace (β i)} {f : (i : ι) → Ω → β i} (S T : Finset ι),
  Disjoint S T →
    ProbabilityTheory.iCondIndepFun m' hm' f μ →
      (∀ (i : ι), Measurable (f i)) → ProbabilityTheory.CondIndepFun m' hm' (fun a i ↦ f (↑i) a) (fun a i ↦ f (↑i) a) μ

If f is a family of mutually conditionally independent random variables (iCondIndepFun m' hm' m f μ) and S, T are two disjoint finite index sets, then the tuple formed by f i for i ∈ S is conditionally independent of the tuple (f i)_i for i ∈ T.

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_prodMk E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_6}
  {m : (i : ι) → MeasurableSpace (β i)} {f : (i : ι) → Ω → β i},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ k → j ≠ k → ProbabilityTheory.CondIndepFun m' hm' (fun a ↦ (f i a, f j a)) (f k) μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_prodMk_prodMk E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : ι → Type u_5}
  {m : (i : ι) → MeasurableSpace (β i)} {f : (i : ι) → Ω → β i},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k l : ι),
        i ≠ k →
          i ≠ l →
            j ≠ k → j ≠ l → ProbabilityTheory.CondIndepFun m' hm' (fun a ↦ (f i a, f j a)) (fun a ↦ (f k a, f l a)) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_add_left E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Add β]
  [MeasurableAdd₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ k → j ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i + f j) (f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_mul_left E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Mul β]
  [MeasurableMul₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ k → j ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i * f j) (f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_mul_right E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Mul β]
  [MeasurableMul₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ j → i ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i) (f j * f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_add_right E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Add β]
  [MeasurableAdd₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ j → i ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i) (f j + f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_mul_mul E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Mul β]
  [MeasurableMul₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k l : ι), i ≠ k → i ≠ l → j ≠ k → j ≠ l → ProbabilityTheory.CondIndepFun m' hm' (f i * f j) (f k * f l) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_add_add E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Add β]
  [MeasurableAdd₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k l : ι), i ≠ k → i ≠ l → j ≠ k → j ≠ l → ProbabilityTheory.CondIndepFun m' hm' (f i + f j) (f k + f l) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_sub_left E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Sub β]
  [MeasurableSub₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ k → j ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i - f j) (f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_div_left E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Div β]
  [MeasurableDiv₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ k → j ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i / f j) (f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_div_right E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Div β]
  [MeasurableDiv₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ j → i ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i) (f j / f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_sub_right E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Sub β]
  [MeasurableSub₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k : ι), i ≠ j → i ≠ k → ProbabilityTheory.CondIndepFun m' hm' (f i) (f j - f k) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_sub_sub E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Sub β]
  [MeasurableSub₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k l : ι), i ≠ k → i ≠ l → j ≠ k → j ≠ l → ProbabilityTheory.CondIndepFun m' hm' (f i - f j) (f k - f l) μ

theorem ProbabilityTheory.iCondIndepFun.indepFun_div_div E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β} [inst_2 : Div β]
  [MeasurableDiv₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ (i j k l : ι), i ≠ k → i ≠ l → j ≠ k → j ≠ l → ProbabilityTheory.CondIndepFun m' hm' (f i / f j) (f k / f l) μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_finsetSum_of_notMem E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β}
  [inst_2 : AddCommMonoid β] [MeasurableAdd₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ {s : Finset ι} {i : ι}, i ∉ s → ProbabilityTheory.CondIndepFun m' hm' (∑ j ∈ s, f j) (f i) μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_finsetProd_of_notMem E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β}
  [inst_2 : CommMonoid β] [MeasurableMul₂ β] {f : ι → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ι), Measurable (f i)) →
      ∀ {s : Finset ι} {i : ι}, i ∉ s → ProbabilityTheory.CondIndepFun m' hm' (∏ j ∈ s, f j) (f i) μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_prod_range_succ E1 #

∀ {Ω : Type u_1} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β}
  [inst_2 : CommMonoid β] [MeasurableMul₂ β] {f : ℕ → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ℕ), Measurable (f i)) → ∀ (n : ℕ), ProbabilityTheory.CondIndepFun m' hm' (∏ j ∈ Finset.range n, f j) (f n) μ

theorem ProbabilityTheory.iCondIndepFun.condIndepFun_sum_range_succ E1 #

∀ {Ω : Type u_1} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {m : MeasurableSpace β}
  [inst_2 : AddCommMonoid β] [MeasurableAdd₂ β] {f : ℕ → Ω → β},
  ProbabilityTheory.iCondIndepFun m' hm' f μ →
    (∀ (i : ℕ), Measurable (f i)) → ∀ (n : ℕ), ProbabilityTheory.CondIndepFun m' hm' (∑ j ∈ Finset.range n, f j) (f n) μ

theorem ProbabilityTheory.iCondIndepSet.iCondIndepFun_indicator E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {β : Type u_3} {m' mΩ : MeasurableSpace Ω} [inst : StandardBorelSpace Ω] {hm' : m' ≤ mΩ}
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : Zero β] [inst_3 : One β]
  {m : MeasurableSpace β} {s : ι → Set Ω},
  ProbabilityTheory.iCondIndepSet m' hm' s μ →
    ProbabilityTheory.iCondIndepFun m' hm' (fun n ↦ (s n).indicator fun _ω ↦ 1) μ