LeanMachineLearning

Learning.IsAlgEnvSeq.klDiv_map_trajectory_compProdšŸ”—

Lemma

From the authors

Chain rule for trajectories of a single algorithm versus two stationary environments.

Types
  • š“ : Type u_2mš“ : MeasurableSpace š“A measurable space is a space equipped with a σ-algebra.
  • š“Ø : Type u_3mš“Ø : MeasurableSpace š“Ø
  • Ī© : Type u_4mĪ© : MeasurableSpace Ī©
  • Ī©' : Type u_5mĪ©' : 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.IsProbabilityMeasure PA measure μ is called a probability measure if μ univ = 1.
  • P' : MeasureTheory.Measure Ī©'MeasureTheory.IsProbabilityMeasure P'
  • A : ā„• → Ī© → š“
  • Y : ā„• → Ī© → š“Ø
  • A' : ā„• → Ī©' → š“
  • Y' : ā„• → Ī©' → š“Ø
  • O : ā„• → Ī© → Unit
  • O' : ā„• → Ī©' → Unit
  • alg : Algorithm Unit š“ š“ØA stochastic, sequential algorithm.
  • Īŗ : 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.
  • Īŗ' : ProbabilityTheory.Kernel š“ š“ØProbabilityTheory.IsMarkovKernel Īŗ'
Assuming
Then
InformationTheory.klDiv (MeasureTheory.Measure.map (trajectory O A Y) P)
    (MeasureTheory.Measure.map (trajectory O' A' Y') P') =
  āˆ‘' (t : ā„•),
    InformationTheory.klDiv ((MeasureTheory.Measure.map (A t) P).compProd Īŗ)
      ((MeasureTheory.Measure.map (A t) P).compProd Īŗ')
Code
lemma IsAlgEnvSeq.klDiv_map_trajectory_compProd (h : IsAlgEnvSeq O A Y alg (stationaryEnv Īŗ) P)
    (h' : IsAlgEnvSeq O' A' Y' alg (stationaryEnv Īŗ') P') :
    klDiv (P.map (trajectory O A Y)) (P'.map (trajectory O' A' Y')) =
      āˆ‘' t : ā„•, klDiv (P.map (A t) āŠ—ā‚˜ Īŗ) (P.map (A t) āŠ—ā‚˜ Īŗ')
Proof
by
  rw [klDiv_map_trajectory_eq_iSup h.measurable_obs h.measurable_action h.measurable_feedback
    h'.measurable_obs h'.measurable_action h'.measurable_feedback, ENNReal.tsum_eq_iSup_nat]
  exact iSup_congr fun n ↦ h.klDiv_map_history_compProd h' n

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: 9 project declarations, 41 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.