Finite relative entropy and support costs
Lax342547.RelativeEntropy · concepts/Lax342547/RelativeEntropy.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Finite probability weights have nonnegative relative entropy on their common support. Continuous entropy has compact minimizers, pointwise density caps give an upper budget, and support restriction costs the negative logarithm of its mass.
Concept map
Evidence
This concept declares 8 statements. Each proof establishes one of them relative to its assumptions.
1 compact_entropy_minimizer proven
2 continuous_entropy proven
3 entropy_decomposition proven
4 entropy_density_bound proven
5 entropy_nonneg proven
6 entropy_support_cost proven
7 probability_compact proven
8 probability_convex proven
Lean source view on GitHub
| 1 | import Mathlib.InformationTheory.KullbackLeibler.KLFun |
| 2 | import Mathlib.Topology.Instances.Real.Lemmas |
| 3 | import Mathlib.Analysis.Convex.StdSimplex |
| 4 | import Lax342547.RetainedImages |
| 5 | |
| 6 | /-! |
| 7 | --- |
| 8 | title: Finite relative entropy and support costs |
| 9 | type: lemma |
| 10 | --- |
| 11 | Finite probability weights have nonnegative relative entropy on their common support. Continuous entropy has compact minimizers, pointwise density caps give an upper budget, and support restriction costs the negative logarithm of its mass. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax342547.RelativeEntropy |
| 15 | |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | noncomputable def entropy {Ω : Type} [Fintype Ω] (ρ q : Ω → ℝ) : ℝ := |
| 19 | ∑ x, (ρ x * Real.log (ρ x) - ρ x * Real.log (q x)) |
| 20 | |
| 21 | def Probability {Ω : Type} [Fintype Ω] (ρ : Ω → ℝ) : Prop := |
| 22 | (∀ x, 0 ≤ ρ x) ∧ ∑ x, ρ x = 1 |
| 23 | |
| 24 | axiom entropy_nonneg {Ω : Type} [Fintype Ω] (ρ q : Ω → ℝ) |
| 25 | (hρ : Probability ρ) (hq : Probability q) (hsupport : ∀ x, 0 < ρ x → 0 < q x) : |
| 26 | 0 ≤ entropy ρ q |
| 27 | |
| 28 | axiom entropy_density_bound {Ω : Type} [Fintype Ω] (ρ q : Ω → ℝ) (cap : ℝ) |
| 29 | (hρ : Probability ρ) (hq : ∀ x, 0 < q x) (_hcap : 0 < cap) |
| 30 | (hbound : ∀ x, ρ x ≤ cap*q x) : entropy ρ q ≤ Real.log cap |
| 31 | |
| 32 | axiom continuous_entropy {Ω : Type} [Fintype Ω] (q : Ω → ℝ) : Continuous (fun ρ : Ω → ℝ => entropy ρ q) |
| 33 | |
| 34 | axiom compact_entropy_minimizer {Ω : Type} [Fintype Ω] |
| 35 | (P : Set (Ω → ℝ)) (q : Ω → ℝ) (hP : IsCompact P) (hne : P.Nonempty) : |
| 36 | ∃ ρ ∈ P, ∀ ρ' ∈ P, entropy ρ q ≤ entropy ρ' q |
| 37 | |
| 38 | axiom entropy_decomposition {Ω : Type} [Fintype Ω] (ρ ρ' q : Ω → ℝ) |
| 39 | (_hsupport : ∀ x, 0 < ρ' x → 0 < ρ x) |
| 40 | (_hρ : ∀ x, 0 ≤ ρ x) (_hρ' : ∀ x, 0 ≤ ρ' x) : |
| 41 | entropy ρ' q - entropy ρ q = entropy ρ' ρ + |
| 42 | ∑ x, (ρ' x-ρ x)*(Real.log (ρ x)-Real.log (q x)) |
| 43 | |
| 44 | axiom probability_compact {Ω : Type} [Fintype Ω] : IsCompact {ρ : Ω → ℝ | Probability ρ} |
| 45 | |
| 46 | axiom probability_convex {Ω : Type} [Fintype Ω] : Convex ℝ {ρ : Ω → ℝ | Probability ρ} |
| 47 | |
| 48 | axiom entropy_support_cost {Ω : Type} [Fintype Ω] (ρ q : Ω → ℝ) (S : Ω → Prop) |
| 49 | (hρ : Probability ρ) (hq : Probability q) |
| 50 | (hsupport : ∀ x, 0 < ρ x → 0 < q x) (hS : ∀ x, ¬ S x → ρ x = 0) |
| 51 | (hmass : 0 < Lax342547.RetainedImages.cellMass q S) : |
| 52 | -Real.log (Lax342547.RetainedImages.cellMass q S) ≤ entropy ρ q |
| 53 | |
| 54 | end Lax342547.RelativeEntropy |
| 55 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments