The areas / V19. Complex and harmonic analysis
Mathlib.Analysis.SpecialFunctions.Gamma.BohrMollerup
26 declarations. Mathlib docs · Source
Convexity properties of the Gamma function
In this file, we prove that Gamma and log ∘ Gamma are convex functions on the positive real
line. We then prove the Bohr-Mollerup theorem, which characterises Gamma as the unique
positive-real-valued, log-convex function on the positive reals satisfying f (x + 1) = x f x and
f 1 = 1.
The proof of the Bohr-Mollerup theorem is bound up with the proof of (a weak form of) the Euler
limit formula, Real.BohrMollerup.tendsto_logGammaSeq, stating that for positive
real x the sequence x * log n + log n! - ∑ (m : ℕ) ∈ Finset.range (n + 1), log (x + m)
tends to log Γ(x) as n → ∞. We prove that any function satisfying the hypotheses of the
Bohr-Mollerup theorem must agree with the limit in the Euler limit formula, so there is at most one
such function; then we show that Γ satisfies these conditions.
Since most of the auxiliary lemmas for the Bohr-Mollerup theorem are of no relevance outside the
context of this proof, we place them in a separate namespace Real.BohrMollerup to avoid clutter.
(This includes the logarithmic form of the Euler limit formula, since later we will prove a more
general form of the Euler limit formula valid for any real or complex x; see
Real.Gamma_seq_tendsto_Gamma and Complex.Gamma_seq_tendsto_Gamma in the file
Mathlib/Analysis/SpecialFunctions/Gamma/Beta.lean.)
As an application of the Bohr-Mollerup theorem we prove the Legendre doubling formula for the
Gamma function for real positive s (which will be upgraded to a proof for all complex s in a
later file).
TODO: This argument can be extended to prove the general k-multiplication formula (at least up
to a constant, and it should be possible to deduce the value of this constant using Stirling's
formula).
The Gamma doubling formula
As a fun application of the Bohr-Mollerup theorem, we prove the Gamma-function doubling formula
(for positive real s). The idea is that 2 ^ s * Gamma (s / 2) * Gamma (s / 2 + 1 / 2) is
log-convex and satisfies the Gamma functional equation, so it must actually be a constant
multiple of Gamma, and we can compute the constant by specialising at s = 1.
theorem Real.Gamma_mul_add_mul_le_rpow_Gamma_mul_rpow_Gamma E2 #
∀ {s t a b : ℝ},
0 < s → 0 < t → 0 < a → 0 < b → a + b = 1 → Real.Gamma (a * s + b * t) ≤ Real.Gamma s ^ a * Real.Gamma t ^ b
Log-convexity of the Gamma function on the positive reals (stated in multiplicative form), proved using the Hölder inequality applied to Euler's integral.
theorem Real.convexOn_log_Gamma E1 #
ConvexOn ℝ (Set.Ioi 0) (Real.log ∘ Real.Gamma)
theorem Real.convexOn_Gamma E1 #
ConvexOn ℝ (Set.Ioi 0) Real.Gamma
def Real.BohrMollerup.logGammaSeq E1 #
ℝ → ℕ → ℝ
The function n ↦ x log n + log n! - (log x + ... + log (x + n)), which we will show tends to
log (Gamma x) as n → ∞.
theorem Real.BohrMollerup.f_nat_eq E0 #
∀ {f : ℝ → ℝ} {n : ℕ},
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) → n ≠ 0 → f ↑n = f 1 + Real.log ↑(n - 1).factorial
theorem Real.BohrMollerup.f_add_nat_eq E0 #
∀ {f : ℝ → ℝ} {x : ℝ},
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) →
0 < x → ∀ (n : ℕ), f (x + ↑n) = f x + ∑ m ∈ Finset.range n, Real.log (x + ↑m)
theorem Real.BohrMollerup.f_add_nat_le E1 #
∀ {f : ℝ → ℝ} {x : ℝ} {n : ℕ},
ConvexOn ℝ (Set.Ioi 0) f →
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) → n ≠ 0 → 0 < x → x ≤ 1 → f (↑n + x) ≤ f ↑n + x * Real.log ↑n
Linear upper bound for f (x + n) on unit interval
theorem Real.BohrMollerup.f_add_nat_ge E1 #
∀ {f : ℝ → ℝ} {x : ℝ} {n : ℕ},
ConvexOn ℝ (Set.Ioi 0) f →
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) → 2 ≤ n → 0 < x → f ↑n + x * Real.log (↑n - 1) ≤ f (↑n + x)
Linear lower bound for f (x + n) on unit interval
theorem Real.BohrMollerup.logGammaSeq_add_one E1 #
∀ (x : ℝ) (n : ℕ),
Real.BohrMollerup.logGammaSeq (x + 1) n =
Real.BohrMollerup.logGammaSeq x (n + 1) + Real.log x - (x + 1) * (Real.log (↑n + 1) - Real.log ↑n)
theorem Real.BohrMollerup.le_logGammaSeq E1 #
∀ {f : ℝ → ℝ} {x : ℝ},
ConvexOn ℝ (Set.Ioi 0) f →
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) →
0 < x → x ≤ 1 → ∀ (n : ℕ), f x ≤ f 1 + x * Real.log (↑n + 1) - x * Real.log ↑n + Real.BohrMollerup.logGammaSeq x n
theorem Real.BohrMollerup.ge_logGammaSeq E1 #
∀ {f : ℝ → ℝ} {x : ℝ} {n : ℕ},
ConvexOn ℝ (Set.Ioi 0) f →
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) → 0 < x → n ≠ 0 → f 1 + Real.BohrMollerup.logGammaSeq x n ≤ f x
theorem Real.BohrMollerup.tendsto_logGammaSeq_of_le_one E1 #
∀ {f : ℝ → ℝ} {x : ℝ},
ConvexOn ℝ (Set.Ioi 0) f →
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) →
0 < x → x ≤ 1 → Filter.Tendsto (Real.BohrMollerup.logGammaSeq x) Filter.atTop (nhds (f x - f 1))
theorem Real.BohrMollerup.tendsto_logGammaSeq E1 #
∀ {f : ℝ → ℝ} {x : ℝ},
ConvexOn ℝ (Set.Ioi 0) f →
(∀ {y : ℝ}, 0 < y → f (y + 1) = f y + Real.log y) →
0 < x → Filter.Tendsto (Real.BohrMollerup.logGammaSeq x) Filter.atTop (nhds (f x - f 1))
theorem Real.BohrMollerup.tendsto_log_gamma E1 #
∀ {x : ℝ}, 0 < x → Filter.Tendsto (Real.BohrMollerup.logGammaSeq x) Filter.atTop (nhds (Real.log (Real.Gamma x)))
theorem Real.Gamma_two E1 #
Real.Gamma 2 = 1
theorem Real.Gamma_three_div_two_lt_one E1 #
Real.Gamma (3 / 2) < 1
theorem Real.Gamma_strictAntiOn_Ioc E1 #
StrictAntiOn Real.Gamma (Set.Ioc 0 1)
theorem Real.Gamma_strictMonoOn_Ici E1 #
StrictMonoOn Real.Gamma (Set.Ici 2)
theorem Real.exists_isMinOn_Gamma_Ioi E1 #
∃ x ∈ Set.Ioo 1 2, IsMinOn Real.Gamma (Set.Ioi 0) x
def Real.doublingGamma E1 #
ℝ → ℝ
Auxiliary definition for the doubling formula (we'll show this is equal to Gamma s)
theorem Real.doublingGamma_add_one E1 #
∀ (s : ℝ), s ≠ 0 → (s + 1).doublingGamma = s * s.doublingGamma
theorem Real.doublingGamma_one E1 #
Real.doublingGamma 1 = 1
theorem Real.log_doublingGamma_eq E0 #
Set.EqOn (Real.log ∘ Real.doublingGamma)
(fun s ↦
Real.log (Real.Gamma (s / 2)) + Real.log (Real.Gamma (s / 2 + 1 / 2)) + s * Real.log 2 - Real.log (2 * √Real.pi))
(Set.Ioi 0)
theorem Real.doublingGamma_log_convex_Ioi E1 #
ConvexOn ℝ (Set.Ioi 0) (Real.log ∘ Real.doublingGamma)
theorem Real.doublingGamma_eq_Gamma E1 #
∀ {s : ℝ}, 0 < s → s.doublingGamma = Real.Gamma s
theorem Real.Gamma_mul_Gamma_add_half_of_pos E1 #
∀ {s : ℝ}, 0 < s → Real.Gamma s * Real.Gamma (s + 1 / 2) = Real.Gamma (2 * s) * 2 ^ (1 - 2 * s) * √Real.pi
Legendre's doubling formula for the Gamma function, for positive real arguments. Note that
we shall later prove this for all s as Real.Gamma_mul_Gamma_add_half (superseding this result)
but this result is needed as an intermediate step.