Lean module · Foundations
BanditRLProof.Algorithms.MOSSCanonicalReward
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.Algorithms.MOSSExpectedRegret, BanditRLProof.Algorithms.UCBArmStreamTail
Imported by
BanditRLProof, BanditRLProof.Algorithms.MOSSCanonicalHistory
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.MOSS.centeredRewardTable
Compiled
One-based centered reward table; sample zero is unused by MOSS.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.centeredRewardTableReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def centeredRewardTable {k : ℕ} (mean : Fin k → ℝ) : Fin k → ℕ → UCB.ArmRewardStream k → ℝ
theorem
BanditRLProof.MOSS.integral_canonicalReward_regret_le
Compiled
Exact MOSS bound on the canonical product space of arbitrary arm laws.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.integral_canonicalReward_regret_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem integral_canonicalReward_regret_le {k : ℕ} (hk : 0 < k) (ν : Kernel (Fin k) ℝ) [IsMarkovKernel ν] (n : ℕ) (hkn : k ≤ n) (mean : Fin k → ℝ) (best : Fin k) (hbest : ∀ a, mean a ≤ mean best) (hmean : ∀ a, ∫ r, r ∂ν a = mean a) (hsubG : ∀ a, HasSubgaussianMGF (fun r => r-mean a) 1 (ν a)) : (∫ table, realMeanRegret mean (streamTrace hk n mean (centeredRewardTable mean) table) n ∂UCB.armStreamMeasure ν) ≤ 39*Real.sqrt ((n : ℝ)*k) + ∑ a, (mean best-mean a)
theorem
BanditRLProof.MOSS.mean_add_centeredRewardTable_average
Compiled
Centering is analytical only: positive-count empirical means use raw rewards.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.mean_add_centeredRewardTable_averageReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem mean_add_centeredRewardTable_average {k : ℕ} (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) (a : Fin k) (s : ℕ) (hs : 0 < s) : mean a + streamMean (centeredRewardTable mean a) table s = (∑ j ∈ Finset.range s, table (j+1) a)/(s : ℝ)
theorem
BanditRLProof.MOSS.streamTrace_pullCount_pos
Compiled
After initialization each arm has a positive realized count.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.streamTrace_pullCount_posReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem streamTrace_pullCount_pos {Ω : Type*} {k : ℕ} (hk : 0 < k) (n t : ℕ) (mean : Fin k → ℝ) (X : Fin k → ℕ → Ω → ℝ) (ω : Ω) (a : Fin k) (ht : k ≤ t) : 0 < pullCount (streamTrace hk n mean X ω) a t
theorem
BanditRLProof.MOSS.canonicalReward_action_eq_raw
Compiled
The centered execution selects solely from raw empirical rewards and counts. The unknown means cancel; zero-count states are handled by initialization.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.canonicalReward_action_eq_rawReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalReward_action_eq_raw {k : ℕ} (hk : 0 < k) (n t : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) : streamTrace hk n mean (centeredRewardTable mean) table t = action hk n t (fun a => (∑ j ∈ Finset.range (pullCount (streamTrace hk n mean (centeredRewardTable mean) table) a t), table (j+1) a)/(pullCount (streamTrace hk n mean (centeredRewardTable mean) table) a t : ℝ)) (fun a => pullCount (streamTrace hk n mean (centeredRewardTable mean) table) a t)