BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.

Lean module · Foundations

BanditRLProof.Algorithms.MOSSStream

Generated source map for this Lean module.

Module map

Declarations
9
Placeholders
0

Imports

BanditRLProof.Algorithms.MOSSExpectedOccupancy

Imported by

BanditRLProof, BanditRLProof.Algorithms.MOSSRegret

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

theorem BanditRLProof.MOSS.neg_optimismDeficit_le_centeredIndex 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 identitydeclaration:BanditRLProof.MOSS.neg_optimismDeficit_le_centeredIndex

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem neg_optimismDeficit_le_centeredIndex {Ω : Type*} [MeasurableSpace Ω] (X : ℕ → Ω → ℝ) (δ : ℝ) (n s : ℕ) (ω : Ω) (hs : 0 < s) (hsn : s ≤ n) : -optimismDeficit X δ n ω ≤ centeredIndex X δ s ω
theorem BanditRLProof.MOSS.radius_eq_streamRadius 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 identitydeclaration:BanditRLProof.MOSS.radius_eq_streamRadius

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem radius_eq_streamRadius (n k s : ℕ) (hn : 0 < n) (hk : 0 < k) : radius n k s = sqrt (4/(s : ℝ)*logPlus (1/((s : ℝ)*((k : ℝ)/(n : ℝ)))))
def BanditRLProof.MOSS.streamEmpirical Compiled

Empirical state indexed by actual arm pulls, using centered reward streams.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.MOSS.streamEmpirical

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def streamEmpirical {Ω : Type*} {k : ℕ} (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) (trace : ActionTrace (Fin k)) (t : ℕ) (a : Fin k) : ℝ
theorem BanditRLProof.MOSS.pullCount_le_of_stream_policy Compiled

Pathwise large-gap count bound from the MOSS policy equation itself. The law identifying centered streams with observed rewards is not assumed here.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.MOSS.pullCount_le_of_stream_policy

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem pullCount_le_of_stream_policy {Ω : Type*} [MeasurableSpace Ω] {k : ℕ} (hk : 0 < k) (n : ℕ) (hkn : k ≤ n) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) (trace : ActionTrace (Fin k)) (hpolicy : ∀ t < n, trace t = action hk n t (streamEmpirical mean X ω trace t) (fun a => pullCount trace a t)) (best chosen : Fin k) (hgap : 2 * optimismDeficit (X best) ((k : ℝ)/(n : ℝ)) n ω < mean best - mean chosen) : (pullCount trace chosen n : ℝ) ≤ 1 + indexExceedanceCount (streamMean (X chosen) ω) ((k : ℝ)/(n : ℝ)) (mean best - mean chosen) n
def BanditRLProof.MOSS.streamCounts Compiled

Concrete MOSS execution on a fixed reward table, tracking pre-pull counts.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.MOSS.streamCounts

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def streamCounts {Ω : Type*} {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) : ℕ → Fin k → ℕ | 0 => fun _ => 0 | t+1 => fun a => let counts := streamCounts hk n mean X ω t counts a + if action hk n t (fun b => mean b + streamMean (X b) ω (counts b)) counts = a then 1 else 0 def streamTrace {Ω : Type*} {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) : ActionTrace (Fin k)
def BanditRLProof.MOSS.streamTrace 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 identitydeclaration:BanditRLProof.MOSS.streamTrace

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def streamTrace {Ω : Type*} {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) : ActionTrace (Fin k)
theorem BanditRLProof.MOSS.pullCount_streamTrace 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 identitydeclaration:BanditRLProof.MOSS.pullCount_streamTrace

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem pullCount_streamTrace {Ω : Type*} {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) (t : ℕ) (a : Fin k) : pullCount (streamTrace hk n mean X ω) a t = streamCounts hk n mean X ω t a
theorem BanditRLProof.MOSS.streamTrace_policy 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 identitydeclaration:BanditRLProof.MOSS.streamTrace_policy

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem streamTrace_policy {Ω : Type*} {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) (t : ℕ) : streamTrace hk n mean X ω t = action hk n t (streamEmpirical mean X ω (streamTrace hk n mean X ω) t) (fun a => pullCount (streamTrace hk n mean X ω) a t)
theorem BanditRLProof.MOSS.streamTrace_pullCount_le Compiled

Concrete generated-trace bound: no selected-event or policy-equation oracle.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.MOSS.streamTrace_pullCount_le

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem streamTrace_pullCount_le {Ω : Type*} [MeasurableSpace Ω] {k : ℕ} (hk : 0 < k) (n : ℕ) (hkn : k ≤ n) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) (best chosen : Fin k) (hgap : 2 * optimismDeficit (X best) ((k : ℝ)/(n : ℝ)) n ω < mean best - mean chosen) : (pullCount (streamTrace hk n mean X ω) chosen n : ℝ) ≤ 1 + indexExceedanceCount (streamMean (X chosen) ω) ((k : ℝ)/(n : ℝ)) (mean best - mean chosen) n