Bandits.prob_sumRewards_sub_pullCount_mul_le_le
No docstring.
Bandits.prob_sumRewards_sub_pullCount_mul_le_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 π] {Ο2 : NNReal} (hΟ2 : 0 < Ο2) (ha : ProbabilityTheory.HasSubgaussianMGF (fun x => x - β« (x : β), id x βΞ½ a) Ο2 (Ξ½ a)) (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv Ξ½) P) {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : P {Ο | β t < n, Learning.pullCount A a t Ο β 0 β§ Learning.sumRewards A R a t Ο - β(Learning.pullCount A a t Ο) * β« (x : β), id x βΞ½ a β€ -β(2 * β(Learning.pullCount A a t Ο) * βΟ2 * Real.log (1 / Ξ΄))} β€ ENNReal.ofReal ((βn - 1) * Ξ΄)Bandits.prob_sumRewards_sub_pullCount_mul_le_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 π] {Ο2 : NNReal} (hΟ2 : 0 < Ο2) (ha : ProbabilityTheory.HasSubgaussianMGF (fun x => x - β« (x : β), id x βΞ½ a) Ο2 (Ξ½ a)) (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv Ξ½) P) {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : P {Ο | β t < n, Learning.pullCount A a t Ο β 0 β§ Learning.sumRewards A R a t Ο - β(Learning.pullCount A a t Ο) * β« (x : β), id x βΞ½ a β€ -β(2 * β(Learning.pullCount A a t Ο) * βΟ2 * Real.log (1 / Ξ΄))} β€ ENNReal.ofReal ((βn - 1) * Ξ΄)
Code
lemma prob_sumRewards_sub_pullCount_mul_le_le [Countable π] [MeasurableSingletonClass π]
{Ο2 : ββ₯0} (hΟ2 : 0 < Ο2) (ha : HasSubgaussianMGF (fun x β¦ x - (Ξ½ a)[id]) Ο2 (Ξ½ a))
(h : IsAlgEnvSeq A R alg (stationaryEnv Ξ½) P) {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) :
P {Ο | β t < n, pullCount A a t Ο β 0 β§
sumRewards A R a t Ο - pullCount A a t Ο * (Ξ½ a)[id] β€
-β(2 * pullCount A a t Ο * Ο2 * Real.log (1 / Ξ΄))} β€ ENNReal.ofReal ((n - 1) * Ξ΄)Proof
let B (m : β) := {x : β | x - m * (Ξ½ a)[id] β€ -β(2 * m * Ο2 * Real.log (1 / Ξ΄))}
calc
_ β€ P (β m β Icc 1 (n - 1), {Ο | β t, t < n β§ pullCount A a t Ο = m β§
sumRewards A R a t Ο β B m}) := by
apply measure_mono
intro Ο β¨t, ht, hp, hbβ©
have hm : pullCount A a t Ο β Icc 1 (n - 1) := mem_Icc.mpr β¨Nat.one_le_iff_ne_zero.mpr hp,
(pullCount_le a t Ο).trans (Nat.le_sub_one_of_lt ht)β©
exact Set.mem_biUnion hm β¨t, ht, rfl, hbβ©
_ β€ β m β Icc 1 (n - 1), P {Ο | β t, t < n β§ pullCount A a t Ο = m β§
sumRewards A R a t Ο β B m} :=
measure_biUnion_finset_le _ _
_ β€ β m β Icc 1 (n - 1), P {Ο | β t, pullCount A a t Ο = m β§ sumRewards A R a t Ο β B m} :=
sum_le_sum (fun _ _ β¦ measure_mono (fun _ β¨t, _, hpsβ© β¦ β¨t, hpsβ©))
_ β€ β m β Icc 1 (n - 1), streamMeasure Ξ½ {Ο | β i β range m, Ο i a β B m} := by
apply sum_le_sum
exact (fun m _ β¦ prob_exists_pullCount_eq_and_sumRewards_mem_le h a m (by measurability))
_ β€ β m β Icc 1 (n - 1), ENNReal.ofReal Ξ΄ := by
apply sum_le_sum
intro m hm
exact le_of_eq_of_le (by simp [B])
(StreamMeasure.prob_sum_range_sub_le_le_of_HasSubgaussianMGF' hΟ2 ha hΞ΄ (mem_Icc.mp hm).1)
_ = ENNReal.ofReal ((n - 1) * Ξ΄) := by
by_cases hn : n = 0
Β· simp [hn, hΞ΄.le]
Β· rw [sum_const, Nat.card_Icc, add_tsub_cancel_right, β ENNReal.ofReal_nsmul, nsmul_eq_mul,
Nat.cast_sub (Nat.one_le_iff_ne_zero.mpr hn)]
ring_nfActions: 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: 8 project declarations, 115 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.