The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V19. Complex and harmonic analysis

Mathlib.Analysis.SpecialFunctions.RegularizedHypergeometric

44 declarations. Mathlib docs · Source

Generalized hypergeometric function

In this file we define the generalized hypergeometric function as well as the Gaussian hypergeometric function.

The hypergeometric function is a function with parameters a : Fin p → ℂ and b : Fin q → ℂ.

Note that in this file, we use the regularized version of the hypergeometric function, that is the coefficients are divides by ∏ i, Gamma (b i), giving in the case of the Gaussian hypergeometric function the series representation $$\sum_j \frac{(a)^n (b)^n}{\Gamma(c + n) n!} z^ n,$$ where (a)^n denotes the rising Pochhammer symbol.

This definition is valid for all values of c, whereas the usual hypergeometric function has a pole for c = -k and k : ℕ. To our knowledge the regularized hypergeometric function only appears in the literature only for the Gaussian case, it is implicit in the definition of the Bessel function (p = 0 and q = 1). To recover the usual hypergeometric function, simply multiply by ∏ i, Gamma (b i).

Main definitions

For the general case we have

  • Complex.regularizedHGFunCoeff: the coefficients
  • Complex.regularizedHGFunSeries: the formal multilinear series
  • Complex.regularizedHGFun: the function

For the Gaussian case (p = 2 and q = 1), we define

  • Complex.regularizedGaussHGFunSeries: the formal multilinear series
  • Complex.regularizedGaussHGFun: the function

Main statements

Convergence:

  • radius_regularizedHGFunSeries_eq_top_of_finite: in the case that the series reduces to a polynomial, the radius of convergence is infinite.
  • radius_regularizedHGFunSeries_eq_top: if p < q + 1, then the series has infinite convergence radius.
  • radius_regularizedHGFunSeries_eq_one: if p = q + 1, then the series has convergence radius 1.
  • Complex.radius_regularizedGaussHGFunSeries_eq_one: the Gaussian hypergeometric series has convergence radius 1.

def Complex.regularizedHGFunCoeff E3 #

Multiset ℂ → Multiset ℂ → ℕ → ℂ

The coefficients of the regularized hypergeometric series.

theorem Complex.regularizedHGFunCoeff_eq_zero_iff E0 #

∀ {a b : Multiset ℂ} {n : ℕ},
  Complex.regularizedHGFunCoeff a b n = 0 ↔ (∃ j ∈ a, ∃ k < n, j = -↑k) ∨ ∃ j ∈ b, ∃ m, j + ↑n = -↑m

theorem Complex.regularizedHGFunCoeff_eq_zero_right E1 #

∀ (a b : Multiset ℂ) (n m : ℕ),
  autoParam (-↑n - ↑m ∈ b) Complex.regularizedHGFunCoeff_eq_zero_right._auto_1 → Complex.regularizedHGFunCoeff a b n = 0

theorem Complex.regularizedHGFunCoeff_eq_zero_left E1 #

∀ (a b : Multiset ℂ) (n m : ℕ),
  autoParam (-↑m ∈ a) Complex.regularizedHGFunCoeff_eq_zero_left._auto_1 →
    autoParam (m < n) Complex.regularizedHGFunCoeff_eq_zero_left._auto_3 → Complex.regularizedHGFunCoeff a b n = 0

theorem Complex.regularizedHGFunCoeff_add_one E2 #

∀ {a b : Multiset ℂ} {n : ℕ},
  (∀ k ∈ b, k ≠ -↑n) →
    Complex.regularizedHGFunCoeff a b (n + 1) =
      Complex.regularizedHGFunCoeff a b n *
        ((Multiset.map (fun x ↦ x + ↑n) a).prod / ((Multiset.map (fun x ↦ x + ↑n) b).prod * (↑n + 1)))

Recursion formula for the coefficients of the hypergeometric series.

This is mainly used to calculate the convergence radius.

theorem Complex.regularizedHGFunCoeff_add_one_div_self E2 #

∀ {a b : Multiset ℂ} {n : ℕ},
  Complex.regularizedHGFunCoeff a b n ≠ 0 →
    Complex.regularizedHGFunCoeff a b (n + 1) / Complex.regularizedHGFunCoeff a b n =
      (Multiset.map (fun x ↦ x + ↑n) a).prod / ((Multiset.map (fun x ↦ x + ↑n) b).prod * (↑n + 1))

Recursion formula for the coefficients of the hypergeometric series.

This is mainly used to calculate the convergence radius.

theorem Complex.mul_regularizedHGFunCoeff_of_mem_right E1 #

∀ (a : Multiset ℂ) {b : Multiset ℂ} (n : ℕ) {u : ℂ},
  u ∈ b → (u - 1 + ↑n) * Complex.regularizedHGFunCoeff a b n = Complex.regularizedHGFunCoeff a ((u - 1) ::ₘ b.erase u) n

theorem Complex.mul_regularizedHGFunCoeff E1 #

