Skip to main content
teorth/PFR
Source indexedlemma · leanprover/lean4:v4.33.0-rc1

ProbabilityTheory.condMutualInfo_eq_zero

PFR.ForMathlib.Entropy.Basic · PFR/ForMathlib/Entropy/Basic.lean:1035 to 1050

Source documentation

I[X : Y| Z]=0 iff X, Y are conditionally independent over Z.

Exact Lean statement

lemma condMutualInfo_eq_zero (hX : Measurable X) (hY : Measurable Y)
    [IsZeroOrProbabilityMeasure μ] [FiniteRange X] [FiniteRange Y] [FiniteRange Z] :
    I[X : Y | Z ; μ] = 0 ↔ CondIndepFun X Y Z μ

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma condMutualInfo_eq_zero (hX : Measurable X) (hY : Measurable Y)    [IsZeroOrProbabilityMeasure μ] [FiniteRange X] [FiniteRange Y] [FiniteRange Z] :    I[X : Y | Z ; μ] = 0  CondIndepFun X Y Z μ := by  rw [condIndepFun_iff, condMutualInfo_eq_integral_mutualInfo, integral_eq_zero_iff_of_nonneg]  · have : (fun x  I[X : Y;μ[| Z ⁻¹' {x}]]) =ᵐ[μ.map Z] 0       ᵐ z ∂(μ.map Z), I[X : Y ; μ[| Z ⁻¹' {z}]] = 0 := by rfl    rw [this]    apply Filter.eventually_congr    rw [ae_iff_of_countable]    intro z _hz    exact mutualInfo_eq_zero hX hY  · intro z    by_cases hz : μ (Z ⁻¹' {z}) = 0    · simp [cond_eq_zero_of_meas_eq_zero hz, mutualInfo_def]    · exact mutualInfo_nonneg hX hY _  · exact integrable_of_finiteSupport _