File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -501,6 +501,17 @@ theorem law_total_exp : 𝔼[𝔼[X |ᵣ L // P] // P] = 𝔼[X // P] :=
501501 _ = ∑ i : Fin k, 𝔼[X * (L =ᵢ i) // P] := by apply Fintype.sum_congr; intro i; apply exp_congr; rw[indi_eq_indr]
502502 _ = 𝔼[X // P] := by rw [←exp_decompose]
503503
504+ example : ∀x, x ∈ Finset.univ.image X ↔ x ∈ (List.ofFn X |> List.dedup) :=
505+ by intro x
506+ constructor
507+ · intro h
508+ refine List.mem_dedup.mpr ?_
509+ rw [Fin.univ_image_def] at h
510+ rw [List.mem_toFinset] at h
511+ exact h
512+ · intro h
513+ sorry
514+
504515/-- Shows that our definition of expectation is correct -/
505516theorem expect_def_correct : 𝔼[ X // P] = ∑ y ∈ (Finset.univ.image X), (ℙ[ X =ᵣ y // P] * y) := by
506517 -- TODO: Can we use FinEnum and Quotient to reduce it to LOTUS: where i is the index of the unique element, g
You can’t perform that action at this time.
0 commit comments