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 / V12. Number theory

Mathlib.NumberTheory.ModularForms.QExpansion

86 declarations and 8 deprecated aliases. Mathlib docs · Source

q-expansions of functions on the upper half plane

We show that a function on the upper half plane with strict period n can be written as τ ↦ F (𝕢 n τ) where F is analytic on the open unit disc, and 𝕢 n is the parameter τ ↦ exp (2 * I * π * τ / n). As an application, we show that cusp forms decay exponentially to 0 as im τ → ∞.

We also define the q-expansion of a function f on the upper half plane, either as a power series or as a FormalMultilinearSeries, and show that it converges to f if f is periodic, holomorphic and bounded at infinity.

Main definitions and results

  • UpperHalfPlane.cuspFunction: for a function on the upper half plane with strict period n, this is the function F such that f τ = F (exp (2 * π * I * τ / n)), extended by a choice of limit at 0.
  • UpperHalfPlane.differentiableAt_cuspFunction: when f is periodic, holomorphic and bounded at infinity, its cuspFunction is differentiable on the open unit disc (including at 0).
  • UpperHalfPlane.qExpansion: the q-expansion of a function on the upper half plane (defined as the Taylor series of its cuspFunction), bundled as a PowerSeries.
  • UpperHalfPlane.hasSum_qExpansion: the q-expansion evaluated at 𝕢 n τ sums to f τ, for τ in the upper half plane.
  • ModularForm.qExpansionRingHom defines the ring homomorphism from the graded ring of modular forms to power series given by taking q-expansions.
  • ModularForm.qExpansionAlgHom upgrades it to a ℂ-algebra homomorphism, when Γ consists of matrices of determinant one.
  • UpperHalfPlane.qExpansion_coeff_unique shows that q-expansion coefficients are uniquely determined.
  • There are also more specialized versions of some of these lemmas in the ModularFormClass namespace.

See also

  • Lemmas relating q-expansion coefficients to Fourier series, such as UpperHalfPlane.qExpansion_coeff_eq_exp_mul_fourierCoeffOn, are placed in Bounds.lean, since the present file does not import Fourier theory.

theorem ModularForm.qExpansionRingHom.congr_simp E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} (h h_1 : ℝ) (e_h : h = h_1) [inst : Γ.HasDetPlusMinusOne] (hh : 0 < h)
  (hΓ : h ∈ Γ.strictPeriods), ModularForm.qExpansionRingHom h hh hΓ = ModularForm.qExpansionRingHom h_1 ⋯ ⋯

def UpperHalfPlane.valueAtInfty E1 #

(UpperHalfPlane → ℂ) → ℂ

The value of f at the cusp ∞ (or an arbitrary choice of value if this limit is not well-defined).

theorem UpperHalfPlane.IsZeroAtImInfty.valueAtInfty_eq_zero E1 #

∀ {f : UpperHalfPlane → ℂ}, UpperHalfPlane.IsZeroAtImInfty f → UpperHalfPlane.valueAtInfty f = 0

theorem UpperHalfPlane.qParam_tendsto_atImInfty E1 #

∀ {h : ℝ}, 0 < h → Filter.Tendsto (fun τ ↦ Function.Periodic.qParam h ↑τ) UpperHalfPlane.atImInfty (nhds 0)

def UpperHalfPlane.cuspFunction E1 #

ℝ → (UpperHalfPlane → ℂ) → ℂ → ℂ

The analytic function F such that f τ = F (exp (2 * π * I * τ / h)), extended by a choice of limit at 0.

theorem UpperHalfPlane.differentiableAt_cuspFunction E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          ∀ {q : ℂ}, ‖q‖ < 1 → DifferentiableAt ℂ (UpperHalfPlane.cuspFunction h f) q

theorem UpperHalfPlane.differentiableOn_cuspFunction_ball E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f → DifferentiableOn ℂ (UpperHalfPlane.cuspFunction h f) (Metric.ball 0 1)

theorem UpperHalfPlane.analyticAt_cuspFunction_zero E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f → UpperHalfPlane.IsBoundedAtImInfty f → AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0

theorem UpperHalfPlane.cuspFunction_apply_zero E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
      Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
        UpperHalfPlane.cuspFunction h f 0 = UpperHalfPlane.valueAtInfty f

