Lean module · Foundations
BanditRLProof.HOOPartition
Source Theorem 6's actual covering-tree partition. Boundary nodes are children of near-optimal parents which fail the next-level near-optimal test.
Module map
Imports
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
theorem
BanditRLProof.HOO.RegularCovering.mem_nearOptimalNodes
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.RegularCovering.mem_nearOptimalNodesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
@[simp] theorem RegularCovering.mem_nearOptimalNodes {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (v : Node) (h : ℕ) : v ∈ C.nearOptimalNodes f best h ↔ v.length=h ∧ best-regionSup f (C.region v) ≤ 2*(C.nu1*C.rho^h)
theorem
BanditRLProof.HOO.RegularCovering.root_nearOptimal
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.RegularCovering.root_nearOptimalReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.root_nearOptimal {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hbest : regionSup f Set.univ = best) : [] ∈ C.nearOptimalNodes f best 0
theorem
BanditRLProof.HOO.RegularCovering.nearOptimal_prefix
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.RegularCovering.nearOptimal_prefixReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.nearOptimal_prefix {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hf : ∀x, f x ≤ best) {v w : Node} (hp : v <+: w) (hw : w ∈ C.nearOptimalNodes f best w.length) : v ∈ C.nearOptimalNodes f best v.length
def
BanditRLProof.HOO.RegularCovering.boundaryNodes
Compiled
Indexed by the parent's depth: this is source J_(h+1).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.RegularCovering.boundaryNodesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def RegularCovering.boundaryNodes {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (h : ℕ) : Finset Node
theorem
BanditRLProof.HOO.RegularCovering.mem_boundaryNodes
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.RegularCovering.mem_boundaryNodesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.mem_boundaryNodes {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (h : ℕ) (v : Node) : v ∈ C.boundaryNodes f best h ↔ (∃ p ∈ C.nearOptimalNodes f best h, ∃ b, child p b=v) ∧ v ∉ C.nearOptimalNodes f best (h+1)
theorem
BanditRLProof.HOO.RegularCovering.boundaryNodes_card_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.RegularCovering.boundaryNodes_card_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.boundaryNodes_card_le {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (h : ℕ) : (C.boundaryNodes f best h).card ≤ 2*(C.nearOptimalNodes f best h).card
theorem
BanditRLProof.HOO.RegularCovering.boundaryNodes_poor
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.RegularCovering.boundaryNodes_poorReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.boundaryNodes_poor {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) {h : ℕ} {v : Node} (hv : v ∈ C.boundaryNodes f best h) : v.length=h+1 ∧ 2*(C.nu1*C.rho^(h+1)) < best-regionSup f (C.region v)
theorem
BanditRLProof.HOO.RegularCovering.node_partition_cover
Compiled
Any word either lies below a good depth-H prefix, is itself a shallow near-optimal word, or lies below a first bad child of a near-optimal parent.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.RegularCovering.node_partition_coverReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.node_partition_cover {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hbest : regionSup f Set.univ=best) (H : ℕ) (v : Node) : (∃ p ∈ C.nearOptimalNodes f best H, p <+: v) ∨ (v.length<H ∧ v ∈ C.nearOptimalNodes f best v.length) ∨ (∃ h < H, ∃ p ∈ C.boundaryNodes f best h, p <+: v)
theorem
BanditRLProof.HOO.RegularCovering.descendant_nearOptimal_gap
Compiled
The deep-good and shallow-good regret bounds use Lemma 3 on the actual representative in a descendant region.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.RegularCovering.descendant_nearOptimal_gapReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.descendant_nearOptimal_gap {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hw : WeaklyLipschitz f C.ell best) {p v : Node} {h : ℕ} (hp : p ∈ C.nearOptimalNodes f best h) (hv : p <+: v) : best-f (C.toCovering.representative v) ≤ 4*(C.nu1*C.rho^h)
theorem
BanditRLProof.HOO.RegularCovering.descendant_boundary_gap
Compiled
Poor subtrees inherit their parent's gap bound, not the poor child's gap.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.RegularCovering.descendant_boundary_gapReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.descendant_boundary_gap {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hw : WeaklyLipschitz f C.ell best) {p v : Node} {h : ℕ} (hp : p ∈ C.boundaryNodes f best h) (hv : p <+: v) : best-f (C.toCovering.representative v) ≤ 4*(C.nu1*C.rho^h)
theorem
BanditRLProof.HOO.prefix_of_prefixes_length
Compiled Internal helper
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.prefix_of_prefixes_lengthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem prefix_of_prefixes_length {p q v : Node} (hp : p <+: v) (hq : q <+: v) (hl : p.length≤q.length) : p <+: q
def
BanditRLProof.HOO.RegularCovering.deepGoodNodes
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.RegularCovering.deepGoodNodesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def RegularCovering.deepGoodNodes {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (H : ℕ) : Set Node
def
BanditRLProof.HOO.RegularCovering.shallowGoodNodes
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.RegularCovering.shallowGoodNodesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def RegularCovering.shallowGoodNodes {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (H : ℕ) : Set Node
def
BanditRLProof.HOO.RegularCovering.badSubtreeNodes
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.RegularCovering.badSubtreeNodesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def RegularCovering.badSubtreeNodes {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (H : ℕ) : Set Node
theorem
BanditRLProof.HOO.RegularCovering.deep_shallow_disjoint
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.RegularCovering.deep_shallow_disjointReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.deep_shallow_disjoint {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (H : ℕ) : Disjoint (C.deepGoodNodes f best H) (C.shallowGoodNodes f best H)
theorem
BanditRLProof.HOO.RegularCovering.deep_bad_disjoint
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.RegularCovering.deep_bad_disjointReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.deep_bad_disjoint {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hf : ∀x, f x≤best) (H : ℕ) : Disjoint (C.deepGoodNodes f best H) (C.badSubtreeNodes f best H)
theorem
BanditRLProof.HOO.RegularCovering.shallow_bad_disjoint
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.RegularCovering.shallow_bad_disjointReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.shallow_bad_disjoint {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hf : ∀x, f x≤best) (H : ℕ) : Disjoint (C.shallowGoodNodes f best H) (C.badSubtreeNodes f best H)
theorem
BanditRLProof.HOO.RegularCovering.actual_regret_partition
Compiled
Exact three-part identity for the actual HOO action trace, before any inequality or expectation. Cover and disjointness are derived above.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.HOO.RegularCovering.actual_regret_partitionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem RegularCovering.actual_regret_partition {X : Type*} [MeasurableSpace X] (C : RegularCovering X) (f : X → ℝ) (best : ℝ) (hf : ∀x, f x≤best) (hbest : regionSup f Set.univ=best) (H N : ℕ) (Y : ℕ → ℝ) : (∑ n ∈ Finset.range N, (best-f (C.toCovering.arm C.nu1 C.rho Y n))) = (∑ n ∈ Finset.range N, if action C.nu1 C.rho Y n ∈ C.deepGoodNodes f best H then best-f (C.toCovering.arm C.nu1 C.rho Y n) else 0) + (∑ n ∈ Finset.range N, if action C.nu1 C.rho Y n ∈ C.shallowGoodNodes f best H then best-f (C.toCovering.arm C.nu1 C.rho Y n) else 0) + (∑ n ∈ Finset.range N, if action C.nu1 C.rho Y n ∈ C.badSubtreeNodes f best H then best-f (C.toCovering.arm C.nu1 C.rho Y n) else 0)