Bandits.probReal_sum_le_sum_streamMeasure
No docstring.
Bandits.probReal_sum_le_sum_streamMeasure.{u_1} {𝓐 : Type u_1} {m𝓐 : MeasurableSpace 𝓐} {ν : ProbabilityTheory.Kernel 𝓐 ℝ} [ProbabilityTheory.IsMarkovKernel ν] [Nonempty 𝓐] [Fintype 𝓐] {c : NNReal} (hν : ∀ (a : 𝓐), ProbabilityTheory.HasSubgaussianMGF (fun x => x - ∫ (x : ℝ), id x ∂ν a) c (ν a)) (a : 𝓐) (m : ℕ) : MeasureTheory.Measure.real (streamMeasure ν) {ω | ∑ s ∈ Finset.range m, ω s (bestArm ν) ≤ ∑ s ∈ Finset.range m, ω s a} ≤ Real.exp (-↑m * gap ν a ^ 2 / (4 * ↑c))Bandits.probReal_sum_le_sum_streamMeasure.{u_1} {𝓐 : Type u_1} {m𝓐 : MeasurableSpace 𝓐} {ν : ProbabilityTheory.Kernel 𝓐 ℝ} [ProbabilityTheory.IsMarkovKernel ν] [Nonempty 𝓐] [Fintype 𝓐] {c : NNReal} (hν : ∀ (a : 𝓐), ProbabilityTheory.HasSubgaussianMGF (fun x => x - ∫ (x : ℝ), id x ∂ν a) c (ν a)) (a : 𝓐) (m : ℕ) : MeasureTheory.Measure.real (streamMeasure ν) {ω | ∑ s ∈ Finset.range m, ω s (bestArm ν) ≤ ∑ s ∈ Finset.range m, ω s a} ≤ Real.exp (-↑m * gap ν a ^ 2 / (4 * ↑c))
Code
lemma probReal_sum_le_sum_streamMeasure [Fintype 𝓐] {c : ℝ≥0}
(hν : ∀ a, HasSubgaussianMGF (fun x ↦ x - (ν a)[id]) c (ν a)) (a : 𝓐) (m : ℕ) :
(streamMeasure ν).real
{ω | ∑ s ∈ range m, ω s (bestArm ν) ≤ ∑ s ∈ range m, ω s a} ≤
Real.exp (-↑m * gap ν a ^ 2 / (4 * c))Proof
by
by_cases ha : a = bestArm ν
· simp [ha]
refine (HasSubgaussianMGF.measure_sum_le_sum_le' (cX := fun _ ↦ c) (cY := fun _ ↦ c)
?_ ?_ ?_ ?_ ?_ ?_).trans_eq ?_
· exact iIndepFun_eval_streamMeasure'' ν (bestArm ν)
· exact iIndepFun_eval_streamMeasure'' ν a
· intro i him
simp_rw [integral_eval_streamMeasure]
refine (hν (bestArm ν)).congr_identDistrib ?_
exact (identDistrib_eval_eval_id_streamMeasure _ _ _).symm.sub_const _
· intro i him
simp_rw [integral_eval_streamMeasure]
refine (hν a).congr_identDistrib ?_
exact (identDistrib_eval_eval_id_streamMeasure _ _ _).symm.sub_const _
· exact indepFun_eval_streamMeasure' ν (Ne.symm ha)
· gcongr 1 with i him
simp_rw [integral_eval_streamMeasure]
exact le_bestArm a
· congr 1
simp_rw [integral_eval_streamMeasure]
simp only [id_eq, sum_const, card_range, nsmul_eq_mul, NNReal.coe_mul, NNReal.coe_natCast,
gap_eq_bestArm_sub, neg_mul]
field_simp
ringActions: Source · Open Issue
Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 3th 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: 3 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.