LeanMachineLearning

Bandits.UCB.probReal_ucbIndex_le๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Bandits.UCB.probReal_ucbIndex_le.{u_1} {K : โ„•} {c : โ„} {ฮฝ : ProbabilityTheory.Kernel (Fin K) โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] {ฮฉ : Type u_1} {mฮฉ : MeasurableSpace ฮฉ} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {A : โ„• โ†’ ฮฉ โ†’ Fin K} {R : โ„• โ†’ ฮฉ โ†’ โ„} {ฯƒ2 : NNReal} [Nonempty (Fin K)] {alg : Learning.Algorithm (Fin K) โ„} (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (hฮฝ : โˆ€ (a : Fin K), ProbabilityTheory.HasSubgaussianMGF (fun x => x - โˆซ (x : โ„), id x โˆ‚ฮฝ a) ฯƒ2 (ฮฝ a)) (hฯƒ2 : ฯƒ2 โ‰  0) (hc : 0 โ‰ค c) (a : Fin K) (n : โ„•) : MeasureTheory.Measure.real P {h | 0 < Learning.pullCount A a n h โˆง Learning.empMean A R a n h + ucbWidth A (c * โ†‘ฯƒ2) a n h โ‰ค โˆซ (x : โ„), id x โˆ‚ฮฝ a} โ‰ค 1 / (โ†‘n + 1) ^ (c - 1)
Bandits.UCB.probReal_ucbIndex_le.{u_1} {K : โ„•} {c : โ„} {ฮฝ : ProbabilityTheory.Kernel (Fin K) โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] {ฮฉ : Type u_1} {mฮฉ : MeasurableSpace ฮฉ} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {A : โ„• โ†’ ฮฉ โ†’ Fin K} {R : โ„• โ†’ ฮฉ โ†’ โ„} {ฯƒ2 : NNReal} [Nonempty (Fin K)] {alg : Learning.Algorithm (Fin K) โ„} (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (hฮฝ : โˆ€ (a : Fin K), ProbabilityTheory.HasSubgaussianMGF (fun x => x - โˆซ (x : โ„), id x โˆ‚ฮฝ a) ฯƒ2 (ฮฝ a)) (hฯƒ2 : ฯƒ2 โ‰  0) (hc : 0 โ‰ค c) (a : Fin K) (n : โ„•) : MeasureTheory.Measure.real P {h | 0 < Learning.pullCount A a n h โˆง Learning.empMean A R a n h + ucbWidth A (c * โ†‘ฯƒ2) a n h โ‰ค โˆซ (x : โ„), id x โˆ‚ฮฝ a} โ‰ค 1 / (โ†‘n + 1) ^ (c - 1)

Code

lemma probReal_ucbIndex_le [Nonempty (Fin K)] {alg : Algorithm (Fin K) โ„}
    (h : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P)
    (hฮฝ : โˆ€ a, HasSubgaussianMGF (fun x โ†ฆ x - (ฮฝ a)[id]) ฯƒ2 (ฮฝ a))
    (hฯƒ2 : ฯƒ2 โ‰  0) (hc : 0 โ‰ค c) (a : Fin K) (n : โ„•) :
    P.real {h | 0 < pullCount A a n h โˆง empMean A R a n h + ucbWidth A (c * ฯƒ2) a n h โ‰ค (ฮฝ a)[id]} โ‰ค
      1 / (n + 1) ^ (c - 1)
Proof
by
  rw [measureReal_def]
  grw [prob_ucbIndex_le h hฮฝ hฯƒ2 hc a n]
  swap; ยท finiteness
  simp only [one_div, ENNReal.toReal_inv]
  rw [โ† ENNReal.toReal_rpow]
  norm_cast

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: 10 project declarations, 107 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.