Documentation

CslibFrontier.Foundations.Analysis.SpecialFunctions.RamanujanGammaProduct

Ramanujan's Gamma Product Identity #

For every $k \in \mathbb{N}$ and $x \in \mathbb{C} \setminus \{0, \pm i, \pm 2i, \dots, \pm ki\}$, $$ \frac{\Gamma(k+1)^2}{\Gamma(k + ix + 1)\,\Gamma(k - ix + 1)} = \frac{\sinh(\pi x)}{\pi x} \prod_{j=1}^{k} \left(1 + \frac{x^2}{j^2}\right)^{-1}. $$ For real $x \neq 0$, the right-hand side is strictly positive, antitone in $k$, and converges to $1$ as $k \to \infty$ via Euler's infinite sine product.

Main declarations #

Provenance and Scope #

The finite k-factor Gamma product identity is obtained by applying the Gamma recurrence Γ(z + 1) = z Γ(z) (DLMF 5.5.1) k times to the reflection identity (DLMF 5.5.3), which explains the denominator exclusions at x = 0 and x = ± i, ..., ± k i. The real specialization, antitonicity, and k → ∞ limit at nonzero real inputs connect this finite product to the infinite hyperbolic-sine product (DLMF 4.36.1).

theorem Cslib.Analysis.SpecialFunctions.ramanujan_gamma_prod (k : ℕ) (x : ℂ) (hx0 : x ≠ 0) (hx : ∀ j ∈ Finset.Icc 1 k, ↑j ^ 2 + x ^ 2 ≠ 0) :
Complex.Gamma (↑k + 1) ^ 2 / (Complex.Gamma (↑k + Complex.I * x + 1) * Complex.Gamma (↑k - Complex.I * x + 1)) = Complex.sinh (↑Real.pi * x) / (↑Real.pi * x) * ∏ j ∈ Finset.Icc 1 k, (1 + x ^ 2 / ↑j ^ 2)⁻¹

Ramanujan's Gamma product identity for any k : ℕ and x ∈ ℂ away from {0, ±i, ±2i, ..., ±ki}.

theorem Cslib.Analysis.SpecialFunctions.ramanujan_gamma_prod_real_eq_complex (k : ℕ) {x : ℝ} (hx : x ≠ 0) :
Complex.Gamma (↑k + 1) ^ 2 / (Complex.Gamma (↑k + Complex.I * ↑x + 1) * Complex.Gamma (↑k - Complex.I * ↑x + 1)) = ↑(Real.sinh (Real.pi * x) / (Real.pi * x) * ∏ j ∈ Finset.Icc 1 k, (1 + x ^ 2 / ↑j ^ 2)⁻¹)

Real specialization of Ramanujan's Gamma product identity for x : ℝ, x ≠ 0.

theorem Cslib.Analysis.SpecialFunctions.ramanujan_gamma_prod_real (k : ℕ) {x : ℝ} (hx : x ≠ 0) :
(Complex.Gamma (↑k + 1) ^ 2 / (Complex.Gamma (↑k + Complex.I * ↑x + 1) * Complex.Gamma (↑k - Complex.I * ↑x + 1))).re = Real.sinh (Real.pi * x) / (Real.pi * x) * ∏ j ∈ Finset.Icc 1 k, (1 + x ^ 2 / ↑j ^ 2)⁻¹ ∧ 0 < Real.sinh (Real.pi * x) / (Real.pi * x) * ∏ j ∈ Finset.Icc 1 k, (1 + x ^ 2 / ↑j ^ 2)⁻¹

Real part and strict positivity of Ramanujan's Gamma product for nonzero real x.

theorem Cslib.Analysis.SpecialFunctions.ramanujan_prod_antitone {x : ℝ} (hx : x ≠ 0) :
Antitone fun (k : ℕ) => Real.sinh (Real.pi * x) / (Real.pi * x) * ∏ j ∈ Finset.Icc 1 k, (1 + x ^ 2 / ↑j ^ 2)⁻¹

The partial products in Ramanujan's Gamma identity decrease monotonically in k.

theorem Cslib.Analysis.SpecialFunctions.tendsto_ramanujan_prod_one {x : ℝ} (hx : x ≠ 0) :
Filter.Tendsto (fun (k : ℕ) => Real.sinh (Real.pi * x) / (Real.pi * x) * ∏ j ∈ Finset.Icc 1 k, (1 + x ^ 2 / ↑j ^ 2)⁻¹) Filter.atTop (nhds 1)

For every nonzero real x, the Ramanujan Gamma partial products converge to 1.