Shannon Entropy

Documentation

Lean 4 Proof

def shannonEntropy (p : Fin J → ℝ) : ℝ :=
  -∑ j : Fin J, p j * Real.log (p j)

Dependency Graph

Module Section

### The Thermodynamic Decomposition of Value