theorem SlashInvariantFormClass.periodic_comp_ofComplex E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [SlashInvariantFormClass F Γ k], h ∈ Γ.strictPeriods → Function.Periodic (⇑f ∘ ↑UpperHalfPlane.ofComplex) ↑h

theorem ModularFormClass.differentiableAt_cuspFunction E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [ModularFormClass F Γ k],
  0 < h → h ∈ Γ.strictPeriods → ∀ {q : ℂ}, ‖q‖ < 1 → DifferentiableAt ℂ (UpperHalfPlane.cuspFunction h ⇑f) q

theorem ModularFormClass.analyticAt_cuspFunction_zero E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [ModularFormClass F Γ k], 0 < h → h ∈ Γ.strictPeriods → AnalyticAt ℂ (UpperHalfPlane.cuspFunction h ⇑f) 0

def UpperHalfPlane.qExpansion E1 #

ℝ → (UpperHalfPlane → ℂ) → PowerSeries ℂ

The q-expansion of a function on the upper half plane with strict period h, bundled as a PowerSeries. The m-th coefficient is the Taylor coefficient of the cuspFunction at q = 0, where q = exp(2πiτ/h) is the local parameter at the cusp.

theorem UpperHalfPlane.qExpansion_coeff E1 #

∀ {h : ℝ} (f : UpperHalfPlane → ℂ) (m : ℕ),
  (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h f) =
    (↑m.factorial)⁻¹ * iteratedDeriv m (UpperHalfPlane.cuspFunction h f) 0

theorem UpperHalfPlane.qExpansion_coeff_zero E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
      Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
        (PowerSeries.coeff 0) (UpperHalfPlane.qExpansion h f) = UpperHalfPlane.valueAtInfty f

theorem UpperHalfPlane.hasSum_qExpansion_of_norm_lt E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          ∀ {q : ℂ},
            ‖q‖ < 1 →
              HasSum (fun m ↦ (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h f) • q ^ m)
                (UpperHalfPlane.cuspFunction h f q)

theorem UpperHalfPlane.hasSum_qExpansion E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          ∀ (τ : UpperHalfPlane),
            HasSum (fun m ↦ (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h f) • Function.Periodic.qParam h ↑τ ^ m)
              (f τ)

def UpperHalfPlane.qExpansionFormalMultilinearSeries E1 #

{F : Type u_1} → [FunLike F UpperHalfPlane ℂ] → ℝ → F → FormalMultilinearSeries ℂ ℂ ℂ

The q-expansion of a function on the upper half plane, bundled as a FormalMultilinearSeries.

TODO: Maybe get rid of this and instead define a general API for converting PowerSeries to FormalMultilinearSeries.

theorem UpperHalfPlane.qExpansionFormalMultilinearSeries_coeff E0 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {h : ℝ} (f : F) (m : ℕ),
  (UpperHalfPlane.qExpansionFormalMultilinearSeries h f).coeff m =
    (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h ⇑f)

theorem UpperHalfPlane.qExpansionFormalMultilinearSeries_apply_norm E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {h : ℝ} (f : F) (m : ℕ),
  ‖UpperHalfPlane.qExpansionFormalMultilinearSeries h f m‖ = ‖(PowerSeries.coeff m) (UpperHalfPlane.qExpansion h ⇑f)‖

theorem UpperHalfPlane.qExpansionFormalMultilinearSeries_radius E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {h : ℝ} (f : F),
  0 < h →
    Function.Periodic (⇑f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff ⇑f →
        UpperHalfPlane.IsBoundedAtImInfty ⇑f → 1 ≤ (UpperHalfPlane.qExpansionFormalMultilinearSeries h f).radius

theorem UpperHalfPlane.tendsto_atImInfty_of_hasSum_qExpansion E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ} {c : ℕ → ℂ},
  0 < h →
    (∀ (τ : UpperHalfPlane), HasSum (fun m ↦ c m • Function.Periodic.qParam h ↑τ ^ m) (f τ)) →
      Filter.Tendsto f UpperHalfPlane.atImInfty (nhds (c 0))

A function on the upper half plane that is given everywhere by a convergent q-expansion with non-negative exponents, f τ = ∑' m, c m * 𝕢 h τ ^ m, tends to the constant term of its q-expansion at i∞.

