renyi_entropy
def
For a real parameter α and a probability distribution P on a finite type Y, renyi_entropy α P is the Rényi entropy (log(∑_y P(y)^α)) / (1 - α).
Statement
noncomputable def renyi_entropy (α : ℝ) {Y : Type*} [Fintype Y] (P : Y → ℝ) : ℝ
- Defined in
- Renyi 1961, On measures of entropy and information
- Verified
- 03 Nov 2026
- Axioms
- none listed
- Used by 1
- ccz_renyi_entropyFor a real order α and a simple graph G on a finite type V, ccz_renyi_entropy α G is the order-α Rényi entropy of the CCZ induced-edge…
Read back from the Lean
The definition renyi_entropy takes a real number α, an implicit finite type Y, and a function P : Y → ℝ, and returns the real number Real.log (∑ y : Y, P y ^ α) / (1 - α).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Rényi entropy of order α of a discrete probability distribution P on a finite type. -/ noncomputable def renyi_entropy (α : ℝ) {Y : Type*} [Fintype Y] (P : Y → ℝ) : ℝ := Real.log (∑ y, P y ^ α) / (1 - α)