LeanMachineLearning

Learning.IsAlgEnvSeq.hasCondDistrib_obs_comapAction๐Ÿ”—

Lemma

From the authors

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

Types
  • ๐“ž : Type u_1m๐“ž : MeasurableSpace ๐“žA measurable space is a space equipped with a ฯƒ-algebra.
  • ๐“ : Type u_4m๐“ : MeasurableSpace ๐“
  • ๐“' : Type u_5m๐“' : MeasurableSpace ๐“'
  • ๐“จ : Type u_7m๐“จ : MeasurableSpace ๐“จ
  • ฮฉ : Type u_10mฮฉ : MeasurableSpace ฮฉ
Given
  • 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 < โˆž.
  • Y : โ„• โ†’ ฮฉ โ†’ ๐“จ
  • env : Environment ๐“ž ๐“ ๐“จA stochastic environment.
  • f : ๐“' โ†’ ๐“
  • O : โ„• โ†’ ฮฉ โ†’ ๐“ž
  • A' : โ„• โ†’ ฮฉ โ†’ ๐“'
  • alg : Algorithm ๐“ž ๐“' ๐“จA stochastic, sequential algorithm.
  • n : โ„•
Assuming
Then
ProbabilityTheory.HasCondDistrib (O n) (history O (fun n ฯ‰ => f (A' n ฯ‰)) Y n) (env.obs n) P
Predicate stating that the conditional distribution of Y given X under the measure P is equal to the kernel ฮบ.
Code
lemma hasCondDistrib_obs_comapAction {alg : Algorithm ๐“ž ๐“' ๐“จ}
    (h : IsAlgEnvSeq O A' Y alg (env.comapAction f hf) P) (n : โ„•) :
    HasCondDistrib (O n) (history O (fun n ฯ‰ โ†ฆ f (A' n ฯ‰)) Y n) (env.obs n) P
Proof
HasCondDistrib.comp_right (f := Hist.mapAction (๐“ž := ๐“ž) (๐“จ := ๐“จ) f (n := n))
    (hf := by fun_prop) (h.hasCondDistrib_obs 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.