theorem UpperHalfPlane.isBoundedAtImInfty_of_hasSum_qExpansion E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ} {c : ℕ → ℂ},
  0 < h →
    (∀ (τ : UpperHalfPlane), HasSum (fun m ↦ c m • Function.Periodic.qParam h ↑τ ^ m) (f τ)) →
      UpperHalfPlane.IsBoundedAtImInfty f

A function on the upper half plane that is given everywhere by a convergent q-expansion with non-negative exponents, f τ = ∑' m, c m * 𝕢 h τ ^ m, is bounded at i∞. This is a converse to hasSum_qExpansion: there, boundedness is a hypothesis used to produce the q-expansion, while here convergence of the q-expansion is enough to deduce boundedness.

theorem UpperHalfPlane.hasFPowerSeriesOnBall_cuspFunction E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ} {c : ℕ → ℂ},
  0 < h →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
      (∀ (τ : UpperHalfPlane), HasSum (fun m ↦ c m • Function.Periodic.qParam h ↑τ ^ m) (f τ)) →
        HasFPowerSeriesOnBall (UpperHalfPlane.cuspFunction h f) (FormalMultilinearSeries.ofScalars ℂ c) 0 1

theorem UpperHalfPlane.qExpansion_coeff_eq_circleIntegral E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          ∀ (n : ℕ) {R : ℝ},
            0 < R →
              R < 1 →
                (PowerSeries.coeff n) (UpperHalfPlane.qExpansion h f) =
                  (2 * ↑Real.pi * Complex.I)⁻¹ * ∮ (z : ℂ) in C(0, R), UpperHalfPlane.cuspFunction h f z / z ^ (n + 1)

The q-expansion coefficient can be expressed as a circleIntegral for any radius 0 < R < 1.

theorem UpperHalfPlane.qExpansion_coeff_eq_intervalIntegral E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          ∀ (n : ℕ) {t : ℝ} (ht : 0 < t),
            (PowerSeries.coeff n) (UpperHalfPlane.qExpansion h f) =
              1 / ↑h *
                ∫ (u : ℝ) in 0..h,
                  1 / Function.Periodic.qParam h (↑u + ↑t * ↑UpperHalfPlane.I) ^ n *
                    f { coe := ↑u + ↑t * ↑UpperHalfPlane.I, coe_im_pos := ⋯ }

If h is a positive strict period of f, then the q-expansion coefficient can be expressed as an integral along a horizontal line in the upper half-plane from t * I to h + t * I, for any 0 < t.

theorem UpperHalfPlane.exp_decay_sub_atImInfty E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          (fun τ ↦ f τ - UpperHalfPlane.valueAtInfty f) =O[UpperHalfPlane.atImInfty] fun τ ↦
            Real.exp (-2 * Real.pi * τ.im / h)

theorem UpperHalfPlane.IsZeroAtImInfty.zero_at_infty_comp_ofComplex E1 #

∀ {f : UpperHalfPlane → ℂ},
  UpperHalfPlane.IsZeroAtImInfty f → (Filter.comap Complex.im Filter.atTop).ZeroAtFilter (f ∘ ↑UpperHalfPlane.ofComplex)

theorem UpperHalfPlane.IsZeroAtImInfty.cuspFunction_apply_zero E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ}, UpperHalfPlane.IsZeroAtImInfty f → 0 < h → UpperHalfPlane.cuspFunction h f 0 = 0

theorem UpperHalfPlane.IsZeroAtImInfty.exp_decay_atImInfty E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  UpperHalfPlane.IsZeroAtImInfty f →
    0 < h →
      Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
        MDiff f →
          UpperHalfPlane.IsBoundedAtImInfty f →
            f =O[UpperHalfPlane.atImInfty] fun τ ↦ Real.exp (-2 * Real.pi * τ.im / h)

theorem ModularFormClass.qExpansion_coeff_eq_intervalIntegral E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [ModularFormClass F Γ k],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (n : ℕ) {t : ℝ} (ht : 0 < t),
        (PowerSeries.coeff n) (UpperHalfPlane.qExpansion h ⇑f) =
          1 / ↑h *
            ∫ (u : ℝ) in 0..h,
              1 / Function.Periodic.qParam h (↑u + ↑t * Complex.I) ^ n *
                f { coe := ↑u + ↑t * Complex.I, coe_im_pos := ⋯ }

