Bandits.ETC.prob_arm_mul_eq_le
The probability that at time K * m the ETC algorithm chooses arm a is at most
exp(- m * ฮ_a^2 / 4).
Bandits.ETC.prob_arm_mul_eq_le.{u_1} {K : โ} {hK : 0 < K} {m : โ} {ฮฝ : 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)] (h : Learning.IsAlgEnvSeq A R (etcAlgorithm hK m) (Learning.stationaryEnv ฮฝ) P) (hฮฝ : โ (a : Fin K), ProbabilityTheory.HasSubgaussianMGF (fun x => x - โซ (x : โ), id x โฮฝ a) ฯ2 (ฮฝ a)) (a : Fin K) (hm : m โ 0) : MeasureTheory.Measure.real P {ฯ | A (K * m) ฯ = a} โค Real.exp (-โm * gap ฮฝ a ^ 2 / (4 * โฯ2))Bandits.ETC.prob_arm_mul_eq_le.{u_1} {K : โ} {hK : 0 < K} {m : โ} {ฮฝ : 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)] (h : Learning.IsAlgEnvSeq A R (etcAlgorithm hK m) (Learning.stationaryEnv ฮฝ) P) (hฮฝ : โ (a : Fin K), ProbabilityTheory.HasSubgaussianMGF (fun x => x - โซ (x : โ), id x โฮฝ a) ฯ2 (ฮฝ a)) (a : Fin K) (hm : m โ 0) : MeasureTheory.Measure.real P {ฯ | A (K * m) ฯ = a} โค Real.exp (-โm * gap ฮฝ a ^ 2 / (4 * โฯ2))
Code
lemma prob_arm_mul_eq_le [Nonempty (Fin K)]
(h : IsAlgEnvSeq A R (etcAlgorithm hK m) (stationaryEnv ฮฝ) P)
(hฮฝ : โ a, HasSubgaussianMGF (fun x โฆ x - (ฮฝ a)[id]) ฯ2 (ฮฝ a)) (a : Fin K)
(hm : m โ 0) :
P.real {ฯ | A (K * m) ฯ = a} โค Real.exp (- (m : โ) * gap ฮฝ a ^ 2 / (4 * ฯ2))Proof
by
have h_pos : 0 < K * m := Nat.mul_pos hK hm.bot_lt
have h_le : P.real {ฯ | A (K * m) ฯ = a}
โค P.real {ฯ | sumRewards A R (bestArm ฮฝ) (K * m) ฯ โค sumRewards A R a (K * m) ฯ} := by
simp_rw [measureReal_def]
gcongr 1
ยท simp
refine measure_mono_ae ?_
exact sumRewards_bestArm_le_of_arm_mul_eq h a hm
exact h_le.trans (probReal_sumRewards_le_sumRewards_le h hฮฝ a)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: 17 project declarations, 137 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.