Bandits.integral_regret_le_of_forall_integral_pullCount_le
To bound the expected regret, it suffices to bound the expected number of pulls for each action with positive gap.
Bandits.integral_regret_le_of_forall_integral_pullCount_le.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {mฮฉ : MeasurableSpace ฮฉ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} {A : โ โ ฮฉ โ ๐} {R : โ โ ฮฉ โ โ} {n : โ} [StandardBorelSpace ๐] [Fintype ๐] {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐ โ} {env : Learning.Environment ๐ โ} {B : ๐ โ โ} (h : Learning.IsAlgEnvSeq A R alg env P) (h_le : โ (a : ๐), gap ฮฝ a โ 0 โ โซ (ฯ : ฮฉ), โ(Learning.pullCount A a n ฯ) โP โค B a) : โซ (x : ฮฉ), regret ฮฝ A n x โP โค โ a, gap ฮฝ a * B aBandits.integral_regret_le_of_forall_integral_pullCount_le.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {mฮฉ : MeasurableSpace ฮฉ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} {A : โ โ ฮฉ โ ๐} {R : โ โ ฮฉ โ โ} {n : โ} [StandardBorelSpace ๐] [Fintype ๐] {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐ โ} {env : Learning.Environment ๐ โ} {B : ๐ โ โ} (h : Learning.IsAlgEnvSeq A R alg env P) (h_le : โ (a : ๐), gap ฮฝ a โ 0 โ โซ (ฯ : ฮฉ), โ(Learning.pullCount A a n ฯ) โP โค B a) : โซ (x : ฮฉ), regret ฮฝ A n x โP โค โ a, gap ฮฝ a * B a
Code
lemma integral_regret_le_of_forall_integral_pullCount_le
[StandardBorelSpace ๐] [Fintype ๐] {P : Measure ฮฉ} [IsProbabilityMeasure P]
{alg : Algorithm ๐ โ} {env : Environment ๐ โ} {B : ๐ โ โ}
(h : IsAlgEnvSeq A R alg env P)
(h_le : โ a, gap ฮฝ a โ 0 โ โซ ฯ, (pullCount A a n ฯ : โ) โP โค B a) :
P[regret ฮฝ A n] โค โ a, gap ฮฝ a * B aProof
by have hA := h.measurable_action rw [integral_regret_eq_sum_gap_mul_integral_pullCount hA] gcongr 1 with a by_cases h_gap : gap ฮฝ a = 0 ยท simp [h_gap] gcongr ยท exact gap_nonneg ยท exact h_le a h_gap
Actions: Source ยท Open Issue
Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 4th 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, 77 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.