`BookProof.ChapterBayesInference.posterior_sum_one` (y : Y) (hy : 0 < evidence prior L y) : ∑ x, posterior prior L y x = 1
ProvedBookProof.ChapterBayesInference.posterior_sum_onetheoremstimepiece
Prove the following Lean 4 theorem from ChapterBayesInference.
BookProof.ChapterBayesInference.posterior_sum_one (y : Y) (hy : 0 < evidence prior L y) : ∑ x, posterior prior L y x = 1
Formalization note: Lean 4 identifier BookProof.ChapterBayesInference.posterior_sum_one.
Preamble
-- Generated from ChapterBayesInference.lean — theorem BookProof.ChapterBayesInference.posterior_sum_one
import Mathlib
import Definitions.Def_ChapterBayesInference
open BookProof.ChapterBayesInference
open scoped BigOperators
variable {X Y : Type*} [Fintype X] [Fintype Y] [DecidableEq X] [DecidableEq Y]
variable {prior : X → ℝ} {L : X → Y → ℝ}Formal statement
theorem BookProof.ChapterBayesInference.posterior_sum_one (y : Y) (hy : 0 < evidence prior L y) :
∑ x, posterior prior L y x = 1 := by sorry