LeanMachineLearning

Learning.measurable_uncurry_sumRewards_compπŸ”—

Lemma

No docstring.

πŸ”—theorem
Learning.measurable_uncurry_sumRewards_comp.{u_1, u_2, u_3} {𝓐 : Type u_1} {𝓨 : Type u_2} {Ξ© : Type u_3} {m𝓐 : MeasurableSpace 𝓐} {m𝓨 : MeasurableSpace 𝓨} {mΞ© : MeasurableSpace Ξ©} [DecidableEq 𝓐] [AddCommGroup 𝓨] {A : β„• β†’ Ξ© β†’ 𝓐} [Countable 𝓐] [MeasurableSingletonClass 𝓐] [MeasurableAddβ‚‚ 𝓨] {R : β„• β†’ Ξ© β†’ 𝓨} (hA : βˆ€ (n : β„•), Measurable (A n)) (hR : βˆ€ (n : β„•), Measurable (R n)) {f : Ξ© β†’ 𝓐} (hf : Measurable f) {g : Ξ© β†’ β„•} (hg : Measurable g) : Measurable fun Ο‰ => sumRewards A R (f Ο‰) (g Ο‰) Ο‰
Learning.measurable_uncurry_sumRewards_comp.{u_1, u_2, u_3} {𝓐 : Type u_1} {𝓨 : Type u_2} {Ξ© : Type u_3} {m𝓐 : MeasurableSpace 𝓐} {m𝓨 : MeasurableSpace 𝓨} {mΞ© : MeasurableSpace Ξ©} [DecidableEq 𝓐] [AddCommGroup 𝓨] {A : β„• β†’ Ξ© β†’ 𝓐} [Countable 𝓐] [MeasurableSingletonClass 𝓐] [MeasurableAddβ‚‚ 𝓨] {R : β„• β†’ Ξ© β†’ 𝓨} (hA : βˆ€ (n : β„•), Measurable (A n)) (hR : βˆ€ (n : β„•), Measurable (R n)) {f : Ξ© β†’ 𝓐} (hf : Measurable f) {g : Ξ© β†’ β„•} (hg : Measurable g) : Measurable fun Ο‰ => sumRewards A R (f Ο‰) (g Ο‰) Ο‰

Code

lemma measurable_uncurry_sumRewards_comp [Countable 𝓐] [MeasurableSingletonClass 𝓐]
    [MeasurableAddβ‚‚ 𝓨]
    {R : β„• β†’ Ξ© β†’ 𝓨} (hA : βˆ€ n, Measurable (A n)) (hR : βˆ€ n, Measurable (R n)) {f : Ξ© β†’ 𝓐}
    (hf : Measurable f) {g : Ξ© β†’ β„•} (hg : Measurable g) :
    Measurable (fun Ο‰ ↦ sumRewards A R (f Ο‰) (g Ο‰) Ο‰)
Proof
by
  change Measurable ((fun aΟ‰ ↦ sumRewards A R aΟ‰.1 (g aΟ‰.2) aΟ‰.2) ∘ fun Ο‰ ↦ (f Ο‰, Ο‰))
  apply Measurable.comp _ (by fun_prop)
  refine measurable_from_prod_countable_right fun a ↦ ?_
  change Measurable ((fun tΟ‰ ↦ sumRewards A R a tΟ‰.1 tΟ‰.2) ∘ fun Ο‰ ↦ (g Ο‰, Ο‰))
  apply Measurable.comp _ (by fun_prop)
  exact measurable_from_prod_countable_right (fun t ↦ measurable_sumRewards hA hR a t)

Actions: Source Β· Open Issue

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