Lean module · Foundations
BanditRLProof.Algorithms.CUCBNiceEvent
The clipped empirical-mean confidence event on the actual CUCB path. The history length is n; the source decision round is n+1.
Module map
Imports
BanditRLProof.Algorithms.CUCBConfidence
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.CUCB.confidenceRadius
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.confidenceRadiusReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def confidenceRadius {m : ℕ} (Y : ℕ → Feedback m) (n : ℕ) (i : Fin m) (L : ℝ) : ℝ
theorem
BanditRLProof.CUCB.measurable_confidenceRadius
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.measurable_confidenceRadiusReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_confidenceRadius {m : ℕ} (n : ℕ) (i : Fin m) (L : ℝ) : Measurable (fun Y : ℕ → Feedback m => confidenceRadius Y n i L)
theorem
BanditRLProof.CUCB.count_mul_radius
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.count_mul_radiusReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem count_mul_radius (T L : ℝ) (hT : 0<T) (hL : 0≤L) : T*Real.sqrt (L/(2*T)) = Real.sqrt (T*L/2)
theorem
BanditRLProof.CUCB.empirical_bad_implies_deviation
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.empirical_bad_implies_deviationReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empirical_bad_implies_deviation {A : Type*} {m : ℕ} (D : Measure UnitOutcome) [IsProbabilityMeasure D] (i : Fin m) (n : ℕ) (L : ℝ) (hL : 0≤L) (Y : ℕ → Round A m) (hbad : confidenceRadius (fun t => (Y t).2) n i L < |empiricalMean (fun t => (Y t).2) n i-marginalMean D|) : ∃ lower : Bool, 0<observationCount (fun t => (Y t).2) n i ∧ Real.sqrt ((observationCount (fun t => (Y t).2) n i : ℝ)*L/2) ≤ pathDeviation D i n lower Y
theorem
BanditRLProof.CUCB.upperIndex_of_confidence
Compiled
On the source confidence event the clipped index is optimistic, and its excess above the true mean is at most twice the clipped confidence radius.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.upperIndex_of_confidenceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem upperIndex_of_confidence {m : ℕ} (Y : ℕ → Feedback m) (n : ℕ) (i : Fin m) (μ : ℝ) (hμ : μ ∈ Set.Icc (0:ℝ) 1) (hgood : |empiricalMean Y n i-μ| ≤ confidenceRadius Y n i (3*Real.log ((n:ℝ)+1))) : μ ≤ upperIndex Y n i ∧ upperIndex Y n i ≤ μ+2*confidenceRadius Y n i (3*Real.log ((n:ℝ)+1))
theorem
BanditRLProof.CUCB.empirical_bad_probability
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.empirical_bad_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empirical_bad_probability (n : ℕ) (L : ℝ) (hL : 0≤L) : (cucbTrajectory oracle environment) {Y | confidenceRadius (fun t => (Y t).2) n i L < |empiricalMean (fun t => (Y t).2) n i-marginalMean D|} ≤ 2*(n:ENNReal)*ENNReal.ofReal (Real.exp (-L))
theorem
BanditRLProof.CUCB.round_confidence_arithmetic
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.round_confidence_arithmeticReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem round_confidence_arithmetic (n : ℕ) : 2*(n:ℝ)*Real.exp (-(3*Real.log ((n:ℝ)+1))) ≤ 2/((n:ℝ)+1)^2
theorem
BanditRLProof.CUCB.empirical_bad_probability_source
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.empirical_bad_probability_sourceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empirical_bad_probability_source (n : ℕ) : (cucbTrajectory oracle environment) {Y | confidenceRadius (fun t => (Y t).2) n i (3*Real.log ((n:ℝ)+1)) < |empiricalMean (fun t => (Y t).2) n i-marginalMean D|} ≤ ENNReal.ofReal (2/((n:ℝ)+1)^2)
def
BanditRLProof.CUCB.NiceEvent
Compiled
Source nice event, before round `n+1`, simultaneously over all arms.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.NiceEventReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def NiceEvent (means : Fin m → ℝ) (n : ℕ) : Set (ℕ → Round A m)
theorem
BanditRLProof.CUCB.measurableSet_niceEvent
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.measurableSet_niceEventReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurableSet_niceEvent (means : Fin m → ℝ) (n : ℕ) : MeasurableSet (NiceEvent (A:=A) means n)
theorem
BanditRLProof.CUCB.niceEvent_complement_probability
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.niceEvent_complement_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem niceEvent_complement_probability (laws : Fin m → Measure UnitOutcome) [∀i, IsProbabilityMeasure (laws i)] (hcompatAll : ∀a i, ObservationCompatible (environment a) (laws i) i) (n : ℕ) : (cucbTrajectory oracle environment) (NiceEvent (fun i => marginalMean (laws i)) n)ᶜ ≤ ENNReal.ofReal (2*(m:ℝ)/((n:ℝ)+1)^2)