Learning.IsAlgEnvSeq.identDistrib_pullCount_sumRewards
No docstring.
Learning.IsAlgEnvSeq.identDistrib_pullCount_sumRewards.{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โ : โ โ ฮฉ' โ โ} [MeasurableSingletonClass ๐] (h1 : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (h2 : IsAlgEnvSeq Aโ Rโ alg (stationaryEnv ฮฝ) P') : ProbabilityTheory.IdentDistrib (fun ฯ n a => (pullCount A a n ฯ, sumRewards A R a n ฯ)) (fun ฯ' n a => (pullCount Aโ a n ฯ', sumRewards Aโ Rโ a n ฯ')) P P'Learning.IsAlgEnvSeq.identDistrib_pullCount_sumRewards.{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โ : โ โ ฮฉ' โ โ} [MeasurableSingletonClass ๐] (h1 : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (h2 : IsAlgEnvSeq Aโ Rโ alg (stationaryEnv ฮฝ) P') : ProbabilityTheory.IdentDistrib (fun ฯ n a => (pullCount A a n ฯ, sumRewards A R a n ฯ)) (fun ฯ' n a => (pullCount Aโ a n ฯ', sumRewards Aโ Rโ a n ฯ')) P P'
Code
lemma _root_.Learning.IsAlgEnvSeq.identDistrib_pullCount_sumRewards [MeasurableSingletonClass ๐]
(h1 : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P)
(h2 : IsAlgEnvSeq Aโ Rโ alg (stationaryEnv ฮฝ) P') :
IdentDistrib (fun ฯ n a โฆ (pullCount A a n ฯ, sumRewards A R a n ฯ))
(fun ฯ' n a โฆ (pullCount Aโ a n ฯ', sumRewards Aโ Rโ a n ฯ')) P P'Proof
by
let f (ฯ : โ โ ๐ ร โ) (n : โ) (a : ๐) : โ ร โ :=
(โ i โ range n, if (ฯ i).1 = a then 1 else 0,
โ i โ range n, if (ฯ i).1 = a then (ฯ i).2 else 0)
have hc1 : (fun ฯ n a โฆ (pullCount A a n ฯ, sumRewards A R a n ฯ)) =
f โ (trajectory A R) := by
ext ฯ n a : 3
simp_rw [Function.comp, f, pullCount, card_filter, sumRewards, trajectory]
rfl
have hc2 : (fun ฯ' n a โฆ (pullCount Aโ a n ฯ', sumRewards Aโ Rโ a n ฯ')) =
f โ (trajectory Aโ Rโ) := by
ext ฯ' n a : 3
simp_rw [Function.comp, f, pullCount, card_filter, sumRewards, trajectory]
rfl
have hf : Measurable f := by
simp_rw [f, measurable_pi_iff]
intro n a
apply Measurable.prod
ยท dsimp only
exact measurable_sum _
(fun _ _ โฆ Measurable.ite (by measurability) (by fun_prop) (by fun_prop))
ยท dsimp only
exact measurable_sum _
(fun _ _ โฆ Measurable.ite (by measurability) (by fun_prop) (by fun_prop))
rw [hc1, hc2]
exact (h1.identDistrib_trajectory h2).comp hfActions: 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: 8 project declarations, 63 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.