∀ {a b : Multiset ℂ} (n : ℕ),
  (↑n + 1) * Complex.regularizedHGFunCoeff a b (n + 1) =
    a.prod * Complex.regularizedHGFunCoeff (Multiset.map (fun x ↦ x + 1) a) (Multiset.map (fun x ↦ x + 1) b) n

theorem Complex.regularizedHGFunCoeff_zero_neg_nat_add_one E0 #

∀ (n i : ℕ), Complex.regularizedHGFunCoeff 0 {-↑n + 1} (i + n) = Complex.regularizedHGFunCoeff 0 {↑n + 1} i

def Complex.regularizedHGFunSeries E3 #

Multiset ℂ → Multiset ℂ → FormalMultilinearSeries ℂ ℂ ℂ

The regularized hypergeometric series.

theorem Complex.regularizedHGFunSeries_coeff E0 #

∀ {a b : Multiset ℂ}, (Complex.regularizedHGFunSeries a b).coeff = Complex.regularizedHGFunCoeff a b

theorem Complex.regularizedHGFunSeries_eq_zero E0 #

∀ {a b : Multiset ℂ} {n : ℕ}, Complex.regularizedHGFunSeries a b n = 0 ↔ Complex.regularizedHGFunCoeff a b n = 0

def Complex.regularizedHGFun E3 #

Multiset ℂ → Multiset ℂ → ℂ → ℂ

The regularized hypergeometric function.

theorem Complex.regularizedHGFun_zero E0 #

∀ {a b : Multiset ℂ}, Complex.regularizedHGFun a b 0 = Complex.regularizedHGFunCoeff a b 0

theorem Complex.radius_regularizedHGFunSeries_eq_top_of_finite E3 #

∀ {a b : Multiset ℂ} {n : ℕ} {j : ℂ}, j ∈ a → j = -↑n → (Complex.regularizedHGFunSeries a b).radius = ⊤

If there exists j and k : ℕ, such that a j = -k, then the hypergeometric series is finite and has convergence radius ∞.

theorem Complex.eventually_atTop_regularizedHGFunCoeff_ne_zero E1 #

∀ {a : Multiset ℂ} (b : Multiset ℂ),
  (∀ j ∈ a, ∀ (k : ℕ), j ≠ -↑k) → ∀ᶠ (n : ℕ) in Filter.atTop, Complex.regularizedHGFunCoeff a b n ≠ 0

If for all j and k : ℕ, a j ≠ -k, then the coefficients of the hypergeometric series are eventually non-vanishing.

theorem Complex.radius_regularizedHGFunSeries_eq_top E3 #

∀ {a b : Multiset ℂ}, a.card ≤ b.card → (Complex.regularizedHGFunSeries a b).radius = ⊤

If a.card ≤ b.card, then the hypergeometric series has infinite convergence radius.

theorem Complex.radius_regularizedHGFunSeries_zero_eq_top E0 #

∀ {b : Multiset ℂ}, (Complex.regularizedHGFunSeries 0 b).radius = ⊤

theorem Complex.summable_pow_mul_regularizedHGFunCoeff_zero E1 #

∀ {b : Multiset ℂ} (z : ℂ), Summable fun n ↦ z ^ n * Complex.regularizedHGFunCoeff 0 b n

theorem Complex.analyticOnNhd_regularizedHGFun_of_card_le E1 #

∀ {a b : Multiset ℂ}, a.card ≤ b.card → AnalyticOnNhd ℂ (Complex.regularizedHGFun a b) Set.univ

theorem Complex.analyticAt_regularizedHGFun_of_card_le E1 #

∀ {a b : Multiset ℂ}, a.card ≤ b.card → ∀ (z : ℂ), AnalyticAt ℂ (Complex.regularizedHGFun a b) z

theorem Complex.analyticOnNhd_regularizedHGFun_zero E1 #

∀ {b : Multiset ℂ}, AnalyticOnNhd ℂ (Complex.regularizedHGFun 0 b) Set.univ

theorem Complex.analyticAt_regularizedHGFun_zero E1 #

∀ {b : Multiset ℂ} (z : ℂ), AnalyticAt ℂ (Complex.regularizedHGFun 0 b) z

theorem Complex.radius_regularizedHGFunSeries_eq_one E3 #

∀ {a b : Multiset ℂ},
  a.card = b.card + 1 → (∀ j ∈ a, ∀ (k : ℕ), j ≠ -↑k) → (Complex.regularizedHGFunSeries a b).radius = 1

If a.card = b.card + 1, then the hypergeometric series has convergence radius 1, unless it is a polynomial.

theorem Complex.radius_regularizedHGFunSeries_ge_one E1 #

∀ {a b : Multiset ℂ}, a.card = b.card + 1 → 1 ≤ (Complex.regularizedHGFunSeries a b).radius

If a.card = b.card + 1, then the hypergeometric series has convergence radius greater or equal to 1.

theorem Complex.regularizedHGFun_zero_singleton_eq_mul_add_mul E1 #

∀ (u z : ℂ),
  Complex.regularizedHGFun 0 {u} z = u * Complex.regularizedHGFun 0 {u + 1} z + z * Complex.regularizedHGFun 0 {u + 2} z

