Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedtheorem · leanprover/lean4:v4.32.0

Real.Gamma.le_one_of_mem_Icc

PrimeNumberTheoremAnd.Mathlib.Analysis.SpecialFunctions.Gamma.IntegralBounds · PrimeNumberTheoremAnd/Mathlib/Analysis/SpecialFunctions/Gamma/IntegralBounds.lean:39 to 52

Source documentation

For x ∈ [1, 2], Γ(x) ≤ 1 since Γ(1) = Γ(2) = 1 and the function is convex.

Exact Lean statement

theorem le_one_of_mem_Icc {x : ℝ} (hlo : 1 ≤ x) (hhi : x ≤ 2) : Gamma x ≤ 1

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
theorem le_one_of_mem_Icc {x : } (hlo : 1  x) (hhi : x  2) : Gamma x  1 := by  have h_convex := Real.convexOn_Gamma  have h1 : Gamma 1 = 1 := Gamma_one  have h2 : Gamma 2 = 1 := Gamma_two  let t := 2 - x  have ht_nonneg : 0  t := by linarith  have hx_conv : x = t * 1 + (1 - t) * 2 := by field_simp [t]; ring  have := h_convex.2 (by norm_num : (0 : ) < 1) (by norm_num : (0 : ) < 2)    ht_nonneg (by linarith : 0  1 - t) (by ring : t + (1 - t) = 1)  rw [smul_eq_mul, smul_eq_mul] at this  calc    Gamma x = Gamma (t * 1 + (1 - t) * 2) := by rw [hx_conv]    _  t * Gamma 1 + (1 - t) * Gamma 2 := this    _ = 1 := by rw [h1, h2]; ring