Bandits.prob_pullCount_prod_sumRewards_mem_le
No docstring.
Bandits.prob_pullCount_prod_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 : โ โ ฮฉ โ โ} {n : โ} {a : ๐} [Nonempty ๐] [Countable ๐] [MeasurableSingletonClass ๐] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) {s : Set (โ ร โ)} [DecidablePred fun x => x โ Prod.fst '' s] (hs : MeasurableSet s) : P {ฯ | (Learning.pullCount A a n ฯ, Learning.sumRewards A R a n ฯ) โ s} โค โ k โ Finset.range (n + 1) with k โ Prod.fst '' s, (streamMeasure ฮฝ) {ฯ | โ i โ Finset.range k, ฯ i a โ Prod.mk k โปยน' s}Bandits.prob_pullCount_prod_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 : โ โ ฮฉ โ โ} {n : โ} {a : ๐} [Nonempty ๐] [Countable ๐] [MeasurableSingletonClass ๐] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) {s : Set (โ ร โ)} [DecidablePred fun x => x โ Prod.fst '' s] (hs : MeasurableSet s) : P {ฯ | (Learning.pullCount A a n ฯ, Learning.sumRewards A R a n ฯ) โ s} โค โ k โ Finset.range (n + 1) with k โ Prod.fst '' s, (streamMeasure ฮฝ) {ฯ | โ i โ Finset.range k, ฯ i a โ Prod.mk k โปยน' s}
Code
lemma prob_pullCount_prod_sumRewards_mem_le [Countable ๐] [MeasurableSingletonClass ๐]
(h : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P)
{s : Set (โ ร โ)} [DecidablePred (ยท โ Prod.fst '' s)] (hs : MeasurableSet s) :
P {ฯ | (pullCount A a n ฯ, sumRewards A R a n ฯ) โ s} โค
โ k โ (range (n + 1)).filter (ยท โ Prod.fst '' s),
streamMeasure ฮฝ {ฯ | โ i โ range k, ฯ i a โ Prod.mk k โปยน' s}Proof
by
have hA := h.measurable_action
have hR := h.measurable_feedback
calc P {ฯ | (pullCount A a n ฯ, sumRewards A R a n ฯ) โ s}
_ = (P.map (fun ฯ โฆ (pullCount A a n ฯ, sumRewards A R a n ฯ))) s := by
rw [Measure.map_apply (by fun_prop) hs]; rfl
_ = ((ArrayModel.arrayMeasure ฮฝ).map
(fun ฯ โฆ (pullCount (ArrayModel.action alg) a n ฯ,
sumRewards (ArrayModel.action alg) (ArrayModel.reward alg) a n ฯ))) s := by
rw [h.law_pullCount_sumRewards_unique (ArrayModel.isAlgEnvSeq_arrayMeasure alg ฮฝ)]
_ = (ArrayModel.arrayMeasure ฮฝ) {ฯ | (pullCount (ArrayModel.action alg) a n ฯ,
sumRewards (ArrayModel.action alg) (ArrayModel.reward alg) a n ฯ) โ s} := by
rw [Measure.map_apply (by fun_prop) hs]; rfl
_ โค โ k โ (range (n + 1)).filter (ยท โ Prod.fst '' s),
streamMeasure ฮฝ {ฯ | โ i โ range k, ฯ i a โ Prod.mk k โปยน' s} :=
ArrayModel.prob_pullCount_prod_sumRewards_mem_le a n hsActions: 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, 81 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.