Learning.IsBayesAlgEnvSeq.prob_empMean_sub_actionMean_ge_le
No docstring.
Learning.IsBayesAlgEnvSeq.prob_empMean_sub_actionMean_ge_le.{u_1, u_2} {π : Type u_1} {Ξ© : Type u_2} [MeasurableSpace π] [MeasurableSpace Ξ©] {K : β} [Nonempty (Fin K)] {Q : MeasureTheory.Measure π} {ΞΊ : ProbabilityTheory.Kernel (π Γ Fin K) β} [ProbabilityTheory.IsMarkovKernel ΞΊ] {alg : Algorithm (Fin K) β} {E : Ξ© β π} {A : β β Ξ© β Fin K} {R : β β Ξ© β β} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] (h : IsBayesAlgEnvSeq Q ΞΊ alg E A R P) {Ο2 : NNReal} (hΟ2 : 0 < Ο2) (hs : β (e : π) (a : Fin K), ProbabilityTheory.HasSubgaussianMGF (fun x => x - β« (x : β), id x βΞΊ (e, a)) Ο2 (ΞΊ (e, a))) {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) (n : β) : P {Ο | β t < n, β a, pullCount A a t Ο β 0 β§ β(2 * βΟ2 * Real.log (1 / Ξ΄) / β(pullCount A a t Ο)) β€ empMean A R a t Ο - actionMean ΞΊ E a Ο} β€ ENNReal.ofReal (βK * (βn - 1) * Ξ΄)Learning.IsBayesAlgEnvSeq.prob_empMean_sub_actionMean_ge_le.{u_1, u_2} {π : Type u_1} {Ξ© : Type u_2} [MeasurableSpace π] [MeasurableSpace Ξ©] {K : β} [Nonempty (Fin K)] {Q : MeasureTheory.Measure π} {ΞΊ : ProbabilityTheory.Kernel (π Γ Fin K) β} [ProbabilityTheory.IsMarkovKernel ΞΊ] {alg : Algorithm (Fin K) β} {E : Ξ© β π} {A : β β Ξ© β Fin K} {R : β β Ξ© β β} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] (h : IsBayesAlgEnvSeq Q ΞΊ alg E A R P) {Ο2 : NNReal} (hΟ2 : 0 < Ο2) (hs : β (e : π) (a : Fin K), ProbabilityTheory.HasSubgaussianMGF (fun x => x - β« (x : β), id x βΞΊ (e, a)) Ο2 (ΞΊ (e, a))) {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) (n : β) : P {Ο | β t < n, β a, pullCount A a t Ο β 0 β§ β(2 * βΟ2 * Real.log (1 / Ξ΄) / β(pullCount A a t Ο)) β€ empMean A R a t Ο - actionMean ΞΊ E a Ο} β€ ENNReal.ofReal (βK * (βn - 1) * Ξ΄)
Code
lemma prob_empMean_sub_actionMean_ge_le (h : IsBayesAlgEnvSeq Q ΞΊ alg E A R P) {Ο2 : ββ₯0}
(hΟ2 : 0 < Ο2) (hs : β e a, HasSubgaussianMGF (fun x β¦ x - (ΞΊ (e, a))[id]) Ο2 (ΞΊ (e, a)))
{Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) (n : β) :
P {Ο | β t < n, β a, pullCount A a t Ο β 0 β§
β(2 * Ο2 * Real.log (1 / Ξ΄) / pullCount A a t Ο) β€ empMean A R a t Ο - actionMean ΞΊ E a Ο}
β€ ENNReal.ofReal (K * (n - 1) * Ξ΄)Proof
by
have := h.measurable_param
have := h.measurable_action
have := h.measurable_feedback
let S := {(e, Ο) | β a, β t < n, pullCount IT.action a t Ο β 0 β§
β(2 * pullCount IT.action a t Ο * Ο2 * Real.log (1 / Ξ΄)) β€
sumRewards IT.action IT.feedback a t Ο - pullCount IT.action a t Ο * actionMean ΞΊ id a e}
calc
_ β€ (P.map (fun Ο β¦ (E Ο, trajectory A R Ο))) S := by
rw [Measure.map_apply (by fun_prop) (by measurability)]
apply measure_mono
intro Ο β¨t, ht, a, hpc, hleβ©
rw [empMean] at hle
exact β¨a, t, ht, hpc, sqrt_two_mul_le_sub hpc hleβ©
_ = (P.map E ββ condDistrib (trajectory A R) E P) S := by
rw [β compProd_map_condDistrib (by fun_prop)]
_ = β«β» e, condDistrib (trajectory A R) E P e (Prod.mk e β»ΒΉ' S) β(P.map E) :=
Measure.compProd_apply (by measurability)
_ β€ β«β» e, ENNReal.ofReal (Fintype.card (Fin K) * (n - 1) * Ξ΄) β(P.map E) := by
apply lintegral_mono_ae
rw [h.hasLaw_env.map_eq]
filter_upwards [h.ae_IsAlgEnvSeq] with e he
exact Bandits.prob_sumRewards_sub_pullCount_mul_ge_le_of_Fintype hΟ2 (hs e) he hΞ΄
_ = ENNReal.ofReal (K * (n - 1) * Ξ΄) := by
simp [Measure.map_apply h.measurable_param]Actions: 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: 7 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.