theorem ModularFormClass.tendsto_atImInfty E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [ModularFormClass F Γ k],
  0 < h →
    h ∈ Γ.strictPeriods →
      Filter.Tendsto (⇑f) UpperHalfPlane.atImInfty (nhds ((PowerSeries.coeff 0) (UpperHalfPlane.qExpansion h ⇑f)))

A modular form tends to the constant term of its q-expansion at i∞.

theorem ModularFormClass.exp_decay_sub_atImInfty' E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} (f : F)
  [ModularFormClass F Γ k] [Γ.HasDetPlusMinusOne] [DiscreteTopology ↥Γ] [Fact (IsCusp OnePoint.infty Γ)],
  ∃ c > 0, (fun τ ↦ f τ - UpperHalfPlane.valueAtInfty ⇑f) =O[UpperHalfPlane.atImInfty] fun τ ↦ Real.exp (-c * τ.im)

Version of exp_decay_sub_atImInfty stating a less precise result but easier to apply in practice (not specifying the growth rate precisely).

Note that the Fact hypothesis is automatically synthesized for arithmetic subgroups. The discreteness hypothesis may be unnecessary, but it is satisfied in the cases of interest.

theorem ModularFormClass.exp_decay_atImInfty' E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} (f : F)
  [ModularFormClass F Γ k] [Γ.HasDetPlusMinusOne] [DiscreteTopology ↥Γ] [Fact (IsCusp OnePoint.infty Γ)],
  UpperHalfPlane.IsZeroAtImInfty ⇑f → ∃ c > 0, ⇑f =O[UpperHalfPlane.atImInfty] fun τ ↦ Real.exp (-c * τ.im)

Version of exp_decay_atImInfty stating a less precise result but easier to apply in practice (not specifying the growth rate precisely). Note that the Fact hypothesis is automatically synthesized for arithmetic subgroups.

theorem CuspFormClass.zero_at_infty_comp_ofComplex E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} (f : F) [CuspFormClass F Γ k]
  [Fact (IsCusp OnePoint.infty Γ)], (Filter.comap Complex.im Filter.atTop).ZeroAtFilter (⇑f ∘ ↑UpperHalfPlane.ofComplex)

theorem CuspFormClass.cuspFunction_apply_zero E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [CuspFormClass F Γ k], 0 < h → h ∈ Γ.strictPeriods → UpperHalfPlane.cuspFunction h (⇑f) 0 = 0

theorem CuspFormClass.qExpansion_coeff_zero E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [CuspFormClass F Γ k], 0 < h → h ∈ Γ.strictPeriods → (PowerSeries.coeff 0) (UpperHalfPlane.qExpansion h ⇑f) = 0

The zeroth coefficient of the q-expansion of a cusp form vanishes.

theorem CuspFormClass.exp_decay_atImInfty E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F)
  [CuspFormClass F Γ k],
  0 < h → h ∈ Γ.strictPeriods → ⇑f =O[UpperHalfPlane.atImInfty] fun τ ↦ Real.exp (-2 * Real.pi * τ.im / h)

theorem CuspFormClass.exp_decay_atImInfty' E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} (f : F) [CuspFormClass F Γ k]
  [Γ.HasDetPlusMinusOne] [DiscreteTopology ↥Γ] [Fact (IsCusp OnePoint.infty Γ)],
  ∃ c > 0, ⇑f =O[UpperHalfPlane.atImInfty] fun τ ↦ Real.exp (-c * τ.im)

theorem UpperHalfPlane.cuspFunction_mul_zero E1 #

∀ {h : ℝ} {f g : ℂ → ℂ},
  ContinuousAt (Function.Periodic.cuspFunction h f) 0 →
    ContinuousAt (Function.Periodic.cuspFunction h g) 0 →
      Function.Periodic.cuspFunction h (f * g) 0 =
        Function.Periodic.cuspFunction h f 0 * Function.Periodic.cuspFunction h g 0

