LeanMachineLearning

Bandits.identDistrib_rewardByCount๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Bandits.identDistrib_rewardByCount.{u_1, u_2} {๐“ : Type u_1} {ฮฉ : Type u_2} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {R : โ„• โ†’ ฮฉ โ†’ โ„} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] [StandardBorelSpace ๐“] [Nonempty ๐“] [StandardBorelSpace ฮฉ] [Countable ๐“] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐“) (n m : โ„•) (hn : n โ‰  0) (hm : m โ‰  0) : ProbabilityTheory.IdentDistrib (Learning.rewardByCount A R a n) (Learning.rewardByCount A R a m) (MeasureTheory.Measure.prod P (streamMeasure ฮฝ)) (MeasureTheory.Measure.prod P (streamMeasure ฮฝ))
Bandits.identDistrib_rewardByCount.{u_1, u_2} {๐“ : Type u_1} {ฮฉ : Type u_2} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {R : โ„• โ†’ ฮฉ โ†’ โ„} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] [StandardBorelSpace ๐“] [Nonempty ๐“] [StandardBorelSpace ฮฉ] [Countable ๐“] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐“) (n m : โ„•) (hn : n โ‰  0) (hm : m โ‰  0) : ProbabilityTheory.IdentDistrib (Learning.rewardByCount A R a n) (Learning.rewardByCount A R a m) (MeasureTheory.Measure.prod P (streamMeasure ฮฝ)) (MeasureTheory.Measure.prod P (streamMeasure ฮฝ))

Code

lemma identDistrib_rewardByCount [StandardBorelSpace ฮฉ] [Countable ๐“]
    (h : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (a : ๐“) (n m : โ„•)
    (hn : n โ‰  0) (hm : m โ‰  0) :
    IdentDistrib (rewardByCount A R a n) (rewardByCount A R a m) ๐”“ ๐”“ where
  aemeasurable_fst
Proof
(measurable_rewardByCount h.measurable_action h.measurable_feedback a n).aemeasurable
  aemeasurable_snd :=
    (measurable_rewardByCount h.measurable_action h.measurable_feedback a m).aemeasurable
  map_eq := by rw [(hasLaw_rewardByCount h a n hn).map_eq, (hasLaw_rewardByCount h a m hm).map_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: 10 project declarations, 78 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.