Lean module · Foundations
BanditRLProof.Algorithms.HOOHistory
Causal HOO history recursion. Input rewards are chronological observations; the sequential reward law is a separate mandatory probability construction.
Module map
Imports
BanditRLProof.Algorithms.HOOTree
Imported by
BanditRLProof.Algorithms.HOOMeasurable, BanditRLProof.Algorithms.HOOPrefix
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
abbrev
BanditRLProof.HOO.Observations
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.HOO.ObservationsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
abbrev Observations
def
BanditRLProof.HOO.expanded
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.HOO.expandedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def expanded (h : Observations) : Finset Node
def
BanditRLProof.HOO.visits
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.HOO.visitsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def visits (h : Observations) (v : Node) : ℕ
def
BanditRLProof.HOO.rewardSum
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.HOO.rewardSumReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def rewardSum (h : Observations) (v : Node) : ℝ
def
BanditRLProof.HOO.upper
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.HOO.upperReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def upper (ν ρ : ℝ) (h : Observations) (v : Node) : WithTop ℝ
def
BanditRLProof.HOO.next
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.HOO.nextReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def next (ν ρ : ℝ) (h : Observations) : Node
def
BanditRLProof.HOO.step
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.HOO.stepReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def step (ν ρ : ℝ) (h : Observations) (y : ℝ) : Observations
def
BanditRLProof.HOO.history
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.HOO.historyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def history (ν ρ : ℝ) (Y : ℕ → ℝ) : ℕ → Observations | 0 => [] | n+1 => step ν ρ (history ν ρ Y n) (Y n) noncomputable def action (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : Node
def
BanditRLProof.HOO.action
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
Indexed settings: Lipschitz bandits
Canonical node identity
declaration:BanditRLProof.HOO.actionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def action (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : Node
theorem
BanditRLProof.HOO.step_length
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.HOO.step_lengthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
@[simp] theorem step_length (ν ρ : ℝ) (h : Observations) (y : ℝ) : (step ν ρ h y).length = h.length + 1
theorem
BanditRLProof.HOO.history_length
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.HOO.history_lengthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
@[simp] theorem history_length (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : (history ν ρ Y n).length = n
theorem
BanditRLProof.HOO.expanded_step
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.HOO.expanded_stepReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expanded_step (ν ρ : ℝ) (h : Observations) (y : ℝ) : expanded (step ν ρ h y) = insert (next ν ρ h) (expanded h)
theorem
BanditRLProof.HOO.next_not_expanded
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.HOO.next_not_expandedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem next_not_expanded (ν ρ : ℝ) (h : Observations) : next ν ρ h ∉ expanded h
theorem
BanditRLProof.HOO.next_ne_root
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.HOO.next_ne_rootReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem next_ne_root (ν ρ : ℝ) (h : Observations) : next ν ρ h ≠ []
theorem
BanditRLProof.HOO.next_not_previously_played
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.HOO.next_not_previously_playedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem next_not_previously_played (ν ρ : ℝ) (h : Observations) : next ν ρ h ∉ h.map Prod.fst
theorem
BanditRLProof.HOO.visits_step
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.HOO.visits_stepReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem visits_step (ν ρ : ℝ) (h : Observations) (y : ℝ) (v : Node) : visits (step ν ρ h y) v = visits h v + if v <+: next ν ρ h then 1 else 0
theorem
BanditRLProof.HOO.rewardSum_step
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.HOO.rewardSum_stepReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem rewardSum_step (ν ρ : ℝ) (h : Observations) (y : ℝ) (v : Node) : rewardSum (step ν ρ h y) v = rewardSum h v + if v <+: next ν ρ h then y else 0
theorem
BanditRLProof.HOO.history_causal
Compiled
Generated state uses only rewards strictly before the current round.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.history_causalReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem history_causal (ν ρ : ℝ) (Y Z : ℕ → ℝ) (n : ℕ) (hYZ : ∀ i < n, Y i = Z i) : history ν ρ Y n = history ν ρ Z n
theorem
BanditRLProof.HOO.action_causal
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.HOO.action_causalReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem action_causal (ν ρ : ℝ) (Y Z : ℕ → ℝ) (n : ℕ) (hYZ : ∀ i < n, Y i = Z i) : action ν ρ Y n = action ν ρ Z n
theorem
BanditRLProof.HOO.expanded_card_history
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.HOO.expanded_card_historyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expanded_card_history (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : (expanded (history ν ρ Y n)).card = n+1
theorem
BanditRLProof.HOO.depthBound_history
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.HOO.depthBound_historyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem depthBound_history (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : depthBound (expanded (history ν ρ Y n)) ≤ n
theorem
BanditRLProof.HOO.action_depth_le
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.HOO.action_depth_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem action_depth_le (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : (action ν ρ Y n).length ≤ n+1
theorem
BanditRLProof.HOO.history_eq_ofFn
Compiled
The stored history is precisely the generated action/reward trace.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.history_eq_ofFnReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem history_eq_ofFn (ν ρ : ℝ) (Y : ℕ → ℝ) (n : ℕ) : history ν ρ Y n = List.ofFn (fun i : Fin n => (action ν ρ Y i, Y i))
theorem
BanditRLProof.HOO.action_ne_of_lt
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.HOO.action_ne_of_ltReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem action_ne_of_lt (ν ρ : ℝ) (Y : ℕ → ℝ) {m n : ℕ} (hmn : m < n) : action ν ρ Y n ≠ action ν ρ Y m
theorem
BanditRLProof.HOO.action_injective
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.HOO.action_injectiveReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem action_injective (ν ρ : ℝ) (Y : ℕ → ℝ) : Function.Injective (action ν ρ Y)