Skip to content

Commit cd3165c

Browse files
committed
removes comments from Entropy
1 parent e4a30b5 commit cd3165c

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

Mathlib/InformationTheory/Entropy.lean

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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-
272255
end InformationTheory

0 commit comments

Comments
 (0)