Documentation

Mathlib.Analysis.SpecialFunctions.Log.NegMulLog

The function x ↦ - x * log x #

The purpose of this file is to record basic analytic properties of the function x ↦ - x * log x, which is notably used in the theory of Shannon entropy.

Main definitions #

theorem Real.continuous_mul_log :
Continuous fun (x : ) => x * x.log
theorem Real.deriv_mul_log {x : } (hx : x 0) :
deriv (fun (x : ) => x * x.log) x = x.log + 1
theorem Real.hasDerivAt_mul_log {x : } (hx : x 0) :
HasDerivAt (fun (x : ) => x * x.log) (x.log + 1) x
theorem Real.deriv2_mul_log {x : } (hx : x 0) :
deriv^[2] (fun (x : ) => x * x.log) x = x⁻¹
theorem Real.convexOn_mul_log :
ConvexOn (Set.Ici 0) fun (x : ) => x * x.log
theorem Real.mul_log_nonneg {x : } (hx : 1 x) :
0 x * x.log
theorem Real.mul_log_nonpos {x : } (hx₀ : 0 x) (hx₁ : x 1) :
x * x.log 0
noncomputable def Real.negMulLog (x : ) :

The function x ↦ - x * log x from to .

Equations
  • x.negMulLog = -x * x.log
Instances For
    theorem Real.negMulLog_def :
    Real.negMulLog = fun (x : ) => -x * x.log
    theorem Real.negMulLog_eq_neg :
    Real.negMulLog = fun (x : ) => -(x * x.log)
    theorem Real.negMulLog_nonneg {x : } (h1 : 0 x) (h2 : x 1) :
    0 x.negMulLog
    theorem Real.negMulLog_mul (x : ) (y : ) :
    (x * y).negMulLog = y * x.negMulLog + x * y.negMulLog
    theorem Real.deriv_negMulLog {x : } (hx : x 0) :
    theorem Real.hasDerivAt_negMulLog {x : } (hx : x 0) :
    theorem Real.deriv2_negMulLog {x : } (hx : x 0) :