/-- Mutually exclusive events with positive probabilities are not independent.
Hint: after `intro h`, rewrite `h : μ.P (A ∩ B) = μ.P A * μ.P B` with `hdisj`; the probability
of `∅` is an empty sum (`sum_empty`), and `mul_ne_zero hA hB` finishes. -/
theorem exclusive_not_indep {Ω : Type*} [Fintype Ω] [DecidableEq Ω] (μ : FinProb Ω)
(A B : Finset Ω) (hdisj : A ∩ B = ∅) (hA : μ.P A ≠ 0) (hB : μ.P B ≠ 0) :
¬ μ.Indep A B := by
sorryShow the compiled solution
/-- **Mutually exclusive is the opposite of independent.** If `A` and `B` cannot both happen
and each has positive probability, they are *not* independent: `P(A ∩ B) = 0`, but
`P(A) P(B) > 0`. Learning that `B` happened tells us for certain that `A` did not. -/
theorem exclusive_not_indep {Ω : Type*} [Fintype Ω] [DecidableEq Ω] (μ : FinProb Ω)
(A B : Finset Ω) (hdisj : A ∩ B = ∅) (hA : μ.P A ≠ 0) (hB : μ.P B ≠ 0) :
¬ μ.Indep A B := by
intro h
rw [Indep, hdisj] at h
have h0 : μ.P ∅ = 0 := sum_empty
rw [h0] at h
exact mul_ne_zero hA hB h.symmAxioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ProbabilityRules.leanTry it in the Lean web editor