The Positive Part of the Logarithm #
This file defines the function Real.posLog = r ↦ max 0 (log r) and introduces the notation
log⁺. For a finite length-n sequence f i of reals, it establishes the following standard
estimates.
theorem posLog_prod : log⁺ (∏ i, f i) ≤ ∑ i, log⁺ (f i)theorem posLog_sum : log⁺ (∑ i, f i) ≤ log n + ∑ i, log⁺ (f i)
See Mathlib/Analysis/SpecialFunctions/Integrals/PosLogEqCircleAverage.lean for the presentation of
log⁺ as a Circle Average.
Definition, Notation and Reformulations #
Definition: the positive part of the logarithm.
Equations
Instances For
Notation log⁺ for the positive part of the logarithm.
Equations
Instances For
Definition of the positive part of the logarithm, formulated as a theorem.
Elementary Properties #
Presentation of log in terms of its positive part.
The positive part of log is never negative.
The function log⁺ is even.
The function log⁺ is even.
The function log⁺ is zero in the interval [-1,1].
The function log⁺ equals log outside of the interval (-1,1).
The function log⁺ equals log for all natural numbers.
The function log⁺ equals log (max 1 _) for non-negative real numbers.
The function log⁺ is monotone on the positive axis.
The function log⁺ commutes with taking powers.
Estimates for Products #
Estimate for log⁺ of a product. See Real.posLog_prod for a variant involving
multiple factors.
Estimate for log⁺ of a product. Special case of Real.posLog_mul where one of
the factors is a natural number.
Estimate for log⁺ of a product. See Real.posLog_mul for a variant with
only two factors.
Estimates for Sums #
Estimate for log⁺ of a sum. See Real.posLog_add for a variant involving
just two summands.
Variant of posLog_sum for norms of elements in normed additive commutative
groups, using monotonicity of log⁺ and the triangle inequality.
Estimate for log⁺ of a sum. See Real.posLog_sum for a variant involving multiple summands.
Variant of posLog_add for norms of elements in normed additive commutative groups, using
monotonicity of log⁺ and the triangle inequality.