Entropy function #
The purpose of this file is to record basic analytic properties of the function $$h(x) = - x * \log x$$ on the unit interval, for use in the theory of Shannon entropy.
Main results #
sum_negMulLog_le
: a Jensen inequality fornegMulLog
sum_negMulLog_eq
: the equality case of this inequality
If $S$ is a finite set, and $a_s$, $b_s$ are non-negative for $s\in S$, then $$\sum_{s\in S} a_s \log\frac{a_s}{b_s}\ge \left(\sum_{s\in S}a_s\right)\log\frac{\sum_{s\in S} a_s}{\sum_{s\in S} b_s}$$. We require additionally that, if $b_s=0$, then $s_s=0$ as otherwise the right hand side should morally be infinite, which it can't be in the formalization using real numbers.
If equality holds in the previous bound, then $a_s=r\cdot b_s$ for every $s\in S$, for some
constant $r\in \mathbb{R}$. Auxiliary version assuming the b i
are positive.
If equality holds in the previous bound, then $a_s=r\cdot b_s$ for every $s\in S$, for some constant $r\in \mathbb{R}$.