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.HOOHistory

Causal HOO history recursion. Input rewards are chronological observations; the sequential reward law is a separate mandatory probability construction.

Module map

Declarations
25
Placeholders
0

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 identitydeclaration:BanditRLProof.HOO.Observations

Reading 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 identitydeclaration:BanditRLProof.HOO.expanded

Reading 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 identitydeclaration:BanditRLProof.HOO.visits

Reading 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 identitydeclaration:BanditRLProof.HOO.rewardSum

Reading 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 identitydeclaration:BanditRLProof.HOO.upper

Reading 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 identitydeclaration:BanditRLProof.HOO.next

Reading 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 identitydeclaration:BanditRLProof.HOO.step

Reading 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 identitydeclaration:BanditRLProof.HOO.history

Reading 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 identitydeclaration:BanditRLProof.HOO.action

Reading 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 identitydeclaration:BanditRLProof.HOO.step_length

Reading 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 identitydeclaration:BanditRLProof.HOO.history_length

Reading 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 identitydeclaration:BanditRLProof.HOO.expanded_step

Reading 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 identitydeclaration:BanditRLProof.HOO.next_not_expanded

Reading 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 identitydeclaration:BanditRLProof.HOO.next_ne_root

Reading 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 identitydeclaration:BanditRLProof.HOO.next_not_previously_played

Reading 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 identitydeclaration:BanditRLProof.HOO.visits_step

Reading 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 identitydeclaration:BanditRLProof.HOO.rewardSum_step

Reading 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 identitydeclaration:BanditRLProof.HOO.history_causal

Reading 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 identitydeclaration:BanditRLProof.HOO.action_causal

Reading 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 identitydeclaration:BanditRLProof.HOO.expanded_card_history

Reading 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 identitydeclaration:BanditRLProof.HOO.depthBound_history

Reading 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 identitydeclaration:BanditRLProof.HOO.action_depth_le

Reading 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 identitydeclaration:BanditRLProof.HOO.history_eq_ofFn

Reading 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 identitydeclaration:BanditRLProof.HOO.action_ne_of_lt

Reading 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 identitydeclaration:BanditRLProof.HOO.action_injective

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

theorem action_injective (ν ρ : ℝ) (Y : ℕ → ℝ) : Function.Injective (action ν ρ Y)