LeanMachineLearning

Bandits.condDistrib_reward''πŸ”—

Lemma

No docstring.

πŸ”—theorem
Bandits.condDistrib_reward''.{u_1, u_2} {𝓐 : Type u_1} {Ξ© : Type u_2} {m𝓐 : MeasurableSpace 𝓐} {mΞ© : MeasurableSpace Ξ©} {A : β„• β†’ Ξ© β†’ 𝓐} {R : β„• β†’ Ξ© β†’ ℝ} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm 𝓐 ℝ} {Ξ½ : ProbabilityTheory.Kernel 𝓐 ℝ} [ProbabilityTheory.IsMarkovKernel Ξ½] [Countable 𝓐] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv Ξ½) P) (n : β„•) : ⇑𝓛[fun Ο‰ => R n (Prod.fst Ο‰) | fun Ο‰ => A n (Prod.fst Ο‰); MeasureTheory.Measure.prod P (streamMeasure Ξ½)] =ᡐ[MeasureTheory.Measure.map (fun Ο‰ => A n (Prod.fst Ο‰)) (MeasureTheory.Measure.prod P (streamMeasure Ξ½))] ⇑ν
Bandits.condDistrib_reward''.{u_1, u_2} {𝓐 : Type u_1} {Ξ© : Type u_2} {m𝓐 : MeasurableSpace 𝓐} {mΞ© : MeasurableSpace Ξ©} {A : β„• β†’ Ξ© β†’ 𝓐} {R : β„• β†’ Ξ© β†’ ℝ} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm 𝓐 ℝ} {Ξ½ : ProbabilityTheory.Kernel 𝓐 ℝ} [ProbabilityTheory.IsMarkovKernel Ξ½] [Countable 𝓐] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv Ξ½) P) (n : β„•) : ⇑𝓛[fun Ο‰ => R n (Prod.fst Ο‰) | fun Ο‰ => A n (Prod.fst Ο‰); MeasureTheory.Measure.prod P (streamMeasure Ξ½)] =ᡐ[MeasureTheory.Measure.map (fun Ο‰ => A n (Prod.fst Ο‰)) (MeasureTheory.Measure.prod P (streamMeasure Ξ½))] ⇑ν

Code

lemma condDistrib_reward'' [Countable 𝓐]
    (h : IsAlgEnvSeq A R alg (stationaryEnv Ξ½) P) (n : β„•) :
    𝓛[fun Ο‰ ↦ R n Ο‰.1 | fun Ο‰ ↦ A n Ο‰.1; 𝔓] =ᡐ[(𝔓).map (fun Ο‰ ↦ A n Ο‰.1)] Ξ½
Proof
by
  have hA := h.measurable_action
  have hR := h.measurable_feedback
  have h_ra' : 𝓛[R n | A n; P] =ᡐ[P.map (A n)] Ξ½ := h.condDistrib_feedback_stationaryEnv n
  have h_law : (𝔓).map (fun Ο‰ ↦ A n Ο‰.1) = P.map (A n) := by
    change ((𝔓).map (A n ∘ Prod.fst)) = _
    rw [← Measure.map_map (by fun_prop) (by fun_prop), ← Measure.fst, Measure.fst_prod]
  rw [h_law]
  have h_prod : 𝓛[fun Ο‰ ↦ R n Ο‰.1 | fun Ο‰ ↦ A n Ο‰.1; 𝔓]
      =ᡐ[P.map (A n)] 𝓛[R n | A n; P] :=
    condDistrib_fst_prod _ (by fun_prop) _
  filter_upwards [h_ra', h_prod] with Ο‰ h_eq h_prod
  rw [h_prod, h_eq]

Actions: Source Β· Open Issue

Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 4th 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: 8 project declarations, 80 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.