LeanMachineLearning

Learning.IsAlgEnvSeq.hasCondDistrib_action_comapObsπŸ”—

Lemma

From the authors

The algorithm does not use the part of the observation that it ignores: the conditional distribution of its action given the transported history and observation is its own policy.

Types
  • π“ž : Type u_1mπ“ž : MeasurableSpace π“žA measurable space is a space equipped with a Οƒ-algebra.
  • π“ž' : Type u_2mπ“ž' : MeasurableSpace π“ž'
  • 𝓐 : Type u_4m𝓐 : MeasurableSpace 𝓐
  • 𝓨 : Type u_7m𝓨 : MeasurableSpace 𝓨
  • Ξ© : Type u_10mΞ© : MeasurableSpace Ξ©
Given
  • alg : Algorithm π“ž 𝓐 𝓨A stochastic, sequential algorithm.
  • P : 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.IsFiniteMeasure PA measure ΞΌ is called finite if ΞΌ univ < ∞.
  • A : β„• β†’ Ξ© β†’ 𝓐
  • Y : β„• β†’ Ξ© β†’ 𝓨
  • env : Environment π“ž' 𝓐 𝓨A stochastic environment.
  • f : π“ž' β†’ π“ž
  • O : β„• β†’ Ξ© β†’ π“ž'
  • n : β„•
Assuming
Then
ProbabilityTheory.HasCondDistrib (A n) (fun Ο‰ => (history (fun n Ο‰ => f (O n Ο‰)) A Y n Ο‰, f (O n Ο‰))) (alg.policy n) P
Predicate stating that the conditional distribution of Y given X under the measure P is equal to the kernel ΞΊ.
Code
lemma hasCondDistrib_action_comapObs (h : IsAlgEnvSeq O A Y (alg.comapObs f hf) env P) (n : β„•) :
    HasCondDistrib (A n)
      (fun Ο‰ ↦ (history (fun n Ο‰ ↦ f (O n Ο‰)) A Y n Ο‰, f (O n Ο‰))) (alg.policy n) P
Proof
HasCondDistrib.comp_right (f := fun p : Hist π“ž' 𝓐 𝓨 n Γ— π“ž' ↦ (Hist.mapObs f p.1, f p.2))
    (hf := by fun_prop) (h.hasCondDistrib_action n)

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10).

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: 14 project declarations, 27 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.