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.LowerBounds.ShannonLengths

Generated source map for this Lean module.

Module map

Declarations
8
Placeholders
0

Imports

BanditRLProof.LowerBounds.CodingEntropyBound

Imported by

BanditRLProof, BanditRLProof.LowerBounds.PrefixCodeConstruction

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

def BanditRLProof.LowerBounds.shannonLength Compiled

Strict Shannon length, leaving Kraft slack on every positive-mass symbol. This definition is not a prefix-code constructor.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.LowerBounds.shannonLength

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

def shannonLength (p : ℝ) : ℕ
theorem BanditRLProof.LowerBounds.shannonLength_pos 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.LowerBounds.shannonLength_pos

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

theorem shannonLength_pos (p : ℝ) : 0 < shannonLength p
theorem BanditRLProof.LowerBounds.shannonLength_kraft_weight_lt Compiled

Each positive-mass symbol leaves strict Kraft slack.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.LowerBounds.shannonLength_kraft_weight_lt

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

theorem shannonLength_kraft_weight_lt {p : ℝ} (hp : 0 < p) : (1 / 2 : ℝ) ^ shannonLength p < p
theorem BanditRLProof.LowerBounds.shannonLength_le_information_add_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 identitydeclaration:BanditRLProof.LowerBounds.shannonLength_le_information_add_one

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

theorem shannonLength_le_information_add_one {p : ℝ} (hp : 0 < p) (hp1 : p ≤ 1) : (shannonLength p : ℝ) ≤ Real.log p⁻¹ / Real.log 2 + 1
theorem BanditRLProof.LowerBounds.weighted_shannonLength_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.LowerBounds.weighted_shannonLength_le

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

theorem weighted_shannonLength_le {p : ℝ} (hp : 0 ≤ p) (hp1 : p ≤ 1) : p * shannonLength p ≤ p * (Real.log p⁻¹ / Real.log 2) + p
theorem BanditRLProof.LowerBounds.sum_weighted_shannonLength_le_entropy_add_one Compiled

A numerical expected-length bound; realizability by a prefix code is separate.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.LowerBounds.sum_weighted_shannonLength_le_entropy_add_one

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

theorem sum_weighted_shannonLength_le_entropy_add_one {α : Type*} [Fintype α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : (∑ i, p i * shannonLength (p i)) ≤ discreteEntropyBaseTwo Finset.univ p + 1
theorem BanditRLProof.LowerBounds.sum_positive_shannon_weights_lt_one Compiled

The positive support occupies strictly less than the available Kraft mass.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.LowerBounds.sum_positive_shannon_weights_lt_one

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

theorem sum_positive_shannon_weights_lt_one {α : Type*} [Fintype α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : (∑ i, if 0 < p i then (1 / 2 : ℝ) ^ shannonLength (p i) else 0) < 1
theorem BanditRLProof.LowerBounds.exists_lengths_kraft_lt_one_entropy_bound Compiled

Complete length assignment, including zero-mass symbols; codewords are not yet constructed.

Used in these reading views: Bandit Book

1. Finite bandits, traces, and regret

Canonical node identitydeclaration:BanditRLProof.LowerBounds.exists_lengths_kraft_lt_one_entropy_bound

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

theorem exists_lengths_kraft_lt_one_entropy_bound {α : Type*} [Fintype α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : ∃ l : α → ℕ, (∀ i, 0 < l i) ∧ (∑ i, (1 / 2 : ℝ) ^ l i) < 1 ∧ (∑ i, p i * l i) ≤ discreteEntropyBaseTwo Finset.univ p + 1