LeanMachineLearning

Learning.IsAlgEnvSeq.law_sumRewards_unique๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Learning.IsAlgEnvSeq.law_sumRewards_unique.{u_1, u_2, u_3} {๐“ : Type u_1} {ฮฉ : Type u_2} {ฮฉ' : Type u_3} [DecidableEq ๐“] {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} {mฮฉ' : MeasurableSpace ฮฉ'} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {P' : MeasureTheory.Measure ฮฉ'} [MeasureTheory.IsProbabilityMeasure P'] {alg : Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {R : โ„• โ†’ ฮฉ โ†’ โ„} {Aโ‚‚ : โ„• โ†’ ฮฉ' โ†’ ๐“} {Rโ‚‚ : โ„• โ†’ ฮฉ' โ†’ โ„} {n : โ„•} {a : ๐“} [MeasurableSingletonClass ๐“] (h1 : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (h2 : IsAlgEnvSeq Aโ‚‚ Rโ‚‚ alg (stationaryEnv ฮฝ) P') : MeasureTheory.Measure.map (sumRewards A R a n) P = MeasureTheory.Measure.map (sumRewards Aโ‚‚ Rโ‚‚ a n) P'
Learning.IsAlgEnvSeq.law_sumRewards_unique.{u_1, u_2, u_3} {๐“ : Type u_1} {ฮฉ : Type u_2} {ฮฉ' : Type u_3} [DecidableEq ๐“] {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} {mฮฉ' : MeasurableSpace ฮฉ'} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {P' : MeasureTheory.Measure ฮฉ'} [MeasureTheory.IsProbabilityMeasure P'] {alg : Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {R : โ„• โ†’ ฮฉ โ†’ โ„} {Aโ‚‚ : โ„• โ†’ ฮฉ' โ†’ ๐“} {Rโ‚‚ : โ„• โ†’ ฮฉ' โ†’ โ„} {n : โ„•} {a : ๐“} [MeasurableSingletonClass ๐“] (h1 : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (h2 : IsAlgEnvSeq Aโ‚‚ Rโ‚‚ alg (stationaryEnv ฮฝ) P') : MeasureTheory.Measure.map (sumRewards A R a n) P = MeasureTheory.Measure.map (sumRewards Aโ‚‚ Rโ‚‚ a n) P'

Code

lemma _root_.Learning.IsAlgEnvSeq.law_sumRewards_unique [MeasurableSingletonClass ๐“]
    (h1 : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P)
    (h2 : IsAlgEnvSeq Aโ‚‚ Rโ‚‚ alg (stationaryEnv ฮฝ) P') :
    P.map (sumRewards A R a n) = P'.map (sumRewards Aโ‚‚ Rโ‚‚ a n)
Proof
by
  have hA := h1.measurable_action
  have hR := h1.measurable_feedback
  have hA2 := h2.measurable_action
  have hR2 := h2.measurable_feedback
  have h_unique := isAlgEnvSeq_unique h1 h2
  rw [sumRewards_eq_comp, sumRewards_eq_comp, โ† Measure.map_map, h_unique, Measure.map_map,
    โ† sumRewards_eq_comp]
  ยท refine measurable_sum _ fun i hi โ†ฆ Measurable.ite ?_ (by fun_prop) (by fun_prop)
    exact (measurableSet_singleton _).preimage (by fun_prop)
  ยท fun_prop
  ยท refine measurable_sum _ fun i hi โ†ฆ Measurable.ite ?_ (by fun_prop) (by fun_prop)
    exact (measurableSet_singleton _).preimage (by fun_prop)
  ยท fun_prop

Actions: Source ยท Open Issue

Meaning last changed in v4.34.0-rc2-14-gf86702d (2026-08-25), the 5th 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: 7 project declarations, 60 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.