`BookProof.ChapterSequentialBayes.bayesUpdate_nonneg` {prior ℓ : X → ℝ} (hprior : ∀ x, 0 ≤ prior x) (hℓ : ∀ x, 0 ≤ ℓ x) (x : X) : 0 ≤ bayesUpdate prior ℓ x
ProvedBookProof.ChapterSequentialBayes.bayesUpdate_nonnegtheoremstimepiece
Prove the following Lean 4 theorem from ChapterSequentialBayes.
BookProof.ChapterSequentialBayes.bayesUpdate_nonneg {prior ℓ : X → ℝ} (hprior : ∀ x, 0 ≤ prior x) (hℓ : ∀ x, 0 ≤ ℓ x) (x : X) : 0 ≤ bayesUpdate prior ℓ x
Formalization note: Lean 4 identifier BookProof.ChapterSequentialBayes.bayesUpdate_nonneg.
Preamble
-- Generated from ChapterSequentialBayes.lean — theorem BookProof.ChapterSequentialBayes.bayesUpdate_nonneg
import Mathlib
import Definitions.Def_ChapterSequentialBayes
open BookProof.ChapterSequentialBayes
open scoped BigOperators
variable {X : Type*} [Fintype X]Formal statement
theorem BookProof.ChapterSequentialBayes.bayesUpdate_nonneg {prior ℓ : X → ℝ} (hprior : ∀ x, 0 ≤ prior x)
(hℓ : ∀ x, 0 ≤ ℓ x) (x : X) : 0 ≤ bayesUpdate prior ℓ x := by sorry