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.Tactic.Linarith.NNRealPreprocessor -- shake: keep (`nlinarith` over `ℝ≥0`) |
| 4 | import Mathlib.Algebra.GroupWithZero.Torsion |
| 5 | import Mathlib.Algebra.Order.Star.Real |
| 6 | import Mathlib.Analysis.LocallyConvex.AbsConvexOpen |
| 7 | import Mathlib.GroupTheory.FiniteAbelian.Basic |
| 8 | public import Lib.Shimura.ComplexTheta.AppellHumbertData |
| 9 | import Lib.General.Topology |
| 10 | import Lib.Shimura.ComplexTheta.DimensionFormula |
| 11 | |
| 12 | /-! |
| 13 | # Sizes of theta functions at torsion points: products, bounds and shift bounds |
| 14 | |
| 15 | Theta functions (`New.RealComplexForm.thetaSpace`) on a complex torus `V / L`, measured at the |
| 16 | torsion points by a valuation `v` on `ℂ`. The degree is a form `B` (a `LatticeForm L`: it has |
| 17 | complex values B x y, and degrees are added and scaled by reals) with Appell–Humbert data |
| 18 | `New.IsAppellHumbert` and Riemann form `New.RealComplexForm.riemannForm`; |
| 19 | `New.RealComplexForm.thetaShift` is translation with the exponential factor that keeps the degree. |
| 20 | The size `New.ThetaTori.LatticeForm.sizeAt` of `f` at a torsion point `x` is |
| 21 | `v (exp (-B x x / 2) * f x)`, and `New.ThetaTori.LatticeForm.sizes` is the set of all sizes of |
| 22 | degree `B`, over all multipliers χ of finite order with `New.ThetaTori.IsAmpleType`. Roots of unity |
| 23 | have valuation `1`, so sizes are periodic and do not see these multipliers. |
| 24 | |
| 25 | * `New.ThetaTori.mul_shift_mem_sizes`: products of sizes with torsion translates of sizes are sizes. |
| 26 | * `New.ThetaTori.bddAbove_of_mem_sizes`, `New.ThetaTori.IsAmpleType.thetaNorm_pos`: sizes are |
| 27 | bounded, and the sup norm of `f ≠ 0` is positive. |
| 28 | * `New.ThetaTori.dense_torsionPoints`: the vectors torsion modulo a full-rank lattice are dense. |
| 29 | * `New.ThetaTori.LatticeForm.HasShiftBound`: the bound `φ ^ 2 ≤ C * ⨆ x, φ x * φ (x + w)`. It passes |
| 30 | from `B` to `B'` when the Riemann form of `B - B'` is positive |
| 31 | (`New.ThetaTori.LatticeForm.HasShiftBound.of_isPosRiemann_sub`), and with `C = 1` it compares |
| 32 | products of translates (`New.ThetaTori.mul_le_iSup_of_hasShiftBound`). |
| 33 | |
| 34 | Notions from other files: |
| 35 | * `New.IsPosRiemann`: The Riemann form E of B is positive: E(u, iu) > 0 for every u ≠ 0. |
| 36 | * `New.RealComplexForm.dualLattice`: The dual of L for the Riemann form E of B: the v in V with E(v, |
| 37 | l) an integer for all l in L. |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | |
| 41 | Known; see `Lib.Shimura.GoodReduction.MultiplicativeNorm` for sources. |
| 42 | -/ |
| 43 | |
| 44 | @[expose] public section |
| 45 | |
| 46 | noncomputable section |
| 47 | |
| 48 | namespace New.ThetaTori |
| 49 | |
| 50 | open Function Complex NNReal Module Filter Submodule Set Quotient ZSpan thetaSpace |
| 51 | |
| 52 | variable {V : Type} [FinComplexSpace V] {L : Submodule ℤ V} |
| 53 | |
| 54 | /-! ### Definitions -/ |
| 55 | |
| 56 | /-- The ℤ-submodule of the vectors a of V with na in L for some n ≠ 0: the preimage in V of the |
| 57 | torsion subgroup of V/L. -/ |
| 58 | def torsionPoints (L : Submodule ℤ V) : Submodule ℤ V := |
| 59 | ((torsion' ℤ (V ⧸ L) (nonZeroDivisors ℕ)).comap L.mkQ).copy {a : V | ∃ n ≠ (0 : ℕ), n • a ∈ L} |
| 60 | (by simp [← mk_smul]) |
| 61 | |
| 62 | variable (v : Valuation ℂ ℝ≥0) (B B' : LatticeForm L) |
| 63 | |
| 64 | /-- (L, B, χ) is an Appell–Humbert datum (the Riemann form E of B is integral on L, and χ is a |
| 65 | nonvanishing multiplier on L) with positive Riemann form, and χ has finite order on L: χⁿ = 1 there |
| 66 | for some n ≠ 0. -/ |
| 67 | structure IsAmpleType (χ : V → ℂ) extends isAppellHumbert : IsAppellHumbert B χ, |
| 68 | isPosRiemann : IsPosRiemann B where |
| 69 | /-- The multiplier `χ` has finite order on `L`. -/ |
| 70 | finite_order : ∃ n ≠ (0 : ℕ), ∀ l ∈ L, χ l ^ n = 1 |
| 71 | |
| 72 | /-- The size of f at a vector x of V of finite order modulo L: the value |
| 73 | v(exp(−B(x, x)/2)·f(x)). -/ |
| 74 | def LatticeForm.sizeAt (f : V → ℂ) (x : torsionPoints L) : ℝ≥0 := v (B.thetaShift x f 0) |
| 75 | |
| 76 | /-- The sup norm of f in degree B: the supremum of its sizes `New.ThetaTori.LatticeForm.sizeAt` over |
| 77 | all torsion points of V/L. -/ |
| 78 | abbrev LatticeForm.thetaNorm (v : Valuation ℂ ℝ≥0) (f : V → ℂ) : ℝ≥0 := iSup (B.sizeAt v f) |
| 79 | |
| 80 | /-- The sizes of degree B: the functions `New.ThetaTori.LatticeForm.sizeAt` of f on the torsion |
| 81 | points of V/L, for f a theta function of type (B, χ) (f is holomorphic, and for l in L, f(z + l) is |
| 82 | χ(l) times an exponential factor fixed by B, times f(z)), with any χ such that |
| 83 | `New.ThetaTori.IsAmpleType` holds for B and χ (a twisted theta function of degree B). -/ |
| 84 | inductive LatticeForm.IsSize : (torsionPoints L → ℝ≥0) → Prop |
| 85 | /-- For `f` in `B.thetaSpace χ` with `IsAmpleType B χ`, the function `B.sizeAt v f` belongs to |
| 86 | `LatticeForm.sizes`. -/ |
| 87 | | of_mem_thetaSpace {χ f : V → ℂ} : IsAmpleType B χ → f ∈ B.thetaSpace χ → IsSize (B.sizeAt v f) |
| 88 | |
| 89 | /-- The set of the functions satisfying `New.ThetaTori.LatticeForm.IsSize` (`Set` is a structure, so |
| 90 | an inductive predicate cannot be a `Set` directly). -/ |
| 91 | abbrev LatticeForm.sizes : Set (torsionPoints L → ℝ≥0) := {φ | B.IsSize v φ} |
| 92 | |
| 93 | /-- The analytic form of good reduction of V/L at v: for all degrees B, C and all sizes φ, ψ of |
| 94 | these degrees (sizes of twisted theta functions f, g), the sup norm of the product φψ, the size of |
| 95 | fg, is the product of the sup norms. -/ |
| 96 | def HasMultiplicativeNorm (L : Submodule ℤ V) : Prop := |
| 97 | ∀ ⦃B C : LatticeForm L⦄ ⦃φ ψ : ↥(torsionPoints L) → ℝ≥0⦄, φ ∈ B.sizes v → |
| 98 | ψ ∈ C.sizes v → |
| 99 | iSup (φ * ψ) = iSup φ * iSup ψ |
| 100 | |
| 101 | /-- The conditions of `New.ThetaTori.IsAmpleType`, plus three more. Some natural N with v(N) = 1 |
| 102 | maps the dual lattice of L into L. The level r > 1 has v(r) = 1. The sup norm is multiplicative |
| 103 | (`New.ThetaTori.HasMultiplicativeNorm`). -/ |
| 104 | structure HasGoodReduction (χ : V → ℂ) (v : Valuation ℂ ℝ≥0) (r : ℕ) extends IsAmpleType B χ where |
| 105 | /-- Some natural number of valuation `1` multiplies the dual lattice of `L` into `L`. -/ |
| 106 | dual_torsion : ∃ N : ℕ, v N = 1 ∧ ∀ a ∈ B.dualLattice, N • a ∈ L |
| 107 | /-- The level `r` has valuation `1`. -/ |
| 108 | val_eq_one : v r = 1 |
| 109 | /-- The level `r` is at least `2`. -/ |
| 110 | one_lt : 1 < r |
| 111 | /-- The sup norm of theta functions on the torsion points is multiplicative. -/ |
| 112 | hasMultiplicativeNorm : HasMultiplicativeNorm v L |
| 113 | |
| 114 | /-- For the size function φ of every twisted theta function of degree B, (sup φ)² ≤ C · sup_x |
| 115 | φ(x) φ(x + w), x over the torsion points. -/ |
| 116 | def LatticeForm.HasShiftBound (w : ↥(torsionPoints L)) (C : ℝ≥0) : Prop := |
| 117 | ∀ φ ∈ B.sizes v, ∀ y : ↥(torsionPoints L), |
| 118 | φ y ^ 2 ≤ C * ⨆ x : ↥(torsionPoints L), φ x * φ (x + w) |
| 119 | |
| 120 | open LatticeForm |
| 121 | |
| 122 | variable {v : Valuation ℂ ℝ≥0} {B B' : LatticeForm L} {χ g : V → ℂ} |
| 123 | {φ ψ : ↥(torsionPoints L) → ℝ≥0} {C : ℝ≥0} {n : ℕ} {f : V → ℂ} {x y w : torsionPoints L} |
| 124 | |
| 125 | /-! ### Products, translates and periodicity of sizes -/ |
| 126 | |
| 127 | /-- The size of the product `f * g` in degree `B + B'` is the product of the size of `f` in degree |
| 128 | `B` and the size of `g` in degree `B'`. -/ |
| 129 | @[simp] |
| 130 | lemma sizeAt_mul : (B + B').sizeAt v (f * g) = B.sizeAt v f * B'.sizeAt v g := by |
| 131 | ext |
| 132 | simp [sizeAt] |
| 133 | |
| 134 | /-- The size of `f ^ n` in degree `n • B` is the `n`-th power of the size of `f` in degree `B`. -/ |
| 135 | lemma sizeAt_pow : (n • B).sizeAt v (f ^ n) = B.sizeAt v f ^ n := by |
| 136 | ext |
| 137 | simp [sizeAt] |
| 138 | |
| 139 | /-- The size of `a • g (2 ·) ^ n` in degree `(4 * n) • B` at `y` is the `n`-th power of the size |
| 140 | of `g` in degree `B` at `2 • y`, times `v a`. -/ |
| 141 | lemma sizeAt_smul_pow_comp_two (a : ℂ) (y : torsionPoints L) : |
| 142 | ((4 * n) • B).sizeAt v (a • (g ∘ ((2 : ℂ) • ·)) ^ n) y = B.sizeAt v g (2 • y) ^ n * v a := by |
| 143 | simp only [sizeAt, thetaShift_apply, Pi.pow_apply, Function.comp_apply, Pi.smul_apply, |
| 144 | smul_eq_mul, add_zero, zero_add, map_zero, neg_zero, AddSubgroupClass.coe_nsmul, |
| 145 | ofNat_smul_eq_nsmul, mul_pow, ← map_pow, ← exp_nsmul, smul_apply, map_nsmul, nsmul_eq_mul, |
| 146 | Nat.cast_mul, Nat.cast_ofNat] |
| 147 | rw [← map_mul] |
| 148 | congr 1 |
| 149 | ring_nf |
| 150 | |
| 151 | /-- The ultrametric inequality for sizes: if each `F i` has size at most `M` at `x`, then so does |
| 152 | the sum `∑ i ∈ s, F i`. -/ |
| 153 | lemma sizeAt_sum_le {ι : Type*} {s : Finset ι} {F : ι → V → ℂ} {M : ℝ≥0} |
| 154 | (h_le : ∀ i ∈ s, B.sizeAt v (F i) x ≤ M) : B.sizeAt v (∑ i ∈ s, F i) x ≤ M := by |
| 155 | rw [sizeAt, map_sum, Finset.sum_apply] |
| 156 | exact v.map_sum_le h_le |
| 157 | |
| 158 | /-- An `n`-th root of unity `ζ` in `ℂ`, with `n ≠ 0`, has valuation `v ζ = 1`. -/ |
| 159 | lemma valuation_eq_one_of_pow_eq_one {ζ : ℂ} (hn : n ≠ 0) (hζ : ζ ^ n = 1) : v ζ = 1 := by |
| 160 | simpa [hn] using congrArg v hζ |
| 161 | |
| 162 | /-- Let `B` carry an Appell–Humbert datum (`New.IsAppellHumbert`), with Riemann form `E`. At torsion |
| 163 | points `a`, `b` the number `exp (π i E(a, b))` is a root of unity, so it has valuation `1`. -/ |
| 164 | lemma _root_.New.IsAppellHumbert.valuation_exp_riemannForm (hB : IsAppellHumbert B χ) |
| 165 | (a b : torsionPoints L) : |
| 166 | v (exp (Real.pi * I * B.riemannForm a b)) = 1 := by |
| 167 | obtain ⟨a, n, hn, ha⟩ := a |
| 168 | obtain ⟨b, m, hm, hb⟩ := b |
| 169 | -- `n • a` and `m • b` lie in `L`, so the exponential is a root of unity |
| 170 | exact valuation_eq_one_of_pow_eq_one (n := 2 * n * m) (by simp [hn, hm]) |
| 171 | (hB.exp_riemannForm_pow_eq_one ha hb) |
| 172 | |
| 173 | /-- The size at `x` of the translate `B.thetaShift w f` is the size of `f` at `x + w`, for torsion |
| 174 | points `w`, `x`. -/ |
| 175 | lemma _root_.New.IsAppellHumbert.sizeAt_thetaShift (hB : IsAppellHumbert B χ) |
| 176 | (w x : torsionPoints L) : |
| 177 | B.sizeAt v (B.thetaShift w f) x = B.sizeAt v f (x + w) := by |
| 178 | simp [sizeAt, hB.thetaShift_thetaShift, hB.valuation_exp_riemannForm] |
| 179 | |
| 180 | /-- Sizes are periodic modulo `L`: a size `φ` of degree `B` takes the same value at two torsion |
| 181 | points with the same class in `V ⧸ L`. -/ |
| 182 | lemma factorsThrough_mkQ_of_mem_sizes (hφ : φ ∈ B.sizes v) : |
| 183 | FactorsThrough φ fun x : ↥(torsionPoints L) ↦ L.mkQ x := by |
| 184 | obtain @⟨χ, f, ⟨hAH, -, n, hn, hχ⟩, hf⟩ := hφ |
| 185 | intro x y h_mkQ |
| 186 | have hxy : (x - y : V) ∈ L := SModEq.sub_mem.mp h_mkQ |
| 187 | -- Translation by `x - y ∈ L` multiplies `f` by the root of unity `χ (x - y)`, of valuation 1. |
| 188 | calc |
| 189 | B.sizeAt v f x = B.sizeAt v (B.thetaShift (x - y : torsionPoints L) f) y := by |
| 190 | rw [hAH.sizeAt_thetaShift, add_sub_cancel] |
| 191 | _ = B.sizeAt v f y := by |
| 192 | simp [thetaShift_of_mem hf hxy, valuation_eq_one_of_pow_eq_one hn (hχ _ hxy), sizeAt] |
| 193 | |
| 194 | /-- Let `φ` and `ψ` be sizes of degrees `B` and `B'`. For every torsion point `w` the function |
| 195 | `x ↦ φ x * ψ (x + w)` is a size of degree `B + B'`. -/ |
| 196 | lemma mul_shift_mem_sizes (hφ : φ ∈ B.sizes v) (hψ : ψ ∈ B'.sizes v) (w : ↥(torsionPoints L)) : |
| 197 | (fun x : ↥(torsionPoints L) ↦ φ x * ψ (x + w)) ∈ (B + B').sizes v := by |
| 198 | obtain @⟨χ, f, ⟨hB, hB_pos, n, hn, hχ⟩, hf⟩ := hφ |
| 199 | obtain @⟨χ', g, ⟨hB', hB'_pos, m, hm, hχ'⟩, hg⟩ := hψ |
| 200 | obtain ⟨w, r, hr, hrw⟩ := w |
| 201 | -- The product is the size of `f` times the translate of `g` by `w`. Translation twists the |
| 202 | -- multiplier of `g` by `B'.riemannPhase l w`, a root of unity because a multiple `r • w` lies in |
| 203 | -- `L`. |
| 204 | have h_pos : IsPosRiemann (B + B') := |
| 205 | ⟨fun u hu ↦ by |
| 206 | simp only [map_add, LinearMap.add_apply] |
| 207 | exact add_pos (hB_pos.riemannForm_pos u hu) (hB'_pos.riemannForm_pos u hu)⟩ |
| 208 | have h_order : ∀ l ∈ L, (χ * fun l ↦ χ' l * B'.riemannPhase l w) l ^ (n * m * r) = 1 := by |
| 209 | intro l hl |
| 210 | simpa [mul_pow, pow_mul, pow_right_comm _ n, ← exp_nsmul, hχ l hl, hχ' l hl, mul_assoc] using |
| 211 | hB'.exp_riemannForm_pow_eq_one (nsmul_mem hl (n * m)) hrw |
| 212 | have h_ample : IsAmpleType (B + B') (χ * fun l ↦ χ' l * B'.riemannPhase l w) := |
| 213 | ⟨hB.add (.mul_riemannPhase w), h_pos, n * m * r, mul_ne_zero (mul_ne_zero hn hm) hr, h_order⟩ |
| 214 | have h_eq : (B + B').sizeAt v (f * B'.thetaShift w g) = |
| 215 | fun x : ↥(torsionPoints L) ↦ B.sizeAt v f x * B'.sizeAt v g (x + ⟨w, r, hr, hrw⟩) := by |
| 216 | funext x |
| 217 | rw [sizeAt_mul, Pi.mul_apply, hB'.sizeAt_thetaShift ⟨w, r, hr, hrw⟩ x] |
| 218 | exact h_eq.subst (IsSize.of_mem_thetaSpace h_ample (mul hf (hB'.thetaShift_mem hg w))) |
| 219 | |
| 220 | /-- If `(B, χ)` and `(B', ζ)` satisfy `New.ThetaTori.IsAmpleType` and the Riemann form of |
| 221 | `B + -B'` is positive, then `(B + -B', χ * ζ⁻¹)` satisfies `IsAmpleType`. -/ |
| 222 | lemma IsAmpleType.add_neg {ζ : V → ℂ} (h_ample : IsAmpleType B χ) (h_ample' : IsAmpleType B' ζ) |
| 223 | (h_pos : IsPosRiemann (B + -B')) : IsAmpleType (B + -B') (χ * ζ⁻¹) := by |
| 224 | obtain ⟨n, hn, hχ⟩ := h_ample.finite_order |
| 225 | obtain ⟨m, hm, hζ⟩ := h_ample'.finite_order |
| 226 | refine ⟨h_ample.add h_ample'.isAppellHumbert.neg, h_pos, n * m, mul_ne_zero hn hm, fun l hl ↦ ?_⟩ |
| 227 | simp only [Pi.mul_apply, Pi.inv_apply, mul_pow, inv_pow] |
| 228 | rw [pow_mul, hχ l hl, one_pow, one_mul, mul_comm n m, pow_mul, hζ l hl, one_pow, inv_one] |
| 229 | |
| 230 | variable [IsFullRankLattice L] |
| 231 | |
| 232 | /-! ### Finiteness and density of torsion points -/ |
| 233 | |
| 234 | /-- A function on the torsion points that depends only on the class modulo `L` takes finitely many |
| 235 | values on the points `x` with `n • x ∈ L`, for `n ≠ 0`. -/ |
| 236 | lemma finite_range_nsmul_torsion {α : Type*} {p : torsionPoints L → α} (hn : n ≠ 0) |
| 237 | (hp : p.FactorsThrough fun x : ↥(torsionPoints L) ↦ L.mkQ x) : |
| 238 | (range fun x : L.comap (n • (torsionPoints L).subtype) ↦ p x).Finite := by |
| 239 | -- The points killed by `n` modulo `L` lie in the image `M` of `n⁻¹ L` in `V ⧸ L`, a finitely |
| 240 | -- generated torsion group, hence finite; and `p` factors through `V ⧸ L`. |
| 241 | let M : Submodule ℤ (V ⧸ L) := L.map (L.mkQ ∘ₗ ((n⁻¹ : ℂ) • 1)) |
| 242 | have hM : (M : Set (V ⧸ L)).Finite := finite_of_fg_torsion M fun ⟨_, l, hl, rfl⟩ ↦ |
| 243 | ⟨⟨n, by simpa⟩, by simpa [← mk_smul, ← smul_assoc, hn]⟩ |
| 244 | -- `extend _ p (p ∘ 0)` is `p` pushed down to `V ⧸ L` (with the value `p 0` off the image) |
| 245 | refine (hM.image (extend _ p (p ∘ 0))).subset |
| 246 | (range_subset_iff.mpr fun x ↦ ⟨L.mkQ x, ⟨_, x.property, ?_⟩, hp.extend_apply ..⟩) |
| 247 | simp [← Nat.cast_smul_eq_nsmul ℂ, hn] |
| 248 | |
| 249 | /-- A full-rank lattice `L` in `V` is cocompact: some compact set meets every coset of `L`. -/ |
| 250 | lemma isCocompact_of_isFullRankLattice : L.toAddSubgroup.IsCocompact := by |
| 251 | let b := (finBasis ℤ L).ofZLatticeBasis ℝ |
| 252 | refine ⟨b.parallelepiped, b.parallelepiped.isCompact, fun x ↦ ?_⟩ |
| 253 | -- Every coset meets the fundamental domain, which lies in the compact parallelepiped. |
| 254 | obtain ⟨z, hz, -⟩ := exist_unique_vadd_mem_fundamentalDomain b x |
| 255 | exact ⟨z, ((finBasis ℤ L).ofZLatticeBasis_span ℝ).le z.property, |
| 256 | fundamentalDomain_subset_parallelepiped b hz⟩ |
| 257 | |
| 258 | /-- A set is dense if it contains lattices of arbitrarily small mesh. The mesh is given by a |
| 259 | continuous linear map `d` arbitrarily close to zero, with a left inverse `c` identifying the |
| 260 | lattice as the preimage of `L`. -/ |
| 261 | lemma dense_of_small_mesh {s : Set V} |
| 262 | (h_small : ∃ᶠ d : V →L[ℂ] V in nhds 0, ∃ c : V →L[ℂ] V, |
| 263 | (∀ y : V, c (d y) = y) ∧ ∀ y : V, c y ∈ L → y ∈ s) : Dense s := by |
| 264 | obtain ⟨K, hK, h_cover⟩ := isCocompact_of_isFullRankLattice (L := L) |
| 265 | intro z |
| 266 | refine mem_closure_iff.2 fun U hU hz ↦ ?_ |
| 267 | -- For small enough `d`, the translate `z - d K` fits inside `U`. |
| 268 | have h_mem : ∀ᶠ d : V →L[ℂ] V in nhds 0, ∀ u ∈ K, z - d u ∈ U := |
| 269 | hK.eventually_forall_mem (fun (d : V →L[ℂ] V) u ↦ z - d u) U (by |
| 270 | intro u hu |
| 271 | simpa using hU.mem_nhds hz) |
| 272 | obtain ⟨d, ⟨c, hcd, h_lattice⟩, hd⟩ := (h_small.and_eventually h_mem).exists |
| 273 | -- Write `l + c z ∈ K` for some `l ∈ L`. The corresponding point maps to `-l` under `c`. |
| 274 | obtain ⟨l, hl, hu⟩ := h_cover (c z) |
| 275 | refine ⟨z - d (l + c z), hd _ hu, h_lattice _ ?_⟩ |
| 276 | simpa [hcd] using hl |
| 277 | |
| 278 | /-- A continuous function that vanishes on lattices of arbitrarily small mesh is zero. -/ |
| 279 | lemma eq_zero_of_small_mesh (hf : Continuous f) |
| 280 | (h_small : ∃ᶠ d : V →L[ℂ] V in nhds 0, ∃ c : V →L[ℂ] V, |
| 281 | (∀ y : V, c (d y) = y) ∧ ∀ y : V, c y ∈ L → f y = 0) : |
| 282 | f = 0 := |
| 283 | Continuous.ext_on (dense_of_small_mesh (s := {y | f y = 0}) h_small) hf continuous_const |
| 284 | (fun _ hy ↦ hy) |
| 285 | |
| 286 | /-- The vectors in `V` that are torsion modulo the full-rank lattice `L` are dense. -/ |
| 287 | lemma dense_torsionPoints : Dense (torsionPoints L : Set V) := by |
| 288 | -- The torsion points contain the lattices `n⁻¹ L`, of mesh tending to zero. |
| 289 | have h_mesh : Tendsto (fun n : ℕ ↦ (n : ℝ)⁻¹ • (1 : V →L[ℂ] V)) atTop (nhds 0) := |
| 290 | tendsto_inv_atTop_nhds_zero_nat.zero_smul_const _ |
| 291 | -- For `d = n⁻¹ • 1`, the map `c = n • 1` is a left inverse. |
| 292 | refine dense_of_small_mesh (L := L) <| |
| 293 | h_mesh.frequently ((eventually_ne_atTop 0).frequently.mono fun n hn ↦ ?_) |
| 294 | refine ⟨n, fun y ↦ ?_, fun _ hy ↦ ⟨n, hn, hy⟩⟩ |
| 295 | simp [← smul_assoc, hn] |
| 296 | |
| 297 | /-- A continuous function that vanishes on the torsion points is zero. -/ |
| 298 | lemma eq_zero_of_torsionPoints (hf : Continuous f) (h_zero : ∀ x : torsionPoints L, f x = 0) : |
| 299 | f = 0 := |
| 300 | Continuous.ext_on dense_torsionPoints hf continuous_const fun x hx ↦ h_zero ⟨x, hx⟩ |
| 301 | |
| 302 | omit [IsFullRankLattice L] in |
| 303 | /-- A fixed point argument for the constant in `New.ThetaTori.LatticeForm.HasShiftBound`, for a |
| 304 | family of degrees `B i` with translations `w i`. Suppose that some constant `D₀` serves every |
| 305 | `B i` with `w i`, and that whenever a constant `D` serves every `B i` with `w i`, the constant |
| 306 | `D * C` serves every `B i + B i` with `w i`. Then `C` serves every `B i` with `w i`. -/ |
| 307 | lemma LatticeForm.HasShiftBound.of_doubling {ι : Sort*} (B : ι → LatticeForm L) |
| 308 | (w : ι → torsionPoints L) (h_nonempty : ∃ D₀ : ℝ≥0, ∀ i : ι, (B i).HasShiftBound v (w i) D₀) |
| 309 | (h_double : ∀ D : ℝ≥0, (∀ i : ι, (B i).HasShiftBound v (w i) D) → |
| 310 | ∀ i : ι, (B i + B i).HasShiftBound v (w i) (D * C)) : |
| 311 | ∀ i : ι, (B i).HasShiftBound v (w i) C := by |
| 312 | -- `P D`: the constant `D` serves every degree `B i` with its translation `w i`; such a `D` |
| 313 | -- is called admissible. |
| 314 | let P (D : ℝ≥0) : Prop := ∀ i : ι, (B i).HasShiftBound v (w i) D |
| 315 | have h_ne : Nonempty (Subtype P) := nonempty_subtype.mpr h_nonempty |
| 316 | -- The infimum `D` of all admissible constants is admissible. |
| 317 | set D : ℝ≥0 := ⨅ D' : Subtype P, D'.val |
| 318 | have hD : P D := fun i φ hφ y ↦ le_iInf_mul fun D' : Subtype P ↦ D'.property i φ hφ y |
| 319 | -- Apply `h_double` to the square `φ ^ 2` and take square roots: `√(D * C)` is admissible too. |
| 320 | have hsqrt : P (sqrt (D * C)) := by |
| 321 | intro i φ hφ |
| 322 | have h_sq_mem : (fun x ↦ φ x * φ (x + 0)) ∈ (B i + B i).sizes v := mul_shift_mem_sizes hφ hφ 0 |
| 323 | simpa [← sq, ← le_sqrt_iff_sq_le, sqrt_mul] using h_double D hD i _ h_sq_mem |
| 324 | -- Hence `D ^ 2 ≤ D * C`, that is `D ≤ C`. |
| 325 | have hsq : D ^ 2 ≤ D * C := |
| 326 | le_sqrt_iff_sq_le.mp (ciInf_le' Subtype.val (⟨_, hsqrt⟩ : Subtype P)) |
| 327 | have hDC : D ≤ C := by nlinarith |
| 328 | intro i φ hφ y |
| 329 | calc φ y ^ 2 ≤ D * ⨆ x, φ x * φ (x + w i) := hD i φ hφ y |
| 330 | _ ≤ C * ⨆ x, φ x * φ (x + w i) := by gcongr |
| 331 | |
| 332 | /-- Let `(B, χ)` be an Appell–Humbert datum with positive Riemann form on a full-rank lattice `L`, |
| 333 | and let `g` be a theta function of type `(B, χ)`, with `χ ^ n = 1` on `L` for `n ≠ 0`. Then |
| 334 | `g (2 ·) ^ n` is a theta function of the same type `((4 * n) • B, χ ^ (4 * n))` as `g ^ (4 * n)`, |
| 335 | so by irreducibility `g ^ (4 * n)` is a combination of the translates of `g (2 ·) ^ n` by the dual |
| 336 | lattice of `(4 * n) • B`. -/ |
| 337 | lemma _root_.New.IsAppellHumbert.pow_four_mul_mem_span_thetaShift (hB : IsAppellHumbert B χ) |
| 338 | (h_pos : IsPosRiemann B) (hn : n ≠ 0) (hχn : ∀ l ∈ L, χ l ^ n = 1) |
| 339 | (hg : g ∈ B.thetaSpace χ) : |
| 340 | g ^ (4 * n) ∈ span ℂ ((fun a ↦ ((4 * n) • B).thetaShift a ((g ∘ ((2 : ℂ) • ·)) ^ n)) '' |
| 341 | ((4 * n) • B).dualLattice) := by |
| 342 | have hB' : IsAppellHumbert ((4 * n) • B) (χ ^ (4 * n)) := hB.nsmul _ |
| 343 | have h_pos' : IsPosRiemann ((4 * n) • B) := h_pos.nsmul (by lia) |
| 344 | obtain rfl | hg0 := eq_or_ne g 0 |
| 345 | · simp [hn] |
| 346 | have hg₂ : (g ∘ ((2 : ℂ) • ·)) ^ n ∈ ((4 * n) • B).thetaSpace (χ ^ (4 * n)) := by |
| 347 | obtain ⟨h_diff, h_per⟩ := hg |
| 348 | refine ⟨by fun_prop, fun l hl z ↦ ?_⟩ |
| 349 | -- both multipliers `χ (2 l) ^ n` and `χ l ^ (4 * n)` are `1`; the exponents agree |
| 350 | have h1 : χ (2 • l) ^ n = 1 := hχn _ (nsmul_mem hl 2) |
| 351 | have h2 : χ l ^ (4 * n) = 1 := by rw [mul_comm 4 n, pow_mul, hχn l hl, one_pow] |
| 352 | have h_per2 := h_per (2 • l) (nsmul_mem hl 2) ((2 : ℂ) • z) |
| 353 | simp only [Pi.pow_apply, Function.comp_apply, smul_add, ofNat_smul_eq_nsmul] at h_per2 ⊢ |
| 354 | rw [h_per2, mul_pow, mul_pow, h1, one_mul, h2, one_mul, ← exp_nsmul] |
| 355 | simp only [smul_apply, map_nsmul, nsmul_eq_mul] |
| 356 | congr 2 |
| 357 | push_cast |
| 358 | ring |
| 359 | have hg₂0 : (g ∘ ((2 : ℂ) • ·)) ^ n ≠ 0 := |
| 360 | pow_ne_zero n ((MulAction.surjective₀ (two_ne_zero' ℂ)).injective_comp_right.ne hg0) |
| 361 | -- irreducibility: the translates of one nonzero theta function by the dual lattice span all |
| 362 | -- theta functions of its type, in particular `g ^ (4 * n)` |
| 363 | exact hB'.thetaSpace_le_of_thetaShift_mem hg₂ hg₂0 _ (image_subset_iff.mp subset_span) (pow hg _) |
| 364 | |
| 365 | omit [IsFullRankLattice L] in |
| 366 | /-- For a `ℤ`-submodule `H` of `torsionPoints L` on which `B.sizeAt v g` is bounded above, if |
| 367 | `((4 * n) • B, χ)` is an Appell–Humbert datum and `g ^ (4 * n)` equals |
| 368 | `∑ i : t, c i • ((4 * n) • B).thetaShift i ((g ∘ ((2 : ℂ) • ·)) ^ n)` with `t` contained in `H`, |
| 369 | then `(⨆ z : H, B.sizeAt v g z) ^ (4 * n) ≤ (⨆ z : H, B.sizeAt v g z) ^ n * iSup (v ∘ c)`. -/ |
| 370 | private lemma iSup_sizeAt_pow_four_mul_le |
| 371 | {H : Submodule ℤ (torsionPoints L)} {t : Finset V} {c : t → ℂ} |
| 372 | (hB : IsAppellHumbert ((4 * n) • B) χ) |
| 373 | (h_bdd : BddAbove (range fun z : H ↦ B.sizeAt v g z)) |
| 374 | (ht : (t : Set V) ⊆ H.map (torsionPoints L).subtype) |
| 375 | (hc : ∑ i : t, c i • ((4 * n) • B).thetaShift i ((g ∘ ((2 : ℂ) • ·)) ^ n) = g ^ (4 * n)) : |
| 376 | (⨆ z : H, B.sizeAt v g z) ^ (4 * n) ≤ (⨆ z : H, B.sizeAt v g z) ^ n * iSup (v ∘ c) := by |
| 377 | set g₂ : V → ℂ := (g ∘ ((2 : ℂ) • ·)) ^ n |
| 378 | set M : ℝ≥0 := ⨆ z : H, B.sizeAt v g z |
| 379 | -- By the ultrametric inequality, it suffices to bound each term of the combination. |
| 380 | have h_size_pow_le (z : H) : ((4 * n) • B).sizeAt v (g ^ (4 * n)) z ≤ M ^ n * iSup (v ∘ c) := by |
| 381 | rw [← hc] |
| 382 | refine sizeAt_sum_le fun i _ ↦ ?_ |
| 383 | obtain ⟨a, ha, hai⟩ := ht i.property |
| 384 | rw [← map_smul, ← hai] |
| 385 | calc _ = ((4 * n) • B).sizeAt v (c i • g₂) (z + a) := hB.sizeAt_thetaShift a z |
| 386 | _ = B.sizeAt v g (2 • (z + a)) ^ n * v (c i) := |
| 387 | sizeAt_smul_pow_comp_two (c i) (z + a : torsionPoints L) |
| 388 | _ ≤ M ^ n * iSup (v ∘ c) := by |
| 389 | gcongr |
| 390 | exacts [le_ciSup h_bdd ⟨2 • (z + a), nsmul_mem (add_mem z.property ha) 2⟩, |
| 391 | Finite.le_ciSup (v ∘ c) i] |
| 392 | rw [iSup_pow] |
| 393 | exact ciSup_le' fun z ↦ (sizeAt_pow.ge (z : torsionPoints L)).trans (h_size_pow_le z) |
| 394 | |
| 395 | /-- For nonnegative real numbers `M` and `C` and natural numbers `n < k`, if `M ^ k ≤ M ^ n * C`, |
| 396 | then `M ≤ 1 ⊔ C`. -/ |
| 397 | private lemma le_one_sup_of_pow_le_pow_mul {M : ℝ≥0} {k : ℕ} (hk : n < k) |
| 398 | (h : M ^ k ≤ M ^ n * C) : M ≤ 1 ⊔ C := by |
| 399 | obtain hM | hM := le_or_gt M 1 |
| 400 | · exact le_sup_of_le_left hM |
| 401 | · refine le_sup_of_le_right (le_of_mul_le_mul_left ?_ (pow_pos hM.pos n)) |
| 402 | calc M ^ n * M = M ^ (n + 1) := (pow_succ M n).symm |
| 403 | _ ≤ M ^ k := pow_le_pow_right₀ hM.le hk |
| 404 | _ ≤ M ^ n * C := h |
| 405 | |
| 406 | /-- Let `L` be a full lattice in a finite-dimensional complex space `V`, and let `v` be an |
| 407 | ℝ≥0-valued valuation on ℂ. A size φ of degree `B` is the function `sizeAt` of `f` on the torsion |
| 408 | points of `V/L`, where `f` is a theta function of type (`B`, χ) for some χ with `IsAmpleType B χ`. |
| 409 | Every such φ is bounded above. -/ |
| 410 | lemma bddAbove_of_mem_sizes (hφ : φ ∈ B.sizes v) : BddAbove (range φ) := by |
| 411 | -- Let `φ` be the size of `g`, with multiplier of order dividing `n`. Then `g ^ (4 * n)` is a |
| 412 | -- combination of translates of `g (2 ·) ^ n`, with coefficients `c i`. Write `|c i|` for |
| 413 | -- `v (c i)`. |
| 414 | -- The maximum `M` of `φ` on a group `H`, finite modulo `L`, holding the translations and a given |
| 415 | -- point then has `M ^ (4 * n) ≤ M ^ n * max |c i|`, so `M ≤ max 1 (max |c i|)`. |
| 416 | obtain @⟨χ, g, h_ample, hg⟩ := hφ |
| 417 | obtain ⟨n, hn, hχn⟩ := h_ample.finite_order |
| 418 | have hB : IsAppellHumbert ((4 * n) • B) (χ ^ (4 * n)) := h_ample.isAppellHumbert.nsmul _ |
| 419 | have h_pos : IsPosRiemann ((4 * n) • B) := h_ample.isPosRiemann.nsmul (by lia) |
| 420 | obtain ⟨N, hN, hNL⟩ := hB.exists_nsmul_mem_of_mem_dualLattice |
| 421 | obtain ⟨t, ht, c, hc⟩ := |
| 422 | (mem_span_image_iff_exists_fun ℂ).mp |
| 423 | (h_ample.isAppellHumbert.pow_four_mul_mem_span_thetaShift h_ample.isPosRiemann hn hχn hg) |
| 424 | refine ⟨1 ⊔ iSup (v ∘ c), forall_mem_range.mpr fun ⟨x, m, hm, hx⟩ ↦ ?_⟩ |
| 425 | -- Let `H` be the points killed by `N * m` modulo `L`; `φ` is periodic, so it takes finitely many |
| 426 | -- values on `H`. |
| 427 | let H : Submodule ℤ (torsionPoints L) := L.comap ((N * m) • (torsionPoints L).subtype) |
| 428 | have h_fin : (range fun z : H ↦ B.sizeAt v g z).Finite := |
| 429 | finite_range_nsmul_torsion (mul_ne_zero hN hm) (factorsThrough_mkQ_of_mem_sizes ⟨h_ample, hg⟩) |
| 430 | -- The translations `i ∈ t` lie in the dual lattice, so they are torsion points and lie in `H`. |
| 431 | have ht_H : (t : Set V) ⊆ H.map (torsionPoints L).subtype := fun i hi ↦ by |
| 432 | refine ⟨⟨i, N, hN, hNL i (ht hi)⟩, ?_, rfl⟩ |
| 433 | change (N * m) • i ∈ L |
| 434 | rw [mul_nsmul] |
| 435 | exact nsmul_mem (hNL i (ht hi)) m |
| 436 | have hx_H : (⟨x, m, hm, hx⟩ : torsionPoints L) ∈ H := by |
| 437 | change (N * m) • x ∈ L |
| 438 | rw [mul_comm N m, mul_nsmul] |
| 439 | exact nsmul_mem hx N |
| 440 | exact (le_ciSup h_fin.bddAbove ⟨⟨x, m, hm, hx⟩, hx_H⟩).trans <| |
| 441 | le_one_sup_of_pow_le_pow_mul (by lia) (iSup_sizeAt_pow_four_mul_le hB h_fin.bddAbove ht_H hc) |
| 442 | |
| 443 | /-- Each value `φ x` of a size `φ` of degree `B` (an element of `LatticeForm.sizes`) is at most |
| 444 | the supremum of `φ` over the torsion points. -/ |
| 445 | lemma le_iSup_of_mem_sizes (hφ : φ ∈ B.sizes v) (x : ↥(torsionPoints L)) : φ x ≤ iSup φ := |
| 446 | le_ciSup (bddAbove_of_mem_sizes hφ) x |
| 447 | |
| 448 | /-- Let `L` be a full-rank lattice in `V`, `v` a valuation on ℂ, `x`, `y`, `w` torsion points, and |
| 449 | φ, ψ sizes of degrees `B`, `B'` (`sizes`: functions x ↦ v(exp(−B(x, x)/2)·f(x)) on the torsion |
| 450 | points, for f a twisted theta function of degree B). Suppose every size ρ of degree B + B' satisfies |
| 451 | (sup ρ)² ≤ sup_z ρ(z)·ρ(z + (y − x − w)), which is `HasShiftBound` for y − x − w with C = 1. Then |
| 452 | φ(x)ψ(y) ≤ sup_z φ(z)ψ(z + w). -/ |
| 453 | lemma mul_le_iSup_of_hasShiftBound (hφ : φ ∈ B.sizes v) (hψ : ψ ∈ B'.sizes v) |
| 454 | (h_shift : (B + B').HasShiftBound v (y - x - w) 1) : |
| 455 | φ x * ψ y ≤ ⨆ z : ↥(torsionPoints L), φ z * ψ (z + w) := by |
| 456 | -- With `d = y - x - w`, let `ρ k` be the sup of `φ · ψ (· + w + k d)`. Then `ρ n = ρ 0` for |
| 457 | -- some `n ≠ 0`, and `ρ (k + 1) ^ 2 ≤ ρ k * ρ (k + 2)`. If the claim failed then `ρ 0 < ρ 1`, and |
| 458 | -- by log-convexity `ρ` would be strictly increasing, against `ρ n = ρ 0`. |
| 459 | set d : torsionPoints L := y - x - w with hd |
| 460 | let ρ (k : ℕ) : ℝ≥0 := ⨆ z, φ z * ψ (z + (w + k • d)) |
| 461 | have h_le (k : ℕ) (z : torsionPoints L) : φ z * ψ (z + (w + k • d)) ≤ ρ k := |
| 462 | le_iSup_of_mem_sizes (mul_shift_mem_sizes hφ hψ _) z |
| 463 | obtain ⟨n, hn, hnd⟩ := d.property |
| 464 | -- `n • d` lies in the lattice, and sizes are periodic |
| 465 | have h_per : ρ 0 = ρ n := |
| 466 | iSup_congr fun z ↦ |
| 467 | congrArg _ (factorsThrough_mkQ_of_mem_sizes hψ (by simpa [← mk_smul] using hnd)) |
| 468 | -- log-convexity: the hypothesis for the size `F = φ · ψ (· + w + (k + 1) d)`, with the four |
| 469 | -- factors of `F z * F (z + d)` regrouped |
| 470 | have h_convex (k : ℕ) : ρ (k + 1) * ρ (k + 1) ≤ ρ k * ρ (k + 1 + 1) := by |
| 471 | let F (z : torsionPoints L) : ℝ≥0 := φ z * ψ (z + (w + (k + 1) • d)) |
| 472 | calc ρ (k + 1) * ρ (k + 1) = ⨆ z, F z ^ 2 := by rw [← sq, iSup_pow] |
| 473 | _ ≤ 1 * ⨆ z, F z * F (z + d) := ciSup_le' (h_shift _ (mul_shift_mem_sizes hφ hψ _)) |
| 474 | _ = ⨆ z, φ (z + d) * ψ (z + d + (w + k • d)) * (φ z * ψ (z + (w + (k + 1 + 1) • d))) := by |
| 475 | rw [one_mul] |
| 476 | refine iSup_congr fun z ↦ ?_ |
| 477 | dsimp only [F] |
| 478 | have h1 : z + d + (w + k • d) = z + (w + (k + 1) • d) := by rw [succ_nsmul]; abel |
| 479 | have h2 : z + (w + (k + 1 + 1) • d) = z + d + (w + (k + 1) • d) := by rw [succ_nsmul]; abel |
| 480 | rw [h1, h2] |
| 481 | ring |
| 482 | _ ≤ ρ k * ρ (k + 1 + 1) := ciSup_le' fun z ↦ mul_le_mul' (h_le k (z + d)) (h_le _ z) |
| 483 | by_contra! h_lt |
| 484 | have h_step (k : ℕ) : ρ k < ρ (k + 1) := by |
| 485 | induction k with |
| 486 | | zero => |
| 487 | exact lt_of_lt_of_le (by simpa [ρ, hd] using h_lt) (h_le _ x) |
| 488 | -- `ρ k * ρ (k + 1) < ρ (k + 1) ^ 2 ≤ ρ k * ρ (k + 2)` |
| 489 | | succ k ih => nlinarith [h_convex k, (zero_le : 0 ≤ ρ k)] |
| 490 | exact (strictMono_nat_of_lt_succ h_step hn.pos).ne h_per |
| 491 | |
| 492 | omit [IsFullRankLattice L] in |
| 493 | /-- If `B` and `χ` satisfy `IsAmpleType`, then so do `n • B` and `χ ^ n` for `n ≠ 0`. -/ |
| 494 | lemma IsAmpleType.nsmul (h_ample : IsAmpleType B χ) (hn : n ≠ 0) : IsAmpleType (n • B) (χ ^ n) := by |
| 495 | obtain ⟨m, hm, hχm⟩ := h_ample.finite_order |
| 496 | exact ⟨h_ample.isAppellHumbert.nsmul n, h_ample.isPosRiemann.nsmul hn, m, hm, |
| 497 | fun l hl ↦ by rw [Pi.pow_apply, pow_right_comm, hχm l hl, one_pow]⟩ |
| 498 | |
| 499 | /-- The sup norm `B.thetaNorm v f` of a nonzero theta function `f` of type `(B, χ)` is positive. -/ |
| 500 | lemma IsAmpleType.thetaNorm_pos (h_ample : IsAmpleType B χ) (hf : f ∈ B.thetaSpace χ) |
| 501 | (h_ne : f ≠ 0) : 0 < B.thetaNorm v f := by |
| 502 | -- `f` is nonzero at some torsion point, and there its size is positive. |
| 503 | have h_not_zero : ¬∀ x : torsionPoints L, f x = 0 := |
| 504 | mt (eq_zero_of_torsionPoints hf.1.continuous) h_ne |
| 505 | simpa [sizeAt, thetaShift, lt_ciSup_iff (bddAbove_of_mem_sizes ⟨h_ample, hf⟩), v.pos_iff] |
| 506 | using h_not_zero |
| 507 | |
| 508 | /-- Given an Appell–Humbert datum `(B, χ)` with positive Riemann form on a full-rank lattice `L`, |
| 509 | theta functions `f` of Appell–Humbert type `(B', ζ)` and `g` of type `(B + -B', χ * ζ⁻¹)`, and a |
| 510 | vector `t` in `V` torsion modulo `L`, there is a vector `u` in `V` torsion modulo `L` such that |
| 511 | the product of translates `B'.thetaShift (u - t) f * (B + -B').thetaShift u g` is a theta |
| 512 | function of type `(B, χ)`. -/ |
| 513 | lemma exists_torsion_thetaShift_mul_mem {ζ : V → ℂ} (hB : IsAppellHumbert B χ) |
| 514 | (h_pos : IsPosRiemann B) (hζ : IsAppellHumbert B' ζ) (hf : f ∈ B'.thetaSpace ζ) |
| 515 | (hg : g ∈ (B + -B').thetaSpace (χ * ζ⁻¹)) (t : torsionPoints L) : |
| 516 | ∃ u : torsionPoints L, |
| 517 | B'.thetaShift (u - t) f * (B + -B').thetaShift u g ∈ B.thetaSpace χ := by |
| 518 | -- With `E`, `E'` the Riemann forms of `B`, `B'`, solve `E(u, ·) = E'(t, ·)`. If `r • t ∈ L`, |
| 519 | -- then `r • u` lies in the dual lattice of `B`, so `u` is torsion. |
| 520 | obtain ⟨N, hN, hNL⟩ := hB.exists_nsmul_mem_of_mem_dualLattice (hp := h_pos) |
| 521 | let u₀ : V := (B.riemannForm.toDual h_pos.nondegenerate).symm (B'.riemannForm t) |
| 522 | have hu₀ (y : V) : B.riemannForm u₀ y = B'.riemannForm t y := by simp [u₀] |
| 523 | obtain ⟨r, hr, hrt⟩ := t.property |
| 524 | have h_dual : r • u₀ ∈ B.dualLattice := fun l hl ↦ by |
| 525 | simpa [hu₀] using hζ.le_dualLattice hrt l hl |
| 526 | let u : torsionPoints L := ⟨u₀, N * r, mul_ne_zero hN hr, |
| 527 | by simpa [mul_smul] using hNL _ h_dual⟩ |
| 528 | refine ⟨u, ?_⟩ |
| 529 | -- The exponents `E'(l, u - t)` and `E(l, u) - E'(l, u)` that twist the multipliers cancel. |
| 530 | suffices B'.thetaShift (u - t) f * (B + -B').thetaShift u g ∈ (B' + (B + -B')).thetaSpace χ by |
| 531 | rwa [show B' + (B + -B') = B by rw [add_left_comm, add_neg_cancel, add_zero]] at this |
| 532 | refine (mul (hζ.thetaShift_mem hf (u - t)) ((hB.add hζ.neg).thetaShift_mem hg u)).imp_right |
| 533 | fun h_per l hl z ↦ ?_ |
| 534 | rw [h_per l hl z] |
| 535 | refine congrArg (· * _) (congrArg (· * _) ?_) |
| 536 | have h_eq : B'.riemannForm l (↑u - ↑t) + (B + -B').riemannForm l ↑u = 0 := by |
| 537 | simp only [map_add, map_neg, LinearMap.add_apply, LinearMap.neg_apply, map_sub] |
| 538 | rw [riemannForm_swap (B := B) (↑u) l, hu₀ l, ← riemannForm_swap (B := B') (↑t) l] |
| 539 | ring |
| 540 | -- The opposite arguments give inverse phases, and the two factors of ζ cancel. |
| 541 | simp only [Pi.mul_apply, Pi.inv_apply, RealComplexForm.riemannPhase, |
| 542 | eq_neg_of_add_eq_zero_left h_eq, AddChar.map_neg_eq_inv, Circle.coe_inv] |
| 543 | field_simp [hζ.ne_zero hl] |
| 544 | |
| 545 | variable (x y) in |
| 546 | /-- Let `v : Valuation ℂ ℝ≥0` be a valuation on `ℂ`, let `(B, χ)`, `(B', ζ)`, and |
| 547 | `(B + -B', χ * ζ⁻¹)` satisfy `IsAmpleType`, and let `f ∈ B'.thetaSpace ζ` and |
| 548 | `g ∈ (B + -B').thetaSpace (χ * ζ⁻¹)`. If every theta function of type `(B, χ)` satisfies the bound |
| 549 | of `LatticeForm.HasShiftBound` with respect to `v` for `w` with constant `C`, then for all torsion |
| 550 | points `x` and `y`, the sizes `φ = B'.sizeAt v f` and `σ = (B + -B').sizeAt v g` satisfy |
| 551 | `φ x ^ 2 * σ y ^ 2 ≤ C * ((⨆ z, φ z * φ (z + w)) * iSup σ ^ 2)`. -/ |
| 552 | private lemma sizeAt_sq_mul_sizeAt_sq_le {ζ : V → ℂ} (h_ample : IsAmpleType B χ) |
| 553 | (h_ample_B' : IsAmpleType B' ζ) (h_ample' : IsAmpleType (B + -B') (χ * ζ⁻¹)) |
| 554 | (hf : f ∈ B'.thetaSpace ζ) (hg : g ∈ (B + -B').thetaSpace (χ * ζ⁻¹)) |
| 555 | (h_shift : ∀ h ∈ B.thetaSpace χ, ∀ z₀ : ↥(torsionPoints L), |
| 556 | B.sizeAt v h z₀ ^ 2 ≤ |
| 557 | C * ⨆ z : ↥(torsionPoints L), B.sizeAt v h z * B.sizeAt v h (z + w)) : |
| 558 | B'.sizeAt v f x ^ 2 * (B + -B').sizeAt v g y ^ 2 ≤ |
| 559 | C * ((⨆ z, B'.sizeAt v f z * B'.sizeAt v f (z + w)) * |
| 560 | iSup ((B + -B').sizeAt v g) ^ 2) := by |
| 561 | have hφ : B'.sizeAt v f ∈ B'.sizes v := IsSize.of_mem_thetaSpace h_ample_B' hf |
| 562 | have hσ : (B + -B').sizeAt v g ∈ (B + -B').sizes v := ⟨h_ample', hg⟩ |
| 563 | set φ : torsionPoints L → ℝ≥0 := B'.sizeAt v f |
| 564 | set σ : torsionPoints L → ℝ≥0 := (B + -B').sizeAt v g |
| 565 | -- Choose translates of `f` and `g` whose product has type `(B, χ)`, apply `h_shift`, and bound |
| 566 | -- the two factors of `σ` on the right by `iSup σ`. |
| 567 | let t : torsionPoints L := y - x |
| 568 | obtain ⟨u, h_mem⟩ := exists_torsion_thetaShift_mul_mem h_ample.isAppellHumbert |
| 569 | h_ample.isPosRiemann h_ample_B'.isAppellHumbert hf hg t |
| 570 | have h_size (z : torsionPoints L) : |
| 571 | B.sizeAt v (B'.thetaShift (u - t) f * (B + -B').thetaShift u g) z = |
| 572 | φ (z + (u - t)) * σ (z + u) := by |
| 573 | rw [show B.sizeAt v = (B' + (B + -B')).sizeAt v by |
| 574 | rw [← sub_eq_add_neg, add_sub_cancel], sizeAt_mul, Pi.mul_apply] |
| 575 | exact congrArg₂ (· * ·) (h_ample_B'.sizeAt_thetaShift (u - t) z) |
| 576 | (h_ample'.sizeAt_thetaShift u z) |
| 577 | calc |
| 578 | φ x ^ 2 * σ y ^ 2 = (φ (y - u + (u - t)) * σ (y - u + u)) ^ 2 := by |
| 579 | dsimp only [t] |
| 580 | rw [sub_add_sub_cancel, sub_add_cancel, sub_sub_cancel, mul_pow] |
| 581 | _ ≤ C * ⨆ z, φ (z + (u - t)) * σ (z + u) * (φ (z + w + (u - t)) * σ (z + w + u)) := by |
| 582 | simp only [← h_size] |
| 583 | exact h_shift _ h_mem _ |
| 584 | _ ≤ C * ((⨆ z, φ z * φ (z + w)) * iSup σ ^ 2) := by |
| 585 | gcongr |
| 586 | refine ciSup_le' fun z ↦ ?_ |
| 587 | rw [mul_mul_mul_comm, add_right_comm z w, sq] |
| 588 | gcongr |
| 589 | exacts [le_iSup_of_mem_sizes (mul_shift_mem_sizes hφ hφ w) _, le_iSup_of_mem_sizes hσ _, |
| 590 | le_iSup_of_mem_sizes hσ _] |
| 591 | |
| 592 | /-- Let L be a lattice of full rank in the finite-dimensional complex space V, let (L, B, χ) satisfy |
| 593 | `New.ThetaTori.IsAmpleType`, and let the Riemann form of B − B' be positive. If the bound of |
| 594 | `New.ThetaTori.LatticeForm.HasShiftBound` for w with constant C holds for the sizes of all theta |
| 595 | functions of type (B, χ), then it holds in degree B'. -/ |
| 596 | lemma LatticeForm.HasShiftBound.of_isPosRiemann_sub (h_ample : IsAmpleType B χ) |
| 597 | (h_pos : IsPosRiemann (B + -B')) |
| 598 | (h_shift : ∀ f ∈ B.thetaSpace χ, ∀ y : ↥(torsionPoints L), |
| 599 | B.sizeAt v f y ^ 2 ≤ |
| 600 | C * ⨆ x : ↥(torsionPoints L), B.sizeAt v f x * B.sizeAt v f (x + w)) : |
| 601 | B'.HasShiftBound v w C := by |
| 602 | -- Let `φ` be the size of `f`, of degree `B'` and multiplier `ζ`, and `σ` the size of a nonzero |
| 603 | -- `g` of degree `B - B'` and multiplier `χ / ζ`. Apply `sizeAt_sq_mul_sizeAt_sq_le`, take the |
| 604 | -- sup over `s` on the left, and cancel `iSup σ ^ 2 > 0`. |
| 605 | intro φ₀ hφ₀ x |
| 606 | obtain @⟨ζ, f, h_ample_B', hf⟩ := hφ₀ |
| 607 | have h_ample' : IsAmpleType (B + -B') (χ * ζ⁻¹) := h_ample.add_neg h_ample_B' h_pos |
| 608 | obtain ⟨g, hg, hg0⟩ := h_ample'.exists_mem_thetaSpace_ne_zero |
| 609 | have hσ_pos : 0 < iSup ((B + -B').sizeAt v g) := h_ample'.thetaNorm_pos hg hg0 |
| 610 | set φ : torsionPoints L → ℝ≥0 := B'.sizeAt v f |
| 611 | set σ : torsionPoints L → ℝ≥0 := (B + -B').sizeAt v g |
| 612 | set S : ℝ≥0 := ⨆ z, φ z * φ (z + w) |
| 613 | refine le_of_mul_le_mul_right ?_ (pow_pos hσ_pos 2) |
| 614 | calc φ x ^ 2 * iSup σ ^ 2 = φ x ^ 2 * ⨆ s, σ s ^ 2 := by rw [iSup_pow] |
| 615 | _ ≤ C * (S * iSup σ ^ 2) := |
| 616 | mul_iSup_le fun s ↦ sizeAt_sq_mul_sizeAt_sq_le x s h_ample h_ample_B' h_ample' hf hg h_shift |
| 617 | _ = C * S * iSup σ ^ 2 := (mul_assoc C S _).symm |
| 618 | |
| 619 | omit [IsFullRankLattice L] in |
| 620 | /-- Let (L, B, χ) satisfy `New.ThetaTori.IsAmpleType`. For every form A and all large enough m, |
| 621 | m ≠ 0 and the Riemann form of m • B − A is positive. -/ |
| 622 | lemma IsAmpleType.eventually_isPosRiemann_smul_sub (h_ample : IsAmpleType B χ) (A : LatticeForm L) : |
| 623 | ∀ᶠ m : ℕ in atTop, m ≠ 0 ∧ IsPosRiemann (m • B + -A) := by |
| 624 | -- For large `m` the form `B - m⁻¹ A` is positive; multiply it by `m`. |
| 625 | have h_tend : Tendsto (fun m : ℕ ↦ (m : ℝ)⁻¹ • A) atTop (nhds 0) := |
| 626 | tendsto_inv_atTop_nhds_zero_nat.zero_smul_const A |
| 627 | have h_pos : ∀ᶠ m : ℕ in atTop, IsPosRiemann (B + -((m : ℝ)⁻¹ • A)) := |
| 628 | h_tend.eventually h_ample.isPosRiemann.eventually_add_neg |
| 629 | filter_upwards [h_pos, eventually_ne_atTop 0] with m hm hm0 |
| 630 | refine ⟨hm0, ?_⟩ |
| 631 | have h_eq : m • (B + -((m : ℝ)⁻¹ • A)) = m • B + -A := by |
| 632 | rw [smul_add, smul_neg, ← Nat.cast_smul_eq_nsmul ℝ m ((m : ℝ)⁻¹ • A), smul_smul, |
| 633 | mul_inv_cancel₀ (Nat.cast_ne_zero.mpr hm0), one_smul] |
| 634 | rw [← h_eq] |
| 635 | exact hm.nsmul hm0 |
| 636 | |
| 637 | end New.ThetaTori |
| 638 | |
| 639 | end |