← All solved theorems
Gaussian Differential Entropy, Scaling, and Maximum Entropy Theorem
proved in Lean
Among all continuous distributions with a given mean power (second moment), the Gaussian has the largest differential entropy, equal to one half log(2πe times the power). This explains the central role of Gaussians in channel and coding problems.
Claude E. Shannon (1948) · Ch. 8–9 · Differential Entropy & AWGN · Cover & Thomas, Theorems 8.4.1, 8.6.3, 8.6.4 & 8.6.5
Statement
For a centered Gaussian $\mathcal{N}(0, v)$ ($v > 0$), its differential entropy and entropy power are $$h(\mathcal{N}(0, v)) = \frac{1}{2}\ln(2\pi e v), \qquad N(\mathcal{N}(0, v)) = v,$$ and for any 1D density $f$ with finite differential entropy and second moment $\mathbb{E}[X^2] \le v$, $$h(f) \le \frac{1}{2}\ln(2\pi e v).$$ Moreover, $h(aX + b) = h(X) + \ln|a|$, and for product Gaussians in $\mathbb{R}^d$, $h(\mathcal{N}(0, \mathrm{diag}(v))) = \frac{1}{2}\sum_{i=1}^d \ln(2\pi e v_i)$.
How the proof works
The maximum-entropy bound is Gibbs' inequality in disguise: the divergence from any density to the Gaussian with the same second moment is nonnegative. Bridges InfoTheory.Core.Entropy.gaussianPdf1D to Mathlib's ProbabilityTheory.gaussianPDFReal and variance_fun_id_gaussianReal, and proves maximum entropy pointwise from Mathlib's InformationTheory.klFun_nonneg.
Lean declarations (7)
The key theorems in the Lean library. Each is compiled with Lean 4, uses only the standard axioms propext, Classical.choice and Quot.sound, and is re-checked by leanchecker. Click a name to see the full proof on GitHub.
theorem diffEntropy_gaussianDensity1D {v : ℝ} (hv : 0 < v) :
diffEntropy (gaussianDensity1D v hv) =
(1 / 2 : ℝ) * Real.log (2 * Real.pi * Real.exp 1 * v) := by …
theorem entropyPower_gaussianDensity1D {v : ℝ} (hv : 0 < v) :
entropyPower (gaussianDensity1D v hv) = v := by …
theorem diffEntropy_le_gaussian (f : Density 1) (hf : HasFiniteDiffEntropy f)
(hm2 : HasFiniteSecondMoment f) {v : ℝ} (hv : 0 < v)
(hvar : ∫ x : Fin 1 → ℝ, (x 0) ^ 2 * f.pdf x ≤ v) :
diffEntropy f ≤ (1 / 2 : ℝ) * Real.log (2 * Real.pi * Real.exp 1 * v) := by …
theorem diffEntropy_translateDensity1D (f : Density 1) (c : ℝ) :
diffEntropy (translateDensity1D f c) = diffEntropy f := by …
theorem diffEntropy_scaleDensity1D (f : Density 1) {a : ℝ} (ha : a ≠ 0)
(hf : HasFiniteDiffEntropy f) :
diffEntropy (scaleDensity1D f ha) = diffEntropy f + Real.log |a| := by …
theorem diffEntropy_gaussianProductDensity {d : ℕ} (v : Fin d → ℝ) (hv : ∀ i, 0 < v i) :
diffEntropy (gaussianProductDensity v hv) =
(1 / 2 : ℝ) * ∑ i : Fin d, Real.log (2 * Real.pi * Real.exp 1 * v i) := by …
theorem entropyPower_isotropicGaussian {d : ℕ} (hd : 0 < d) {v : ℝ} (hv : 0 < v) :
entropyPower (gaussianProductDensity (fun _ : Fin d => v) (fun _ => hv)) = v := by …
Related open problems (7)
Open problems that build on, generalize, or are analogous to this theorem.