theorem UpperHalfPlane.qExpansion_mul_coeff_zero E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  ContinuousAt (UpperHalfPlane.cuspFunction h f) 0 →
    ContinuousAt (UpperHalfPlane.cuspFunction h g) 0 →
      (PowerSeries.coeff 0) (UpperHalfPlane.qExpansion h (f * g)) =
        (PowerSeries.coeff 0) (UpperHalfPlane.qExpansion h f) * (PowerSeries.coeff 0) (UpperHalfPlane.qExpansion h g)

theorem UpperHalfPlane.cuspFunction_mul E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  ContinuousAt (UpperHalfPlane.cuspFunction h f) 0 →
    ContinuousAt (UpperHalfPlane.cuspFunction h g) 0 →
      UpperHalfPlane.cuspFunction h (f * g) = UpperHalfPlane.cuspFunction h f * UpperHalfPlane.cuspFunction h g

theorem UpperHalfPlane.cuspFunction_smul E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  ContinuousAt (UpperHalfPlane.cuspFunction h f) 0 →
    ∀ (a : ℂ), UpperHalfPlane.cuspFunction h (a • f) = a • UpperHalfPlane.cuspFunction h f

theorem UpperHalfPlane.cuspFunction_neg E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  ContinuousAt (UpperHalfPlane.cuspFunction h f) 0 →
    UpperHalfPlane.cuspFunction h (-f) = -UpperHalfPlane.cuspFunction h f

theorem UpperHalfPlane.cuspFunction_add E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  ContinuousAt (UpperHalfPlane.cuspFunction h f) 0 →
    ContinuousAt (UpperHalfPlane.cuspFunction h g) 0 →
      UpperHalfPlane.cuspFunction h (f + g) = UpperHalfPlane.cuspFunction h f + UpperHalfPlane.cuspFunction h g

theorem UpperHalfPlane.cuspFunction_sub E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  ContinuousAt (UpperHalfPlane.cuspFunction h f) 0 →
    ContinuousAt (UpperHalfPlane.cuspFunction h g) 0 →
      UpperHalfPlane.cuspFunction h (f - g) = UpperHalfPlane.cuspFunction h f - UpperHalfPlane.cuspFunction h g

theorem UpperHalfPlane.qExpansion_mul E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h g) 0 →
      UpperHalfPlane.qExpansion h (f * g) = UpperHalfPlane.qExpansion h f * UpperHalfPlane.qExpansion h g

theorem UpperHalfPlane.qExpansion_smul E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
    ∀ (a : ℂ), UpperHalfPlane.qExpansion h (a • f) = a • UpperHalfPlane.qExpansion h f

theorem UpperHalfPlane.qExpansion_neg E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 → UpperHalfPlane.qExpansion h (-f) = -UpperHalfPlane.qExpansion h f

theorem UpperHalfPlane.qExpansion_add E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h g) 0 →
      UpperHalfPlane.qExpansion h (f + g) = UpperHalfPlane.qExpansion h f + UpperHalfPlane.qExpansion h g

theorem UpperHalfPlane.qExpansion_sub E1 #

∀ {h : ℝ} {f g : UpperHalfPlane → ℂ},
  AnalyticAt ℂ (UpperHalfPlane.cuspFunction h f) 0 →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h g) 0 →
      UpperHalfPlane.qExpansion h (f - g) = UpperHalfPlane.qExpansion h f - UpperHalfPlane.qExpansion h g

theorem UpperHalfPlane.qExpansion_zero E1 #

∀ (h : ℝ), UpperHalfPlane.qExpansion h 0 = 0

theorem UpperHalfPlane.qExpansion_eq_zero_iff E0 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f → UpperHalfPlane.IsBoundedAtImInfty f → (UpperHalfPlane.qExpansion h f = 0 ↔ f = 0)

theorem UpperHalfPlane.qExpansion_one E1 #

∀ (h : ℝ), UpperHalfPlane.qExpansion h 1 = 1

theorem UpperHalfPlane.analyticOrderAt_eq_qExpansion_order E1 #

∀ {h : ℝ} {f : UpperHalfPlane → ℂ},
  0 < h →
    Function.Periodic (f ∘ ↑UpperHalfPlane.ofComplex) ↑h →
      MDiff f →
        UpperHalfPlane.IsBoundedAtImInfty f →
          analyticOrderAt (UpperHalfPlane.cuspFunction h f) 0 = (UpperHalfPlane.qExpansion h f).order

