LeanMachineLearning

Learning.IsBayesAlgEnvSeq.hasCondDistrib_env_historyπŸ”—

Lemma

No docstring.

πŸ”—theorem
Learning.IsBayesAlgEnvSeq.hasCondDistrib_env_history.{u_1, u_2, u_3, u_4, u_5} {𝓐 : Type u_1} {𝓨 : Type u_2} [MeasurableSpace 𝓐] [MeasurableSpace 𝓨] {𝓔 : Type u_3} [MeasurableSpace 𝓔] [StandardBorelSpace 𝓐] [Nonempty 𝓐] [StandardBorelSpace 𝓨] [Nonempty 𝓨] {Q : MeasureTheory.Measure 𝓔} {ΞΊ : ProbabilityTheory.Kernel (𝓔 Γ— 𝓐) 𝓨} [ProbabilityTheory.IsMarkovKernel ΞΊ] {Ξ© : Type u_4} [MeasurableSpace Ξ©] {E : Ξ© β†’ 𝓔} {A : β„• β†’ Ξ© β†’ 𝓐} {Y : β„• β†’ Ξ© β†’ 𝓨} {alg : Algorithm 𝓐 𝓨} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {Ξ©β‚€ : Type u_5} [MeasurableSpace Ξ©β‚€] {Eβ‚€ : Ξ©β‚€ β†’ 𝓔} {Aβ‚€ : β„• β†’ Ξ©β‚€ β†’ 𝓐} {Yβ‚€ : β„• β†’ Ξ©β‚€ β†’ 𝓨} {algβ‚€ : Algorithm 𝓐 𝓨} {Pβ‚€ : MeasureTheory.Measure Ξ©β‚€} [MeasureTheory.IsProbabilityMeasure Pβ‚€] [StandardBorelSpace 𝓔] [Nonempty 𝓔] [MeasureTheory.IsProbabilityMeasure Q] (h : IsBayesAlgEnvSeq Q ΞΊ alg E A Y P) (hβ‚€ : IsBayesAlgEnvSeq Q ΞΊ algβ‚€ Eβ‚€ Aβ‚€ Yβ‚€ Pβ‚€) (hc : Algorithm.AbsolutelyContinuous alg algβ‚€) (n : β„•) : ProbabilityTheory.HasCondDistrib E (history A Y n) 𝓛[Eβ‚€ | history Aβ‚€ Yβ‚€ n; Pβ‚€] P
Learning.IsBayesAlgEnvSeq.hasCondDistrib_env_history.{u_1, u_2, u_3, u_4, u_5} {𝓐 : Type u_1} {𝓨 : Type u_2} [MeasurableSpace 𝓐] [MeasurableSpace 𝓨] {𝓔 : Type u_3} [MeasurableSpace 𝓔] [StandardBorelSpace 𝓐] [Nonempty 𝓐] [StandardBorelSpace 𝓨] [Nonempty 𝓨] {Q : MeasureTheory.Measure 𝓔} {ΞΊ : ProbabilityTheory.Kernel (𝓔 Γ— 𝓐) 𝓨} [ProbabilityTheory.IsMarkovKernel ΞΊ] {Ξ© : Type u_4} [MeasurableSpace Ξ©] {E : Ξ© β†’ 𝓔} {A : β„• β†’ Ξ© β†’ 𝓐} {Y : β„• β†’ Ξ© β†’ 𝓨} {alg : Algorithm 𝓐 𝓨} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {Ξ©β‚€ : Type u_5} [MeasurableSpace Ξ©β‚€] {Eβ‚€ : Ξ©β‚€ β†’ 𝓔} {Aβ‚€ : β„• β†’ Ξ©β‚€ β†’ 𝓐} {Yβ‚€ : β„• β†’ Ξ©β‚€ β†’ 𝓨} {algβ‚€ : Algorithm 𝓐 𝓨} {Pβ‚€ : MeasureTheory.Measure Ξ©β‚€} [MeasureTheory.IsProbabilityMeasure Pβ‚€] [StandardBorelSpace 𝓔] [Nonempty 𝓔] [MeasureTheory.IsProbabilityMeasure Q] (h : IsBayesAlgEnvSeq Q ΞΊ alg E A Y P) (hβ‚€ : IsBayesAlgEnvSeq Q ΞΊ algβ‚€ Eβ‚€ Aβ‚€ Yβ‚€ Pβ‚€) (hc : Algorithm.AbsolutelyContinuous alg algβ‚€) (n : β„•) : ProbabilityTheory.HasCondDistrib E (history A Y n) 𝓛[Eβ‚€ | history Aβ‚€ Yβ‚€ n; Pβ‚€] P

Code

lemma hasCondDistrib_env_history (h : IsBayesAlgEnvSeq Q ΞΊ alg E A Y P)
    (hβ‚€ : IsBayesAlgEnvSeq Q ΞΊ algβ‚€ Eβ‚€ Aβ‚€ Yβ‚€ Pβ‚€) (hc : alg β‰ͺₐ algβ‚€) (n : β„•) :
    HasCondDistrib E (history A Y n) (condDistrib Eβ‚€ (history Aβ‚€ Yβ‚€ n) Pβ‚€) P where
  aemeasurable
Proof
((measurable_history h.measurable_action
    h.measurable_feedback n).prodMk h.measurable_param).aemeasurable
  map_eq := by
    have hA := h.measurable_action
    have hY := h.measurable_feedback
    have hAβ‚€ := hβ‚€.measurable_action
    have hYβ‚€ := hβ‚€.measurable_feedback
    have hEβ‚€ := hβ‚€.measurable_param
    rw [← map_swap_compProd_map_condDistrib (by fun_prop), h.hasLaw_env.map_eq,
      Measure.compProd_eq_compProd_withDensity_comp_snd (by fun_prop)
        (h.condDistrib_history_eq_condDistrib_hist_withDensity hβ‚€ hc n),
      map_swap_withDensity_comp_snd (by fun_prop),
      ← hβ‚€.hasLaw_env.map_eq, map_swap_compProd_map_condDistrib (by fun_prop),
      ← compProd_map_condDistrib (by fun_prop), ← Measure.compProd_withDensity_left (by fun_prop),
      ← (hasLaw_history_withDensity h hβ‚€ hc n).map_eq]

Actions: Source Β· Open Issue

Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 4th 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: 4 project declarations, 49 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.