`BookProof.ChapterSequentialBayes.posterior_eq_bayesUpdate` {Y : Type*} (prior : X → ℝ) (L : X → Y → ℝ) (y : Y) : BookProof.ChapterBayesInference.posterior prior L y = bayesUpdate
ProvedBookProof.ChapterSequentialBayes.posterior_eq_bayesUpdatetheoremstimepiece
Prove the following Lean 4 theorem from ChapterSequentialBayes.
BookProof.ChapterSequentialBayes.posterior_eq_bayesUpdate {Y : Type*} (prior : X → ℝ) (L : X → Y → ℝ) (y : Y) : BookProof.ChapterBayesInference.posterior prior L y = bayesUpdate prior (fun x => L x y)
Formalization note: Lean 4 identifier BookProof.ChapterSequentialBayes.posterior_eq_bayesUpdate.
Preamble
-- Generated from ChapterSequentialBayes.lean — theorem BookProof.ChapterSequentialBayes.posterior_eq_bayesUpdate
import Mathlib
import Definitions.Def_ChapterSequentialBayes
import Definitions.Def_ChapterBayesInference
open BookProof.ChapterBayesInference
open BookProof.ChapterSequentialBayes
open scoped BigOperators
variable {X : Type*} [Fintype X]Formal statement
theorem BookProof.ChapterSequentialBayes.posterior_eq_bayesUpdate {Y : Type*}
(prior : X → ℝ) (L : X → Y → ℝ) (y : Y) :
BookProof.ChapterBayesInference.posterior prior L y = bayesUpdate prior (fun x => L x y) := by sorry