Bandits.prob_avg_sub_sqrt_log_ge
No docstring.
Bandits.prob_avg_sub_sqrt_log_ge.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] {ฯ2 : NNReal} {c : โ} (hฮฝ : โ (a : ๐), ProbabilityTheory.HasSubgaussianMGF (fun x => x - โซ (x : โ), id x โฮฝ a) ฯ2 (ฮฝ a)) (hฯ2 : ฯ2 โ 0) (hc : 0 โค c) (a : ๐) (n k : โ) (hk : k โ 0) : (streamMeasure ฮฝ) {ฯ | โซ (x : โ), id x โฮฝ a โค (โ m โ Finset.range k, ฯ m a) / โk - โ(2 * c * โฯ2 * Real.log (โn + 1) / โk)} โค 1 / (โn + 1) ^ cBandits.prob_avg_sub_sqrt_log_ge.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} [ProbabilityTheory.IsMarkovKernel ฮฝ] {ฯ2 : NNReal} {c : โ} (hฮฝ : โ (a : ๐), ProbabilityTheory.HasSubgaussianMGF (fun x => x - โซ (x : โ), id x โฮฝ a) ฯ2 (ฮฝ a)) (hฯ2 : ฯ2 โ 0) (hc : 0 โค c) (a : ๐) (n k : โ) (hk : k โ 0) : (streamMeasure ฮฝ) {ฯ | โซ (x : โ), id x โฮฝ a โค (โ m โ Finset.range k, ฯ m a) / โk - โ(2 * c * โฯ2 * Real.log (โn + 1) / โk)} โค 1 / (โn + 1) ^ c
Code
lemma prob_avg_sub_sqrt_log_ge {ฯ2 : โโฅ0} {c : โ}
(hฮฝ : โ a, HasSubgaussianMGF (fun x โฆ x - (ฮฝ a)[id]) ฯ2 (ฮฝ a)) (hฯ2 : ฯ2 โ 0)
(hc : 0 โค c) (a : ๐) (n k : โ) (hk : k โ 0) :
streamMeasure ฮฝ
{ฯ | (ฮฝ a)[id] โค (โ m โ range k, ฯ m a) / k - โ(2 * c * ฯ2 *log (n + 1) / k)} โค
1 / (n + 1) ^ cProof
by
have h_log_nonneg : 0 โค log (n + 1) := log_nonneg (by simp)
calc
streamMeasure ฮฝ {ฯ | (ฮฝ a)[id] โค (โ m โ range k, ฯ m a) / k - โ(2 * c * ฯ2 * log (n + 1) / k)}
_ = streamMeasure ฮฝ
{ฯ | โ(2 * c * ฯ2 * log (n + 1) / k) โค (โ s โ range k, (ฯ s a - (ฮฝ a)[id])) / k} := by
congr with ฯ
field_simp
rw [Finset.sum_sub_distrib]
simp
grind
_ = streamMeasure ฮฝ
{ฯ | โ(2 * c * k * ฯ2 * log (n + 1)) โค (โ s โ range k, (ฯ s a - (ฮฝ a)[id]))} := by
congr with ฯ
field_simp
congr! 1
rw [sqrt_div (by positivity), โ mul_div_assoc, mul_comm, mul_div_assoc, div_sqrt,
mul_comm _ (k : โ), sqrt_mul (x := (k : โ)) (by positivity), mul_comm]
_ โค 1 / (n + 1) ^ c := prob_sum_ge_sqrt_log hฮฝ hฯ2 hc a k hkActions: 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: 1 project declarations, 68 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.