Bandits.prob_exists_pullCount_eq_and_sumRewards_mem_le
No docstring.
Bandits.prob_exists_pullCount_eq_and_sumRewards_mem_le.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {mฮฉ : MeasurableSpace ฮฉ} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐ โ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] {A : โ โ ฮฉ โ ๐} {R : โ โ ฮฉ โ โ} [Nonempty ๐] [Countable ๐] [MeasurableSingletonClass ๐] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐) (m : โ) {B : Set โ} (hB : MeasurableSet B) : P {ฯ | โ n, Learning.pullCount A a n ฯ = m โง Learning.sumRewards A R a n ฯ โ B} โค (streamMeasure ฮฝ) {ฯ | โ i โ Finset.range m, ฯ i a โ B}Bandits.prob_exists_pullCount_eq_and_sumRewards_mem_le.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {mฮฉ : MeasurableSpace ฮฉ} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐ โ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] {A : โ โ ฮฉ โ ๐} {R : โ โ ฮฉ โ โ} [Nonempty ๐] [Countable ๐] [MeasurableSingletonClass ๐] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐) (m : โ) {B : Set โ} (hB : MeasurableSet B) : P {ฯ | โ n, Learning.pullCount A a n ฯ = m โง Learning.sumRewards A R a n ฯ โ B} โค (streamMeasure ฮฝ) {ฯ | โ i โ Finset.range m, ฯ i a โ B}
Code
lemma prob_exists_pullCount_eq_and_sumRewards_mem_le [Countable ๐] [MeasurableSingletonClass ๐]
(h : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (a : ๐) (m : โ) {B : Set โ}
(hB : MeasurableSet B) :
P {ฯ | โ n, pullCount A a n ฯ = m โง sumRewards A R a n ฯ โ B} โค
streamMeasure ฮฝ {ฯ | โ i โ range m, ฯ i a โ B}Proof
let s := {p : โ โ ๐ โ โ ร โ | โ n, (p n a).1 = m โง (p n a).2 โ B}
have : s = โ n, (fun p โฆ p n a) โปยน' ({m} รหข B) := by
ext p
simp [s]
have hs : MeasurableSet s := by measurability
calc P {ฯ | โ n, pullCount A a n ฯ = m โง sumRewards A R a n ฯ โ B}
_ = (ArrayModel.arrayMeasure ฮฝ) {ฯ | โ n, pullCount (ArrayModel.action alg) a n ฯ = m โง
sumRewards (ArrayModel.action alg) (ArrayModel.reward alg) a n ฯ โ B} :=
(h.identDistrib_pullCount_sumRewards
(ArrayModel.isAlgEnvSeq_arrayMeasure alg ฮฝ)).measure_mem_eq hs
_ โค _ := ArrayModel.prob_exists_pullCount_eq_and_sumRewards_mem_le a m hBActions: 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: 9 project declarations, 77 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.