Lean module · Foundations
BanditRLProof.Algorithms.MOSSCanonicalHistory
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.Algorithms.MOSSCanonicalReward
Imported by
BanditRLProof, BanditRLProof.Algorithms.MOSSUnusedCoordinate
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.MOSS.canonicalAction
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.MOSS.canonicalActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def canonicalAction {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ)
def
BanditRLProof.MOSS.canonicalReward
Compiled
Consume the next unused one-based raw reward of the chosen arm.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.canonicalRewardReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def canonicalReward {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ)
def
BanditRLProof.MOSS.canonicalHistory
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.MOSS.canonicalHistoryReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def canonicalHistory {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) (t : ℕ)
theorem
BanditRLProof.MOSS.canonicalHistory_pullCount
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.MOSS.canonicalHistory_pullCountReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalHistory_pullCount {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) (t : ℕ) (a : Fin k) : ETC.realHistoryPullCount t (canonicalHistory hk n mean table t) a = pullCount (canonicalAction hk n mean table) a (t+1)
theorem
BanditRLProof.MOSS.canonicalHistory_empiricalMean
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.MOSS.canonicalHistory_empiricalMeanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalHistory_empiricalMean {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) (t : ℕ) (a : Fin k) : ETC.realHistoryEmpMean t (canonicalHistory hk n mean table t) a = (∑ j ∈ Finset.range (pullCount (canonicalAction hk n mean table) a (t+1)), table (j+1) a) / (pullCount (canonicalAction hk n mean table) a (t+1) : ℝ)
theorem
BanditRLProof.MOSS.canonicalAction_succ_eq_historyAction
Compiled
The realized next action is exactly the common finite-history MOSS selector.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.canonicalAction_succ_eq_historyActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalAction_succ_eq_historyAction {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) (t : ℕ) : canonicalAction hk n mean table (t+1) = historyAction hk n t (canonicalHistory hk n mean table t)
theorem
BanditRLProof.MOSS.canonicalAction_zero
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.MOSS.canonicalAction_zeroReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalAction_zero {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) : canonicalAction hk n mean table 0 = ⟨0, hk⟩
theorem
BanditRLProof.MOSS.measurable_canonicalAction
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.MOSS.measurable_canonicalActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_canonicalAction {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (t : ℕ) : Measurable (fun table => canonicalAction hk n mean table t)
theorem
BanditRLProof.MOSS.measurable_canonicalReward
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.MOSS.measurable_canonicalRewardReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_canonicalReward {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (t : ℕ) : Measurable (fun table => canonicalReward hk n mean table t)
theorem
BanditRLProof.MOSS.measurable_canonicalHistory
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.MOSS.measurable_canonicalHistoryReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_canonicalHistory {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (t : ℕ) : Measurable (fun table => canonicalHistory hk n mean table t)
theorem
BanditRLProof.MOSS.canonicalHistory_succ
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.MOSS.canonicalHistory_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalHistory_succ {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table : UCB.ArmRewardStream k) (t : ℕ) : canonicalHistory hk n mean table (t+1) = History.extendPairHistorySucc (canonicalHistory hk n mean table t) (historyAction hk n t (canonicalHistory hk n mean table t), table (ETC.realHistoryPullCount t (canonicalHistory hk n mean table t) (historyAction hk n t (canonicalHistory hk n mean table t))+1) (historyAction hk n t (canonicalHistory hk n mean table t)))
theorem
BanditRLProof.MOSS.canonicalHistory_eq_of_eq_consumed
Compiled
Changing rewards that have not been consumed cannot change the observed history.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.MOSS.canonicalHistory_eq_of_eq_consumedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem canonicalHistory_eq_of_eq_consumed {k : ℕ} (hk : 0 < k) (n : ℕ) (mean : Fin k → ℝ) (table table' : UCB.ArmRewardStream k) (t : ℕ) (hagrees : ∀ a j, j < pullCount (canonicalAction hk n mean table) a (t+1) → table (j+1) a = table' (j+1) a) : canonicalHistory hk n mean table t = canonicalHistory hk n mean table' t