theorem ModularForm.cuspFunction_smul E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (a : ℂ) (f : F) [ModularFormClass F Γ k],
        UpperHalfPlane.cuspFunction h (a • ⇑f) = a • UpperHalfPlane.cuspFunction h ⇑f

theorem ModularForm.cuspFunction_neg E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (f : F) [ModularFormClass F Γ k], UpperHalfPlane.cuspFunction h (-⇑f) = -UpperHalfPlane.cuspFunction h ⇑f

theorem ModularForm.cuspFunction_add E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {G : Type u_2}
  [inst_1 : FunLike G UpperHalfPlane ℂ],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : F) [ModularFormClass F Γ a] (g : G) [ModularFormClass G Γ b],
        UpperHalfPlane.cuspFunction h (⇑f + ⇑g) = UpperHalfPlane.cuspFunction h ⇑f + UpperHalfPlane.cuspFunction h ⇑g

theorem ModularForm.cuspFunction_sub E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {G : Type u_2}
  [inst_1 : FunLike G UpperHalfPlane ℂ],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : F) [ModularFormClass F Γ a] (g : G) [ModularFormClass G Γ b],
        UpperHalfPlane.cuspFunction h (⇑f - ⇑g) = UpperHalfPlane.cuspFunction h ⇑f - UpperHalfPlane.cuspFunction h ⇑g

theorem ModularForm.cuspFunction_mul E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : ModularForm Γ a) (g : ModularForm Γ b),
        UpperHalfPlane.cuspFunction h ⇑(f.mul g) = UpperHalfPlane.cuspFunction h ⇑f * UpperHalfPlane.cuspFunction h ⇑g

theorem ModularForm.qExpansion_smul E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (a : ℂ) (f : F) [ModularFormClass F Γ k],
        UpperHalfPlane.qExpansion h (a • ⇑f) = a • UpperHalfPlane.qExpansion h ⇑f

theorem ModularForm.qExpansion_neg E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (f : F) [ModularFormClass F Γ k], UpperHalfPlane.qExpansion h (-⇑f) = -UpperHalfPlane.qExpansion h ⇑f

theorem ModularForm.qExpansion_add E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {G : Type u_2}
  [inst_1 : FunLike G UpperHalfPlane ℂ],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : F) [ModularFormClass F Γ a] (g : G) [ModularFormClass G Γ b],
        UpperHalfPlane.qExpansion h (⇑f + ⇑g) = UpperHalfPlane.qExpansion h ⇑f + UpperHalfPlane.qExpansion h ⇑g

theorem ModularForm.qExpansion_sub E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {G : Type u_2}
  [inst_1 : FunLike G UpperHalfPlane ℂ],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : F) [ModularFormClass F Γ a] (g : G) [ModularFormClass G Γ b],
        UpperHalfPlane.qExpansion h (⇑f - ⇑g) = UpperHalfPlane.qExpansion h ⇑f - UpperHalfPlane.qExpansion h ⇑g

theorem ModularForm.qExpansion_mul_coe E0 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {G : Type u_2}
  [inst_1 : FunLike G UpperHalfPlane ℂ],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : F) [ModularFormClass F Γ a] (g : G) [ModularFormClass G Γ b],
        UpperHalfPlane.qExpansion h (⇑f * ⇑g) = UpperHalfPlane.qExpansion h ⇑f * UpperHalfPlane.qExpansion h ⇑g

The q-expansion of a pointwise product of two modular-form-class objects is the product of their q-expansions. Works for any ModularFormClass (e.g. a CuspForm times a ModularForm).

theorem ModularForm.qExpansion_mul E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {a b : ℤ} (f : ModularForm Γ a) (g : ModularForm Γ b),
        UpperHalfPlane.qExpansion h ⇑(f.mul g) = UpperHalfPlane.qExpansion h ⇑f * UpperHalfPlane.qExpansion h ⇑g

theorem ModularForm.qExpansion_eq_zero_iff E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h → h ∈ Γ.strictPeriods → ∀ {k : ℤ} (f : ModularForm Γ k), UpperHalfPlane.qExpansion h ⇑f = 0 ↔ f = 0

theorem ModularForm.qExpansion_one E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne], UpperHalfPlane.qExpansion h ⇑1 = 1

