LeanMachineLearning

Learning.IsBayesAlgEnvSeq.prob_empMean_bestAction_sub_actionMean_le_leπŸ”—

Lemma

No docstring.

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