File tree Expand file tree Collapse file tree
Mathlib/InformationTheory Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,21 +252,4 @@ lemma entropy_uniformOfFinset
252252 have h := nat_mul_negMulLog_inv_eq_log s.card hcard
253253 simpa only [ENNReal.toReal_inv, ENNReal.toReal_natCast] using h
254254
255- /-! ### Examples -/
256-
257- /-- Entropy of a deterministic distribution is zero. -/
258- example : entropy (PMF.pure ()) = 0 := by simp only [entropy_pure]
259-
260- /-- Entropy of another deterministic distribution is zero. -/
261- example : entropy (PMF.pure true ) = 0 := by simp only [entropy_pure]
262-
263- /-- Entropy of the uniform distribution on `{0,1, ..., n}` is `log n`. -/
264- example (n : ℕ) [NeZero n] : entropy (PMF.uniformOfFintype (Fin n)) = Real.log n := by
265- simpa using (entropy_uniformOfFintype (α := Fin n))
266-
267- /-- Entropy of the uniform distribution on `{0,1}` is `log 2`. -/
268- example : entropy (PMF.uniformOfFinset ({0 , 1 } : Finset ℕ) (by simp) : PMF ℕ) = Real.log 2 := by
269- simpa using
270- (entropy_uniformOfFinset (α := ℕ) ({0 , 1 } : Finset ℕ) (by simp))
271-
272255end InformationTheory
You can’t perform that action at this time.
0 commit comments