Lean module · Foundations
BanditRLProof.LowerBounds.ArithmeticIntervals
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.LowerBounds.BlockEntropy
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.LowerBounds.arithmeticOffset
Compiled
Left endpoint of a symbol's arithmetic-coding partition cell.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.arithmeticOffsetReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def arithmeticOffset {k : ℕ} (p : Fin k → ℝ) (a : Fin k) : ℝ
theorem
BanditRLProof.LowerBounds.arithmeticOffset_nonneg
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.LowerBounds.arithmeticOffset_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticOffset_nonneg {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (a : Fin k) : 0 ≤ arithmeticOffset p a
theorem
BanditRLProof.LowerBounds.arithmeticOffset_add_le_one
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.LowerBounds.arithmeticOffset_add_le_oneReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticOffset_add_le_one {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (a : Fin k) : arithmeticOffset p a + p a ≤ 1
def
BanditRLProof.LowerBounds.arithmeticInterval
Compiled
Successive affine subdivisions for an arithmetic-coded word.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.arithmeticIntervalReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def arithmeticInterval {k : ℕ} (p : Fin k → ℝ) : List (Fin k) → ℝ × ℝ | [] => (0, 1) | a :: w => (arithmeticOffset p a + p a * (arithmeticInterval p w).1, arithmeticOffset p a + p a * (arithmeticInterval p w).2) theorem arithmeticInterval_width {k : ℕ} (p : Fin k → ℝ) (w : List (Fin k)) : (arithmeticInterval p w).2 - (arithmeticInterval p w).1 = (w.map p).prod
theorem
BanditRLProof.LowerBounds.arithmeticInterval_width
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.LowerBounds.arithmeticInterval_widthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticInterval_width {k : ℕ} (p : Fin k → ℝ) (w : List (Fin k)) : (arithmeticInterval p w).2 - (arithmeticInterval p w).1 = (w.map p).prod
theorem
BanditRLProof.LowerBounds.arithmeticInterval_bounds
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.LowerBounds.arithmeticInterval_boundsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticInterval_bounds {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (w : List (Fin k)) : 0 ≤ (arithmeticInterval p w).1 ∧ (arithmeticInterval p w).1 ≤ (arithmeticInterval p w).2 ∧ (arithmeticInterval p w).2 ≤ 1
theorem
BanditRLProof.LowerBounds.arithmeticOffset_separated
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.LowerBounds.arithmeticOffset_separatedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticOffset_separated {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (a b : Fin k) (hab : a < b) : arithmeticOffset p a + p a ≤ arithmeticOffset p b
theorem
BanditRLProof.LowerBounds.arithmeticInterval_head_separated
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.LowerBounds.arithmeticInterval_head_separatedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticInterval_head_separated {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (a b : Fin k) (u v : List (Fin k)) (hab : a < b) : (arithmeticInterval p (a :: u)).2 ≤ (arithmeticInterval p (b :: v)).1
theorem
BanditRLProof.LowerBounds.arithmeticInterval_separated
Compiled
Different equal-length messages occupy cells with disjoint interiors.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.arithmeticInterval_separatedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticInterval_separated {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (u v : List (Fin k)) (hlen : u.length = v.length) (hne : u ≠ v) : (arithmeticInterval p u).2 ≤ (arithmeticInterval p v).1 ∨ (arithmeticInterval p v).2 ≤ (arithmeticInterval p u).1
theorem
BanditRLProof.LowerBounds.arithmeticInterval_interior_unique
Compiled
Any point strictly inside a message cell identifies that message uniquely among messages of the same length.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.arithmeticInterval_interior_uniqueReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem arithmeticInterval_interior_unique {k : ℕ} (p : Fin k → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (u v : List (Fin k)) (hlen : u.length = v.length) (x : ℝ) (hu : (arithmeticInterval p u).1 < x ∧ x < (arithmeticInterval p u).2) (hv : (arithmeticInterval p v).1 < x ∧ x < (arithmeticInterval p v).2) : u = v
theorem
BanditRLProof.LowerBounds.exists_grid_cell_inside
Compiled
A positive grid cell fits in any nonnegative interval at least twice as wide. Mathlib-candidate scalar rounding leaf for arithmetic-code dyadic selection.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.exists_grid_cell_insideReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem exists_grid_cell_inside (L U δ : ℝ) (hL : 0 ≤ L) (hδ : 0 < δ) (hwidth : 2 * δ ≤ U - L) : ∃ m : ℕ, L ≤ (m : ℝ) * δ ∧ ((m : ℝ) + 1) * δ < U