NLA-lib Explorer

Elementary bounds for the Gamma function

Library · Source module

Elementary bounds for the Gamma function

\Gamma(\mathbf{x} + 1) \ge \mathbf{x}^\mathbf{x} e^{-\mathbf{x}} for real \mathbf{x} \ge 0, the crude half of Stirling's formula, by restricting Euler's integral to [\mathbf{x}, \infty). Mathlib has Stirling's formula for factorials only (Stirling.le_factorial_stirling); this is the real-argument bound that the small-ball tails of the \chi^2 law need at half-integers. In the other direction, \Gamma(\mathbf{x}) \le \mathbf{x}^{\mathbf{x}-1} for \mathbf{x} \ge 1: \Gamma \le 1 on [1, 2] by convexity (Real.convexOn_Gamma), then \Gamma(\mathbf{x} + 1) = \mathbf{x}\Gamma(\mathbf{x}); the readable form of the sub-exponential moment bound (NLAlib.subexponentialMomentBound_le) inverts through it. Upstream candidates for Mathlib.Analysis.SpecialFunctions.Gamma.Basic and, for the upper bound, which uses convexity, Mathlib.Analysis.SpecialFunctions.Gamma.BohrMollerup.

Main results

* Real.rpow_mul_exp_neg_le_Gamma_add_one: \mathbf{x}^\mathbf{x} e^{-\mathbf{x}} \le \Gamma(\mathbf{x} + 1). * Real.Gamma_le_rpow_sub_one: \Gamma(\mathbf{x}) \le \mathbf{x}^{\mathbf{x}-1} for \mathbf{x} \ge 1.

Declarations