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.Algebra.Order.Star.Real |
| 4 | import Mathlib.RingTheory.PiTensorProduct |
| 5 | import TauCeti.RingTheory.MvPolynomial.Homogeneous |
| 6 | public import Lib.Shimura.ThetaModuli.PELThetaTori |
| 7 | |
| 8 | /-! |
| 9 | # Riemann's theta relation and the reduction of theta functions at a valuation |
| 10 | |
| 11 | Theta functions `θ_s = x.thetaCoord s` (`s ∈ D.dualTorsion`) of a theta torus |
| 12 | `x : New.ThetaTori.ThetaTorus` and their reduction at a valuation `v` of `ℂ`. |
| 13 | |
| 14 | * `New.ThetaTori.ThetaTorus.isCutOutAt_reduction`: under good reduction, the ideal of the reductions |
| 15 | of all theta vectors `(θ_s z)_s` has the expected ranks and is cut out by the level points. |
| 16 | * `New.ThetaTori.ThetaTorus.riemann_relation`: Riemann's theta relation of degree `D.paddedNorm` in |
| 17 | one variable. |
| 18 | * `New.ThetaTori.ThetaTorus.exists_forall_valuation_thetaCoord_zero_le`: each `s` is `u + (s - u)` |
| 19 | with theta constants of largest valuation. |
| 20 | * `New.ThetaTori.ThetaTorus.IsRiemannTuple`, `New.paddingTuple`: the systems of coefficients |
| 21 | used in Riemann's relation. |
| 22 | |
| 23 | Conventions: `x.torsionLift s` is a chosen lift of the torsion class `s`, `x.latticeOver S` the |
| 24 | lattice over a group `S` of classes, `x.intAction a` multiplication by `a ∈ 𝓞 E`, `x.multiplier` the |
| 25 | multiplier χ of the `θ_s`, and e(t) = exp(2πi t); `IsIntegralCoords w p` says that `p` are integral |
| 26 | homogeneous coordinates of a complex vector `w`, one of them a unit. |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `New.ThetaTori.ThetaTorus`: a polarised period map to `V`, with reflection matrix `ℓ`, such that |
| 30 | multiplication by `star a` is adjoint to multiplication by `a ∈ 𝓞 E` for the form |
| 31 | `x.automorphyForm`. In suitable coordinates `a` acts on `V` diagonally, through the complex |
| 32 | embeddings of `E`. |
| 33 | * `New.ThetaTori.PeriodMap.thetaCoord`: The theta coordinate `θ_t`, `t ∈ T`: the normalised |
| 34 | translate (`New.ThetaTori.normalizedShift`) of |
| 35 | `New.ThetaTori.PeriodMap.exists_generator_thetaSpace` by the chosen lift `a_t` of `t`. |
| 36 | * `New.RealComplexForm.thetaShift` B a: the twisted translation f ↦ (z ↦ exp(−B(a,z) − B(a,a)/2) |
| 37 | f(z + a)). |
| 38 | * `New.ThetaTori.LatticeForm.thetaNorm`: the supremum over torsion points x of the sizes |
| 39 | `New.ThetaTori.LatticeForm.sizeAt` v(exp(−B(x,x)/2) f(x)). `New.ThetaTori.HasGoodReduction` asks, |
| 40 | for an ample type on the lattice L, that this norm be multiplicative, that r > 1 and v(r) = 1, and |
| 41 | that some N with v(N) = 1 multiply the dual lattice into L. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | Known result: Normal generation of sections on abelian varieties, kept under good reduction. Only |
| 46 | degrees that are powers of one integer r are treated, over a rank-one valuation ring of the complex |
| 47 | numbers, where powers of the sup-norm ball of theta functions are the balls and reduction keeps the |
| 48 | ranks. No cohomology or vanishing theorem is used. Source: S. Koizumi, Theta relations and |
| 49 | projective normality of abelian varieties, Amer. J. Math. 98 (1976); T. Sekiguchi, J. Math. Soc. |
| 50 | Japan 29 (1977) for characteristic p; G. Kempf, Multiplication over abelian varieties, Amer. J. |
| 51 | Math. 110 (1988). |
| 52 | |
| 53 | Known result: Riemann's theta relations. Here they are stated in one variable for the theta |
| 54 | coordinates of a PEL torus, with multipliers in the ring of integers of a CM field in place of the |
| 55 | matrix with entries ±1/2. They are proved by Schur orthogonality for the theta group. Source: C.-L. |
| 56 | Chai, Riemann's theta formula (2014), Theorem 1.2; A. Nagano, On Riemann type relations for theta |
| 57 | functions on bounded symmetric domains of type I, arXiv 2301.09243 (2023), Theorem 1.1; D. Mumford, |
| 58 | On the equations defining abelian varieties I, Invent. Math. 1 (1966) §3; G. Kempf, Linear systems |
| 59 | on abelian varieties, Amer. J. Math. 111 (1989) 65–94. |
| 60 | -/ |
| 61 | |
| 62 | @[expose] public section |
| 63 | |
| 64 | noncomputable section |
| 65 | |
| 66 | namespace New.ThetaTori.ThetaTorus |
| 67 | |
| 68 | open Module Submodule NNReal Variety ThetaNull MvPolynomial Complex Function NumberField Finset |
| 69 | Fintype thetaSpace Finite LatticeForm PeriodMap |
| 70 | |
| 71 | variable {V E k K : Type} [FinComplexSpace V] |
| 72 | {v : Valuation ℂ ℝ≥0} [Field E] [CMBase E] |
| 73 | {D : PEL E} {g : GL D.Index (𝔸f E)} {ℓ : Matrix D.Index D.Index ℂ} |
| 74 | (x : ThetaTorus D g ℓ V) [Fintype K] |
| 75 | (a : K → 𝓞 E) {μ μ' : K → D.dualTorsion} {w : V} {t : D.dualTorsion} (p : K → 𝓞 E × 𝓞 E) |
| 76 | |
| 77 | /-- The ring of integers `𝓞 E` acts on the torsion group `D.dualTorsion`: the action of `𝓞 E` on |
| 78 | adelic torsion classes preserves `D.dualTorsion`. -/ |
| 79 | instance : Module (𝓞 E) D.dualTorsion := |
| 80 | module ⟨_, by |
| 81 | -- Move `a` across the form: it becomes `star a`, which preserves the kernel of `torsionClass`. |
| 82 | rintro a ⟨y⟩ hy |
| 83 | refine (D.mem_dualTorsion _).mpr fun z hz ↦ ?_ |
| 84 | simpa [xiForm, ↓star_smul] using |
| 85 | (D.mem_dualTorsion y).mp hy (algebraMap E (𝔸f E) (star a) • z) |
| 86 | (torsionClass.ker.smul_mem (star a) hz)⟩ |
| 87 | |
| 88 | /-! ### Systems of coefficients -/ |
| 89 | |
| 90 | /-- The pairs `p l = (a_l, b_l)` in `𝓞 E` satisfy `∑ ā_l a_l = r` and `∑ ā_l b_l = 0`, where |
| 91 | `r = D.paddedNorm` is the degree attached to the PEL datum `D` and `ā` is the complex conjugate |
| 92 | (`star`). -/ |
| 93 | def IsRiemannTuple (D : PEL E) : Prop := |
| 94 | ∑ l : K, star (p l).1 * (p l).1 = D.paddedNorm ∧ ∑ l : K, star (p l).1 * (p l).2 = 0 |
| 95 | |
| 96 | /-- The family of coefficient pairs on two copies of the index set `K`: `(0, b_l)` on the first |
| 97 | copy, where `k l = (a_l, b_l)`, and `p l` on the second. -/ |
| 98 | def doubledCoeffs (k : K → 𝓞 E × 𝓞 E) : K ⊕ K → 𝓞 E × 𝓞 E := Sum.elim (fun l ↦ (0, (k l).2)) p |
| 99 | |
| 100 | /-! ### Products of theta functions and Riemann's relation -/ |
| 101 | |
| 102 | /-- The function `z ↦ ∏_k θ_{μ_k}(a_k z + b_k w)` on `V`, where `p k = (a_k, b_k)`, `θ_s` is the |
| 103 | theta coordinate `x.thetaCoord s` and `x.intAction a` is multiplication by `a ∈ 𝓞 E` on `V`. -/ |
| 104 | def thetaProduct (μ : K → D.dualTorsion) (w z : V) : ℂ := |
| 105 | ∏ k : K, x.thetaCoord (μ k) (x.intAction (p k).1 z + x.intAction (p k).2 w) |
| 106 | |
| 107 | variable {a} in |
| 108 | /-- If `a : K → 𝓞 E` satisfies `∑ l, star (a l) * a l = r` (`ha`), then the product over `l` of |
| 109 | the canonical multipliers `x.multiplier (x.intAction (a l) u)` equals `x.multiplier u ^ r`. -/ |
| 110 | private lemma prod_multiplier_intAction {r : ℕ} (ha : ∑ l : K, star (a l) * a l = r) (u : V) : |
| 111 | ∏ l : K, x.multiplier (x.intAction (a l) u) = x.multiplier u ^ r := by |
| 112 | have h_chi : x.automorphyForm.riemannForm |
| 113 | (x.intAction (D.rescaledBeta * ∑ l, star (a l) * a l) u) u = |
| 114 | x.automorphyForm.riemannForm (x.intAction (D.rescaledBeta * r) u) u := by |
| 115 | rw [ha] |
| 116 | -- `exp (π i r c) = exp (π i c) ^ r`. |
| 117 | have h_pow (c : ℂ) : cexp (Real.pi * I * (r * c)) = cexp (Real.pi * I * c) ^ r := by |
| 118 | simp [← exp_natCast_mul, mul_left_comm] |
| 119 | -- By adjunction and `h_chi`, the multipliers give `x.multiplier u ^ r`. |
| 120 | simp [← ofReal_inj, riemannForm_def, mul_sum, mul_left_comm, adjoint, div_eq_inv_mul, |
| 121 | canonicalMultiplier] at h_chi ⊢ |
| 122 | simp only [← mul_sum] at h_chi |
| 123 | simp only [← exp_sum, ← mul_sum, h_chi, h_pow] |
| 124 | |
| 125 | variable {a} in |
| 126 | /-- If `a : K → 𝓞 E` and `μ : K → D.dualTorsion` satisfy `∑ l, star (a l) • μ l = t` (`ht`) and |
| 127 | `y` lies in `x.latticeOver D.dualTorsion` (`hy_mem`), then the product over `l` of the Riemann |
| 128 | phases `x.automorphyForm.riemannPhase (x.intAction (a l) y) (x.torsionLift (μ l))` equals |
| 129 | `x.automorphyForm.riemannPhase y (x.torsionLift t)`. -/ |
| 130 | private lemma prod_riemannPhase_intAction (ht : ∑ l : K, star (a l) • μ l = t) {y : V} |
| 131 | (hy_mem : y ∈ x.latticeOver D.dualTorsion) : |
| 132 | ∏ l : K, x.automorphyForm.riemannPhase (x.intAction (a l) y) (x.torsionLift (μ l)) = |
| 133 | x.automorphyForm.riemannPhase y (x.torsionLift t) := by |
| 134 | -- `ht` holds for the lifts only modulo `x.periodLattice`, which pairs integrally with `y`. |
| 135 | have h_class : frameTorsionClass g (∑ l, star (a l) • ratLift g (μ l)) = |
| 136 | frameTorsionClass g (ratLift g t) := by |
| 137 | have h_coe_smul (c : 𝓞 E) (m : D.dualTorsion) : |
| 138 | ((c • m : D.dualTorsion) : AdelicTorsion E D.Index) = c • (m : AdelicTorsion E D.Index) := |
| 139 | rfl |
| 140 | simpa [map_smul, h_coe_smul] using congrArg Subtype.val ht |
| 141 | have h_mem : ∑ l, x.intAction (star (a l)) (x.torsionLift (μ l)) - x.torsionLift t ∈ |
| 142 | x.periodLattice := by |
| 143 | have h_smul (c : 𝓞 E) (q : D.Index → E) : |
| 144 | x.intAction c (x.periodPoint q) = x.periodPoint (c • q) := by |
| 145 | simp [intAction, ← toRealVectors_smul] |
| 146 | simp only [torsionLift, h_smul, ← map_sum] |
| 147 | exact x.sub_mem_periodLattice_iff.mpr h_class |
| 148 | obtain ⟨m, hm⟩ : ∃ m : ℤ, x.automorphyForm.riemannForm y |
| 149 | (∑ l, x.intAction (star (a l)) (x.torsionLift (μ l)) - x.torsionLift t) = m := |
| 150 | x.dualLattice_periodLattice.ge hy_mem _ h_mem |
| 151 | -- `exp (2 π i m) = 1` drops out. |
| 152 | have h_int (c : ℂ) : cexp (2 * Real.pi * I * (c + m)) = cexp (2 * Real.pi * I * c) := by |
| 153 | simp [mul_add, exp_add, mul_comm _ (m : ℂ)] |
| 154 | -- By `hm`, the phases give `riemannPhase y (x.torsionLift t)`, since `exp (2 π i m) = 1`. |
| 155 | simp [← ofReal_inj, sub_eq_iff_eq_add', map_sub, riemannForm_def, |
| 156 | torsionLift, periodPoint, adjoint, div_eq_inv_mul] at hm ⊢ |
| 157 | simp only [← mul_sum] at hm |
| 158 | simp only [← exp_sum, ← mul_sum, hm, h_int] |
| 159 | |
| 160 | variable {p} in |
| 161 | /-- For a Riemann tuple `p` (`hp`), the twisted translation (`New.RealComplexForm.thetaShift`) by |
| 162 | `u` for `D.paddedNorm • x.automorphyForm` of `x.thetaProduct p μ w` at `z` equals the product over |
| 163 | `l` of the twisted translation by `x.intAction (p l).1 u` for `x.automorphyForm` of |
| 164 | `x.thetaCoord (μ l)` at `x.intAction (p l).1 z + x.intAction (p l).2 w`. -/ |
| 165 | private lemma thetaShift_thetaProduct_eq_prod (hp : IsRiemannTuple p D) (u z : V) : |
| 166 | (D.paddedNorm • x.automorphyForm).thetaShift u (x.thetaProduct p μ w) z = |
| 167 | ∏ l : K, x.automorphyForm.thetaShift (x.intAction (p l).1 u) (x.thetaCoord (μ l)) |
| 168 | (x.intAction (p l).1 z + x.intAction (p l).2 w) := by |
| 169 | obtain ⟨hp_norm, hp_orth⟩ := hp |
| 170 | -- Moving each coefficient across `x.automorphyForm` by adjunction turns `hp` into identities of |
| 171 | -- sums. |
| 172 | have h_norm (z' : V) : |
| 173 | ∑ l, x.automorphyForm u (x.intAction (star (p l).1) (x.intAction (p l).1 z')) = |
| 174 | D.paddedNorm * x.automorphyForm u z' := by |
| 175 | simpa [map_sum, mul_sum, adjoint] using congrArg |
| 176 | (fun c : 𝓞 E ↦ x.automorphyForm u (x.intAction c z')) hp_norm |
| 177 | have h_orth : ∑ l, x.automorphyForm u (x.intAction (star (p l).1) (x.intAction (p l).2 w)) = |
| 178 | 0 := by |
| 179 | simpa [map_sum, mul_sum, adjoint] using congrArg |
| 180 | (fun c : 𝓞 E ↦ x.automorphyForm u (x.intAction c w)) hp_orth |
| 181 | -- The twisted translation of the product is the product of the twisted translations: their |
| 182 | -- exponents add up by `h_norm` and `h_orth`. |
| 183 | simp [adjoint, div_eq_inv_mul, thetaShift_apply, exp_add, exp_neg, thetaProduct] |
| 184 | simp only [prod_mul_distrib, prod_inv_distrib, ← exp_sum, ← mul_sum, h_orth, h_norm, exp_zero, |
| 185 | inv_one, one_mul, mul_left_comm (2⁻¹ : ℂ), add_right_comm] |
| 186 | |
| 187 | /-- Let `p k = (a_k, b_k)` with `∑ ā_k a_k = r` and `∑ ā_k b_k = 0` (`hp`), let `∑ ā_k μ_k = t` |
| 188 | (`ht`), and let `y` lie in the lattice over `D.dualTorsion`. Write `x.thetaProduct p μ w` for the |
| 189 | function `z ↦ ∏_k θ_{μ_k}(a_k z + b_k w)`, where `θ_s` is `x.thetaCoord s`. If the twisted |
| 190 | translation (`New.RealComplexForm.thetaShift`) by `a_k u` sends `θ_{μ_k}` to |
| 191 | `χ(a_k u) e(⟨a_k y, μ_k⟩) θ_{μ'_k}` for every `k`, then the twisted translation by `u` for `r B` |
| 192 | sends `x.thetaProduct p μ w` to `χ(u)^r e(⟨y, t⟩)` times `x.thetaProduct p μ' w`. Here `χ` is |
| 193 | `x.multiplier`, and `e(⟨y, s⟩)` (`riemannPhase`) is `exp(2πi E(y, ·))` of the chosen lift of `s`, |
| 194 | with `E` the Riemann form of `B = x.automorphyForm`, and `r` is `D.paddedNorm`. -/ |
| 195 | lemma thetaShift_thetaProduct {p : K → 𝓞 E × 𝓞 E} (hp : IsRiemannTuple p D) |
| 196 | (ht : ∑ k : K, star (p k).1 • μ k = t) {u y : V} (hy_mem : y ∈ x.latticeOver D.dualTorsion) |
| 197 | (h_shift : ∀ k : K, x.automorphyForm.thetaShift (x.intAction (p k).1 u) (x.thetaCoord (μ k)) = |
| 198 | (x.multiplier (x.intAction (p k).1 u) * x.automorphyForm.riemannPhase (x.intAction (p k).1 y) |
| 199 | (x.torsionLift (μ k))) • x.thetaCoord (μ' k)) (z : V) : |
| 200 | (D.paddedNorm • x.automorphyForm).thetaShift u (x.thetaProduct p μ w) z = |
| 201 | x.multiplier u ^ D.paddedNorm * x.automorphyForm.riemannPhase y (x.torsionLift t) * |
| 202 | x.thetaProduct p μ' w z := by |
| 203 | -- Expand the twisted translation of the product, multiply `h_shift k` at `a_k z + b_k w` over |
| 204 | -- all `k`, and combine the multipliers and phases for `a k = (p k).1` and `r = D.paddedNorm`. |
| 205 | rw [x.thetaShift_thetaProduct_eq_prod hp u z, prod_congr rfl fun k _ ↦ congrFun (h_shift k) _] |
| 206 | simp only [Pi.smul_apply, smul_eq_mul, prod_mul_distrib, |
| 207 | x.prod_multiplier_intAction hp.1 u, x.prod_riemannPhase_intAction ht hy_mem, thetaProduct] |
| 208 | |
| 209 | /-- Translation by a rational point shifts the indices of a theta product. Let `y` be a rational |
| 210 | vector whose class `[y]` lies in `D.dualTorsion` (`hy`), let `u = x.periodPoint y` be its image in |
| 211 | `V`, and let `p` be a Riemann tuple (`hp`). Then the twisted translation by `u` for `r B` sends |
| 212 | `x.thetaProduct p μ w` to `χ(u)^r e(⟨β u, ∑ ā_k μ_k⟩)` times the product for `μ + a [y]`, where `χ` |
| 213 | is `x.multiplier`, `β = D.rescaledBeta ∈ 𝓞 E`, for which `β u` lies in |
| 214 | `x.latticeOver D.dualTorsion`, `p k = (a_k, b_k)`, `r = D.paddedNorm` and |
| 215 | `B = x.automorphyForm`. -/ |
| 216 | lemma thetaShift_periodPoint_thetaProduct {y : D.Index → E} |
| 217 | (hy : frameTorsionClass g y ∈ D.dualTorsion) |
| 218 | {p : K → 𝓞 E × 𝓞 E} (hp : IsRiemannTuple p D) (μ : K → D.dualTorsion) (z : V) : |
| 219 | (D.paddedNorm • x.automorphyForm).thetaShift (x.periodPoint y) (x.thetaProduct p μ w) z = |
| 220 | x.multiplier (x.periodPoint y) ^ D.paddedNorm * |
| 221 | x.automorphyForm.riemannPhase (x.intAction D.rescaledBeta (x.periodPoint y)) |
| 222 | (x.torsionLift ↑(∑ k : K, star (p k).1 • μ k)) * |
| 223 | x.thetaProduct p (μ + (fun c : 𝓞 E × 𝓞 E ↦ c.1 • ⟨frameTorsionClass g y, hy⟩) ∘ p) w z := by |
| 224 | -- Apply `thetaShift_thetaProduct` with `t = ∑ ā_k μ_k` itself (so `ht` is `rfl`) and the point |
| 225 | -- `β u`, which lies in the lattice over `D.dualTorsion`. |
| 226 | refine x.thetaShift_thetaProduct hp (t := ∑ k, star (p k).1 • μ k) rfl |
| 227 | (x.intAction_rescaledBeta_mem_latticeOver le_rfl (x.mem_latticeOver.mpr hy)) (fun k ↦ ?_) z |
| 228 | -- `a_k u` is the image of the rational vector `a_k • y`, whose class is `a_k [y]`; the theta law |
| 229 | -- (`PeriodMap.thetaShift_thetaCoord`) for it gives the factor for `k`. |
| 230 | have h_act : x.intAction (p k).1 (x.periodPoint y) = x.periodPoint ((p k).1 • y) := by |
| 231 | simp [intAction, ← toRealVectors_smul] |
| 232 | have h_class : frameTorsionClass g ((p k).1 • y) = |
| 233 | (((p k).1 • ⟨frameTorsionClass g y, hy⟩ : D.dualTorsion) : AdelicTorsion E D.Index) := |
| 234 | map_smul .. |
| 235 | rw [h_act] |
| 236 | simpa [intAction, smul_comm (cmEmbedding (p k).1.val), add_comm, bicharacter] using |
| 237 | x.thetaShift_thetaCoord h_class (μ k) |
| 238 | |
| 239 | /-- For a Riemann tuple `p` (`hp`) with `∑ k, star (p k).1 • μ k = t` (`hμ`), the theta product |
| 240 | `x.thetaProduct p μ w` belongs to the theta space of degree `D.paddedNorm` for the lattice |
| 241 | `x.latticeOver D.rTorsion`, with multiplier `x.multiplier ^ D.paddedNorm` twisted by the Riemann |
| 242 | phase of `x.torsionLift t`. -/ |
| 243 | private lemma thetaProduct_mem_thetaSpace {p : K → 𝓞 E × 𝓞 E} (hp : IsRiemannTuple p D) |
| 244 | (hμ : ∑ k : K, star (p k).1 • μ k = t) : |
| 245 | x.thetaProduct p μ w ∈ |
| 246 | (D.paddedNorm • x.automorphyForm).thetaSpace (L := x.latticeOver D.rTorsion) fun l ↦ |
| 247 | (x.multiplier ^ D.paddedNorm) l * x.automorphyForm.riemannPhase l (x.torsionLift t) := by |
| 248 | have hr : D.paddedNorm ≠ 0 := x.hasGoodReduction_one.one_lt.ne_bot |
| 249 | have h_le : x.latticeOver D.rTorsion ≤ x.latticeOver D.lagrangian := |
| 250 | x.latticeOver_mono D.torsion_mem_lagrangian |
| 251 | have h_diff (s : D.dualTorsion) : Differentiable ℂ (x.thetaCoord s) := |
| 252 | (x.thetaCoord_mem_thetaSpace s).1 |
| 253 | refine ⟨by fun_prop [thetaProduct], fun l hl z ↦ ?_⟩ |
| 254 | -- Each factor is a theta function for `x.latticeOver D.lagrangian`, which contains the |
| 255 | -- multiples of `l`. |
| 256 | have h_mem (k : K) : x.intAction (p k).1 l ∈ x.latticeOver D.lagrangian := |
| 257 | h_le <| (x.nsmul_mem_latticeOver hr).mp <| by |
| 258 | rw [← map_nsmul] |
| 259 | exact x.intAction_mem_periodLattice (p k).1 _ ((x.nsmul_mem_latticeOver hr).mpr hl) |
| 260 | simp only [Pi.pow_apply] |
| 261 | rw [mul_right_comm, |
| 262 | ← x.thetaShift_thetaProduct hp hμ (x.latticeOver_mono D.lagrangian_le_dualTorsion (h_le hl)) |
| 263 | fun k ↦ |
| 264 | thetaShift_of_mem (x.thetaCoord_mem_thetaSpace_lagrangian _) (h_mem k)] |
| 265 | simp [field, thetaShift_apply, exp_add, exp_neg] |
| 266 | |
| 267 | /-- Multiplying the `-x.torsionLift s` and `x.torsionLift s` twisted translates of two Riemann |
| 268 | theta products with the same weighted index sum `t` cancels the canonical multiplier and phase |
| 269 | factors, leaving the product with `μ k` shifted by `-(p k).1 • s` and `μ' k` by `(q k).1 • s`. -/ |
| 270 | private lemma thetaShift_neg_mul_thetaShift_thetaProduct {p : K → 𝓞 E × 𝓞 E} |
| 271 | (hp : IsRiemannTuple p D) (ht : ∑ k : K, star (p k).1 • μ k = t) {q : K → 𝓞 E × 𝓞 E} |
| 272 | (hq : IsRiemannTuple q D) (ht' : ∑ k : K, star (q k).1 • μ' k = t) (s : D.dualTorsion) |
| 273 | (z₀ z : V) : |
| 274 | (D.paddedNorm • x.automorphyForm).thetaShift (-x.torsionLift s) (x.thetaProduct p μ w) z₀ * |
| 275 | (D.paddedNorm • x.automorphyForm).thetaShift (x.torsionLift s) (x.thetaProduct q μ' w) z = |
| 276 | x.thetaProduct p (μ - (fun c : 𝓞 E × 𝓞 E ↦ c.1 • s) ∘ p) w z₀ * |
| 277 | x.thetaProduct q (μ' + (fun c : 𝓞 E × 𝓞 E ↦ c.1 • s) ∘ q) w z := by |
| 278 | -- The factors for `-s` and `s` cancel: the multiplier at the lift of `s`, written as an |
| 279 | -- exponential, has `2 r`-th power `1` (`PeriodMap.riemannPhase_rescaledBeta_eq`). |
| 280 | have h_multiplier_sq : |
| 281 | (cexp (Real.pi * I * |
| 282 | (x.automorphyForm.riemannForm (x.intAction D.rescaledBeta |
| 283 | (x.realEquiv (toRealVectors (ratLift g s)))) |
| 284 | (x.realEquiv (toRealVectors (ratLift g s))) : ℂ)) ^ D.paddedNorm) ^ 2 = 1 := by |
| 285 | simpa [two_mul, add_mul, sq, torsionLift, periodPoint, canonicalMultiplier, exp_add, mul_pow] |
| 286 | using congrArg (fun c : ℂ ↦ c ^ D.paddedNorm) |
| 287 | (x.riemannPhase_rescaledBeta_eq (x.torsionLift_mem_latticeOver s) |
| 288 | (x.torsionLift_mem_latticeOver s) rfl) |
| 289 | have h_neg : -x.torsionLift s = x.periodPoint (-ratLift g s) := by simp [torsionLift, periodPoint] |
| 290 | have h_neg_s : (⟨-s.val, neg_mem s.property⟩ : D.dualTorsion) = -s := rfl |
| 291 | -- Translation by `∓` the lift of `s` shifts the indices (`thetaShift_periodPoint_thetaProduct`). |
| 292 | rw [h_neg, torsionLift, x.thetaShift_periodPoint_thetaProduct (y := -ratLift g s) (by simp) hp, |
| 293 | x.thetaShift_periodPoint_thetaProduct (y := ratLift g s) (by simp) hq] |
| 294 | simp [ht, ht', field, sub_eq_add_neg, ← smul_neg, periodPoint, canonicalMultiplier, exp_neg, |
| 295 | thetaProduct, h_neg_s, h_multiplier_sq] |
| 296 | |
| 297 | /-- Adding any dual-lattice element `u` to the torsion lifts `x.torsionLift s` permutes them |
| 298 | modulo `x.latticeOver D.rTorsion` via `Equiv.addLeft`: `u` is the image of a rational vector |
| 299 | `y`, and the permutation sends `s` to the class of `y` plus `s`. -/ |
| 300 | private lemma torsionLift_permutes_mod_latticeOver |
| 301 | (h_dual : |
| 302 | (D.paddedNorm • x.automorphyForm).dualLattice (L := x.latticeOver D.rTorsion) = |
| 303 | x.latticeOver D.dualTorsion) |
| 304 | (u : |
| 305 | (D.paddedNorm • x.automorphyForm).dualLattice (L := x.latticeOver D.rTorsion)) : |
| 306 | ∃ e : D.dualTorsion ≃ D.dualTorsion, ∀ s : D.dualTorsion, |
| 307 | ↑(u + |
| 308 | (⟨x.torsionLift s, h_dual.ge (x.torsionLift_mem_latticeOver s)⟩ : |
| 309 | (D.paddedNorm • x.automorphyForm).dualLattice (L := x.latticeOver D.rTorsion)) - |
| 310 | (⟨x.torsionLift (e s), h_dual.ge (x.torsionLift_mem_latticeOver (e s))⟩ : |
| 311 | (D.paddedNorm • x.automorphyForm).dualLattice (L := x.latticeOver D.rTorsion))) ∈ |
| 312 | x.latticeOver D.rTorsion := by |
| 313 | obtain ⟨y, hy, hyu⟩ := h_dual.le u.property |
| 314 | use .addLeft ⟨_, hy⟩ |
| 315 | have h_class_zero (a : AdelicTorsion E D.Index) : |
| 316 | frameTorsionClass g (y + ratLift g a - ratLift g (frameTorsionClass g y + a)) = 0 := by simp |
| 317 | simp [← hyu, ← map_add, ← map_sub, torsionLift, h_class_zero] |
| 318 | |
| 319 | /-- Let `x` be a theta torus on `V` for the PEL datum `D`, and let `t` be a class in |
| 320 | `T = D.dualTorsion` whose Riemann phase twists the multiplier. Here `r` is `D.paddedNorm`, `T[r]` |
| 321 | is `D.rTorsion`, and `B` is `x.automorphyForm`. For any two theta functions `f₁` and `f₂` of degree |
| 322 | `r` for `x.latticeOver T[r]` with multiplier `x.multiplier ^ r` twisted by the Riemann phase of |
| 323 | `x.torsionLift t` (`hf₁`, `hf₂`), and any `z₀ z : V`, `√[T : T[r]]` times the sum over `s ∈ T` of |
| 324 | `(r • B).thetaShift (-x.torsionLift s) f₁ z₀ * (r • B).thetaShift (x.torsionLift s) f₂ z` equals |
| 325 | `|T| * f₂ z₀ * f₁ z`. -/ |
| 326 | private lemma sum_thetaShift_neg_mul_thetaShift [Fintype D.dualTorsion] {f₁ f₂ : V → ℂ} |
| 327 | (hf₁ : f₁ ∈ (D.paddedNorm • x.automorphyForm).thetaSpace (L := x.latticeOver D.rTorsion) |
| 328 | fun l ↦ (x.multiplier ^ D.paddedNorm) l * |
| 329 | x.automorphyForm.riemannPhase l (x.torsionLift t)) |
| 330 | (hf₂ : f₂ ∈ (D.paddedNorm • x.automorphyForm).thetaSpace (L := x.latticeOver D.rTorsion) |
| 331 | fun l ↦ (x.multiplier ^ D.paddedNorm) l * |
| 332 | x.automorphyForm.riemannPhase l (x.torsionLift t)) |
| 333 | (z₀ z : V) : |
| 334 | ((D.rTorsion.relIndex D.dualTorsion).sqrt : ℂ) * |
| 335 | ∑ s : D.dualTorsion, |
| 336 | (D.paddedNorm • x.automorphyForm).thetaShift (-x.torsionLift s) f₁ z₀ * |
| 337 | (D.paddedNorm • x.automorphyForm).thetaShift (x.torsionLift s) f₂ z = |
| 338 | Fintype.card D.dualTorsion * f₂ z₀ * f₁ z := by |
| 339 | have hr : D.paddedNorm ≠ 0 := x.hasGoodReduction_one.one_lt.ne_bot |
| 340 | have h_le : x.latticeOver D.rTorsion ≤ x.latticeOver D.lagrangian := |
| 341 | x.latticeOver_mono D.torsion_mem_lagrangian |
| 342 | -- The dual lattice of `x.latticeOver D.rTorsion` for `r • x.automorphyForm` is |
| 343 | -- `x.latticeOver D.dualTorsion`. |
| 344 | have h_dual : (D.paddedNorm • x.automorphyForm).dualLattice (L := x.latticeOver D.rTorsion) = |
| 345 | x.latticeOver D.dualTorsion := by |
| 346 | rw [← x.dualLattice_periodLattice] |
| 347 | refine le_antisymm (dualLattice_nsmul_le hr fun _ ↦ (x.nsmul_mem_latticeOver hr).mp) ?_ |
| 348 | intro u hu l hl |
| 349 | -- `r • l` lies in `x.periodLattice`, which pairs integrally with `u`. |
| 350 | simpa using hu _ ((x.nsmul_mem_latticeOver hr).mpr hl) |
| 351 | have h_discrete : DiscreteTopology (x.latticeOver D.rTorsion) := |
| 352 | x.discreteTopology_latticeOver_lagrangian.of_subset h_le |
| 353 | let pt (s : D.dualTorsion) : (D.paddedNorm • x.automorphyForm).dualLattice |
| 354 | (L := x.latticeOver D.rTorsion) := |
| 355 | ⟨x.torsionLift s, h_dual.ge (x.torsionLift_mem_latticeOver s)⟩ |
| 356 | -- Adding `u` permutes the lifts `pt s` modulo `x.latticeOver D.rTorsion`. |
| 357 | have h_perm (u : (D.paddedNorm • x.automorphyForm).dualLattice (L := x.latticeOver D.rTorsion)) : |
| 358 | ∃ e : D.dualTorsion ≃ D.dualTorsion, ∀ s : D.dualTorsion, |
| 359 | ↑(u + pt s - pt (e s)) ∈ x.latticeOver D.rTorsion := |
| 360 | x.torsionLift_permutes_mod_latticeOver h_dual u |
| 361 | -- The Appell–Humbert datum of degree `r` for which `f₁` and `f₂` are theta functions. |
| 362 | have h_datum : IsAppellHumbert (L := x.latticeOver D.rTorsion) (D.paddedNorm • x.automorphyForm) |
| 363 | fun l ↦ (x.multiplier ^ D.paddedNorm) l * x.automorphyForm.riemannPhase l (x.torsionLift t) := |
| 364 | ((x.isAppellHumbert_of_le h_le).nsmul _).mul_riemannPhase (x.torsionLift t) x.automorphyForm |
| 365 | -- Schur orthogonality for the translates by the lifts `pt s`. |
| 366 | rw [← x.relIndex_latticeOver, ← h_dual] |
| 367 | exact h_datum.sum_shift_mul_shift (hp := x.isPosRiemann.nsmul hr) D.dualTorsion pt h_perm |
| 368 | ⟨f₂, hf₂⟩ ⟨f₁, hf₁⟩ z₀ z |
| 369 | |
| 370 | /-- Riemann's theta relation in one variable. Here x is a theta torus on V for the PEL datum `D`. |
| 371 | T = `D.dualTorsion` is the finite group of classes pairing trivially with all integral vectors, r = |
| 372 | `D.paddedNorm` ≥ 3, and T[r] = `D.rTorsion` is the r-torsion of T. For a tuple p = (a, b) with |
| 373 | values in 𝓞 E, `x.thetaProduct p μ w` is P(μ; z) = ∏_k θ_{μ_k}(a_k z + b_k w), where θ_s = |
| 374 | `x.thetaCoord s`. |
| 375 | |
| 376 | Let p = (a, b) satisfy ∑ ā a = r, ∑ ā b = 0 (`hp`) and ∑ ā μ = t. Let q = (a', b') satisfy the same |
| 377 | with μ' in place of μ, and write P' for the product attached to q. Then |T| P'(μ'; 0) P(μ; z) = √[T |
| 378 | : T[r]] ∑_{s ∈ T} P(μ − a s; 0) P'(μ' + a' s; z), with both products taken at the same point w. -/ |
| 379 | lemma riemann_relation {p : K → 𝓞 E × 𝓞 E} (hp : IsRiemannTuple p D) |
| 380 | (ht : ∑ k : K, star (p k).1 • μ k = t) {q : K → 𝓞 E × 𝓞 E} (hq : IsRiemannTuple q D) |
| 381 | (ht' : ∑ k : K, star (q k).1 • μ' k = t) [Fintype D.dualTorsion] (z : V) : |
| 382 | Fintype.card D.dualTorsion * x.thetaProduct q μ' w 0 * x.thetaProduct p μ w z = |
| 383 | (D.rTorsion.relIndex D.dualTorsion).sqrt * |
| 384 | ∑ s : D.dualTorsion, |
| 385 | x.thetaProduct p (μ - (fun c : 𝓞 E × 𝓞 E ↦ c.1 • s) ∘ p) w 0 * |
| 386 | x.thetaProduct q (μ' + (fun c : 𝓞 E × 𝓞 E ↦ c.1 • s) ∘ q) w z := by |
| 387 | -- Both products `x.thetaProduct p μ w` and `x.thetaProduct q μ' w` are theta functions of |
| 388 | -- degree `r` for `x.latticeOver D.rTorsion`; apply Schur orthogonality over the lifts of |
| 389 | -- `D.dualTorsion` at `0` and `z`. |
| 390 | rw [← x.sum_thetaShift_neg_mul_thetaShift (x.thetaProduct_mem_thetaSpace hp ht) |
| 391 | (x.thetaProduct_mem_thetaSpace hq ht') 0 z] |
| 392 | congr with s |
| 393 | exact x.thetaShift_neg_mul_thetaShift_thetaProduct hp ht hq ht' s 0 z |
| 394 | |
| 395 | /-- Let `θ_o(0)` have the largest valuation among the theta constants `θ_t(0)` (`ho`), and let that |
| 396 | valuation be at most those of `θ_{s-u}(0)` and `θ_{-u}(0)` (`h_best`). Then each of `θ_u(0)`, |
| 397 | `θ_{-u}(0)`, `θ_{s-u}(0)` has the largest valuation. -/ |
| 398 | private lemma valuation_thetaCoord_le_of_le_inf {s u o : D.dualTorsion} |
| 399 | (ho : ∀ t : D.dualTorsion, v (x.thetaCoord t 0) ≤ v (x.thetaCoord o 0)) |
| 400 | (h_best : v (x.thetaCoord o 0) ≤ v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0)) : |
| 401 | ∀ i ∈ [u, -u, s - u], ∀ t : D.dualTorsion, v (x.thetaCoord t 0) ≤ v (x.thetaCoord i 0) := by |
| 402 | -- The symmetry `PeriodMap.exists_thetaCoord_sign_smul`, used twice at `0`, carries the bound |
| 403 | -- from `-u` to `u`; for `-u` and `s - u` the bound is `h_best` with `ho`. |
| 404 | obtain ⟨η, hη⟩ := x.exists_thetaCoord_sign_smul (-1) |
| 405 | have h_symm (t : D.dualTorsion) : x.thetaCoord t 0 = η * x.thetaCoord (-t) 0 := by |
| 406 | simpa using hη 0 t |
| 407 | refine List.forall_mem_cons.mpr ⟨fun t ↦ ?_, |
| 408 | List.forall_mem_cons.mpr ⟨fun t ↦ (ho t).trans (h_best.trans inf_le_right), |
| 409 | List.forall_mem_cons.mpr ⟨fun t ↦ (ho t).trans (h_best.trans inf_le_left), |
| 410 | fun _ h ↦ nomatch h⟩⟩⟩ |
| 411 | calc v (x.thetaCoord t 0) = v η * v (x.thetaCoord (-t) 0) := by rw [h_symm, map_mul] |
| 412 | _ ≤ v η * v (x.thetaCoord (-u) 0) := by grw [ho (-t), h_best.trans inf_le_right] |
| 413 | _ = v (x.thetaCoord u 0) := by rw [h_symm u, map_mul] |
| 414 | |
| 415 | /-- Let `r = D.paddedNorm = 2 + n + 1` (`hr_eq`), let `θ_o(0)` have the largest valuation among |
| 416 | the theta constants `θ_t(0)` (`ho`), and let `u` maximize `min (v (θ_{s - t}(0))) (v (θ_{-t}(0)))` |
| 417 | over `t` (`hu`). If `v (θ_t(z)) ≤ C` for every `t` (`hz`), then |
| 418 | `v (|T| θ_o(0) ^ r (θ_s(z) θ_{r o - s}(z) θ_0(z) ^ (n + 1)))` is at most |
| 419 | `min (v (θ_{s - u}(0))) (v (θ_{-u}(0))) * v (θ_o(0)) ^ (n + 2) * C ^ r`. Here `T = D.dualTorsion` |
| 420 | and `θ_t = x.thetaCoord t`. -/ |
| 421 | private lemma valuation_card_mul_thetaCoord_le [Fintype D.dualTorsion] {s o u : D.dualTorsion} |
| 422 | {n : ℕ} (hr_eq : D.paddedNorm = 2 + n + 1) |
| 423 | (ho : ∀ t : D.dualTorsion, v (x.thetaCoord t 0) ≤ v (x.thetaCoord o 0)) |
| 424 | (hu : ∀ t : D.dualTorsion, v (x.thetaCoord (s - t) 0) ⊓ v (x.thetaCoord (-t) 0) ≤ |
| 425 | v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0)) |
| 426 | {z : V} {C : ℝ≥0} (hz : ∀ t : D.dualTorsion, v (x.thetaCoord t z) ≤ C) : |
| 427 | v ((Fintype.card D.dualTorsion : ℂ) * x.thetaCoord o 0 ^ D.paddedNorm * |
| 428 | (x.thetaCoord s z * x.thetaCoord (D.paddedNorm • o - s) z * x.thetaCoord 0 z ^ (n + 1))) ≤ |
| 429 | (v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0)) * |
| 430 | v (x.thetaCoord o 0) ^ (n + 2) * C ^ D.paddedNorm := by |
| 431 | set top : ℝ≥0 := v (x.thetaCoord o 0) |
| 432 | set best : ℝ≥0 := v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0) |
| 433 | let κ : Type := Option (Fin 2 ⊕ Fin n) |
| 434 | let ν : κ → D.dualTorsion := fun i ↦ i.elim (D.paddedNorm • o - s) (Sum.elim ![s, 0] 0) |
| 435 | let oneZero : κ → 𝓞 E × 𝓞 E := const κ (1, 0) |
| 436 | have h_one : IsRiemannTuple oneZero D := by simp [IsRiemannTuple, oneZero, κ, hr_eq] |
| 437 | -- `|T| θ_o(0) ^ r P(ν; z) = √index ∑ t, P(ν - t; 0) θ_{o + t}(z) ^ r`, where `P(ν; ·)` is the |
| 438 | -- product of the `θ_{ν i}`. |
| 439 | have h_sum : ∑ i : κ, star (oneZero i).1 • ν i = ∑ i : κ, star (oneZero i).1 • const κ o i := by |
| 440 | simp [oneZero, κ, ν, hr_eq] |
| 441 | have h_lhs : |
| 442 | (Fintype.card D.dualTorsion : ℂ) * x.thetaCoord o 0 ^ D.paddedNorm * |
| 443 | (x.thetaCoord s z * x.thetaCoord (D.paddedNorm • o - s) z * x.thetaCoord 0 z ^ (n + 1)) = |
| 444 | Fintype.card D.dualTorsion * x.thetaProduct oneZero (const κ o) 0 0 * |
| 445 | x.thetaProduct oneZero ν 0 z := by |
| 446 | simp [oneZero, κ, ν, hr_eq, thetaProduct, pow_add, sq, mul_comm, mul_left_comm, mul_assoc] |
| 447 | -- Bound each term on the right of Riemann's relation (ultrametric inequality): one constant is |
| 448 | -- at most `best`, the others at most `top`. `v.leSubmodule c` is the set of `y` with `v y ≤ c`. |
| 449 | rw [h_lhs, x.riemann_relation (w := 0) h_one h_sum h_one rfl z] |
| 450 | change _ ∈ v.leSubmodule _ |
| 451 | refine Submodule.smul_mem _ (Nat.cast (D.rTorsion.relIndex D.dualTorsion).sqrt) |
| 452 | (sum_mem fun t _ ↦ ?_) |
| 453 | have h_pair : v (x.thetaCoord (s - t) 0) * v (x.thetaCoord (-t) 0) ≤ best * top := by |
| 454 | grw [← min_mul_max, hu t, max_le (ho (s - t)) (ho (-t))] |
| 455 | calc v _ = v (x.thetaCoord (D.paddedNorm • o - s - t) 0) * |
| 456 | (v (x.thetaCoord (s - t) 0) * v (x.thetaCoord (-t) 0) * v (x.thetaCoord (-t) 0) ^ n) * |
| 457 | v (x.thetaCoord (o + t) z) ^ D.paddedNorm := by |
| 458 | simp [oneZero, κ, ν, hr_eq, thetaProduct] |
| 459 | _ ≤ top * (best * top * top ^ n) * C ^ D.paddedNorm := by |
| 460 | grw [h_pair, ho (D.paddedNorm • o - s - t), ho (-t), hz] |
| 461 | _ = _ := by ring |
| 462 | |
| 463 | /-- The bound on the values of the size function in the proof of |
| 464 | `exists_forall_valuation_thetaCoord_zero_le`. Let `r = D.paddedNorm = k + 3` and `v |T| = 1` (`hv`), |
| 465 | let `θ_o(0)` have the largest valuation `top` among the theta constants (`ho`), and let `u` |
| 466 | maximise `min (v θ_{s-t}(0)) (v θ_{-t}(0))` over `t`, with maximum `best` (`hu`). If every |
| 467 | `v θ_t(z)` is at most `v (exp (B(z, z) / 2)) ρ` (`h_le`), `ρ` the norm of `θ_0`, then at each |
| 468 | torsion point `z` the product of the sizes (`New.ThetaTori.LatticeForm.sizeAt`) of `θ_s`, |
| 469 | `θ_{r o - s}` and `θ_0 ^ (k + 1)`, times `top`, is at most `best ρ ^ r`. The proof applies Riemann's |
| 470 | relation and the ultrametric inequality. Here `T = D.dualTorsion` and `B = x.automorphyForm`. -/ |
| 471 | private lemma mul_sizeAt_le_inf_mul_thetaNorm_pow [Fintype D.dualTorsion] {s o u : D.dualTorsion} |
| 472 | {k : ℕ} (hr_eq : D.paddedNorm = 2 + k + 1) (hv : v (Fintype.card D.dualTorsion) = 1) |
| 473 | (ho : ∀ t : D.dualTorsion, v (x.thetaCoord t 0) ≤ v (x.thetaCoord o 0)) |
| 474 | (hu : ∀ t : D.dualTorsion, v (x.thetaCoord (s - t) 0) ⊓ v (x.thetaCoord (-t) 0) ≤ |
| 475 | v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0)) |
| 476 | (h_le : ∀ (t : D.dualTorsion) (z : torsionPoints x.periodLattice), |
| 477 | v (x.thetaCoord t z) ≤ v (exp (x.automorphyForm z z / 2)) * x.automorphyForm.thetaNorm v |
| 478 | (x.thetaCoord 0)) |
| 479 | (z : torsionPoints x.periodLattice) : |
| 480 | v (x.thetaCoord o 0) * |
| 481 | (x.automorphyForm.sizeAt v (x.thetaCoord s) * x.automorphyForm.sizeAt v |
| 482 | (x.thetaCoord (D.paddedNorm • o - s)) * |
| 483 | ((k + 1) • x.automorphyForm).sizeAt v (x.thetaCoord 0 ^ (k + 1))) z ≤ |
| 484 | (v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0)) * |
| 485 | x.automorphyForm.thetaNorm v (x.thetaCoord 0) ^ D.paddedNorm := by |
| 486 | rcases eq_or_ne (x.thetaCoord o 0) 0 with h_top | h_top |
| 487 | · simp [h_top] |
| 488 | set top : ℝ≥0 := v (x.thetaCoord o 0) |
| 489 | set best : ℝ≥0 := v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0) |
| 490 | set ρ : ℝ≥0 := x.automorphyForm.thetaNorm v (x.thetaCoord 0) |
| 491 | set φ := x.automorphyForm.sizeAt v (x.thetaCoord s) * x.automorphyForm.sizeAt v |
| 492 | (x.thetaCoord (D.paddedNorm • o - s)) * |
| 493 | ((k + 1) • x.automorphyForm).sizeAt v (x.thetaCoord 0 ^ (k + 1)) |
| 494 | -- Apply `valuation_card_mul_thetaCoord_le` at `z` with `C = e * ρ` (where |
| 495 | -- `e = v (exp (B(z, z) / 2))`) and compare with the goal: the product of theta coordinates has |
| 496 | -- valuation `φ z * e ^ r`, and the constant factor has valuation `top ^ r`. |
| 497 | have h_φ : φ z * v (exp (x.automorphyForm z z / 2)) ^ D.paddedNorm = |
| 498 | v (x.thetaCoord s z * x.thetaCoord (D.paddedNorm • o - s) z * |
| 499 | x.thetaCoord 0 z ^ (k + 1)) := by |
| 500 | simp only [φ, Pi.mul_apply, sizeAt_pow, Pi.pow_apply] |
| 501 | simp [sizeAt, hr_eq, thetaShift_apply, exp_neg, field, pow_add, mul_pow] |
| 502 | have h_const : |
| 503 | v ((Fintype.card D.dualTorsion : ℂ) * x.thetaCoord o 0 ^ D.paddedNorm) = |
| 504 | top ^ D.paddedNorm := by |
| 505 | simp [hv, top] |
| 506 | have h_e_pos : 0 < v (exp (x.automorphyForm z z / 2)) := by simp [Valuation.pos_iff, exp_ne_zero] |
| 507 | have h_top_pos : 0 < top := by simpa [top, Valuation.pos_iff] using h_top |
| 508 | refine le_of_mul_le_mul_left ?_ (mul_pos (pow_pos h_top_pos (k + 2)) |
| 509 | (pow_pos h_e_pos D.paddedNorm)) |
| 510 | calc top ^ (k + 2) * v (exp (x.automorphyForm z z / 2)) ^ D.paddedNorm * (top * φ z) |
| 511 | = v ((Fintype.card D.dualTorsion : ℂ) * x.thetaCoord o 0 ^ D.paddedNorm * |
| 512 | (x.thetaCoord s z * x.thetaCoord (D.paddedNorm • o - s) z * |
| 513 | x.thetaCoord 0 z ^ (k + 1))) := by |
| 514 | rw [map_mul, h_const, ← h_φ, hr_eq] |
| 515 | ring |
| 516 | _ ≤ best * top ^ (k + 2) * (v (exp (x.automorphyForm z z / 2)) * ρ) ^ D.paddedNorm := |
| 517 | x.valuation_card_mul_thetaCoord_le hr_eq ho hu fun t ↦ h_le t z |
| 518 | _ = top ^ (k + 2) * v (exp (x.automorphyForm z z / 2)) ^ D.paddedNorm * |
| 519 | (best * ρ ^ D.paddedNorm) := by ring |
| 520 | |
| 521 | /-- Under good reduction at `v` (`h_good`, see `New.ThetaTori.HasGoodReduction`) and |
| 522 | `v |T| = 1` (`hv`), for every `s` in `T = D.dualTorsion` there is `u` such that each of the theta |
| 523 | constants `θ_u(0)`, `θ_{-u}(0)`, `θ_{s-u}(0)` has the largest valuation among all `θ_t(0)`. So `s` |
| 524 | is both a sum `u + (s - u)` and a difference `(s - u) - (-u)` of such indices. -/ |
| 525 | lemma exists_forall_valuation_thetaCoord_zero_le |
| 526 | (h_good : HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm) |
| 527 | (hv : v (Nat.card D.dualTorsion) = 1) (s : D.dualTorsion) : |
| 528 | ∃ u : D.dualTorsion, ∀ i ∈ [u, -u, s - u], ∀ t : D.dualTorsion, |
| 529 | v (x.thetaCoord t 0) ≤ v (x.thetaCoord i 0) := by |
| 530 | -- Let `top` be the largest of the `v (θ_t 0)`, taken at `o`, and `best` the largest of the minima |
| 531 | -- of `v (θ_{s - t} 0)` and `v (θ_{-t} 0)`, taken at `u`. Riemann's relation for |
| 532 | -- `θ_{r o - s} θ_s θ_0 ^ (r - 2)` and `θ_o ^ r`, with the multiplicative norm, gives |
| 533 | -- `top ≤ best`. Here `r = D.paddedNorm`. |
| 534 | cases nonempty_fintype D.dualTorsion |
| 535 | obtain ⟨k, hr_eq⟩ : ∃ k : ℕ, D.paddedNorm = 2 + k + 1 := |
| 536 | Nat.exists_eq_add_of_lt D.three_le_paddedNorm |
| 537 | obtain ⟨o, ho⟩ := exists_max fun t : D.dualTorsion ↦ v (x.thetaCoord t 0) |
| 538 | obtain ⟨u, hu⟩ := exists_max fun t : D.dualTorsion ↦ |
| 539 | v (x.thetaCoord (s - t) 0) ⊓ v (x.thetaCoord (-t) 0) |
| 540 | set top : ℝ≥0 := v (x.thetaCoord o 0) |
| 541 | set best : ℝ≥0 := v (x.thetaCoord (s - u) 0) ⊓ v (x.thetaCoord (-u) 0) |
| 542 | suffices h_best : top ≤ best from ⟨u, x.valuation_thetaCoord_le_of_le_inf ho h_best⟩ |
| 543 | -- All `x.thetaCoord t` have the same norm `ρ > 0`. |
| 544 | set ρ : ℝ≥0 := x.automorphyForm.thetaNorm v (x.thetaCoord 0) |
| 545 | have hρ : 0 < ρ := h_good.thetaNorm_pos (x.thetaCoord_mem_thetaSpace 0) (x.thetaCoord_ne_zero 0) |
| 546 | have h_size_mem (t : D.dualTorsion) : x.automorphyForm.sizeAt v (x.thetaCoord t) ∈ |
| 547 | x.automorphyForm.sizes v := |
| 548 | .of_mem_thetaSpace h_good.toIsAmpleType (x.thetaCoord_mem_thetaSpace t) |
| 549 | have h_le (t : D.dualTorsion) (z : torsionPoints x.periodLattice) : |
| 550 | v (x.thetaCoord t z) ≤ v (exp (x.automorphyForm z z / 2)) * ρ := by |
| 551 | simpa [sizeAt, field, thetaNorm_thetaCoord, thetaShift_apply, exp_neg, Valuation.pos_iff] using |
| 552 | le_iSup_of_mem_sizes (h_size_mem t) z |
| 553 | -- The norm is multiplicative, so the size `φ` of the product has norm `ρ ^ r`. |
| 554 | set φ := x.automorphyForm.sizeAt v (x.thetaCoord s) * x.automorphyForm.sizeAt v |
| 555 | (x.thetaCoord (D.paddedNorm • o - s)) * |
| 556 | ((k + 1) • x.automorphyForm).sizeAt v (x.thetaCoord 0 ^ (k + 1)) |
| 557 | have h_sz_mul : x.automorphyForm.sizeAt v (x.thetaCoord s) * x.automorphyForm.sizeAt v |
| 558 | (x.thetaCoord (D.paddedNorm • o - s)) ∈ (x.automorphyForm + x.automorphyForm).sizes v := by |
| 559 | simpa [Pi.mul_def] using mul_shift_mem_sizes (h_size_mem s) (h_size_mem (D.paddedNorm • o - s)) |
| 560 | 0 |
| 561 | have h_norm : iSup φ = ρ ^ D.paddedNorm := by |
| 562 | rw [h_good.hasMultiplicativeNorm h_sz_mul |
| 563 | (.of_mem_thetaSpace (h_good.nsmul k.succ_ne_zero) (pow (x.thetaCoord_mem_thetaSpace 0) _)), |
| 564 | h_good.hasMultiplicativeNorm (h_size_mem _) (h_size_mem _)] |
| 565 | grind [thetaNorm_pow, thetaNorm_thetaCoord] |
| 566 | -- It suffices to bound the values of `φ`: take the supremum and cancel `ρ ^ r`. |
| 567 | suffices h_value : ∀ z : torsionPoints x.periodLattice, top * φ z ≤ best * ρ ^ D.paddedNorm by |
| 568 | exact le_of_mul_le_mul_right (by simpa [h_norm] using mul_iSup_le h_value) |
| 569 | (pow_pos hρ D.paddedNorm) |
| 570 | exact x.mul_sizeAt_le_inf_mul_thetaNorm_pow hr_eq (by simpa using hv) ho hu h_le |
| 571 | |
| 572 | /-- Along a surjective ring map `φ : A →+* B`, every form of degree `d` over `B` is the image of a |
| 573 | form of degree `d` over `A`: mapping coefficients by `φ` is surjective on homogeneous |
| 574 | polynomials of degree `d`. -/ |
| 575 | lemma surjective_map_homogeneous {σ A B : Type} [CommSemiring A] [CommSemiring B] {φ : A →+* B} |
| 576 | (hφ : Surjective φ) (d : ℕ) : |
| 577 | Surjective fun f : homogeneousSubmodule σ A d ↦ |
| 578 | (⟨f.val.map φ, f.property.map φ⟩ : homogeneousSubmodule σ B d) := by |
| 579 | rintro ⟨g, hg⟩ |
| 580 | -- Lift `g` along `φ`, then project to its degree-`d` homogeneous component. |
| 581 | obtain ⟨f, hf⟩ := MvPolynomial.map_surjective φ hφ g |
| 582 | refine ⟨⟨homogeneousComponent d f, homogeneousComponent_mem _ _⟩, Subtype.ext ?_⟩ |
| 583 | simpa [map_homogeneousComponent, hf] using homogeneousComponent_eq_self hg |
| 584 | |
| 585 | /-- A form `f` of degree `r ^ j` in the theta coordinates is small at the chart `c` if the theta |
| 586 | function `f(θ)` has norm (`New.ThetaTori.LatticeForm.thetaNorm` at `v` for `r ^ j • B`) below |
| 587 | `‖θ_c‖ ^ (r ^ j)`, the norm of `θ_c ^ (r ^ j)`. Here `r = D.paddedNorm` and |
| 588 | `B = x.automorphyForm`. -/ |
| 589 | private def IsSmallForm (c : D.dualTorsion) (j : ℕ) |
| 590 | (f : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j)) : Prop := |
| 591 | (D.paddedNorm ^ j • x.automorphyForm).thetaNorm v |
| 592 | (aeval x.thetaCoord (f : MvPolynomial D.dualTorsion v.valuationSubring)) < |
| 593 | x.automorphyForm.thetaNorm v (x.thetaCoord c) ^ D.paddedNorm ^ j |
| 594 | |
| 595 | /-- Under good reduction, the forms of degree `r ^ j` in the theta coordinates with integral |
| 596 | coefficients give exactly the norm ball of `θ_c ^ (r ^ j)`: the theta functions of `r ^ j • B` with |
| 597 | norm at most that of `θ_c ^ (r ^ j)` (`h_good.pow j` is good reduction for `r ^ j • B`). Here |
| 598 | `r = D.paddedNorm` and `B = x.automorphyForm`. -/ |
| 599 | private lemma range_aeval_thetaCoord_eq_normBall |
| 600 | (h_good : HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm) |
| 601 | (c : D.dualTorsion) (j : ℕ) : |
| 602 | ((aeval x.thetaCoord).toLinearMap.domRestrict |
| 603 | (homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j))).range = |
| 604 | HasGoodReduction.normBall (D.paddedNorm ^ j • x.automorphyForm) |
| 605 | (x.multiplier ^ D.paddedNorm ^ j) v |
| 606 | (x.thetaCoord c ^ D.paddedNorm ^ j) := by |
| 607 | rw [LinearMap.range_domRestrict, map_homogeneousSubmodule_eq_formSpan, |
| 608 | x.formSpan_eq_normBall v h_good] |
| 609 | |
| 610 | /-- Smallness is read off from reductions at points that represent the dual lattice. Let `x` have |
| 611 | good reduction at `v` (`h_good`) and let `φ` map the valuation ring of `v` onto a field `k`. Let the |
| 612 | points `a b` represent the dual lattice of `r ^ j • B` modulo `x.periodLattice` (`ha`), and let |
| 613 | `p b` be integral coordinates of the theta vector at `a b` (`hp`). Then a form `f` of degree |
| 614 | `r ^ j` is small at `c` iff its reduction by `φ` vanishes at every point `φ ∘ p b`. Here |
| 615 | `r = D.paddedNorm` and `B = x.automorphyForm`. -/ |
| 616 | private lemma isSmallForm_iff_forall_eval_map_eq_zero [Field k] {φ : v.valuationSubring →+* k} |
| 617 | (hφ : Surjective φ) (h_good : HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm) |
| 618 | (c : D.dualTorsion) (j : ℕ) {I : Type} {a : I → V} {p : I → D.dualTorsion → v.valuationSubring} |
| 619 | (ha : ∀ u : (D.paddedNorm ^ j • x.automorphyForm).dualLattice, ∃ b : I, |
| 620 | a b - u ∈ x.periodLattice) |
| 621 | (hp : ∀ b : I, IsIntegralCoords (fun s : D.dualTorsion ↦ x.thetaCoord s (a b)) (p b)) |
| 622 | (f : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j)) : |
| 623 | x.IsSmallForm c j f ↔ ∀ b : I, (f.val.map φ).eval (φ ∘ p b) = 0 := by |
| 624 | let ev : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j) |
| 625 | →ₗ[v.valuationSubring] V → ℂ := |
| 626 | (aeval x.thetaCoord).toLinearMap.domRestrict |
| 627 | (homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j)) |
| 628 | have h_max (y : v.valuationSubring) : φ y = 0 ↔ v y < 1 := by |
| 629 | simp [← v.mem_maximalIdeal_iff, ← IsLocalRing.ker_eq_maximalIdeal φ hφ] |
| 630 | -- By homogeneity the values of the forms at `p b` are integral coordinates of their values at |
| 631 | -- `a b`; the power of a unit coordinate is a unit. |
| 632 | have h_aff (b : I) : IsIntegralCoords (fun g ↦ ev g (a b)) fun g ↦ g.val.eval (p b) := by |
| 633 | obtain ⟨s, hs_eq, i, hi_unit⟩ := hp b |
| 634 | refine ⟨s ^ D.paddedNorm ^ j, fun g ↦ ?_, ⟨_, isHomogeneous_X_pow i _⟩, by simp [hi_unit]⟩ |
| 635 | simpa [ev, eval_eq, aeval_def, eval₂_eq, hs_eq, div_eq_inv_mul] using |
| 636 | g.property.eval₂_const_mul (algebraMap ..) _ s⁻¹ |
| 637 | have h_ball : ev.range = |
| 638 | HasGoodReduction.normBall (D.paddedNorm ^ j • x.automorphyForm) |
| 639 | (x.multiplier ^ D.paddedNorm ^ j) v |
| 640 | (x.thetaCoord c ^ D.paddedNorm ^ j) := |
| 641 | x.range_aeval_thetaCoord_eq_normBall h_good c j |
| 642 | change (D.paddedNorm ^ j • x.automorphyForm).thetaNorm v (ev f) < x.automorphyForm.thetaNorm v |
| 643 | (x.thetaCoord c) ^ D.paddedNorm ^ j ↔ _ |
| 644 | simpa [thetaNorm_pow, ← h_max, map_eval] using |
| 645 | (h_good.pow j).thetaNorm_lt_iff_coords (pow (x.thetaCoord_mem_thetaSpace c) _) |
| 646 | (pow_ne_zero _ (x.thetaCoord_ne_zero c)) h_ball ha h_aff f |
| 647 | |
| 648 | /-- Smallness is read off at the points of the chart `c`. Under good reduction (`h_good`), with |
| 649 | `φ` onto a field and `q z` integral coordinates of the theta vector at every `z ∈ V` (`hq`), a |
| 650 | form `f` of degree `r ^ j` is small at `c` iff its reduction vanishes at each point `φ ∘ q z` |
| 651 | whose coordinate `c` is nonzero. Here `r = D.paddedNorm`. -/ |
| 652 | private lemma isSmallForm_iff_forall_eval_map_eq_zero_of_ne_zero [Field k] |
| 653 | {φ : v.valuationSubring →+* k} (hφ : Surjective φ) |
| 654 | (h_good : HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm) |
| 655 | {q : V → D.dualTorsion → v.valuationSubring} |
| 656 | (hq : ∀ z : V, IsIntegralCoords (fun s : D.dualTorsion ↦ x.thetaCoord s z) (q z)) |
| 657 | (c : D.dualTorsion) (j : ℕ) |
| 658 | (f : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j)) : |
| 659 | x.IsSmallForm c j f ↔ ∀ z : V, φ (q z c) ≠ 0 → (f.val.map φ).eval (φ ∘ q z) = 0 := by |
| 660 | -- Multiplying `f` by `X c ^ e` to reach degree `r ^ (j + 1)` multiplies norm and radius by the |
| 661 | -- same factor. In that degree all points of `V` may be used, and `X c ^ e` vanishes exactly |
| 662 | -- where the coordinate `c` does. |
| 663 | obtain ⟨e, he_pos, h_deg⟩ := lt_iff_exists_add.mp (Nat.pow_lt_pow_succ (n := j) h_good.one_lt) |
| 664 | have hρ : 0 < x.automorphyForm.thetaNorm v (x.thetaCoord c) := |
| 665 | h_good.thetaNorm_pos (x.thetaCoord_mem_thetaSpace c) (x.thetaCoord_ne_zero c) |
| 666 | let f' : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ (j + 1)) := |
| 667 | ⟨f.val * X c ^ e, by simpa [h_deg] using f.property.mul (isHomogeneous_X_pow c e)⟩ |
| 668 | have h_mul : (D.paddedNorm ^ (j + 1) • x.automorphyForm).thetaNorm v |
| 669 | (aeval x.thetaCoord (f.val * X c ^ e)) = |
| 670 | (D.paddedNorm ^ j • x.automorphyForm).thetaNorm v (aeval x.thetaCoord f.val) * |
| 671 | x.automorphyForm.thetaNorm v (x.thetaCoord c) ^ e := by |
| 672 | have h_mem_ball : aeval x.thetaCoord f.val ∈ |
| 673 | HasGoodReduction.normBall (D.paddedNorm ^ j • x.automorphyForm) |
| 674 | (x.multiplier ^ D.paddedNorm ^ j) v |
| 675 | (x.thetaCoord c ^ D.paddedNorm ^ j) := |
| 676 | (x.range_aeval_thetaCoord_eq_normBall h_good c j).le ⟨f, rfl⟩ |
| 677 | rw [map_mul, map_pow, aeval_X, h_deg, add_smul, ← thetaNorm_pow, LatticeForm.thetaNorm, |
| 678 | sizeAt_mul] |
| 679 | exact h_good.hasMultiplicativeNorm |
| 680 | (.of_mem_thetaSpace (h_good.pow j).toIsAmpleType (Submodule.mem_inf.mp h_mem_ball).left) |
| 681 | (.of_mem_thetaSpace (h_good.nsmul he_pos.ne') (pow (x.thetaCoord_mem_thetaSpace c) e)) |
| 682 | have h_small : x.IsSmallForm c (j + 1) f' ↔ x.IsSmallForm c j f := by |
| 683 | simp_rw [IsSmallForm, f', h_mul, h_deg, pow_add, mul_lt_mul_iff_left₀ (pow_pos hρ e)] |
| 684 | rw [← h_small, x.isSmallForm_iff_forall_eval_map_eq_zero hφ h_good c (j + 1) |
| 685 | (fun u ↦ ⟨(u : V), by simp⟩) hq f'] |
| 686 | simp [f', he_pos.ne', or_iff_not_imp_right] |
| 687 | |
| 688 | /-- Under good reduction at `v`, the space of degree-`r ^ j` homogeneous forms over `k` modulo an |
| 689 | ideal `J` whose pullback to `v.valuationSubring` consists of the small forms at `c` has dimension |
| 690 | `thetaRanks D.dualTorsion D.paddedNorm j`. -/ |
| 691 | private lemma finrank_imageMod_eq_thetaRanks [Field k] {φ : v.valuationSubring →+* k} |
| 692 | (hφ : Surjective φ) (h_good : HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm) |
| 693 | (c : D.dualTorsion) (j : ℕ) (J : Ideal (MvPolynomial D.dualTorsion k)) |
| 694 | (h_dual : (D.paddedNorm ^ j • x.automorphyForm).dualLattice = |
| 695 | x.latticeOver (D.dualTorsion.comap (nsmulAddMonoidHom (D.paddedNorm ^ j)))) |
| 696 | (h_ideal : ∀ f : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j), |
| 697 | f.val.map φ ∈ J ↔ x.IsSmallForm c j f) : |
| 698 | finrank k (imageMod J (homogeneousSubmodule D.dualTorsion k (D.paddedNorm ^ j))) = |
| 699 | thetaRanks D.dualTorsion D.paddedNorm j := by |
| 700 | -- The rank is the dimension of the theta space, whose square is an index of lattices. |
| 701 | let red : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j) →ₛₗ[φ] |
| 702 | MvPolynomial D.dualTorsion k ⧸ J := |
| 703 | { toFun f := Ideal.Quotient.mk J (f.val.map φ) |
| 704 | map_add' := by simp |
| 705 | map_smul' c f := by |
| 706 | have h_alg : |
| 707 | algebraMap k (MvPolynomial D.dualTorsion k ⧸ J) (φ c) = Ideal.Quotient.mk J |
| 708 | (C (φ c)) := rfl |
| 709 | simp [Algebra.smul_def, h_alg] } |
| 710 | have h_range : imageMod J (homogeneousSubmodule D.dualTorsion k (D.paddedNorm ^ j)) = span k |
| 711 | (Set.range red) := by |
| 712 | rw [← (imageMod ..).span_eq, map_coe, Set.image_eq_range, |
| 713 | ← (surjective_map_homogeneous hφ _).range_comp] |
| 714 | rfl |
| 715 | have h_zero (f : homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j)) : |
| 716 | red f = 0 ↔ (D.paddedNorm ^ j • x.automorphyForm).thetaNorm v (aeval x.thetaCoord f.val) < |
| 717 | (D.paddedNorm ^ j • x.automorphyForm).thetaNorm v |
| 718 | (x.thetaCoord c ^ D.paddedNorm ^ j) := by |
| 719 | rw [thetaNorm_pow] |
| 720 | exact Ideal.Quotient.eq_zero_iff_mem.trans (h_ideal f) |
| 721 | -- The rank is the dimension of the theta space of degree `r ^ j` ... |
| 722 | have h_ball : ((aeval x.thetaCoord).toLinearMap.domRestrict |
| 723 | (homogeneousSubmodule D.dualTorsion v.valuationSubring (D.paddedNorm ^ j))).range = |
| 724 | HasGoodReduction.normBall (D.paddedNorm ^ j • x.automorphyForm) |
| 725 | (x.multiplier ^ D.paddedNorm ^ j) v |
| 726 | (x.thetaCoord c ^ D.paddedNorm ^ j) := |
| 727 | x.range_aeval_thetaCoord_eq_normBall h_good c j |
| 728 | rw [h_range, (h_good.pow j).finrank_reduction_eq (pow (x.thetaCoord_mem_thetaSpace c) _) |
| 729 | (pow_ne_zero _ (x.thetaCoord_ne_zero c)) h_ball hφ h_zero] |
| 730 | -- ... whose square is the index of `x.periodLattice` in the dual lattice. |
| 731 | rw [← Nat.sqrt_eq' (finrank ..), |
| 732 | (h_good.pow j).finrank_thetaSpace_sq (hp := (h_good.pow j).isPosRiemann), h_dual, |
| 733 | x.relIndex_latticeOver] |
| 734 | simp [thetaRanks] |
| 735 | |
| 736 | /-- Under good reduction at `v` (`h_good`), with `φ` onto a field `k`, `q z` integral coordinates of |
| 737 | the theta vector `(θ_s(z))_s` at every `z ∈ V` and `p l` those at the lift of each level point `l`: |
| 738 | if each `N l` has the coordinates `φ ∘ p l` at `t`, then `N` cuts out at `t` the reduced vectors |
| 739 | `φ ∘ q z` (`New.Variety.ThetaNull.IsCutOutAt`). That is: in all charts of the `N l` at `t` and each |
| 740 | chart `c`, the ideal of those vectors with `c`-coordinate ≠ 0, scaled to 1, satisfies |
| 741 | `IsCutOut D.paddedNorm D.exponentBound` with ranks `thetaRanks D.dualTorsion D.paddedNorm` (the |
| 742 | dimensions of the theta spaces of `r ^ j • x.automorphyForm`; for `j ≤ D.exponentBound` the level |
| 743 | points `D.levelTorsion` represent its dual lattice mod `x.periodLattice`) for the affine coordinates |
| 744 | of the `N l` at `t`. Here `r = D.paddedNorm`. -/ |
| 745 | lemma isCutOutAt_reduction [Field k] {φ : v.valuationSubring →+* k} (hφ : Surjective φ) |
| 746 | (h_good : HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm) |
| 747 | {q : V → D.dualTorsion → v.valuationSubring} |
| 748 | {p : D.levelTorsion → D.dualTorsion → v.valuationSubring} |
| 749 | (hq_coords : ∀ z : V, IsIntegralCoords (fun s : D.dualTorsion ↦ x.thetaCoord s z) (q z)) |
| 750 | (hp_coords : ∀ l : D.levelTorsion, |
| 751 | IsIntegralCoords (fun s : D.dualTorsion ↦ x.thetaCoord s (x.torsionLift l)) (p l)) |
| 752 | {S : AlgebraicGeometry.Scheme} {t : AlgebraicGeometry.Spec (CommRingCat.of k) ⟶ S} |
| 753 | {N : D.levelTorsion → LineBundle S D.dualTorsion} |
| 754 | (hN_coords : ∀ l : ↥D.levelTorsion, (N l).IsHomogeneousCoords t fun s : D.dualTorsion ↦ |
| 755 | φ (p l s)) : |
| 756 | IsCutOutAt D.paddedNorm D.exponentBound (thetaRanks D.dualTorsion D.paddedNorm) N t |
| 757 | (Set.range fun z : V ↦ φ ∘ q z) := by |
| 758 | -- In the chart `c` the forms of degree `r ^ j` vanishing at the reduced points are the small |
| 759 | -- ones, so the ranks are those of the reduced norm balls and may be read at the level points. |
| 760 | intro chart h_chart c |
| 761 | have h_dual (j : ℕ) : |
| 762 | (D.paddedNorm ^ j • x.automorphyForm).dualLattice = x.latticeOver |
| 763 | (D.dualTorsion.comap (nsmulAddMonoidHom (D.paddedNorm ^ j))) := by |
| 764 | ext u |
| 765 | rw [mem_dualLattice_nsmul, x.dualLattice_periodLattice, |
| 766 | x.nsmul_mem_latticeOver (pow_ne_zero j h_good.one_lt.ne_bot)] |
| 767 | -- `J` is the ideal of the reduced points in the chart `c`. |
| 768 | let J : Ideal (MvPolynomial D.dualTorsion k) := |
| 769 | ⨅ pt ∈ {pt ∈ Set.range (fun z : V ↦ φ ∘ q z) | pt c ≠ 0}, |
| 770 | RingHom.ker (MvPolynomial.eval fun s : D.dualTorsion ↦ pt s / pt c) |
| 771 | have h_ideal (j : ℕ) (f : homogeneousSubmodule D.dualTorsion v.valuationSubring |
| 772 | (D.paddedNorm ^ j)) : |
| 773 | f.val.map φ ∈ J ↔ x.IsSmallForm c j f := by |
| 774 | simp +contextual [J, x.isSmallForm_iff_forall_eval_map_eq_zero_of_ne_zero hφ h_good hq_coords, |
| 775 | f.property.eval₂_const_mul, div_eq_inv_mul] |
| 776 | have h_lift (d : ℕ) : Surjective fun f : homogeneousSubmodule D.dualTorsion v.valuationSubring d ↦ |
| 777 | (⟨f.val.map φ, f.property.map φ⟩ : homogeneousSubmodule D.dualTorsion k d) := |
| 778 | surjective_map_homogeneous hφ d |
| 779 | refine ⟨by simp +contextual, fun j ↦ ?_, fun j hj ↦ ?_⟩ |
| 780 | · exact x.finrank_imageMod_eq_thetaRanks hφ h_good c j J (h_dual j) (h_ideal j) |
| 781 | · -- For `j ≤ D.exponentBound` the level points represent the dual lattice in degree `r ^ j` |
| 782 | -- modulo `x.periodLattice`: its classes are killed by the level (`D.mem_torsionBy_level`). |
| 783 | have h_repr : ∀ u : (D.paddedNorm ^ j • x.automorphyForm).dualLattice, ∃ l : D.levelTorsion, |
| 784 | x.torsionLift l - u ∈ x.periodLattice := by |
| 785 | rw [h_dual] |
| 786 | rintro ⟨_, y, hy_class, rfl⟩ |
| 787 | use ⟨_, D.mem_torsionBy_level _ hj _ hy_class⟩ |
| 788 | simp [torsionLift, sub_mem_periodLattice_iff] |
| 789 | intro f₀ hf₀ |
| 790 | -- `f₀` is the reduction of a form `f` over the valuation ring. |
| 791 | obtain ⟨f, hf⟩ := h_lift (D.paddedNorm ^ j) ⟨f₀, hf₀⟩ |
| 792 | obtain rfl : f.val.map φ = f₀ := congrArg Subtype.val hf |
| 793 | refine (h_ideal j f).trans |
| 794 | ((x.isSmallForm_iff_forall_eval_map_eq_zero hφ h_good c j h_repr hp_coords f).trans ?_) |
| 795 | -- The coordinates at `t` are those of `φ ∘ p b` divided by a nonzero one, the coordinate of the |
| 796 | -- chart `chart b`. |
| 797 | have h_unit (b : D.levelTorsion) : φ (p b (chart b)) ≠ 0 := |
| 798 | ((hN_coords b (chart b)).left.mp (h_chart b)).ne_zero |
| 799 | simp [hN_coords _ _, h_unit, f.property.eval₂_const_mul, comp_def, mul_comm (φ _)] |
| 800 | |
| 801 | /-- The family of coefficient pairs in `𝓞 E` consisting of `(1, 0)` twice (on the first copy of |
| 802 | `Bool`), `(c, 1)` and `(1, −c̄)` (at `true` and `false` of the second copy), and `(a l, 0)` for |
| 803 | every `l : K`. -/ |
| 804 | def _root_.New.paddingTuple (c : 𝓞 E) : Bool ⊕ Bool ⊕ K → 𝓞 E × 𝓞 E := |
| 805 | Sum.elim (fun _ : Bool ↦ (1, 0)) (Sum.elim (fun b ↦ cond b (c, 1) (1, -star c)) fun l ↦ (a l, 0)) |
| 806 | |
| 807 | end New.ThetaTori.ThetaTorus |
| 808 | |
| 809 | end |