InformationTheory.Fano.Entropy
Single-variable Shannon entropy #
Non-negativity on [0, 1] masses, the support-restricted maximum-entropy bound (Jensen on
Real.negMulLog), the universe-wide specialization, and the Dirac-collapse identity.
Implementation notes #
entropyOfFn is the mass-function form (a sum over α → ℝ) used by the Fano.Core
development. The measure-theoretic developments (Shannon.Bridge.entropy,
InformationTheory.MeasureFano.condEntropy) use a parallel formalism; the two do not
depend on each other.
InformationTheory.entropyOfFn
sourceShannon entropy (in nats) of a real-valued mass function on a finite type.
Equations
- InformationTheory.entropyOfFn μ = ∑ a : α, (μ a).negMulLog
Instances For
Used by
InformationTheory.entropyOfFn_nonneg
sourceShannon entropy is non-negative whenever each mass lies in [0, 1].
Used by
InformationTheory.entropyOfFn_le_log_supportCard
sourceMaximum-entropy bound, restricted to a Finset containing the support: a
probability mass function whose support is contained in S has Shannon
entropy at most log S.card.
Used by
InformationTheory.entropyOfFn_le_log_card
sourceThe maximum-entropy bound: a probability mass function on a finite type
of cardinality n has Shannon entropy at most log n.
Used by
InformationTheory.entropyOfFn_eq_zero_of_isDirac
sourceA Dirac mass at a₀ has zero Shannon entropy.