Documentation

PFR.ForMathlib.MeasureReal.UniformOn

theorem ProbabilityTheory.uniformOn_apply' {Ω : Type u_1} [MeasurableSpace Ω] [MeasurableSingletonClass Ω] {s : Set Ω} (hs : s.Finite) (t : Set Ω) :
(ProbabilityTheory.uniformOn s).real t = (Nat.card (s t)) / (Nat.card s)

The entropy of a uniform measure is the log of the cardinality of its support.