theorem ModularForm.qExpansion_mcast E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {a b : ℤ} {Γ' : Subgroup (GL (Fin 2) ℝ)} (heq : a = b) (hΓ : Γ' = Γ)
  (f : ModularForm Γ a), UpperHalfPlane.qExpansion h ⇑(ModularForm.mcast heq f hΓ) = UpperHalfPlane.qExpansion h ⇑f

theorem ModularForm.qExpansion_pow E1 #

∀ {k : ℤ} {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (f : ModularForm Γ k) (n : ℕ), UpperHalfPlane.qExpansion h ⇑(f.pow n) = UpperHalfPlane.qExpansion h ⇑f ^ n

theorem ModularForm.mul_ne_zero E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} [inst : Γ.HasDetPlusMinusOne],
  (∃ h ∈ Γ.strictPeriods, 0 < h) → ∀ {a b : ℤ} {f : ModularForm Γ a} {g : ModularForm Γ b}, f ≠ 0 → g ≠ 0 → f.mul g ≠ 0

The product of two non-zero modular forms is non-zero.

def ModularForm.qExpansionAddHom E1 #

{Γ : Subgroup (GL (Fin 2) ℝ)} → {h : ℝ} → 0 < h → h ∈ Γ.strictPeriods → (k : ℤ) → ModularForm Γ k →+ PowerSeries ℂ

The qExpansion map as an additive group hom. to power series over ℂ.

theorem ModularForm.qExpansionAddHom_apply E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (hh : 0 < h) (hΓ : h ∈ Γ.strictPeriods) (k : ℤ) (f : ModularForm Γ k),
  (ModularForm.qExpansionAddHom hh hΓ k) f = UpperHalfPlane.qExpansion h ⇑f

theorem ModularForm.qExpansion_injective E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h → h ∈ Γ.strictPeriods → ∀ {k : ℤ}, Function.Injective fun f ↦ UpperHalfPlane.qExpansion h ⇑f

The q-expansion map is injective on modular forms of a fixed weight.

theorem ModularForm.qExpansion_inj E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ},
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {k : ℤ} {f g : ModularForm Γ k}, UpperHalfPlane.qExpansion h ⇑f = UpperHalfPlane.qExpansion h ⇑g ↔ f = g

def ModularForm.qExpansionRingHom E1 #

{Γ : Subgroup (GL (Fin 2) ℝ)} →
  (h : ℝ) →
    [inst : Γ.HasDetPlusMinusOne] →
      0 < h → h ∈ Γ.strictPeriods → (DirectSum ℤ fun k ↦ ModularForm Γ k) →+* PowerSeries ℂ

The qExpansion map as a map from the graded ring of modular forms to power series over ℂ.

theorem ModularForm.qExpansionRingHom_apply E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne] (hh : 0 < h) (hΓ : h ∈ Γ.strictPeriods) (k : ℤ)
  (f : ModularForm Γ k),
  (ModularForm.qExpansionRingHom h hh hΓ) ((DirectSum.of (ModularForm Γ) k) f) = UpperHalfPlane.qExpansion h ⇑f

def ModularForm.qExpansionAlgHom E1 #

{Γ : Subgroup (GL (Fin 2) ℝ)} →
  (h : ℝ) →
    [inst : Γ.HasDetOne] → 0 < h → h ∈ Γ.strictPeriods → (DirectSum ℤ fun k ↦ ModularForm Γ k) →ₐ[ℂ] PowerSeries ℂ

The qExpansion map as a ℂ-algebra map from the graded ring of modular forms to power series over ℂ. This requires Γ.HasDetOne so that ModularForm Γ k carries a ℂ-module structure. Compare ModularForm.const with ModularForm.constℝ.

theorem ModularForm.qExpansionAlgHom_apply E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetOne] (hh : 0 < h) (hΓ : h ∈ Γ.strictPeriods) (k : ℤ)
  (f : ModularForm Γ k),
  (ModularForm.qExpansionAlgHom h hh hΓ) ((DirectSum.of (ModularForm Γ) k) f) = UpperHalfPlane.qExpansion h ⇑f

