LeanMachineLearning

Learning.IsBayesAlgEnvSeq.condDistrib_param_history_zeroπŸ”—

Lemma

From the authors

The posterior over the parameter given the empty history is the prior.

Types
  • 𝓔 : Type u_1MeasurableSpace 𝓔A measurable space is a space equipped with a Οƒ-algebra.StandardBorelSpace 𝓔A standard Borel space is a measurable space arising as the Borel sets of some Polish topology.Nonempty 𝓔
  • 𝓐 : Type u_2MeasurableSpace 𝓐
  • 𝓨 : Type u_3MeasurableSpace 𝓨
  • Ξ© : Type u_4MeasurableSpace Ξ©
Given
  • Q : MeasureTheory.Measure 𝓔A measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure.MeasureTheory.IsProbabilityMeasure QA measure ΞΌ is called a probability measure if ΞΌ univ = 1.
  • ΞΊ : ProbabilityTheory.Kernel (𝓔 Γ— 𝓐) 𝓨A kernel from a measurable space Ξ± to another measurable space Ξ² is a measurable function ΞΊ : Ξ± β†’ Measure Ξ².ProbabilityTheory.IsMarkovKernel ΞΊA kernel is a Markov kernel if every measure in its image is a probability measure.
  • alg : Algorithm Unit 𝓐 𝓨A stochastic, sequential algorithm.
  • P : MeasureTheory.Measure Ξ©MeasureTheory.IsProbabilityMeasure P
  • E : Ξ© β†’ 𝓔
  • A : β„• β†’ Ξ© β†’ 𝓐
  • Y : β„• β†’ Ξ© β†’ 𝓨
Then
𝓛[E | history (noObs Ξ©) A Y 0; P] = ProbabilityTheory.Kernel.const (Hist Unit 𝓐 𝓨 0) Q
Code
lemma condDistrib_param_history_zero [StandardBorelSpace 𝓔] [Nonempty 𝓔]
    (h : IsBayesAlgEnvSeq Q ΞΊ alg E A Y P) :
    condDistrib E (history (noObs Ξ©) A Y 0) P = Kernel.const _ Q
Proof
by
  ext x : 1
  rw [Unique.eq_default x, history_zero]
  have hc : HasCondDistrib E (fun _ : Ξ© ↦ (default : Hist Unit 𝓐 𝓨 0)) (Kernel.const _ Q) P :=
    h.hasLaw_env.hasCondDistrib_const
  have h_ae := hc.condDistrib_eq
  rw [Measure.map_const, measure_univ, one_smul, Filter.EventuallyEq,
    ae_dirac_iff Subsingleton.measurableSet] at h_ae
  exact h_ae

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10), the 2th recorded change.

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file Β· open it in the Lean web editor.

Dependency graph

Audit surface: 17 project declarations, 47 external constants

βœ“ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.