Lean module · Foundations
BanditRLProof.LowerBounds.BlockEntropy
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.LowerBounds.PrefixCodeConstruction
Imported by
BanditRLProof, BanditRLProof.LowerBounds.ArithmeticIntervals
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
theorem
BanditRLProof.LowerBounds.entropy_product_term
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.entropy_product_termReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem entropy_product_term (p q : ℝ) : (p * q) * Real.log (p * q)⁻¹ = q * (p * Real.log p⁻¹) + p * (q * Real.log q⁻¹)
theorem
BanditRLProof.LowerBounds.discreteEntropy_prod
Compiled
Entropy of a product mass function before normalization.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.discreteEntropy_prodReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem discreteEntropy_prod {α β : Type*} [Fintype α] [Fintype β] (p : α → ℝ) (q : β → ℝ) : discreteEntropy Finset.univ (fun x : α × β => p x.1 * q x.2) = (∑ j, q j) * discreteEntropy Finset.univ p + (∑ i, p i) * discreteEntropy Finset.univ q
theorem
BanditRLProof.LowerBounds.discreteEntropy_prod_probability
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.discreteEntropy_prod_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem discreteEntropy_prod_probability {α β : Type*} [Fintype α] [Fintype β] (p : α → ℝ) (q : β → ℝ) (hp : ∑ i, p i = 1) (hq : ∑ j, q j = 1) : discreteEntropy Finset.univ (fun x : α × β => p x.1 * q x.2) = discreteEntropy Finset.univ p + discreteEntropy Finset.univ q
theorem
BanditRLProof.LowerBounds.discreteEntropyBaseTwo_prod_probability
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.discreteEntropyBaseTwo_prod_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem discreteEntropyBaseTwo_prod_probability {α β : Type*} [Fintype α] [Fintype β] (p : α → ℝ) (q : β → ℝ) (hp : ∑ i, p i = 1) (hq : ∑ j, q j = 1) : discreteEntropyBaseTwo Finset.univ (fun x : α × β => p x.1 * q x.2) = discreteEntropyBaseTwo Finset.univ p + discreteEntropyBaseTwo Finset.univ q
def
BanditRLProof.LowerBounds.SourceBlock
Compiled
An n-symbol source block, represented by a nested product.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.SourceBlockReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def SourceBlock (α : Type*) : ℕ → Type _ | 0 => PUnit | n + 1 => α × SourceBlock α n instance sourceBlockFintype {α : Type*} [Fintype α] (n : ℕ) : Fintype (SourceBlock α n)
def
BanditRLProof.LowerBounds.sourceBlockMass
Compiled
IID product mass, including the empty block of mass one.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.sourceBlockMassReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def sourceBlockMass {α : Type*} (p : α → ℝ) : (n : ℕ) → SourceBlock α n → ℝ | 0, _ => 1 | n + 1, x => p x.1 * sourceBlockMass p n x.2 theorem sourceBlockMass_nonneg {α : Type*} (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (n : ℕ) (x : SourceBlock α n) : 0 ≤ sourceBlockMass p n x
theorem
BanditRLProof.LowerBounds.sourceBlockMass_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.sourceBlockMass_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sourceBlockMass_nonneg {α : Type*} (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (n : ℕ) (x : SourceBlock α n) : 0 ≤ sourceBlockMass p n x
theorem
BanditRLProof.LowerBounds.sum_sourceBlockMass
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.sum_sourceBlockMassReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sum_sourceBlockMass {α : Type*} [Fintype α] (p : α → ℝ) (hp : ∑ i, p i = 1) (n : ℕ) : ∑ x, sourceBlockMass p n x = 1
theorem
BanditRLProof.LowerBounds.discreteEntropyBaseTwo_sourceBlockMass
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.discreteEntropyBaseTwo_sourceBlockMassReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem discreteEntropyBaseTwo_sourceBlockMass {α : Type*} [Fintype α] (p : α → ℝ) (hp : ∑ i, p i = 1) (n : ℕ) : discreteEntropyBaseTwo Finset.univ (sourceBlockMass p n) = n * discreteEntropyBaseTwo Finset.univ p
theorem
BanditRLProof.LowerBounds.exists_sourceBlock_code_rate_sandwich
Compiled
Finite-block source coding with an explicit one-bit total overhead.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.exists_sourceBlock_code_rate_sandwichReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem exists_sourceBlock_code_rate_sandwich {α : Type*} [Fintype α] [DecidableEq α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (n : ℕ) (hn : 0 < n) : ∃ code : BinaryPrefixCode (SourceBlock α n), discreteEntropyBaseTwo Finset.univ p ≤ expectedCodeLength (sourceBlockMass p n) code / n ∧ expectedCodeLength (sourceBlockMass p n) code / n ≤ discreteEntropyBaseTwo Finset.univ p + 1 / n
theorem
BanditRLProof.LowerBounds.sourceBlock_code_rate_lower_bound
Compiled
Every finite block prefix code has rate at least the source entropy.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.sourceBlock_code_rate_lower_boundReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sourceBlock_code_rate_lower_bound {α : Type*} [Fintype α] [DecidableEq α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (n : ℕ) (hn : 0 < n) (code : BinaryPrefixCode (SourceBlock α n)) : discreteEntropyBaseTwo Finset.univ p ≤ expectedCodeLength (sourceBlockMass p n) code / n
theorem
BanditRLProof.LowerBounds.exists_sourceBlock_code_family_tendsto_entropy
Compiled
An actual family of block prefix codes has rate tending to entropy.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.exists_sourceBlock_code_family_tendsto_entropyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem exists_sourceBlock_code_family_tendsto_entropy {α : Type*} [Fintype α] [DecidableEq α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : ∃ code : (n : ℕ) → BinaryPrefixCode (SourceBlock α (n + 1)), Filter.Tendsto (fun n => expectedCodeLength (sourceBlockMass p (n + 1)) (code n) / (n + 1)) Filter.atTop (nhds (discreteEntropyBaseTwo Finset.univ p))
theorem
BanditRLProof.LowerBounds.sourceBlock_code_family_limit_ge_entropy
Compiled
No convergent family of block prefix codes has limiting rate below entropy.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 14: Foundations of Information Theory
Canonical node identity
declaration:BanditRLProof.LowerBounds.sourceBlock_code_family_limit_ge_entropyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sourceBlock_code_family_limit_ge_entropy {α : Type*} [Fintype α] [DecidableEq α] (p : α → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (code : (n : ℕ) → BinaryPrefixCode (SourceBlock α (n + 1))) (r : ℝ) (hr : Filter.Tendsto (fun n => expectedCodeLength (sourceBlockMass p (n + 1)) (code n) / (n + 1)) Filter.atTop (nhds r)) : discreteEntropyBaseTwo Finset.univ p ≤ r