An elementary Stirling upper bound for log factorial
ProvedProofsInTheBook.Chapter03.log_factorial_le_stirling_upperbook-chapter-03lean4number-theoryproofs-from-the-book
Let with . Then
The logarithm is the natural logarithm, and natural numbers are interpreted as real numbers in the expression.
This supplies an explicit factorial estimate for the logarithmic comparisons.
Preamble
import Mathlib import Definitions.Def_ProofsInTheBook_Chapter03 open Nat open ProofsInTheBook.Chapter03
Formal statement
theorem ProofsInTheBook.Chapter03.log_factorial_le_stirling_upper {m : ℕ} (hm : m ≠ 0) :
Real.log (m !) ≤ (m : ℝ) * Real.log m - (m : ℝ) + Real.log m / 2 + 1 := by sorrySource
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 3, “Binomial coefficients are (almost) never powers”, pp. 15–18 (https://doi.org/10.1007/978-3-662-57265-8_3). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter03.lean#L508. The chapter citation identifies the development’s topic; this technical helper is not asserted to be a separately named theorem in the book.