|
| 1 | +/- |
| 2 | +Copyright (c) 2024 Chris Birkbeck. All rights reserved. |
| 3 | +Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | +Authors: Chris Birkbeck, David Loeffler |
| 5 | +-/ |
| 6 | + |
| 7 | +import Mathlib.Analysis.Complex.LocallyUniformLimit |
| 8 | +import Mathlib.Analysis.Complex.UpperHalfPlane.Exp |
| 9 | +import Mathlib.Analysis.NormedSpace.MultipliableUniformlyOn |
| 10 | + |
| 11 | +/-! |
| 12 | +# Dedekind eta function |
| 13 | +
|
| 14 | +## Main definitions |
| 15 | +
|
| 16 | +* We define the Dedekind eta function as the infinite product |
| 17 | +`η(z) = q ^ 1/24 * ∏' (1 - q ^ (n + 1))` where `q = e ^ (2πiz)` and `z` is in the upper half-plane. |
| 18 | +The product is taken over all non-negative integers `n`. We then show it is non-vanishing and |
| 19 | +differentiable on the upper half-plane. |
| 20 | +
|
| 21 | +## References |
| 22 | +* [F. Diamond and J. Shurman, *A First Course in Modular Forms*][diamondshurman2005], section 1.2 |
| 23 | +-/ |
| 24 | + |
| 25 | +open TopologicalSpace Set MeasureTheory intervalIntegral |
| 26 | + Metric Filter Function Complex |
| 27 | + |
| 28 | +open UpperHalfPlane hiding I |
| 29 | + |
| 30 | +open scoped Interval Real NNReal ENNReal Topology BigOperators Nat |
| 31 | + |
| 32 | +local notation "𝕢" => Periodic.qParam |
| 33 | + |
| 34 | +local notation "ℍₒ" => upperHalfPlaneSet |
| 35 | + |
| 36 | +namespace ModularForm |
| 37 | + |
| 38 | +/-- The q term inside the product defining the eta function. It is defined as |
| 39 | +`eta_q n z = e ^ (2 π i (n + 1) z)`. -/ |
| 40 | +noncomputable abbrev eta_q (n : ℕ) (z : ℂ) := (𝕢 1 z) ^ (n + 1) |
| 41 | + |
| 42 | +lemma eta_q_eq_cexp (n : ℕ) (z : ℂ) : eta_q n z = cexp (2 * π * I * (n + 1) * z) := by |
| 43 | + simp [eta_q, Periodic.qParam, ← Complex.exp_nsmul] |
| 44 | + ring_nf |
| 45 | + |
| 46 | +lemma eta_q_eq_pow (n : ℕ) (z : ℂ) : eta_q n z = cexp (2 * π * I * z) ^ (n + 1) := by |
| 47 | + simp [eta_q, Periodic.qParam] |
| 48 | + |
| 49 | +lemma one_sub_eta_q_ne_zero (n : ℕ) {z : ℂ} (hz : z ∈ ℍₒ) : 1 - eta_q n z ≠ 0 := by |
| 50 | + rw [eta_q_eq_cexp, sub_ne_zero] |
| 51 | + intro h |
| 52 | + simpa [← mul_assoc, ← h] using norm_exp_two_pi_I_lt_one ⟨(n + 1) • z, by |
| 53 | + simpa [(show 0 < (n + 1 : ℝ) by positivity)] using hz⟩ |
| 54 | + |
| 55 | +/-- The eta function, whose value at z is `q^ 1 / 24 * ∏' 1 - q ^ (n + 1)` for `q = e ^ 2 π i z`. -/ |
| 56 | +noncomputable def eta (z : ℂ) := 𝕢 24 z * ∏' n, (1 - eta_q n z) |
| 57 | + |
| 58 | +local notation "η" => eta |
| 59 | + |
| 60 | +theorem summable_eta_q (z : ℍ) : Summable fun n ↦ ‖-eta_q n z‖ := by |
| 61 | + simp [eta_q, eta_q_eq_pow, summable_nat_add_iff 1, norm_exp_two_pi_I_lt_one z] |
| 62 | + |
| 63 | +lemma multipliableLocallyUniformlyOn_eta : |
| 64 | + MultipliableLocallyUniformlyOn (fun n a ↦ 1 - eta_q n a) ℍₒ:= by |
| 65 | + use fun z ↦ ∏' n, (1 - eta_q n z) |
| 66 | + simp_rw [sub_eq_add_neg] |
| 67 | + apply hasProdLocallyUniformlyOn_of_forall_compact isOpen_upperHalfPlaneSet |
| 68 | + intro K hK hcK |
| 69 | + by_cases hN : K.Nonempty |
| 70 | + · have hc : ContinuousOn (fun x ↦ ‖cexp (2 * π * I * x)‖) K := by fun_prop |
| 71 | + obtain ⟨z, hz, hB, HB⟩ := hcK.exists_sSup_image_eq_and_ge hN hc |
| 72 | + apply (summable_eta_q ⟨z, hK hz⟩).hasProdUniformlyOn_nat_one_add hcK |
| 73 | + · filter_upwards with n x hx |
| 74 | + simpa [eta_q, eta_q_eq_pow] using pow_le_pow_left₀ (by simp [norm_nonneg]) (HB x hx) _ |
| 75 | + · simp_rw [eta_q, Periodic.qParam] |
| 76 | + fun_prop |
| 77 | + · rw [hasProdUniformlyOn_iff_tendstoUniformlyOn] |
| 78 | + simpa [not_nonempty_iff_eq_empty.mp hN] using tendstoUniformlyOn_empty |
| 79 | + |
| 80 | +/-- Eta is non-vanishing on the upper half plane. -/ |
| 81 | +lemma eta_ne_zero {z : ℂ} (hz : z ∈ ℍₒ) : η z ≠ 0 := by |
| 82 | + apply mul_ne_zero (Periodic.qParam_ne_zero z) |
| 83 | + refine tprod_one_add_ne_zero_of_summable (f := fun n ↦ -eta_q n z) ?_ ?_ |
| 84 | + · exact fun i ↦ by simpa using one_sub_eta_q_ne_zero i hz |
| 85 | + · simpa [eta_q, ← summable_norm_iff] using summable_eta_q ⟨z, hz⟩ |
| 86 | + |
| 87 | +lemma logDeriv_one_sub_cexp (r : ℂ) : logDeriv (fun z ↦ 1 - r * cexp z) = |
| 88 | + fun z ↦ -r * cexp z / (1 - r * cexp z) := by |
| 89 | + ext z |
| 90 | + simp [logDeriv] |
| 91 | + |
| 92 | +lemma logDeriv_one_sub_mul_cexp_comp (r : ℂ) {g : ℂ → ℂ} (hg : Differentiable ℂ g) : |
| 93 | + logDeriv ((fun z ↦ 1 - r * cexp z) ∘ g) = |
| 94 | + fun z ↦ -r * (deriv g z) * cexp (g z) / (1 - r * cexp (g z)) := by |
| 95 | + ext y |
| 96 | + rw [logDeriv_comp (by fun_prop) (hg y), logDeriv_one_sub_cexp] |
| 97 | + ring |
| 98 | + |
| 99 | +private theorem one_sub_eta_logDeriv_eq (z : ℂ) (n : ℕ) : |
| 100 | + logDeriv (1 - eta_q n ·) z = 2 * π * I * (n + 1) * -eta_q n z / (1 - eta_q n z) := by |
| 101 | + have h2 : (fun x ↦ 1 - cexp (2 * ↑π * I * (n + 1) * x)) = |
| 102 | + ((fun z ↦ 1 - 1 * cexp z) ∘ fun x ↦ 2 * ↑π * I * (n + 1) * x) := by aesop |
| 103 | + have h3 : deriv (fun x : ℂ ↦ (2 * π * I * (n + 1) * x)) = |
| 104 | + fun _ ↦ 2 * π * I * (n + 1) := by |
| 105 | + ext y |
| 106 | + simpa using deriv_const_mul (2 * π * I * (n + 1)) (d := fun (x : ℂ) ↦ x) (x := y) |
| 107 | + simp_rw [eta_q_eq_cexp, h2, logDeriv_one_sub_mul_cexp_comp 1 |
| 108 | + (g := fun x ↦ (2 * π * I * (n + 1) * x)) (by fun_prop), h3] |
| 109 | + simp |
| 110 | + |
| 111 | +lemma tsum_logDeriv_eta_q (z : ℂ) : ∑' n, logDeriv (fun x ↦ 1 - eta_q n x) z = |
| 112 | + (2 * π * I) * ∑' n, (n + 1) * (-eta_q n z) / (1 - eta_q n z) := by |
| 113 | + rw [tsum_congr (one_sub_eta_logDeriv_eq z), ← tsum_mul_left] |
| 114 | + grind |
| 115 | + |
| 116 | +theorem differentiableAt_eta_of_mem_upperHalfPlaneSet {z : ℂ} (hz : z ∈ ℍₒ) : |
| 117 | + DifferentiableAt ℂ eta z := by |
| 118 | + apply DifferentiableAt.mul (by fun_prop) |
| 119 | + refine (multipliableLocallyUniformlyOn_eta.hasProdLocallyUniformlyOn.differentiableOn ?_ |
| 120 | + isOpen_upperHalfPlaneSet z hz).differentiableAt (isOpen_upperHalfPlaneSet.mem_nhds hz) |
| 121 | + filter_upwards with b |
| 122 | + simpa [Finset.prod_fn] using DifferentiableOn.finset_prod (by fun_prop) |
| 123 | + |
| 124 | +end ModularForm |
0 commit comments