LeanMachineLearning

Learning.IsBayesAlgEnvSeq.prob_empMean_sub_actionMean_ge_leπŸ”—

Lemma

No docstring.

πŸ”—theorem
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.