Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, p. ec1 — iterated Bayes equals the batch posterior

Proved
SeqDiagnosis.BeliefRecon.belief_eq_batch

by mikedeng1 · Oct 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

bayesian-updatinglikelihood-productp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1posterior

Let fi(y)>0f_i(y)>0fi​(y)>0 be a likelihood for every class iii and admitted observation yyy, and let θ\thetaθ be a probability vector. Starting at θ\thetaθ, apply the one-step Bayesian operator to observations y1,…,yty_1,\ldots,y_ty1​,…,yt​ in arrival order. The resulting posterior satisfies, for every class jjj,

Πt(y1,…,yt,θ)j=θj∏m=1tfj(ym)∑i=0Nθi∏m=1tfi(ym).\Pi_t(y_1,\ldots,y_t,\theta)_j=\frac{\theta_j\prod_{m=1}^t f_j(y_m)}{\sum_{i=0}^N\theta_i\prod_{m=1}^t f_i(y_m)}.Πt​(y1​,…,yt​,θ)j​=∑i=0N​θi​∏m=1t​fi​(ym​)θj​∏m=1t​fj​(ym​)​.

This generic sequential Bayes identity lets the paper's exponential-tilting likelihood product be substituted into the actual iterated posterior. It holds at t=0t=0t=0, when the posterior is the prior.

Formalization Note Positivity of every class likelihood is made explicit so every Bayesian denominator is positive. The result is stated independently of the exponential-tilting specialization.

Preamble
import Mathlib
import Definitions.Def_SeqDiagnosis_BeliefRecon_Bayes
Formal statement
namespace SeqDiagnosis.BeliefRecon

/-- Repeated one-step Bayes updates equal the normalized likelihood product. -/
theorem belief_eq_batch {Y : Type*} {N : ℕ}
    (f : Fin (N + 1) → Y → ℝ) (hf : ∀ i y, 0 < f i y)
    (θ : Fin (N + 1) → ℝ) (hθ : θ ∈ stdSimplex ℝ (Fin (N + 1)))
    (ys : List Y) (j : Fin (N + 1)) :
    belief f θ ys j = θ j * (ys.map (f j)).prod /
      ∑ i, θ i * (ys.map (f i)).prod := by sorry

end SeqDiagnosis.BeliefRecon
Source
Wang, Optimal Sequential Multi-class Diagnosis, arXiv:1506.08915v4, p. ec1 (PDF 38), proof of Theorem 1, 'iid. assumption and Bayes’ rule'
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 19, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me