Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.Analysis.SpecialFunctions.Complex.Analytic |
| 4 | public import Lib.Shimura.Uniformisation.HolomorphicFamilies |
| 5 | import Lib.General.Analysis.HolomorphicIntegrals |
| 6 | import Lib.PadicComparison.Descent.TestCategory |
| 7 | |
| 8 | /-! |
| 9 | # Existence in Appell–Humbert: projective embeddings are given by theta functions |
| 10 | |
| 11 | The existence half of the Appell–Humbert theorem, for a projective embedding N of a uniformised |
| 12 | group A(ℂ) = V/L whose class satisfies the parallelogram law. |
| 13 | |
| 14 | * `New.Uniformisation.appell_humbert`: the coordinates of N are theta functions for some |
| 15 | Appell–Humbert data (L, B, χ) with positive Riemann form. |
| 16 | * `New.exists_analyticAt_double_eq`, `New.exists_extension_double`, `New.induction_on_double`: the |
| 17 | doubling equation near 0, and its continuation to the whole space by halving. |
| 18 | |
| 19 | Idea: the parallelogram law gives a frame on A × A, and its values define a function c. After |
| 20 | multiplying c by exp q(z, z) for a suitable quadratic form q, the doubling equation |
| 21 | σ(2z) = σ(z)⁴c(z) is solved near 0 and continued to V by halving. Then σ trivialises the pullback of |
| 22 | N. |
| 23 | |
| 24 | `New.Uniformisation` A V is a surjective homomorphism e = `u.expMap` : V → A(ℂ), holomorphic and |
| 25 | immersive, with kernel the lattice L = `u.lattice`. `New.HasThetaCoords` says that θ(z) gives |
| 26 | homogeneous coordinates of e(z), each θ_i a theta function of type (B, χ): entire, with |
| 27 | θ_i(z + l) = χ(l)·exp(B l z + B l l / 2)·θ_i(z) for l in L. |
| 28 | |
| 29 | Notions from other files: |
| 30 | * `New.atGeneric`: For a family s of sections of A over Spec O, O a valuation ring of ℂ, the complex |
| 31 | point of A given by s(z) at the generic point. |
| 32 | * `New.LineBundle.IsHomogeneousCoords`: v is a vector of homogeneous coordinates of the point t for |
| 33 | L: t lands in U_j exactly when v_j is a unit, and then g_jk(t) = v_k/v_j. |
| 34 | * `New.IsAppellHumbert`: Re B is symmetric, and on L one has |χ| = 1 and χ(l + m) = χ(l)χ(m)·exp(πi |
| 35 | E(m, l)), E the Riemann form of B. |
| 36 | * `New.IsPosRiemann`: The Riemann form E of B is positive: E(u, iu) > 0 for every u ≠ 0. |
| 37 | * `New.Pic.ParallelogramLaw`: The parallelogram law for a class c in Pic A: |
| 38 | (x+y)^*c + (x−y)^*c + 2·0^*c = 2(x^*c + y^*c) in Pic T for all T-points x, y of A and all |
| 39 | S-schemes T. |
| 40 | |
| 41 | ## Relation to the literature |
| 42 | |
| 43 | Known result: Appell–Humbert theorem, a step in the complex uniformisation of PEL abelian varieties. |
| 44 | For a given uniformisation, this file proves the existence half, for a very ample class obeying the |
| 45 | parallelogram law. Source: J. S. Milne, Introduction to Shimura Varieties (2005/2017), Theorem 8.17 |
| 46 | and Lemma 5.12; R. Kottwitz, Points on some Shimura varieties over finite fields, J. AMS 5 (1992) |
| 47 | §8; G. Shimura, On analytic families of polarized abelian varieties and automorphic functions, Ann. |
| 48 | Math. 78 (1963); A. Borel, Some finiteness properties of adele groups over number fields, Publ. IHES |
| 49 | 16 (1963); D. Mumford, Abelian Varieties §§1–2; L. Breen, Fonctions thêta et théorème du cube, LNM |
| 50 | 980 (1983). |
| 51 | -/ |
| 52 | |
| 53 | @[expose] public section |
| 54 | |
| 55 | open CategoryTheory CartesianMonoidalCategory Complex Over New LineBundle PointFn NormedAddGroup |
| 56 | |
| 57 | /-- For `f` analytic at `0`, the equation `g (2z) = 4 g z + f z` has a solution analytic at `0`, up |
| 58 | to a quadratic form. -/ |
| 59 | lemma New.exists_analyticAt_double_eq {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 60 | {f : V → ℂ} (hf : AnalyticAt ℂ f 0) : |
| 61 | ∃ (g : V → ℂ) (q : V →L[ℂ] V →L[ℂ] ℂ), |
| 62 | AnalyticAt ℂ g 0 ∧ ∀ᶠ z : V in nhds 0, g (z + z) = 4 * g z + f z + q z z := by |
| 63 | obtain ⟨P, hP⟩ := hf |
| 64 | -- In degree `n` the equation reads `(2 ^ n - 4) G n = P n`; for `n = 2`, `G 2 = 0` and `q` |
| 65 | -- cancels `P 2`. |
| 66 | let G : FormalMultilinearSeries ℂ V ℂ := fun n ↦ (2 ^ n - 4 : ℝ)⁻¹ • P n |
| 67 | have h_ball : ∀ᶠ z : V in nhds 0, z ∈ Metric.eball 0 G.radius := |
| 68 | Metric.eball_mem_nhds _ <| hP.radius_pos.trans_le <| G.radius_le_of_le fun n ↦ by |
| 69 | simpa [G, norm_smul] using |
| 70 | mul_le_of_le_one_left (norm_nonneg _) (2 ^ n - 4 : ℤ).natAbs.cast_inv_le_one |
| 71 | refine ⟨G.sum, -continuousMultilinearCurryFin1 ℂ V _ (P 2).curryRight, |
| 72 | G.analyticOnNhd _ h_ball.self_of_nhds, ?_⟩ |
| 73 | filter_upwards [h_ball, |
| 74 | ((by fun_prop : Continuous fun z : V ↦ z + z).tendsto' 0 0 (add_zero 0)).eventually h_ball, |
| 75 | hP.eventually_hasSum] with z hz hz₂ hfz |
| 76 | -- Summing over `n`, all terms except `n = 2` cancel against the inverse in `G n`. |
| 77 | rw [eq_add_of_sub_eq <| ((G.hasSum hz₂).sub (((G.hasSum hz).mul_left 4).add hfz)).unique |
| 78 | (hasSum_single 2 fun n hn ↦ by |
| 79 | have h_ne : (2 : ℂ) ^ n ≠ 4 := mod_cast (Nat.pow_right_injective le_rfl).ne hn |
| 80 | simp [← two_smul ℂ, (P _).map_smul_univ, G, fieldEq])] |
| 81 | norm_num [G, add_comm, |
| 82 | (by simp [funext_iff, Fin.forall_fin_two] : Fin.snoc (Fin.snoc 0 z) z = fun _ : Fin 2 ↦ z)] |
| 83 | |
| 84 | /-- For `r > 0` and `‖z‖ ≥ r`, halving `z` lowers `⌊‖z‖ / r⌋₊`. -/ |
| 85 | lemma New.floor_norm_half_div_lt {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] {r : ℝ} |
| 86 | (hr : 0 < r) {z : V} (hz : ¬‖z‖ < r) : |
| 87 | ⌊‖(2⁻¹ : ℂ) • z‖ / r⌋₊ < ⌊‖z‖ / r⌋₊ := by |
| 88 | -- Halving divides `‖z‖ / r ≥ 1` by two, which lowers its floor. |
| 89 | have h_le : r ≤ ‖z‖ := not_lt.1 hz |
| 90 | grw [Nat.floor_lt, ← Nat.div_two_lt_floor] |
| 91 | · rw [norm_smul, norm_inv, Complex.norm_ofNat, inv_mul_eq_div, div_right_comm] |
| 92 | · exact (one_le_div hr).2 h_le |
| 93 | · positivity |
| 94 | |
| 95 | /-- Induction by doubling: a property that holds on the ball of radius `r > 0` around `0` and |
| 96 | passes from `z` to `z + z` holds on the whole space. -/ |
| 97 | lemma New.induction_on_double {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] {r : ℝ} |
| 98 | (hr : 0 < r) {p : V → Prop} (h_small : ∀ z : V, ‖z‖ < r → p z) |
| 99 | (h_double : ∀ z : V, p z → p (z + z)) (z : V) : |
| 100 | p z := by |
| 101 | induction z using (measure fun z : V ↦ ⌊‖z‖ / r⌋₊).wf.induction with |
| 102 | | h z ih => |
| 103 | by_cases hz : ‖z‖ < r |
| 104 | · exact h_small z hz |
| 105 | · have h := h_double _ (ih _ (floor_norm_half_div_lt hr hz)) |
| 106 | rwa [← two_smul ℂ, smul_smul, mul_inv_cancel₀ two_ne_zero, one_smul] at h |
| 107 | |
| 108 | /-- A solution of `σ (2z) = σ z ^ 4 * c z` on a ball around `0` extends to the whole space. -/ |
| 109 | lemma New.exists_extension_double {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] {r : ℝ} |
| 110 | (hr : 0 < r) {σ₀ c : V → ℂ} |
| 111 | (h₀ : ∀ z : V, ‖z‖ < r → ‖z + z‖ < r → σ₀ (z + z) = σ₀ z ^ 4 * c z) : |
| 112 | ∃ σ : V → ℂ, (∀ z : V, ‖z‖ < r → σ z = σ₀ z) ∧ ∀ z : V, σ (z + z) = σ z ^ 4 * c z := by |
| 113 | -- Outside the ball put `σ z = σ (z / 2) ^ 4 * c (z / 2)`, a recursion on `⌊‖z‖ / r⌋₊`. |
| 114 | obtain ⟨σ, hσ⟩ : ∃ σ : V → ℂ, ∀ z : V, |
| 115 | σ z = if ‖z‖ < r then σ₀ z else σ ((2⁻¹ : ℂ) • z) ^ 4 * c ((2⁻¹ : ℂ) • z) := |
| 116 | ⟨_, (measure fun z : V ↦ ⌊‖z‖ / r⌋₊).wf.fix_eq fun z F ↦ if hz : ‖z‖ < r then σ₀ z else |
| 117 | F _ (floor_norm_half_div_lt hr hz) ^ 4 * c ((2⁻¹ : ℂ) • z)⟩ |
| 118 | refine ⟨σ, fun z hz ↦ by rw [hσ, ite_eq_left hz], fun z ↦ ?_⟩ |
| 119 | by_cases hz : ‖z + z‖ < r |
| 120 | · have hz' : ‖z‖ < r := by linarith [(SameRay.refl z).norm_add, norm_nonneg z] |
| 121 | rw [hσ (z + z), hσ z, ite_eq_left hz, ite_eq_left hz', h₀ z hz' hz] |
| 122 | · rw [hσ (z + z), ite_eq_right hz, ← two_smul ℂ z, smul_smul, inv_mul_cancel₀ two_ne_zero, |
| 123 | one_smul] |
| 124 | |
| 125 | /-- Let `σ (2z) = σ z ^ 4 * (exp (q z z) * c z)` for all `z`, with `c x ≠ 0`, `Φ x` without zero |
| 126 | near `x` and `y ↦ c y * Φ (2x) (2y) / Φ x y ^ 4` analytic at `x`. If `σ x ≠ 0` and `σ * Φ x` is |
| 127 | analytic at `x`, then `σ (2x) ≠ 0` and `σ * Φ (2x)` is analytic at `2x`. -/ |
| 128 | private lemma New.ne_zero_and_analyticAt_mul_double {V : Type*} [NormedAddCommGroup V] |
| 129 | [NormedSpace ℂ V] {Φ : V → V → ℂ} {c σ : V → ℂ} {q : V →L[ℂ] V →L[ℂ] ℂ} {x : V} |
| 130 | (Φ_ne : ∀ᶠ w : V in nhds x, Φ x w ≠ 0) (c_ne : c x ≠ 0) |
| 131 | (c_an : AnalyticAt ℂ (fun y : V ↦ c y * Φ (x + x) (y + y) / Φ x y ^ 4) x) |
| 132 | (σ_double : ∀ z : V, σ (z + z) = σ z ^ 4 * (exp (q z z) * c z)) (h_ne : σ x ≠ 0) |
| 133 | (h_an : AnalyticAt ℂ (σ * Φ x) x) : |
| 134 | σ (x + x) ≠ 0 ∧ AnalyticAt ℂ (σ * Φ (x + x)) (x + x) := by |
| 135 | -- By the doubling equation, `y ↦ (σ * Φ (2x)) (2y)` is a product of functions analytic at `x`. |
| 136 | have q_an : AnalyticAt ℂ (fun y : V ↦ q y y) x := |
| 137 | (q.analyticAt_bilinear (x, x)).comp₂ analyticAt_id analyticAt_id |
| 138 | have h_double : AnalyticAt ℂ (fun y : V ↦ (σ * Φ (x + x)) (y + y)) x := by |
| 139 | refine (((h_an.pow 4).mul c_an).mul q_an.cexp).congr ?_ |
| 140 | filter_upwards [Φ_ne] with y hy |
| 141 | simp only [Pi.pow_apply, Pi.mul_apply, Function.comp_apply] |
| 142 | rw [σ_double y, mul_pow, mul_div_assoc', mul_right_comm (σ y ^ 4), |
| 143 | ← mul_assoc (σ y ^ 4), mul_div_cancel_right₀ _ (pow_ne_zero 4 hy)] |
| 144 | ring |
| 145 | -- Compose with the halving map. |
| 146 | have h_half : AnalyticAt ℂ (fun y : V ↦ (2⁻¹ : ℂ) • y) (x + x) := |
| 147 | analyticAt_const.smul analyticAt_id |
| 148 | have h_id (y : V) : (2⁻¹ : ℂ) • y + (2⁻¹ : ℂ) • y = y := by |
| 149 | rw [← two_smul ℂ, smul_smul, mul_inv_cancel₀ two_ne_zero, one_smul] |
| 150 | refine ⟨?_, ?_⟩ |
| 151 | · rw [σ_double] |
| 152 | exact mul_ne_zero (pow_ne_zero 4 h_ne) (mul_ne_zero (exp_ne_zero _) c_ne) |
| 153 | · exact (h_double.comp_of_eq h_half (by |
| 154 | rw [← two_smul ℂ, smul_smul, inv_mul_cancel₀ two_ne_zero, one_smul])).congr |
| 155 | (.of_forall fun y ↦ congrArg (σ * Φ (x + x)) (h_id y)) |
| 156 | |
| 157 | /-- Let `Φ z` have no zero near `z`, with `Φ 0 / Φ z` analytic at `z` and `Φ 0 0 = 1`. Let `c` |
| 158 | have no zero, with `c 0 = 1` and `x ↦ c x * Φ (2a) (2x) / Φ a x ^ 4` analytic at `a`. |
| 159 | Then the doubling equation `σ (2z) = σ z ^ 4 * exp (q z z) * c z` holds for some bilinear form `q` |
| 160 | and some `σ` without zero such that `σ * Φ z` is analytic at `z`. -/ |
| 161 | private lemma New.exists_analyticAt_mul_double_eq {V : Type*} [NormedAddCommGroup V] |
| 162 | [NormedSpace ℂ V] {Φ : V → V → ℂ} {c : V → ℂ} (Φ_zero : Φ 0 0 = 1) |
| 163 | (Φ_ne : ∀ z : V, ∀ᶠ w : V in nhds z, Φ z w ≠ 0) |
| 164 | (Φ_an : ∀ z : V, AnalyticAt ℂ (fun w : V ↦ Φ 0 w / Φ z w) z) |
| 165 | (c_zero : c 0 = 1) (c_ne : ∀ z : V, c z ≠ 0) |
| 166 | (c_an : ∀ a : V, AnalyticAt ℂ (fun x : V ↦ c x * Φ (a + a) (x + x) / Φ a x ^ 4) a) : |
| 167 | ∃ (σ : V → ℂ) (q : V →L[ℂ] V →L[ℂ] ℂ), |
| 168 | (∀ z : V, σ z ≠ 0) ∧ |
| 169 | (∀ z : V, AnalyticAt ℂ (σ * Φ z) z) ∧ |
| 170 | ∀ z : V, σ (z + z) = σ z ^ 4 * (exp (q z z) * c z) := by |
| 171 | -- Near `0`, `σ` is `exp g / Φ 0`, with `g` solving the logarithm of the doubling equation. |
| 172 | let f (z : V) : ℂ := log (c z * Φ 0 (z + z) / Φ 0 z ^ 4) |
| 173 | have hf : AnalyticAt ℂ f 0 := by |
| 174 | have h_an : AnalyticAt ℂ (fun z : V ↦ c z * Φ 0 (z + z) / Φ 0 z ^ 4) 0 := by |
| 175 | simpa only [add_zero] using c_an 0 |
| 176 | exact h_an.clog (by simp [c_zero, Φ_zero]) |
| 177 | obtain ⟨g, q, hg, hg_double⟩ := exists_analyticAt_double_eq hf |
| 178 | obtain ⟨r, hr, h_small⟩ : ∃ r > 0, ∀ ⦃z : V⦄, ‖z‖ < r → |
| 179 | Φ 0 z ≠ 0 ∧ AnalyticAt ℂ g z ∧ g (z + z) = 4 * g z + f z + q z z := |
| 180 | nhds_zero_basis_norm_lt.eventually_iff.1 ((Φ_ne 0).and (hg.eventually_analyticAt.and hg_double)) |
| 181 | -- The doubling equation holds there, so `σ` extends to `V`. |
| 182 | obtain ⟨σ, hσ, σ_double⟩ : ∃ σ : V → ℂ, (∀ z : V, ‖z‖ < r → σ z = exp (g z) / Φ 0 z) ∧ |
| 183 | ∀ z : V, σ (z + z) = σ z ^ 4 * (exp (q z z) * c z) := by |
| 184 | refine exists_extension_double hr fun z hz hz₂ ↦ ?_ |
| 185 | obtain ⟨h_ne, -, h_double⟩ := h_small hz |
| 186 | obtain ⟨h_ne₂, -⟩ := h_small hz₂ |
| 187 | have h_arg : c z * Φ 0 (z + z) / Φ 0 z ^ 4 ≠ 0 := |
| 188 | div_ne_zero (mul_ne_zero (c_ne z) h_ne₂) (pow_ne_zero 4 h_ne) |
| 189 | rw [h_double, exp_add, exp_add, show f z = log (c z * Φ 0 (z + z) / Φ 0 z ^ 4) from rfl, |
| 190 | exp_log h_arg, div_pow, ← Nat.cast_ofNat (n := 4), exp_natCast_mul] |
| 191 | field_simp [h_ne, h_ne₂] |
| 192 | exact mul_comm _ _ |
| 193 | suffices σ_spec : ∀ z : V, σ z ≠ 0 ∧ AnalyticAt ℂ (σ * Φ z) z from |
| 194 | ⟨σ, q, fun z ↦ (σ_spec z).1, fun z ↦ (σ_spec z).2, σ_double⟩ |
| 195 | refine induction_on_double hr (fun z hz ↦ ?_) fun x ⟨h_ne, h_an⟩ ↦ ?_ |
| 196 | · -- Inside the ball `σ * Φ z` is `exp g` divided by the analytic function `Φ 0 / Φ z`. |
| 197 | obtain ⟨h_ne, hg_an, -⟩ := h_small hz |
| 198 | have h_an : AnalyticAt ℂ (fun y : V ↦ exp (g y) / (Φ 0 y / Φ z y)) z := |
| 199 | hg_an.cexp.div (Φ_an z) (div_ne_zero h_ne (Φ_ne z).self_of_nhds) |
| 200 | refine ⟨by rw [hσ z hz]; exact div_ne_zero (exp_ne_zero _) h_ne, h_an.congr ?_⟩ |
| 201 | filter_upwards [tendsto_norm (gt_mem_nhds hz)] with y (hy : ‖y‖ < r) |
| 202 | rw [Pi.mul_apply, hσ y hy, div_div_eq_mul_div, div_mul_eq_mul_div] |
| 203 | · exact ne_zero_and_analyticAt_mul_double (Φ_ne x) (c_ne x) (c_an x) σ_double h_ne h_an |
| 204 | |
| 205 | /-- Let `W` be entire on `V × V` without zero, and let `y ↦ W (2x, 2y) / W (x, y) ^ 4` be periodic |
| 206 | for the lattice `L`. Then for each `x` this ratio is a constant `C`, that is |
| 207 | `W (2x, 2z) = C * W (x, z) ^ 4` for all `z`. -/ |
| 208 | private lemma New.exists_double_eq_mul_pow_of_periodic {V : Type} [FinComplexSpace V] |
| 209 | {L : Submodule ℤ V} [IsFullRankLattice L] {W : V × V → ℂ} (W_ne : ∀ u : V × V, W u ≠ 0) |
| 210 | (W_an : ∀ u : V × V, AnalyticAt ℂ W u) |
| 211 | (h_per : ∀ x y : V, ∀ l ∈ L, |
| 212 | W (x + x, y + l + (y + l)) / W (x, y + l) ^ 4 = W (x + x, y + y) / W (x, y) ^ 4) |
| 213 | (x : V) : ∃ C : ℂ, ∀ z : V, W (x + x, z + z) = C * W (x, z) ^ 4 := by |
| 214 | -- `R` is a theta function for `B = 0` and `χ = 1` without zero, hence constant. |
| 215 | let R (z : V) : ℂ := W (x + x, z + z) / W (x, z) ^ 4 |
| 216 | have W_diff : Differentiable ℂ W := fun u ↦ (W_an u).differentiableAt |
| 217 | have R_diff : Differentiable ℂ R := by |
| 218 | have hR_eq : R = fun w : V ↦ W (x + x, w + w) * (W (x, w) ^ 4)⁻¹ := |
| 219 | funext fun _ ↦ div_eq_mul_inv _ _ |
| 220 | rw [hR_eq] |
| 221 | exact fun z ↦ |
| 222 | (W_diff.differentiableAt.comp z ((differentiableAt_const (x + x)).prodMk |
| 223 | (differentiableAt_id.add differentiableAt_id))).fun_mul |
| 224 | (((W_diff.differentiableAt.comp z ((differentiableAt_const x).prodMk |
| 225 | differentiableAt_id)).fun_pow 4).fun_inv (pow_ne_zero 4 (W_ne (x, z)))) |
| 226 | have R_mem : R ∈ RealComplexForm.thetaSpace (L := L) 1 0 := |
| 227 | ⟨R_diff, fun l hl z ↦ by simpa using h_per x z l hl⟩ |
| 228 | have h_data : IsAppellHumbert (L := L) 0 1 := by simp [isAppellHumbert_iff] |
| 229 | obtain ⟨-, -, R_eq⟩ := h_data.eq_exp_of_ne_zero R_mem |
| 230 | (fun z ↦ div_ne_zero (W_ne _) (pow_ne_zero 4 (W_ne _))) |
| 231 | exact ⟨R 0, fun z ↦ (div_eq_iff (pow_ne_zero 4 (W_ne _))).1 (by simpa using R_eq z)⟩ |
| 232 | |
| 233 | /-- Let `W` be entire on `V × V` without zero, and let `y ↦ W (2x, 2y) / W (x, y) ^ 4` be periodic |
| 234 | for the lattice `L`. Then the logarithmic derivative of `W` in the second variable is linear. -/ |
| 235 | private lemma New.exists_linear_logDeriv_of_periodic {V : Type} [FinComplexSpace V] |
| 236 | {L : Submodule ℤ V} [IsFullRankLattice L] {W : V × V → ℂ} (W_ne : ∀ u : V × V, W u ≠ 0) |
| 237 | (W_an : ∀ u : V × V, AnalyticAt ℂ W u) |
| 238 | (h_per : ∀ x y : V, ∀ l ∈ L, |
| 239 | W (x + x, y + l + (y + l)) / W (x, y + l) ^ 4 = W (x + x, y + y) / W (x, y) ^ 4) : |
| 240 | ∃ T : V × V →L[ℂ] V →L[ℂ] ℂ, |
| 241 | ∀ x y : V, HasFDerivAt (fun z : V ↦ W (x, z)) (W (x, y) • T (x, y)) y := by |
| 242 | let P (u : V × V) : V →L[ℂ] ℂ := (W u)⁻¹ • fderiv ℂ W u ∘L .inr ℂ V V |
| 243 | have hP (x y : V) : HasFDerivAt (fun z : V ↦ W (x, z)) (W (x, y) • P (x, y)) y := by |
| 244 | rw [smul_inv_smul₀ (W_ne _)] |
| 245 | exact (W_an _).differentiableAt.hasFDerivAt.comp y (hasFDerivAt_prodMk_right x y) |
| 246 | have P_double : ∀ u : V × V, P (u + u) = P u + P u := by |
| 247 | rintro ⟨x, y⟩ |
| 248 | obtain ⟨C, h_const⟩ := exists_double_eq_mul_pow_of_periodic W_ne W_an h_per x |
| 249 | -- Differentiate both sides of `h_const` at `y`. |
| 250 | have h_left : HasFDerivAt (fun z : V ↦ W (x + x, z + z)) |
| 251 | ((2 * W (x + x, y + y)) • P (x + x, y + y)) y := by |
| 252 | have h_add : HasFDerivAt (fun z : V ↦ z + z) (.id ℂ V + .id ℂ V : V →L[ℂ] V) y := |
| 253 | (hasFDerivAt_id y).add (hasFDerivAt_id y) |
| 254 | refine ((hP (x + x) (y + y)).comp y (f := fun z : V ↦ z + z) h_add).congr_fderiv ?_ |
| 255 | ext v |
| 256 | simp only [ContinuousLinearMap.comp_apply, add_apply, |
| 257 | ContinuousLinearMap.id_apply, smul_apply, smul_eq_mul, map_add] |
| 258 | ring |
| 259 | have h_right : HasFDerivAt (fun z : V ↦ W (x + x, z + z)) |
| 260 | ((2 * W (x + x, y + y)) • (P (x, y) + P (x, y))) y := by |
| 261 | simp only [h_const] |
| 262 | refine (((hP x y).pow 4).const_mul C).congr_fderiv ?_ |
| 263 | ext v |
| 264 | simp only [smul_apply, add_apply, smul_eq_mul] |
| 265 | ring |
| 266 | exact smul_right_injective _ (mul_ne_zero two_ne_zero (W_ne _)) (h_left.unique h_right) |
| 267 | -- A map that is differentiable at `0` and commutes with doubling is linear. |
| 268 | have P_lin : ∀ u : V × V, P u = fderiv ℂ P 0 u := |
| 269 | eq_fderiv_of_smul P |
| 270 | (((W_an 0).differentiableAt.inv (W_ne 0)).smul |
| 271 | ((W_an 0).fderiv.differentiableAt.clm_comp (differentiableAt_const _))) |
| 272 | (a := (2 : ℂ)) (by simp) (fun x ↦ by simpa only [two_smul] using P_double x) |
| 273 | exact ⟨fderiv ℂ P 0, fun x y ↦ by simpa only [← P_lin] using hP x y⟩ |
| 274 | |
| 275 | /-- Let `W` have no zero and a linear logarithmic derivative `T` in the second variable. A function |
| 276 | `g` without zero, differentiable at `0`, with |
| 277 | `g (x + y) * g (x - y) * W (l + x, y) = g x ^ 2 * W (x, y)` has constant logarithmic derivative. -/ |
| 278 | private lemma New.exists_const_logDeriv {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 279 | {W : V × V → ℂ} {T : V × V →L[ℂ] V →L[ℂ] ℂ} {g : V → ℂ} {l : V} (W_ne : ∀ u : V × V, W u ≠ 0) |
| 280 | (hT : ∀ x y : V, HasFDerivAt (fun z : V ↦ W (x, z)) (W (x, y) • T (x, y)) y) |
| 281 | (g_ne : ∀ z : V, g z ≠ 0) (g_diff : DifferentiableAt ℂ g 0) |
| 282 | (h_eq : ∀ x y : V, g (x + y) * g (x - y) * W (l + x, y) = g x ^ 2 * W (x, y)) : |
| 283 | ∃ a : V →L[ℂ] ℂ, ∀ z : V, HasFDerivAt g (g z • a) z := by |
| 284 | refine ⟨(g 0)⁻¹ • fderiv ℂ g 0 - T (l, 0), fun z ↦ ?_⟩ |
| 285 | -- Write `z = x + x` and differentiate `y ↦ g (x + y)` at `y = x`: the logarithmic derivative is |
| 286 | -- `T (x, x) - T (l + x, x) + g' 0 / g 0`. |
| 287 | obtain ⟨x, rfl⟩ : ∃ x : V, z = x + x := |
| 288 | ⟨(2⁻¹ : ℂ) • z, by rw [← two_smul ℂ, smul_smul, mul_inv_cancel₀ two_ne_zero, one_smul]⟩ |
| 289 | refine (hasFDerivAt_comp_add_left x).1 ?_ |
| 290 | have g_add (y : V) : g (x + y) = g x ^ 2 * (W (x, y) * (W (l + x, y) * g (x - y))⁻¹) := by |
| 291 | field_simp [W_ne, g_ne] |
| 292 | linear_combination h_eq x y |
| 293 | have g_sub : HasFDerivAt (fun y : V ↦ g (x - y)) (-fderiv ℂ g 0) x := by |
| 294 | have g_zero : HasFDerivAt g (fderiv ℂ g 0) (x - x) := by |
| 295 | simpa only [sub_self] using g_diff.hasFDerivAt |
| 296 | exact (g_zero.comp x ((hasFDerivAt_id x).const_sub x)).congr_fderiv |
| 297 | ((ContinuousLinearMap.comp_neg _ _).trans (by rw [ContinuousLinearMap.comp_id])) |
| 298 | have T_add : T (l + x, x) = T (l, 0) + T (x, x) := by rw [← map_add, Prod.mk_add_mk, zero_add] |
| 299 | have h_inv := (hasDerivAt_inv (mul_ne_zero (W_ne _) (g_ne _))).comp_hasFDerivAt x |
| 300 | ((hT (l + x) x).mul g_sub) |
| 301 | simp only [g_add] |
| 302 | refine (((hT x x).mul h_inv).const_mul (g x ^ 2)).congr_fderiv ?_ |
| 303 | ext v |
| 304 | simp only [smul_apply, add_apply, sub_apply, neg_apply, Function.comp_apply, Pi.mul_apply, |
| 305 | smul_eq_mul, T_add, sub_self] |
| 306 | have := W_ne (l + x, x) |
| 307 | have := g_ne 0 |
| 308 | field_simp |
| 309 | ring |
| 310 | |
| 311 | /-- Let `V` be a finite-dimensional complex space, `L` a `ℤ`-submodule of `V`, `q` a bilinear form |
| 312 | and `B` a real-complex form on `V`. Let `σ : V → ℂ` have no zero, satisfy |
| 313 | `σ (2l) = σ l ^ 4 * exp (q l l)` for `l ∈ L`, and satisfy |
| 314 | `σ (z + l) = σ z * exp (B l z) * σ l / σ 0` for all `l ∈ L` and `z : V`. Then |
| 315 | `σ l ^ 4 = exp (B l l) ^ 2 * σ 0 ^ 4` for `l ∈ L`. -/ |
| 316 | private lemma New.pow_four_eq_mul_of_double_eq {V : Type*} [FinComplexSpace V] |
| 317 | {L : Submodule ℤ V} {σ : V → ℂ} {q : V →L[ℂ] V →L[ℂ] ℂ} {B : RealComplexForm V} |
| 318 | (σ_ne : ∀ z : V, σ z ≠ 0) (σ_double : ∀ l ∈ L, σ (l + l) = σ l ^ 4 * exp (q l l)) |
| 319 | (σ_add : ∀ l ∈ L, ∀ z : V, σ (z + l) = σ z * exp (B l z) * σ l / σ 0) {l : V} (hl : l ∈ L) : |
| 320 | σ l ^ 4 = exp (B l l) ^ 2 * σ 0 ^ 4 := by |
| 321 | -- Compare the two formulas for `σ (2m)` at `m = 0`, `2l` and `l`, and eliminate `exp (q l l)`. |
| 322 | have h_sq (m : V) (hm : m ∈ L) : σ m ^ 2 * σ 0 * exp (q m m) = exp (B m m) := by |
| 323 | have h_two : σ m ^ 4 * exp (q m m) = σ m * exp (B m m) * σ m / σ 0 := |
| 324 | (σ_double m hm).symm.trans (σ_add m hm m) |
| 325 | field_simp [σ_ne] at h_two |
| 326 | linear_combination h_two |
| 327 | have h_zero : σ 0 ^ 3 = 1 := by |
| 328 | have h := h_sq 0 L.zero_mem |
| 329 | simp only [map_zero, exp_zero, mul_one] at h |
| 330 | linear_combination h |
| 331 | have h_double : σ l ^ 8 * σ 0 * exp (q l l) ^ 6 = exp (B l l) ^ 4 := by |
| 332 | have h_sq_double := h_sq (l + l) (L.add_mem hl hl) |
| 333 | simp only [σ_double l hl, map_add, _root_.add_apply, exp_add] at h_sq_double |
| 334 | linear_combination h_sq_double |
| 335 | refine mul_right_cancel₀ (pow_ne_zero 4 (exp_ne_zero (B l l))) ?_ |
| 336 | calc σ l ^ 4 * exp (B l l) ^ 4 |
| 337 | = σ l ^ 4 * (σ l ^ 8 * σ 0 * exp (q l l) ^ 6) * (σ 0 ^ 3) ^ 3 := by |
| 338 | rw [h_double, h_zero, one_pow, mul_one] |
| 339 | _ = (σ l ^ 2 * σ 0 * exp (q l l)) ^ 6 * σ 0 ^ 4 := by ring |
| 340 | _ = exp (B l l) ^ 2 * σ 0 ^ 4 * exp (B l l) ^ 4 := by |
| 341 | rw [h_sq l hl] |
| 342 | ring |
| 343 | |
| 344 | /-- Let `σ` have no zero, satisfy `σ (2l) = σ l ^ 4 * exp (q l l)` on `L` for a bilinear form `q`, |
| 345 | and have the factor of automorphy `exp (B l z) * σ l / σ 0`, with `Re B` symmetric. Then `B` and |
| 346 | `l ↦ σ l / σ 0 / exp (B l l / 2)` are Appell–Humbert data. -/ |
| 347 | private lemma New.isAppellHumbert_of_double_eq {V : Type*} [FinComplexSpace V] {L : Submodule ℤ V} |
| 348 | {σ : V → ℂ} {q : V →L[ℂ] V →L[ℂ] ℂ} {B : RealComplexForm V} (σ_ne : ∀ z : V, σ z ≠ 0) |
| 349 | (σ_double : ∀ l ∈ L, σ (l + l) = σ l ^ 4 * exp (q l l)) |
| 350 | (σ_add : ∀ l ∈ L, ∀ z : V, σ (z + l) = σ z * exp (B l z) * σ l / σ 0) |
| 351 | (hB_symm : ∀ u v : V, (B u v).re = (B v u).re) : |
| 352 | IsAppellHumbert (L := L) B fun l : V ↦ σ l / σ 0 / exp (B l l / 2) := by |
| 353 | have exp_half (z : ℂ) : exp z = exp (z / 2) ^ 2 := by rw [sq, ← exp_add, add_halves] |
| 354 | refine ⟨hB_symm, fun l hl ↦ ?_, fun l _ m hm ↦ ?_⟩ |
| 355 | · have h_four : σ l ^ 4 = exp (B l l) ^ 2 * σ 0 ^ 4 := |
| 356 | New.pow_four_eq_mul_of_double_eq σ_ne σ_double σ_add hl |
| 357 | refine norm_eq_one_of_pow_eq_one ?_ four_ne_zero |
| 358 | rw [div_pow, div_pow, h_four, exp_half (B l l)] |
| 359 | field_simp [σ_ne] |
| 360 | · have h_form : Real.pi * I * B.riemannForm m l = (B m l - B l m) / 2 := by |
| 361 | apply Complex.ext |
| 362 | · simp only [mul_re, ofReal_re, I_re, mul_zero, ofReal_im, I_im, mul_one, sub_self, zero_mul, |
| 363 | sub_re, div_ofNat_re, hB_symm m l, zero_div] |
| 364 | · simp only [mul_im, ofReal_re, I_im, mul_one, ofReal_im, I_re, mul_zero, add_zero, sub_im, |
| 365 | div_ofNat_im, riemannForm_def] |
| 366 | rw [zero_add, mul_comm 2 Real.pi, ← mul_div_assoc, mul_div_mul_left _ _ Real.pi_ne_zero] |
| 367 | rw [h_form, σ_add m hm l, exp_half (B m l)] |
| 368 | simp only [map_add, _root_.add_apply, add_div, sub_div, exp_add, exp_sub] |
| 369 | field_simp [σ_ne] |
| 370 | |
| 371 | /-- If theta functions of type (B, χ) are homogeneous coordinates of a projective embedding of a |
| 372 | uniformised group, then the Riemann form of B is positive. -/ |
| 373 | private lemma New.Uniformisation.isPosRiemann_of_hasThetaCoords |
| 374 | {A : Over (AlgebraicGeometry.Spec (CommRingCat.of ℂ))} [AddObj A] {ι V : Type} |
| 375 | [FinComplexSpace V] (u : Uniformisation (O := ℂ) A V) {N : LineBundle A.left ι} |
| 376 | (hN : IsProjEmbedding (ι := ι) N A.hom) {B : ThetaTori.LatticeForm u.lattice} {χ : V → ℂ} |
| 377 | {θ : V → ι → ℂ} (h_theta : HasThetaCoords u.lattice (atGeneric u.expMap) N B χ θ) : |
| 378 | IsPosRiemann B := by |
| 379 | refine ⟨fun v hv ↦ not_le.1 fun h_le ↦ hv ?_⟩ |
| 380 | -- If the Riemann form is not positive at `v`, then `θ (t • v)` is a multiple of `θ 0`. As `N` |
| 381 | -- separates points, `u.expMap` is constant on the line through `v`, so `v = 0`. |
| 382 | have h_line (t : ℂ) : u.expMap (t • v) = u.expMap 0 := by |
| 383 | have h_mult : θ (t • v) = (t * t * B v v / 2).exp • θ 0 := funext fun j ↦ |
| 384 | h_theta.isAppellHumbert.apply_smul_of_nonpos (hf := h_theta.mem_thetaSpace j) v h_le t |
| 385 | exact OverMorphism.ext (hN.eq_of_isHomogeneousCoords |
| 386 | ((u.expMap (t • v)).w.trans (u.expMap 0).w.symm) |
| 387 | (by simpa only [h_mult, atGeneric_eq] using h_theta.hasFieldCoords (t • v)) |
| 388 | ((h_theta.hasFieldCoords 0).smul (exp_ne_zero _).isUnit) (N.exists_landsIn _)) |
| 389 | exact ContinuousLinearMap.toSpanSingleton_inj.1 |
| 390 | (u.linear_ext fun t : ℂ ↦ by |
| 391 | rw [ContinuousLinearMap.toSpanSingleton_apply, ContinuousLinearMap.toSpanSingleton_apply, |
| 392 | smul_zero] |
| 393 | exact h_line t) |
| 394 | |
| 395 | /-- Let `e : V → G` be additive and zero on the lattice `L`. Let `Φ x x = 1`, with `Φ (e z) ∘ e` not |
| 396 | zero near `z` and `(Φ (e 0) / Φ (e z)) ∘ e` analytic at `z`. Let `C` have no zero, with `C 0 0 = 1`, |
| 397 | and let `C (e x) (e y)`, times `Φ` at `x - y` and `x + y` over `Φ²` at `x` and `y`, be analytic at |
| 398 | each `(a, b)`. Then some `σ` without zero, with `σ * Φ (e z) ∘ e` analytic at `z`, has a factor |
| 399 | of automorphy given by Appell–Humbert data. -/ |
| 400 | private lemma New.exists_isAppellHumbert_of_analyticAt {V : Type} [FinComplexSpace V] |
| 401 | {L : Submodule ℤ V} [IsFullRankLattice L] {G : Type*} [AddGroup G] {e : V →+ G} |
| 402 | (hL : ∀ l ∈ L, e l = 0) {Φ C : G → G → ℂ} (Φ_self : ∀ x : G, Φ x x = 1) |
| 403 | (Φ_ne : ∀ z : V, ∀ᶠ w : V in nhds z, Φ (e z) (e w) ≠ 0) |
| 404 | (Φ_an : ∀ z : V, AnalyticAt ℂ (fun w : V ↦ Φ (e 0) (e w) / Φ (e z) (e w)) z) |
| 405 | (C_zero : C 0 0 = 1) (C_ne : ∀ x y : G, C x y ≠ 0) |
| 406 | (C_an : ∀ a b : V, AnalyticAt ℂ (fun ((x, y) : V × V) ↦ |
| 407 | C (e x) (e y) * Φ (e (a - b)) (e (x - y)) * Φ (e (a + b)) (e (x + y)) / |
| 408 | (Φ (e a) (e x) * Φ (e b) (e y)) ^ 2) (a, b)) : |
| 409 | ∃ (σ : V → ℂ) (B : RealComplexForm V), |
| 410 | (∀ z : V, σ z ≠ 0) ∧ |
| 411 | (∀ z : V, AnalyticAt ℂ (fun w : V ↦ σ w * Φ (e z) (e w)) z) ∧ |
| 412 | (∀ l ∈ L, ∀ z : V, σ (z + l) = σ z * exp (B l z) * σ l / σ 0) ∧ |
| 413 | IsAppellHumbert (L := L) B fun l : V ↦ σ l / σ 0 / exp (B l l / 2) := by |
| 414 | -- The diagonal of `C_an` gives `σ`, a solution of the doubling equation. |
| 415 | obtain ⟨σ, q, σ_ne, σ_an, σ_double⟩ : ∃ (σ : V → ℂ) (q : V →L[ℂ] V →L[ℂ] ℂ), |
| 416 | (∀ z : V, σ z ≠ 0) ∧ (∀ z : V, AnalyticAt ℂ (fun w : V ↦ σ w * Φ (e z) (e w)) z) ∧ |
| 417 | ∀ z : V, σ (z + z) = σ z ^ 4 * (exp (q z z) * C (e z) (e z)) := by |
| 418 | refine exists_analyticAt_mul_double_eq (Φ := fun z w : V ↦ Φ (e z) (e w)) (Φ_self _) Φ_ne Φ_an |
| 419 | (by simp [C_zero]) (fun _ ↦ C_ne _ _) fun a ↦ ?_ |
| 420 | refine ((C_an a a).comp₂ analyticAt_id analyticAt_id).congr (.of_forall fun x ↦ ?_) |
| 421 | simp only [id, sub_self, Φ_self] |
| 422 | ring |
| 423 | -- `W` compares `C` with the trivialisation given by `σ`; it is entire and has no zero. |
| 424 | let W : V × V → ℂ := fun (x, y) ↦ (σ x * σ y) ^ 2 * C (e x) (e y) / σ (x - y) / σ (x + y) |
| 425 | have W_ne (u : V × V) : W u ≠ 0 := |
| 426 | div_ne_zero (div_ne_zero (mul_ne_zero (pow_ne_zero 2 (mul_ne_zero (σ_ne _) (σ_ne _))) |
| 427 | (C_ne _ _)) (σ_ne _)) (σ_ne _) |
| 428 | have W_an : ∀ u : V × V, AnalyticAt ℂ W u := by |
| 429 | rintro ⟨a, b⟩ |
| 430 | -- `W` is the function of `C_an` times `(σ * Φ)²` at `x` and `y`, divided by `σ * Φ` at `x - y` |
| 431 | -- and `x + y`: the factors `Φ`, which are not zero near `(a, b)`, cancel. |
| 432 | have h_num : AnalyticAt ℂ |
| 433 | (fun (x, y) ↦ (σ x * Φ (e a) (e x) * (σ y * Φ (e b) (e y))) ^ 2) (a, b) := |
| 434 | (((σ_an a).comp_of_eq analyticAt_fst rfl).mul ((σ_an b).comp_of_eq analyticAt_snd rfl)).pow 2 |
| 435 | have h_den : AnalyticAt ℂ (fun (x, y) ↦ σ (x - y) * Φ (e (a - b)) (e (x - y)) * |
| 436 | (σ (x + y) * Φ (e (a + b)) (e (x + y)))) (a, b) := |
| 437 | ((σ_an (a - b)).comp_of_eq (analyticAt_fst.sub analyticAt_snd) rfl).mul |
| 438 | ((σ_an (a + b)).comp_of_eq (analyticAt_fst.add analyticAt_snd) rfl) |
| 439 | refine (((C_an a b).mul h_num).div h_den (by |
| 440 | dsimp only; rw [Φ_self, Φ_self, mul_one, mul_one]; exact mul_ne_zero (σ_ne _) (σ_ne _))).congr |
| 441 | ?_ |
| 442 | filter_upwards [continuous_fst.continuousAt.eventually (Φ_ne a), |
| 443 | continuous_snd.continuousAt.eventually (Φ_ne b), |
| 444 | (continuous_fst.sub continuous_snd).continuousAt.eventually (Φ_ne (a - b)), |
| 445 | (continuous_fst.add continuous_snd).continuousAt.eventually (Φ_ne (a + b))] |
| 446 | with ⟨x, y⟩ hx hy hsub hadd |
| 447 | dsimp only [W, Pi.div_apply, Pi.mul_apply] |
| 448 | dsimp only [Pi.sub_apply, Pi.add_apply] at hx hy hsub hadd |
| 449 | rw [show (σ x * Φ (e a) (e x) * (σ y * Φ (e b) (e y))) ^ 2 = |
| 450 | (σ x * σ y) ^ 2 * (Φ (e a) (e x) * Φ (e b) (e y)) ^ 2 by ring, |
| 451 | div_mul_eq_mul_div, ← mul_assoc, |
| 452 | mul_div_cancel_right₀ _ (pow_ne_zero 2 (mul_ne_zero hx hy)), |
| 453 | show σ (x - y) * Φ (e (a - b)) (e (x - y)) * (σ (x + y) * Φ (e (a + b)) (e (x + y))) = |
| 454 | (σ (x - y) * σ (x + y)) * (Φ (e (a - b)) (e (x - y)) * Φ (e (a + b)) (e (x + y))) by ring, |
| 455 | show C (e x) (e y) * Φ (e (a - b)) (e (x - y)) * Φ (e (a + b)) (e (x + y)) * (σ x * σ y) ^ 2 = |
| 456 | ((σ x * σ y) ^ 2 * C (e x) (e y)) * |
| 457 | (Φ (e (a - b)) (e (x - y)) * Φ (e (a + b)) (e (x + y))) by ring, |
| 458 | mul_div_mul_right _ _ (mul_ne_zero hsub hadd), div_div] |
| 459 | -- By `σ_double` and the parallelogram identity for `q`, the quotient `W (2x, 2y) / W (x, y) ^ 4` |
| 460 | -- depends only on `e x` and `e y`. |
| 461 | obtain ⟨T, hT⟩ : ∃ T : V × V →L[ℂ] V →L[ℂ] ℂ, |
| 462 | ∀ x y : V, HasFDerivAt (fun z : V ↦ W (x, z)) (W (x, y) • T (x, y)) y := by |
| 463 | have h_ratio (x z : V) : |
| 464 | W (x + x, z + z) / W (x, z) ^ 4 = |
| 465 | (C (e x) (e x) * C (e z) (e z)) ^ 2 * C (e (x + x)) (e (z + z)) / |
| 466 | (C (e x) (e z) ^ 4 * C (e (x - z)) (e (x - z)) * C (e (x + z)) (e (x + z))) := by |
| 467 | dsimp only [W] |
| 468 | rw [add_sub_add_comm, add_add_add_comm, σ_double x, σ_double z, σ_double (x - z), |
| 469 | σ_double (x + z)] |
| 470 | have hq : exp (q x x) ^ 2 * exp (q z z) ^ 2 = |
| 471 | exp (q (x - z) (x - z)) * exp (q (x + z) (x + z)) := by |
| 472 | rw [← exp_natCast_mul, ← exp_natCast_mul, ← exp_add, ← exp_add] |
| 473 | congr 1 |
| 474 | simp only [map_sub, map_add, sub_apply, add_apply, Nat.cast_ofNat] |
| 475 | ring |
| 476 | rw [show (σ x ^ 4 * (exp (q x x) * C (e x) (e x)) * |
| 477 | (σ z ^ 4 * (exp (q z z) * C (e z) (e z)))) ^ 2 = |
| 478 | (σ x * σ z) ^ 8 * (C (e x) (e x) * C (e z) (e z)) ^ 2 * |
| 479 | (exp (q x x) ^ 2 * exp (q z z) ^ 2) by ring, hq] |
| 480 | have := σ_ne x; have := σ_ne z; have := σ_ne (x - z); have := σ_ne (x + z) |
| 481 | have := C_ne (e x) (e z); have := C_ne (e (x - z)) (e (x - z)) |
| 482 | have := C_ne (e (x + z)) (e (x + z)) |
| 483 | have := exp_ne_zero (q (x - z) (x - z)); have := exp_ne_zero (q (x + z) (x + z)) |
| 484 | field_simp |
| 485 | refine exists_linear_logDeriv_of_periodic (L := L) W_ne W_an fun x y l hl ↦ ?_ |
| 486 | rw [h_ratio x (y + l), h_ratio x y] |
| 487 | simp only [map_add, map_sub, hL l hl, add_zero] |
| 488 | -- The factor of automorphy `σ (l + ·) / σ` has constant logarithmic derivative. |
| 489 | have h_log (l : L) : ∃ a : V →L[ℂ] ℂ, ∀ z : V, |
| 490 | HasFDerivAt (fun w : V ↦ σ (l + w) / σ w) ((σ (l + z) / σ z) • a) z := by |
| 491 | obtain ⟨l, hl⟩ := l |
| 492 | -- The factors `Φ` cancel in the quotient, so it is analytic. |
| 493 | have h_an : AnalyticAt ℂ (fun w : V ↦ σ (l + w) / σ w) 0 := |
| 494 | (((σ_an (l + 0)).comp (analyticAt_const.add analyticAt_id)).div (σ_an 0) |
| 495 | (by rw [Φ_self, mul_one]; exact σ_ne 0)).congr |
| 496 | ((Φ_ne 0).mono fun w hw ↦ by |
| 497 | dsimp only [Function.comp_def, Pi.div_apply] |
| 498 | rw [map_add e l 0, map_add e l w, hL l hl, zero_add, zero_add] |
| 499 | exact mul_div_mul_right _ _ hw) |
| 500 | refine exists_const_logDeriv (l := l) W_ne hT (fun z ↦ div_ne_zero (σ_ne _) (σ_ne _)) |
| 501 | h_an.differentiableAt fun x y ↦ ?_ |
| 502 | dsimp only [W] |
| 503 | rw [add_assoc l x y, add_sub_assoc l x y, map_add e l x, hL l hl, zero_add] |
| 504 | have := σ_ne x; have := σ_ne (x + y); have := σ_ne (x - y) |
| 505 | have := σ_ne (l + (x + y)); have := σ_ne (l + (x - y)) |
| 506 | field_simp |
| 507 | obtain ⟨B, σ_add, hB_symm⟩ := exists_factor_of_automorphy (L := L) σ_ne h_log |
| 508 | have σ_double_mem (l : V) (hl : l ∈ L) : σ (l + l) = σ l ^ 4 * exp (q l l) := by |
| 509 | rw [σ_double, hL l hl, C_zero, mul_one] |
| 510 | exact ⟨σ, B, σ_ne, σ_an, σ_add, isAppellHumbert_of_double_eq σ_ne σ_double_mem σ_add hB_symm⟩ |
| 511 | |
| 512 | /-- The existence half of the Appell–Humbert theorem. Let e : V → A(ℂ) be a uniformisation with |
| 513 | kernel L, and N a linear system that embeds A, whose class satisfies the parallelogram law |
| 514 | `New.Pic.ParallelogramLaw`. Then there are Appell–Humbert data (L, B, χ) with positive Riemann form |
| 515 | and theta functions θ_i of type (B, χ) such that θ(z) is a vector of homogeneous coordinates of e(z) |
| 516 | for N, for all z in V. -/ |
| 517 | lemma New.Uniformisation.appell_humbert {A : Over (AlgebraicGeometry.Spec (CommRingCat.of ℂ))} |
| 518 | [AddObj A] {ι V : Type} [Finite ι] [FinComplexSpace V] (u : Uniformisation (O := ℂ) A V) |
| 519 | {N : LineBundle A.left ι} (hN : IsProjEmbedding (ι := ι) N A.hom) |
| 520 | (h_par : N.picClass.ParallelogramLaw) : |
| 521 | ∃ (B : ThetaTori.LatticeForm u.lattice) (χ : V → ℂ) (θ : V → ι → ℂ), |
| 522 | HasThetaCoords u.lattice (atGeneric u.expMap) N B χ θ ∧ IsPosRiemann B := by |
| 523 | -- The parallelogram law trivialises a bundle `X` on `A × A`, with values `C`. From it we build |
| 524 | -- a trivialisation `σ` of the pullback of `N` to `V` whose factor of automorphy is given by |
| 525 | -- Appell–Humbert data, and let `θ z` be `σ z` times the homogeneous coordinates of `e z` in the |
| 526 | -- chart `J (e z)`. Positivity of the Riemann form follows for any theta coordinates. |
| 527 | suffices h_coords : ∃ (B : ThetaTori.LatticeForm u.lattice) (χ : V → ℂ) (θ : V → ι → ℂ), |
| 528 | HasThetaCoords u.lattice (atGeneric u.expMap) N B χ θ by |
| 529 | obtain ⟨B, χ, θ, h_theta⟩ := h_coords |
| 530 | exact ⟨B, χ, θ, h_theta, u.isPosRiemann_of_hasThetaCoords hN h_theta⟩ |
| 531 | obtain ⟨e, L, -, hL, h_imm, -⟩ := u |
| 532 | dsimp at h_imm ⊢ |
| 533 | replace hL : ∀ l ∈ L, e l = 0 := fun l ↦ (hL l).1 |
| 534 | have h_hol (z : V) : HolomorphicAt (fun x : V ↦ (e x).1) z := (h_imm z).1 |
| 535 | -- `X = (p^* N ⊗ s^* N)² ⊗ ((p + s)^* N ⊗ (p - s)^* N)⁻¹` for the two projections `p`, `s`; by the |
| 536 | -- parallelogram law it has a frame `w`, a section without zero. |
| 537 | let p := fst A A |
| 538 | let s := snd A A |
| 539 | let X := (((N.pull p.1).mul (N.pull s.1)).pow 2).mul |
| 540 | ((N.pull (p + s).1).mul (N.pull (p - s).1)).inv |
| 541 | obtain ⟨w, hw⟩ : ∃ w, X.IsFrame w := picClass_eq_iff.1 (by simpa using! (h_par p s).symm) |
| 542 | -- A chart `J x` of `N` at each point; `Φ x y` changes from the chart at `y` to the chart at `x`. |
| 543 | have h_cover (x : ComplexPoint A) : ∃ i : ι, LandsIn x.1 (N.opens i) := N.exists_landsIn x.1 |
| 544 | choose J hJ using h_cover |
| 545 | have h_lifts {x : ComplexPoint A} : |
| 546 | N.IsHomogeneousCoords x.1 fun j ↦ N.transition (J x) j (.of ℂ) x.1 := |
| 547 | hN.isLinearSystem.isHomogeneousCoords_transition (hJ x) |
| 548 | have hp_comp (x y : ComplexPoint A) : (lift x y).1 ≫ p.1 = x.1 := by rw [← comp_left, lift_fst] |
| 549 | have hs_comp (x y : ComplexPoint A) : (lift x y).1 ≫ s.1 = y.1 := by rw [← comp_left, lift_snd] |
| 550 | have hadd_comp (x y : ComplexPoint A) : (lift x y).1 ≫ (p + s).1 = (x + y).1 := by |
| 551 | rw [← comp_left, AddMonObj.comp_add, lift_fst, lift_snd] |
| 552 | have hsub_comp (x y : ComplexPoint A) : (lift x y).1 ≫ (p - s).1 = (x - y).1 := by |
| 553 | rw [← comp_left, AddGrpObj.comp_sub, lift_fst, lift_snd] |
| 554 | have h_in {x y : ComplexPoint A} : |
| 555 | LandsIn (lift x y).1 (X.opens (fun _ ↦ (J x, J y), J (x + y), J (x - y))) := |
| 556 | landsIn_inf.2 ⟨(landsIn_iInf _).2 fun _ ↦ landsIn_inf.2 |
| 557 | ⟨landsIn_preimage.2 (hp_comp x y ▸ hJ x), landsIn_preimage.2 (hs_comp x y ▸ hJ y)⟩, |
| 558 | landsIn_inf.2 ⟨landsIn_preimage.2 (hadd_comp x y ▸ hJ (x + y)), |
| 559 | landsIn_preimage.2 (hsub_comp x y ▸ hJ (x - y))⟩⟩ |
| 560 | let Φ (x y : ComplexPoint A) : ℂ := N.transition (J y) (J x) (.of ℂ) y.1 |
| 561 | have Φ_self (x : ComplexPoint A) : Φ x x = 1 := N.transition_self _ _ _ (hJ _) |
| 562 | have Φ_ne (z : V) : ∀ᶠ w : V in nhds z, Φ (e z) (e w) ≠ 0 := |
| 563 | (h_hol z (isRegularOn_ofSection 0) (hJ _)).1.mono (by simp [Φ, h_lifts _]) |
| 564 | have h_coord (j : ι) (z : V) : |
| 565 | AnalyticAt ℂ (fun w : V ↦ N.transition (J (e w)) j (.of ℂ) (e w).1 / Φ (e z) (e w)) z := |
| 566 | (h_hol z (hN.isLinearSystem.isRegularOn_transition ..) (hJ _)).2.congr |
| 567 | ((Φ_ne z).mono fun _ h ↦ ((h_lifts _).2 j h.isUnit).trans |
| 568 | (by dsimp only [Φ]; rw [Ring.inverse_eq_inv', div_eq_mul_inv])) |
| 569 | -- `C x y` is the value of the frame at `(x, y)`; in the fixed charts at `(a, b)` it is analytic. |
| 570 | choose C hC using fun x y : ComplexPoint A ↦ hw.2 _ _ _ (h_in (x := x) (y := y)) |
| 571 | have h_inv {u v : ComplexPoint A} (hv : LandsIn v.1 (N.opens (J u))) : |
| 572 | N.transition (J u) (J v) (.of ℂ) v.1 = (Φ u v)⁻¹ := |
| 573 | eq_inv_of_mul_eq_one_right |
| 574 | ((N.transition_trans (J v) (J u) (J v) (.of ℂ) v.1 (hJ v) hv (hJ v)).trans |
| 575 | (N.transition_self (J v) (.of ℂ) v.1 (hJ v))) |
| 576 | have C_an (a b : V) : AnalyticAt ℂ (fun (x, y) ↦ |
| 577 | C (e x) (e y) / C 0 0 * Φ (e (a - b)) (e (x - y)) * Φ (e (a + b)) (e (x + y)) / |
| 578 | (Φ (e a) (e x) * Φ (e b) (e y)) ^ 2) (a, b) := by |
| 579 | have h_pair : HolomorphicAt (fun u : V × V ↦ (lift (e u.1) (e u.2)).1) (a, b) := |
| 580 | ((h_hol _).comp analyticAt_fst).lift hN ((h_hol _).comp analyticAt_snd) |
| 581 | obtain ⟨h_near, h_an⟩ := h_pair (hw.1.1 _) h_in |
| 582 | refine (h_an.div_const (c := C 0 0)).congr (h_near.mono fun z hz ↦ ?_) |
| 583 | refine (congrArg (· / (C 0 0 : ℂ)) (hw.1.2 _ _ _ _ hz h_in)).trans ?_ |
| 584 | -- the change of charts for `X` is the stated quotient of the changes of charts `Φ` for `N` |
| 585 | have hz1 : LandsIn (e z.1).1 (N.opens (J (e a))) := |
| 586 | hp_comp _ _ ▸ landsIn_preimage.1 (landsIn_inf.1 ((landsIn_iInf _).1 (landsIn_inf.1 hz).1 0)).1 |
| 587 | have hz2 : LandsIn (e z.2).1 (N.opens (J (e b))) := |
| 588 | hs_comp _ _ ▸ landsIn_preimage.1 (landsIn_inf.1 ((landsIn_iInf _).1 (landsIn_inf.1 hz).1 0)).2 |
| 589 | simp only [X, mul_transition, pow, pi_transition, Fin.prod_univ_two] |
| 590 | change (((N.transition (J (e a)) (J (e z.1)) (.of ℂ) ((lift (e z.1) (e z.2)).1 ≫ p.1) * |
| 591 | N.transition (J (e b)) (J (e z.2)) (.of ℂ) ((lift (e z.1) (e z.2)).1 ≫ s.1)) * |
| 592 | (N.transition (J (e a)) (J (e z.1)) (.of ℂ) ((lift (e z.1) (e z.2)).1 ≫ p.1) * |
| 593 | N.transition (J (e b)) (J (e z.2)) (.of ℂ) ((lift (e z.1) (e z.2)).1 ≫ s.1)) * |
| 594 | (N.transition (J (e z.1 + e z.2)) (J (e a + e b)) (.of ℂ) |
| 595 | ((lift (e z.1) (e z.2)).1 ≫ (p + s).1) * |
| 596 | N.transition (J (e z.1 - e z.2)) (J (e a - e b)) (.of ℂ) |
| 597 | ((lift (e z.1) (e z.2)).1 ≫ (p - s).1))) * |
| 598 | w (fun _ ↦ (J (e z.1), J (e z.2)), J (e z.1 + e z.2), J (e z.1 - e z.2)) (.of ℂ) |
| 599 | (lift (e z.1) (e z.2)).1) / C 0 0 = _ |
| 600 | rw [hp_comp, hs_comp, hadd_comp, hsub_comp, h_inv hz1, h_inv hz2, ← hC] |
| 601 | change (((Φ (e a) (e z.1))⁻¹ * (Φ (e b) (e z.2))⁻¹) * |
| 602 | ((Φ (e a) (e z.1))⁻¹ * (Φ (e b) (e z.2))⁻¹) * |
| 603 | (Φ (e a + e b) (e z.1 + e z.2) * Φ (e a - e b) (e z.1 - e z.2)) * |
| 604 | (C (e z.1) (e z.2) : ℂ)) / C 0 0 = _ |
| 605 | rw [← map_add e a b, ← map_add e z.1 z.2, ← map_sub e a b, ← map_sub e z.1 z.2] |
| 606 | simp only [div_eq_mul_inv] |
| 607 | ring |
| 608 | -- This gives a trivialisation `σ` whose factor of automorphy comes from Appell–Humbert data. |
| 609 | obtain ⟨σ, B, σ_ne, σ_an, σ_add, h_data⟩ := |
| 610 | exists_isAppellHumbert_of_analyticAt (C := fun x y ↦ C x y / C 0 0) hL Φ_self Φ_ne |
| 611 | (h_coord (J (e 0))) (div_self (C 0 0).ne_zero) |
| 612 | (fun x y ↦ div_ne_zero (C x y).ne_zero (C 0 0).ne_zero) C_an |
| 613 | let χ (l : V) : ℂ := σ l / σ 0 / exp (B l l / 2) |
| 614 | let θ (z : V) : ι → ℂ := σ z • fun j ↦ N.transition (J (e z)) j (.of ℂ) (e z).1 |
| 615 | have θ_mem (j : ι) : (θ · j) ∈ RealComplexForm.thetaSpace (L := L) χ B := by |
| 616 | refine ⟨fun z ↦ |
| 617 | (((σ_an z).mul (h_coord j z)).congr ((Φ_ne z).mono fun w hw ↦ ?_)).differentiableAt, |
| 618 | fun l hl z ↦ ?_⟩ |
| 619 | · dsimp only [θ, Pi.mul_apply, Pi.smul_apply, smul_eq_mul] |
| 620 | rw [mul_div_assoc', mul_right_comm, mul_div_cancel_right₀ _ hw] |
| 621 | · dsimp only [θ, χ, Pi.smul_apply, smul_eq_mul] |
| 622 | rw [σ_add l hl z, map_add e z l, hL l hl, add_zero, exp_add, mul_comm (exp (B l z)), |
| 623 | ← mul_assoc (σ l / σ 0 / _), div_mul_cancel₀ _ (exp_ne_zero (B l l / 2))] |
| 624 | ring |
| 625 | exact ⟨B, χ, θ, hN.isLinearSystem, h_data, θ_mem, fun z ↦ h_lifts.smul (σ_ne z).isUnit⟩ |