Bandits.ArrayModel.prob_pullCount_prod_sumRewards_mem_le
No docstring.
Bandits.ArrayModel.prob_pullCount_prod_sumRewards_mem_le.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} [DecidableEq ๐] [Countable ๐] [StandardBorelSpace ๐] [Nonempty ๐] {alg : Learning.Algorithm ๐ โ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] (a : ๐) (n : โ) {s : Set (โ ร โ)} [DecidablePred fun x => x โ Prod.fst '' s] (hs : MeasurableSet s) : (arrayMeasure ฮฝ) {ฯ | (Learning.pullCount (action alg) a n ฯ, Learning.sumRewards (action alg) (reward alg) 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.ArrayModel.prob_pullCount_prod_sumRewards_mem_le.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} [DecidableEq ๐] [Countable ๐] [StandardBorelSpace ๐] [Nonempty ๐] {alg : Learning.Algorithm ๐ โ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] (a : ๐) (n : โ) {s : Set (โ ร โ)} [DecidablePred fun x => x โ Prod.fst '' s] (hs : MeasurableSet s) : (arrayMeasure ฮฝ) {ฯ | (Learning.pullCount (action alg) a n ฯ, Learning.sumRewards (action alg) (reward alg) 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 (a : ๐) (n : โ)
{s : Set (โ ร โ)} [DecidablePred (ยท โ Prod.fst '' s)] (hs : MeasurableSet s) :
๐ {ฯ | (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
simp_rw [sumRewards_eq]
calc ๐ ((fun ฯ โฆ (pullCount A a n ฯ, โ i โ range (pullCount A a n ฯ), ฯ.2 i a)) โปยน' s)
_ โค ๐ {ฯ | โ k โค n, (k, โ i โ range k, ฯ.2 i a) โ s} := by
refine measure_mono fun ฯ hฯ โฆ ?_
simp only [Set.mem_ofPred_eq] at hฯ โข
exact โจpullCount A a n ฯ, pullCount_le _ _ _, hฯโฉ
_ = ๐ (โ k โ (range (n + 1)).filter (ยท โ Prod.fst '' s),
{ฯ | (k, โ i โ range k, ฯ.2 i a) โ s}) := by congr 1; ext; simp; grind
_ โค โ k โ (range (n + 1)).filter (ยท โ Prod.fst '' s),
๐ {ฯ | โ i โ range k, ฯ.2 i a โ Prod.mk k โปยน' s} := measure_biUnion_finset_le _ _
_ = โ k โ (range (n + 1)).filter (ยท โ Prod.fst '' s),
(streamMeasure ฮฝ) {ฯ | โ i โ range k, ฯ i a โ Prod.mk k โปยน' s} := by
congr with k
have : (๐).map (fun ฯ โฆ โ i โ range k, ฯ.2 i a) =
(streamMeasure ฮฝ).map (fun ฯ โฆ โ i โ range k, ฯ i a) :=
(identDistrib_sum_range_snd a k).map_eq
rw [Measure.ext_iff] at this
specialize this (Prod.mk k โปยน' s) (hs.preimage (by fun_prop))
rwa [Measure.map_apply (by fun_prop) (hs.preimage (by fun_prop)),
Measure.map_apply (by fun_prop) (hs.preimage (by fun_prop))] at thisActions: Source ยท Open Issue
Meaning last changed in v4.34.0-rc2-14-gf86702d (2026-08-25), the 6th 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: 15 project declarations, 111 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.