Bandits.ArrayModel.prob_sumRewards_le_sumRewards_le
No docstring.
Bandits.ArrayModel.prob_sumRewards_le_sumRewards_le.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} [DecidableEq ๐] [Countable ๐] [StandardBorelSpace ๐] [Nonempty ๐] {alg : Learning.Algorithm ๐ โ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] [Fintype ๐] (a : ๐) (n mโ mโ : โ) : (arrayMeasure ฮฝ) {ฯ | Learning.pullCount (action alg) (bestArm ฮฝ) n ฯ = mโ โง Learning.pullCount (action alg) a n ฯ = mโ โง Learning.sumRewards (action alg) (reward alg) (bestArm ฮฝ) n ฯ โค Learning.sumRewards (action alg) (reward alg) a n ฯ} โค (streamMeasure ฮฝ) {ฯ | โ i โ Finset.range mโ, ฯ i (bestArm ฮฝ) โค โ i โ Finset.range mโ, ฯ i a}Bandits.ArrayModel.prob_sumRewards_le_sumRewards_le.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} [DecidableEq ๐] [Countable ๐] [StandardBorelSpace ๐] [Nonempty ๐] {alg : Learning.Algorithm ๐ โ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] [Fintype ๐] (a : ๐) (n mโ mโ : โ) : (arrayMeasure ฮฝ) {ฯ | Learning.pullCount (action alg) (bestArm ฮฝ) n ฯ = mโ โง Learning.pullCount (action alg) a n ฯ = mโ โง Learning.sumRewards (action alg) (reward alg) (bestArm ฮฝ) n ฯ โค Learning.sumRewards (action alg) (reward alg) a n ฯ} โค (streamMeasure ฮฝ) {ฯ | โ i โ Finset.range mโ, ฯ i (bestArm ฮฝ) โค โ i โ Finset.range mโ, ฯ i a}
Code
lemma prob_sumRewards_le_sumRewards_le [Fintype ๐] (a : ๐) (n mโ mโ : โ) :
(๐) {ฯ | pullCount A (bestArm ฮฝ) n ฯ = mโ โง pullCount A a n ฯ = mโ โง
sumRewards A R (bestArm ฮฝ) n ฯ โค sumRewards A R a n ฯ} โค
streamMeasure ฮฝ
{ฯ | โ i โ range mโ, ฯ i (bestArm ฮฝ) โค โ i โ range mโ, ฯ i a}Proof
by
simp_rw [sumRewards_eq]
calc ๐ {ฯ | pullCount A (bestArm ฮฝ) n ฯ = mโ โง pullCount A a n ฯ = mโ โง
โ i โ range (pullCount A (bestArm ฮฝ) n ฯ), ฯ.2 i (bestArm ฮฝ) โค
โ i โ range (pullCount A a n ฯ), ฯ.2 i a}
_ โค ๐ ((fun ฯ โฆ (โ i โ range mโ, ฯ.2 i (bestArm ฮฝ), โ i โ range mโ, ฯ.2 i a)) โปยน'
{p | p.1 โค p.2}) := by
refine measure_mono fun ฯ hฯ โฆ ?_
simp only [Set.preimage_ofPred_eq, Set.mem_ofPred_eq] at hฯ โข
grind
_ = streamMeasure ฮฝ
{ฯ | โ i โ range mโ, ฯ i (bestArm ฮฝ) โค โ i โ range mโ, ฯ i a} := by
rw [โ Measure.snd_prod (ฮผ := (Measure.infinitePi fun (_ : โ) โฆ (volume : Measure unitInterval)))
(ฮฝ := streamMeasure ฮฝ), Measure.snd, Measure.map_apply (by fun_prop)]
ยท rfl
simp only [measurableSet_setOfPred]
fun_propActions: 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: 16 project declarations, 126 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.