Learning.IsBayesAlgEnvSeq.prob_empMean_bestAction_sub_actionMean_le_le
No docstring.
Learning.IsBayesAlgEnvSeq.prob_empMean_bestAction_sub_actionMean_le_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, pullCount A (bestAction ΞΊ E Ο) t Ο β 0 β§ empMean A R (bestAction ΞΊ E Ο) t Ο - actionMean ΞΊ E (bestAction ΞΊ E Ο) Ο β€ -β(2 * βΟ2 * Real.log (1 / Ξ΄) / β(pullCount A (bestAction ΞΊ E Ο) t Ο))} β€ ENNReal.ofReal ((βn - 1) * Ξ΄)Learning.IsBayesAlgEnvSeq.prob_empMean_bestAction_sub_actionMean_le_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, pullCount A (bestAction ΞΊ E Ο) t Ο β 0 β§ empMean A R (bestAction ΞΊ E Ο) t Ο - actionMean ΞΊ E (bestAction ΞΊ E Ο) Ο β€ -β(2 * βΟ2 * Real.log (1 / Ξ΄) / β(pullCount A (bestAction ΞΊ E Ο) t Ο))} β€ ENNReal.ofReal ((βn - 1) * Ξ΄)
Code
lemma prob_empMean_bestAction_sub_actionMean_le_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, pullCount A (bestAction ΞΊ E Ο) t Ο β 0 β§
empMean A R (bestAction ΞΊ E Ο) t Ο - actionMean ΞΊ E (bestAction ΞΊ E Ο) Ο β€
-β(2 * Ο2 * Real.log (1 / Ξ΄) / (pullCount A (bestAction ΞΊ E Ο) t Ο))}
β€ ENNReal.ofReal ((n - 1) * Ξ΄)Proof
by
have := h.measurable_param
have := h.measurable_action
have := h.measurable_feedback
let S := {(e, Ο) | β t < n, pullCount IT.action (bestAction ΞΊ id e) t Ο β 0 β§
sumRewards IT.action IT.feedback (bestAction ΞΊ id e) t Ο -
pullCount IT.action (bestAction ΞΊ id e) t Ο * actionMean ΞΊ id (bestAction ΞΊ id e) e β€
-β(2 * pullCount IT.action (bestAction ΞΊ id e) t Ο * Ο2 * Real.log (1 / Ξ΄))}
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, hpc, hleβ©
rw [empMean] at hle
exact β¨t, ht, hpc, sub_le_neg_sqrt_two_mul 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 ((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_le_le (Ξ½ := ΞΊ.sectR e) hΟ2 (hs e _) he
hΞ΄
_ = ENNReal.ofReal ((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: 11 project declarations, 128 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.