Skip to content

Commit 0ece339

Browse files
EtienneC30b-mehta
authored andcommitted
feat: when the indicator is independent from a random variable (leanprover-community#39749)
If `A` is an event from a sigma-algebra `m` that is independent from a random variable `X`, then the indicator of `A` is independent from `X`.
1 parent b910a04 commit 0ece339

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Mathlib/Probability/Independence/Basic.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,12 @@ theorem iIndepSet.iIndepFun_indicator [Zero β] [One β] {m : MeasurableSpace β
10351035
iIndepFun (fun n => (s n).indicator fun _ω => (1 : β)) μ :=
10361036
Kernel.iIndepSet.iIndepFun_indicator hs
10371037

1038+
lemma Indep.indicator_indepFun {m : MeasurableSpace Ω} {M 𝓧 : Type*}
1039+
[Zero M] [MeasurableSpace M] (c : M) [NeZero c] {m𝓧 : MeasurableSpace 𝓧} {A : Set Ω}
1040+
{X : Ω → 𝓧} (hA : MeasurableSet[m] A) (h : Indep m (m𝓧.comap X) μ) :
1041+
(A.indicator (fun _ ↦ c)) ⟂ᵢ[μ] X :=
1042+
Kernel.Indep.indicator_const_indepFun c hA h
1043+
10381044
end IndepFun
10391045

10401046
variable {ι Ω α β : Type*} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α}

Mathlib/Probability/Independence/Kernel/IndepFun.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,12 @@ theorem iIndepSet.iIndepFun_indicator [Zero β] [One β] {m : MeasurableSpace β
694694
· exact @MeasurableSet.empty _ (generateFrom {s i})
695695
· exact @MeasurableSet.empty _ (generateFrom {s i})
696696

697+
lemma Indep.indicator_const_indepFun {m : MeasurableSpace Ω} {M 𝓧 : Type*}
698+
[Zero M] [MeasurableSpace M] (c : M) [NeZero c] {m𝓧 : MeasurableSpace 𝓧} {A : Set Ω}
699+
{X : Ω → 𝓧} (hA : MeasurableSet[m] A) (h : Indep m (m𝓧.comap X) κ μ) :
700+
IndepFun (A.indicator (fun _ ↦ c)) X κ μ :=
701+
indep_of_indep_of_le_left h (measurable_const.indicator hA).comap_le
702+
697703
variable {mβ : MeasurableSpace β} {X : ι → Ω → α} {Y : ι → Ω → β}
698704
{f : _ → Set Ω} {t : ι → Set β} {s : Finset ι}
699705

0 commit comments

Comments
 (0)