theorem ModularForm.qExpansionAlgHom_toRingHom E0 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} (h : ℝ) [inst : Γ.HasDetOne] (hh : 0 < h) (hΓ : h ∈ Γ.strictPeriods),
  ↑(ModularForm.qExpansionAlgHom h hh hΓ) = ModularForm.qExpansionRingHom h hh hΓ

theorem ModularForm.qExpansion_of_mul E1 #

∀ {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (a b : ℤ) (f : ModularForm Γ a) (g : ModularForm Γ b),
        UpperHalfPlane.qExpansion h
            ⇑(((DirectSum.of (ModularForm Γ) a) f * (DirectSum.of (ModularForm Γ) b) g) (a + b)) =
          UpperHalfPlane.qExpansion h ⇑f * UpperHalfPlane.qExpansion h ⇑g

theorem ModularForm.qExpansion_of_pow E1 #

∀ {k : ℤ} {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} [inst : Γ.HasDetPlusMinusOne],
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ (f : ModularForm Γ k) (n : ℕ),
        UpperHalfPlane.qExpansion h ⇑(((DirectSum.of (ModularForm Γ) k) f ^ n) (↑n * k)) =
          UpperHalfPlane.qExpansion h ⇑f ^ n

theorem ModularForm.hasSum_qExpansion E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} (f : F),
  0 < h →
    ∀ {k : ℤ} [ModularFormClass F Γ k] [Fact (IsCusp OnePoint.infty Γ)],
      h ∈ Γ.strictPeriods →
        ∀ (τ : UpperHalfPlane),
          HasSum (fun m ↦ (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h ⇑f) * Function.Periodic.qParam h ↑τ ^ m)
            (f τ)

Specialized version of UpperHalfPlane.hasSum_qExpansion for modular forms, with many arguments filled in automatically.

theorem UpperHalfPlane.hasFPowerSeries_cuspFunction E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {h : ℝ} (f : F) {c : ℕ → ℂ},
  0 < h →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h ⇑f) 0 →
      (∀ (τ : UpperHalfPlane), HasSum (fun m ↦ c m • Function.Periodic.qParam h ↑τ ^ m) (f τ)) →
        HasFPowerSeriesOnBall (UpperHalfPlane.cuspFunction h ⇑f) (UpperHalfPlane.qExpansionFormalMultilinearSeries h f)
          0 1

The q-expansion of f is an FPowerSeries representing cuspFunction n f.

theorem UpperHalfPlane.qExpansion_coeff_unique E1 #

∀ {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {h : ℝ} (f : F) {c : ℕ → ℂ},
  0 < h →
    AnalyticAt ℂ (UpperHalfPlane.cuspFunction h ⇑f) 0 →
      (∀ (τ : UpperHalfPlane), HasSum (fun m ↦ c m • Function.Periodic.qParam h ↑τ ^ m) (f τ)) →
        ∀ (m : ℕ), c m = (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h ⇑f)

theorem ModularFormClass.qExpansion_coeff_unique E1 #

∀ {k : ℤ} {F : Type u_1} [inst : FunLike F UpperHalfPlane ℂ] {Γ : Subgroup (GL (Fin 2) ℝ)} {h : ℝ} {c : ℕ → ℂ},
  0 < h →
    h ∈ Γ.strictPeriods →
      ∀ {f : F} [ModularFormClass F Γ k],
        (∀ (τ : UpperHalfPlane), HasSum (fun m ↦ c m • Function.Periodic.qParam h ↑τ ^ m) (f τ)) →
          ∀ (m : ℕ), c m = (PowerSeries.coeff m) (UpperHalfPlane.qExpansion h ⇑f)

Deprecated aliases

NameNew nameSince
ModularFormClass.cuspFunction_addModularForm.cuspFunction_add2026-05-05
ModularFormClass.cuspFunction_negModularForm.cuspFunction_neg2026-05-05
ModularFormClass.cuspFunction_smulModularForm.cuspFunction_smul2026-05-05
ModularFormClass.cuspFunction_subModularForm.cuspFunction_sub2026-05-05
ModularFormClass.qExpansion_addModularForm.qExpansion_add2026-05-05
ModularFormClass.qExpansion_negModularForm.qExpansion_neg2026-05-05
ModularFormClass.qExpansion_smulModularForm.qExpansion_smul2026-05-05
ModularFormClass.qExpansion_subModularForm.qExpansion_sub2026-05-05