theorem Complex.analyticOnNhd_regularizedHGFun_of_card_eq_add_one E1 #

∀ {a b : Multiset ℂ}, a.card = b.card + 1 → AnalyticOnNhd ℂ (Complex.regularizedHGFun a b) (Metric.eball 0 1)

theorem Complex.analyticAt_regularizedHGFun_of_card_eq_add_one E1 #

∀ {a b : Multiset ℂ}, a.card = b.card + 1 → ∀ {z : ℂ}, ‖z‖ < 1 → AnalyticAt ℂ (Complex.regularizedHGFun a b) z

theorem Complex.regularizedHGFun_zero_singleton_neg_nat_add_one E1 #

∀ (n : ℕ) (z : ℂ), Complex.regularizedHGFun 0 {-↑n + 1} z = z ^ n * Complex.regularizedHGFun 0 {↑n + 1} z

theorem Complex.hasDerivAt_regularizedHGFun E1 #

∀ {a b : Multiset ℂ} {z : ℂ},
  ‖z‖ₑ < (Complex.regularizedHGFunSeries a b).radius →
    HasDerivAt (Complex.regularizedHGFun a b)
      (a.prod * Complex.regularizedHGFun (Multiset.map (fun x ↦ x + 1) a) (Multiset.map (fun x ↦ x + 1) b) z) z

theorem Complex.deriv_regularizedHGFun E1 #

∀ {a b : Multiset ℂ} {z : ℂ},
  ‖z‖ₑ < (Complex.regularizedHGFunSeries a b).radius →
    deriv (Complex.regularizedHGFun a b) z =
      a.prod * Complex.regularizedHGFun (Multiset.map (fun x ↦ x + 1) a) (Multiset.map (fun x ↦ x + 1) b) z

theorem Complex.regularizedHGFunSeries_zero_zero E0 #

Complex.regularizedHGFunSeries 0 0 = NormedSpace.expSeries ℂ ℂ

The regularized hypergeometric series with a = b = 0 is exponential series.

theorem Complex.regularizedHGFun_zero_zero E0 #

Complex.regularizedHGFun 0 0 = Complex.exp

The regularized hypergeometric function ₀F₀ is the complex exponential.

def Complex.regularizedGaussHGFunSeries E3 #

ℂ → ℂ → ℂ → FormalMultilinearSeries ℂ ℂ ℂ

The regularized Gaussian hypergeometric function.

def Complex.regularizedGaussHGFun E3 #

ℂ → ℂ → ℂ → ℂ → ℂ

The regularized Gaussian hypergeometric function.

theorem Complex.regularizedGaussHGFunSeries_symm E1 #

∀ (a b c : ℂ), a.regularizedGaussHGFunSeries b c = b.regularizedGaussHGFunSeries a c

theorem Complex.regularizedGaussHGFun_symm E1 #

∀ (a b c : ℂ), a.regularizedGaussHGFun b c = b.regularizedGaussHGFun a c

theorem Complex.coeff_regularizedGaussHGFunSeries E1 #

∀ {n : ℕ} {a b c : ℂ},
  (a.regularizedGaussHGFunSeries b c).coeff n =
    Polynomial.eval a (ascPochhammer ℂ n) * Polynomial.eval b (ascPochhammer ℂ n) /
      (↑n.factorial * Complex.Gamma (c + ↑n))

theorem Complex.Gamma_inv_mul_ordinaryHypergeometricSeries_eq E0 #

∀ {a b c : ℂ},
  (∀ (k : ℕ), c ≠ -↑k) →
    ∀ {n : ℕ},
      (Complex.Gamma c)⁻¹ * (ordinaryHypergeometricSeries ℂ a b c).coeff n = (a.regularizedGaussHGFunSeries b c).coeff n

theorem Complex.ordinaryHypergeometric_div_Gamma_eq E0 #

∀ {a b c z : ℂ}, (∀ (k : ℕ), c ≠ -↑k) → ₂F₁ a b c z / Complex.Gamma c = a.regularizedGaussHGFun b c z

theorem Complex.radius_regularizedGaussHGFunSeries_eq_top_of_left E0 #

∀ (b c : ℂ) (k : ℕ), ((-↑k).regularizedGaussHGFunSeries b c).radius = ⊤

theorem Complex.radius_regularizedGaussHGFunSeries_eq_top_of_right E0 #

∀ (a c : ℂ) (k : ℕ), (a.regularizedGaussHGFunSeries (-↑k) c).radius = ⊤

theorem Complex.radius_regularizedGaussHGFunSeries_eq_one E3 #

∀ {a b : ℂ} (c : ℂ), (∀ (k : ℕ), a ≠ -↑k ∧ b ≠ -↑k) → (a.regularizedGaussHGFunSeries b c).radius = 1

theorem Complex.radius_regularizedGaussHGFunSeries_ge_one E1 #

∀ (a b c : ℂ), 1 ≤ (a.regularizedGaussHGFunSeries b c).radius