Polynomial upper bounds on \log(1 + u) and \log(1 - u)
Library · Source module
Polynomial upper bounds on \log(1 + u) and \log(1 - u)
Truncations of the series of \log(1 + u) that bound it from above: the cubic \log(1 + u) \le u - u^2/2 + u^3/3 for every u > -1, the quadratic \log(1 - u) \le -u - u^2/2 on [0, 1), and Laurent and Massart's -\log(1 - u) \le u + u^2 / (2(1 - u)) on [0, 1). They are the log terms of the Chernoff bounds for \chi^2 and for sums of squares (Dasgupta and Gupta's exponent \varepsilon^2/4 - \varepsilon^3/6, and the sub-gamma bound of a weighted \chi^2), where 1 + \mathbf{v} \le e^\mathbf{v} is too weak. The numerical bound \log 9 \le 9/4 is the margin of the covering number 9^d of a 1/4-net of a sphere. The same series gives the lower bound e^{2r} \le (1 + r)/(1 - r) on [0, 1) of Tropp and Webber's Chebyshev growth. Upstream candidates for Mathlib.Analysis.SpecialFunctions.Log.Deriv.
Main results
* Real.log_one_add_le_cubic, Real.log_one_add_le_cubic_of_nonpos. * Real.log_one_add_le_sub_sq_div: \log(1 + s) \le s - s^2/(2(1 + s)) for s \ge 0, the upper Dasgupta–Gupta exponent at every s. * Real.log_one_sub_le_quadratic. * Real.neg_log_one_sub_le. * Real.log_nine_le_nine_div_four, Real.log_twentyOne_le_sixtyOne_div_twenty. * Real.exp_two_mul_le_one_add_div_one_sub: e^{2r} \le (1 + r)/(1 - r) on [0, 1), the first term of the series of \log(1 + r) - \log(1 - r).