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.GroupWithZero.Torsion |
| 4 | import Mathlib.Analysis.Fourier.FiniteAbelian.PontryaginDuality |
| 5 | import Mathlib.Analysis.LocallyConvex.AbsConvexOpen |
| 6 | import Mathlib.LinearAlgebra.FreeModule.IdealQuotient |
| 7 | import Mathlib.RingTheory.Etale.Weakly |
| 8 | import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation |
| 9 | import Mathlib.RingTheory.PicardGroup |
| 10 | import Mathlib.RingTheory.TotallySplit |
| 11 | import Mathlib.RingTheory.Valuation.Integral |
| 12 | import TauCeti.Algebra.Ring.SubOnePow |
| 13 | public import Lib.Shimura.GoodReduction.GaussSums |
| 14 | public import Lib.Shimura.ThetaModuli.PELThetaTori |
| 15 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 16 | import Lib.General.Topology |
| 17 | import Lib.PadicComparison.Descent.TestCategory |
| 18 | |
| 19 | /-! |
| 20 | # Good reduction of theta tori from shift bounds on kernels of multiplications |
| 21 | |
| 22 | The file gives a criterion for the main condition of good reduction of a torus `V / L` with |
| 23 | multiplications `New.ThetaTori.IsHermitianAction`. The condition |
| 24 | (`New.ThetaTori.HasMultiplicativeNorm`) is that the sup norm of sizes of theta functions is |
| 25 | multiplicative at the valuation `v`. The tool is a shift bound: `A.HasShiftBound v w C` (`w` has |
| 26 | the constant `C` in degree `A`) says `φ y ^ 2 ≤ C * ⨆ x, φ x * φ (x + w)` for all sizes `φ` of theta |
| 27 | functions of degree `A` and all torsion points `y`. Constants are obtained on the kernels of |
| 28 | multiplications `c` and descend along `c`, which gives multiplicativity. |
| 29 | |
| 30 | ## Main definitions and results |
| 31 | |
| 32 | * `New.ThetaTori.IsHermitianAction.hasShiftBound_one_of_ker`: under arithmetic conditions on `c`, |
| 33 | its kernel has the constant `1`. |
| 34 | * `New.ThetaTori.IsHermitianAction.hasShiftBound_of_torsionAction`, |
| 35 | `New.ThetaTori.IsHermitianAction.eventually_hasShiftBound`: a constant descends along `c`; some |
| 36 | constant exists. |
| 37 | * `New.ThetaTori.IsHermitianAction.hasMultiplicativeNorm_of_frequently_hasShiftBound`: if such `c` |
| 38 | have arbitrarily small inverses, `New.ThetaTori.HasMultiplicativeNorm` holds. |
| 39 | * `New.ThetaTori.hasMultiplicativeNorm_of_expanding`: the multiplicative norm from arithmetic |
| 40 | conditions on `R`, `B` and `p`. |
| 41 | * `New.ThetaTori.ThetaTorus.hasGoodReduction_and_val_card_eq_one`: let `v` be a valuation on `ℂ` |
| 42 | whose valuation ring receives `𝓞 E` compatibly with `Φ v₀`, over a prime that is good for `D`. |
| 43 | Then a theta torus has good reduction for `v`, and the order of `D.dualTorsion` is a unit. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.ThetaTori.IsHermitianAction.multiplier`: The canonical multiplier x ↦ exp(πi E(βx, x)) of the |
| 47 | hermitian data, where E is the Riemann form of B. |
| 48 | * `New.ThetaTori.HasGoodReduction`: a polarisation whose dual lattice is mapped into the lattice by |
| 49 | a `v`-unit, a level `r > 1` that is a `v`-unit, and a multiplicative sup norm of theta functions |
| 50 | on the torsion points. |
| 51 | |
| 52 | ## Relation to the literature |
| 53 | |
| 54 | Known result: Good reduction of unitary PEL abelian varieties, in analytic form without toric |
| 55 | degeneration. Suppose a torus with polarisation prime to p has non-unit multipliers that expand |
| 56 | arbitrarily, divide a power of p and are prime to their conjugates, and whose conjugates have unit |
| 57 | determinant on the Lie algebra. Then the supremum of a valuation of theta values at torsion points |
| 58 | is multiplicative. Source: K.-W. Lan, Elevators for degenerations of PEL structures, Math. Res. |
| 59 | Lett. 18 (2011); R. Kottwitz, Points on some Shimura varieties over finite fields, J. Amer. Math. |
| 60 | Soc. 5 (1992), §5 (division algebra case); for the CM case B. Conrad, Semistable reduction for |
| 61 | abelian varieties (notes), Prop. 6.3, after Serre and Tate, Ann. of Math. 88 (1968). |
| 62 | -/ |
| 63 | |
| 64 | @[expose] public section |
| 65 | |
| 66 | /-! |
| 67 | ## Shift bounds on kernels of multiplications and the multiplicative norm |
| 68 | |
| 69 | Conventions: `h.normShift x` is translation of functions by `x` with the factor of automorphy of |
| 70 | `B`, divided by the multiplier `h.multiplier x`; `h.MulKernel c` is `c⁻¹ L / L`. The size |
| 71 | `New.ThetaTori.LatticeForm.sizeAt` of `f` at a torsion point `x` is `v (exp (-B x x / 2) * f x)`. |
| 72 | `New.ThetaTori.LatticeForm.sizes` is the set of sizes of theta functions of a given degree `B`, for |
| 73 | every multiplier `χ` such that `(B, χ)` is of ample type (`New.ThetaTori.IsAmpleType`: |
| 74 | Appell–Humbert data with positive Riemann form, `χ` of finite order on `L`). |
| 75 | -/ |
| 76 | |
| 77 | namespace New.ThetaTori.IsHermitianAction |
| 78 | |
| 79 | open MeasureTheory Complex NNReal Function Finset LinearMap Ideal Filter FiniteDimensional |
| 80 | |
| 81 | variable {V R : Type} [FinComplexSpace V] [CommRing R] [StarRing R] [IsDomain R] |
| 82 | {L : Submodule ℤ V} {B : LatticeForm L} {F : R →+* V →L[ℂ] V} {f : V → ℂ} |
| 83 | {β c d : R} [IsFullRankLattice L] |
| 84 | (h : IsHermitianAction L B F β) {v : Valuation ℂ ℝ≥0} [NeZero c] [NeZero d] {A : LatticeForm L} |
| 85 | |
| 86 | /-- The action of `a` on the points of `V` of finite order modulo `L`: `x ↦ F a x`, again of finite |
| 87 | order because `F a` preserves `L`. -/ |
| 88 | abbrev torsionAction (a : R) (x : torsionPoints L) : torsionPoints L := |
| 89 | ⟨F a x, x.property.imp (by grind [IsHermitianAction])⟩ |
| 90 | |
| 91 | include h |
| 92 | |
| 93 | /-! ### Normalised translations, sizes and torsion points -/ |
| 94 | |
| 95 | section |
| 96 | |
| 97 | omit [IsDomain R] [IsFullRankLattice L] |
| 98 | |
| 99 | /-- The commutator of the normalised translations by `x` and `y` is `exp (2 π i E(x, y))`, where |
| 100 | `E` is the Riemann form of `B`. -/ |
| 101 | lemma normShift_comm (x y : V) : |
| 102 | h.normShift x (h.normShift y f) = B.riemannPhase x y • h.normShift y (h.normShift x f) := by |
| 103 | -- unfolded, both sides are the phase and two multipliers times `thetaShift y (thetaShift x f)` |
| 104 | simp [normalizedShift, h.isAppellHumbert.thetaShift_comm x] |
| 105 | module |
| 106 | |
| 107 | lemma multiplier_sq (l : V) (hl : l ∈ L) : h.multiplier l ^ 2 = 1 := |
| 108 | h.isAppellHumbert.exp_riemannForm_pow_eq_one (nsmul_mem (h.map_mem β l hl) 1) (nsmul_mem hl 1) |
| 109 | |
| 110 | lemma isAmpleType : IsAmpleType B h.multiplier where |
| 111 | isAppellHumbert := h.isAppellHumbert |
| 112 | isPosRiemann := isPosRiemann_of_re_pos h.pos |
| 113 | finite_order := ⟨2, two_ne_zero, h.multiplier_sq⟩ |
| 114 | |
| 115 | /-- The size of `f` at the sum of torsion points `x` and `w` is the valuation of the value at `0` of |
| 116 | the normalised translate of `f` by `w` and then by `x`. -/ |
| 117 | lemma sizeAt_add (x w : torsionPoints L) : |
| 118 | B.sizeAt v f (x + w) = v (h.normShift x (h.normShift w f) 0) := by |
| 119 | -- The normalising factors `h.multiplier x` and `h.multiplier w` have valuation 1 by |
| 120 | -- `valuation_exp_riemannForm`. |
| 121 | rw [← h.isAppellHumbert.sizeAt_thetaShift] |
| 122 | simp [normalizedShift, LatticeForm.sizeAt, |
| 123 | h.isAppellHumbert.valuation_exp_riemannForm (h.torsionAction β _), canonicalMultiplier] |
| 124 | |
| 125 | lemma sizeAt_eq_normShift (x : torsionPoints L) : B.sizeAt v f x = v (h.normShift x f 0) := by |
| 126 | simpa [normalizedShift, canonicalMultiplier] using h.sizeAt_add x 0 |
| 127 | |
| 128 | end |
| 129 | |
| 130 | variable [Module.Finite ℤ R] |
| 131 | |
| 132 | /-- A point `a` of `c⁻¹ L` (the vectors that `F c` maps into `L`) has finite order modulo `L`. -/ |
| 133 | lemma mem_torsionPoints (a : divLattice L F c) : (a : V) ∈ torsionPoints L := by |
| 134 | -- the index of `L` in `c⁻¹ L` is the order of the finite group `c⁻¹ L / L` |
| 135 | exact ⟨L.toAddSubgroup.relIndex (divLattice L F c), (Nat.card_pos (α := h.MulKernel c)).ne', |
| 136 | L.toAddSubgroup.nsmul_relIndex_mem a.prop⟩ |
| 137 | |
| 138 | /-- For `c ≠ 0`, multiplication by `c` maps the points of finite order modulo `L` onto |
| 139 | themselves. -/ |
| 140 | lemma torsionAction_surjective (c : R) [NeZero c] : Surjective (h.torsionAction c) := by |
| 141 | rintro ⟨y, n, hn, hy⟩ |
| 142 | -- The preimage is `x = (F c).inverse y`. Since `F c (n • x) = n • y ∈ L`, the point `n • x` is |
| 143 | -- torsion by `mem_torsionPoints`, and hence so is `x`. |
| 144 | have hnx : n • (F c).inverse y ∈ divLattice L F c := by simp_all [divLattice] |
| 145 | obtain ⟨m, hm, hmx⟩ : ∃ m ≠ (0 : ℕ), m • n • (F c).inverse y ∈ L := |
| 146 | h.mem_torsionPoints ⟨n • (F c).inverse y, hnx⟩ |
| 147 | have hmnx : (m * n) • (F c).inverse y ∈ L := by rwa [mul_smul] |
| 148 | exact ⟨⟨(F c).inverse y, m * n, mul_ne_zero hm hn, hmnx⟩, Subtype.ext (by simp)⟩ |
| 149 | |
| 150 | omit [IsFullRankLattice L] [NeZero d] in |
| 151 | /-- Let `d = star c`. Translating `f ∘ F c ∘ (F d)⁻¹` by `d w` gives the translate of `f` by `c w`, |
| 152 | composed with `F c ∘ (F d)⁻¹`. -/ |
| 153 | lemma normShift_comp_inverse_eq (hd : star c = d) (w : V) (f : V → ℂ) : |
| 154 | h.normShift (F d w) (f ∘ F c ∘ (F d).inverse) = |
| 155 | h.normShift (F c w) f ∘ F c ∘ (F d).inverse := by |
| 156 | ext |
| 157 | simp [normalizedShift, riemannForm, h.adjoint, action_comm, ← hd, canonicalMultiplier, |
| 158 | thetaShift_apply] |
| 159 | |
| 160 | /-! ### The theta identity and the kernel of a multiplication -/ |
| 161 | |
| 162 | /-- The averaged pull-back along `c` and `d`: the operator sending `t : V → ℂ` to the sum, over the |
| 163 | classes `z` of `d⁻¹ L / L` (with chosen representatives `z.out`), of the normalised translates of |
| 164 | `t ∘ F c ∘ (F d)⁻¹` by `d z`. -/ |
| 165 | private noncomputable def averagedPullback (c d : R) [NeZero d] : (V → ℂ) →ₗ[ℂ] V → ℂ := |
| 166 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) ∘ₗ funLeft ℂ ℂ (F c ∘ (F d).inverse) |
| 167 | |
| 168 | private lemma averagedPullback_apply {c d : R} [NeZero d] (t : V → ℂ) : |
| 169 | h.averagedPullback c d t = |
| 170 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) := |
| 171 | rfl |
| 172 | |
| 173 | /-- Let `d = star c`. The averaged pull-back of a theta function with the canonical multiplier is |
| 174 | again one. -/ |
| 175 | private lemma averagedPullback_mem_thetaSpace (hd : star c = d) {t : V → ℂ} |
| 176 | (ht : t ∈ B.thetaSpace h.multiplier) : |
| 177 | h.averagedPullback c d t ∈ B.thetaSpace h.multiplier := by |
| 178 | -- The pull-back `t ∘ F c ∘ (F d)⁻¹` is fixed by the normalised translations by `d L`, so a |
| 179 | -- translation by `d x ∈ L` only permutes the terms of the sum over the kernel of `d`. |
| 180 | obtain ⟨t_diff, t_fixed⟩ : Differentiable ℂ t ∧ ∀ l ∈ L, h.normShift l t = t := |
| 181 | mem_thetaSpace_iff_normalizedShift.mp ht |
| 182 | have pullback_fixed (l : V) (hl : l ∈ L) : |
| 183 | h.normShift (F d l) (t ∘ F c ∘ (F d).inverse) = t ∘ F c ∘ (F d).inverse := by |
| 184 | rw [h.normShift_comp_inverse_eq hd l t, t_fixed _ (h.map_mem c l hl)] |
| 185 | rw [mem_thetaSpace_iff_normalizedShift] |
| 186 | constructor |
| 187 | · simp [averagedPullback, normalizedShift, funLeft] |
| 188 | fun_prop |
| 189 | · refine (action_isInvertible (F := F) d).surjective.forall.mpr fun x hx ↦ ?_ |
| 190 | simpa [averagedPullback, funLeft] using |
| 191 | h.normShift_sum_eq_char_smul d pullback_fixed 1 ⟨x, hx⟩ rfl |
| 192 | |
| 193 | omit [IsDomain R] [IsFullRankLattice L] [Module.Finite ℤ R] in |
| 194 | /-- On theta functions with the canonical multiplier, the normalised translate by `y` equals the |
| 195 | one by `a` whenever `a` lies in the dual lattice and `y - a ∈ L`. -/ |
| 196 | private lemma normShift_eq_of_sub_mem {a y : V} (ha : a ∈ B.dualLattice) (hy : y - a ∈ L) |
| 197 | {s : V → ℂ} (hs : s ∈ B.thetaSpace h.multiplier) : |
| 198 | h.normShift y s = h.normShift a s := by |
| 199 | have s_fixed : h.normShift (y - a) s = s := |
| 200 | (mem_thetaSpace_iff_normalizedShift.mp hs).2 _ hy |
| 201 | have phase : B.riemannPhase (F β a) (y - a) = 1 := |
| 202 | h.riemannPhase_eq_one ha (h.map_mem (star β) _ hy) |
| 203 | calc h.normShift y s = h.normShift (a + (y - a)) s := by rw [add_sub_cancel] |
| 204 | _ = h.normShift a (h.normShift (y - a) s) := by |
| 205 | simp only [normShift, h.isAppellHumbert.normalizedShift_normalizedShift |
| 206 | h.riemannForm_apply_beta_eq_sub, |
| 207 | phase, one_smul] |
| 208 | _ = h.normShift a s := by rw [s_fixed] |
| 209 | |
| 210 | /-- Let `d = star c`, and let `c` and `d` act as the identity on the dual lattice modulo `L`. For |
| 211 | `a` in the dual lattice and a theta function `t` with the canonical multiplier, the averaged |
| 212 | pull-back of the normalised translate of `t` by `a` is the normalised translate by `a` of the |
| 213 | averaged pull-back of `t`. -/ |
| 214 | private lemma averagedPullback_normShift_of_mem_dualLattice (hd : star c = d) |
| 215 | (hc_dual : ∀ a ∈ B.dualLattice, F c a - a ∈ L) (hd_dual : ∀ a ∈ B.dualLattice, F d a - a ∈ L) |
| 216 | {a : V} (ha : a ∈ B.dualLattice) {t : V → ℂ} (ht : t ∈ B.thetaSpace h.multiplier) : |
| 217 | h.averagedPullback c d (h.normShift a t) = h.normShift a (h.averagedPullback c d t) := by |
| 218 | -- On theta functions `normShift y` equals `normShift a` whenever `y - a ∈ L`, as for `y = c a` |
| 219 | -- and `y = d a`. In between, `normShift (c a)` passes through the pull-back as `normShift (d a)`, |
| 220 | -- which commutes with the terms of the sum. |
| 221 | have phase_one (z : h.MulKernel d) : B.riemannPhase (F d a) (F d z.out) = 1 := by |
| 222 | refine h.riemannPhase_eq_one ha ?_ |
| 223 | rw [star_eq_iff_star_eq.mp hd] |
| 224 | exact h.map_mem c _ (map_divLattice_mem (L := L) (F := F) d z.out) |
| 225 | set s : V → ℂ := t ∘ F c ∘ (F d).inverse |
| 226 | have pull : h.normShift (F c a) t ∘ F c ∘ (F d).inverse = h.normShift (F d a) s := |
| 227 | (h.normShift_comp_inverse_eq hd a t).symm |
| 228 | have term_comm (z : h.MulKernel d) : |
| 229 | h.normShift (F d z.out) (h.normShift (F d a) s) = |
| 230 | h.normShift (F d a) (h.normShift (F d z.out) s) := by |
| 231 | rw [h.normShift_comm (F d a), phase_one z, one_smul] |
| 232 | calc h.averagedPullback c d (h.normShift a t) |
| 233 | _ = h.averagedPullback c d (h.normShift (F c a) t) := by |
| 234 | rw [h.normShift_eq_of_sub_mem ha (hc_dual a ha) ht] |
| 235 | _ = h.normShift (F d a) (h.averagedPullback c d t) := by |
| 236 | rw [averagedPullback_apply, averagedPullback_apply, LinearMap.sum_apply, LinearMap.sum_apply, |
| 237 | map_sum, pull] |
| 238 | exact Finset.sum_congr rfl fun z _ ↦ term_comm z |
| 239 | _ = h.normShift a (h.averagedPullback c d t) := |
| 240 | h.normShift_eq_of_sub_mem ha (hd_dual a ha) (h.averagedPullback_mem_thetaSpace hd ht) |
| 241 | |
| 242 | /-- Let `d = star c`, and let `c` and `d` act as the identity on the dual lattice modulo `L`. The |
| 243 | averaged pull-back acts on the theta functions with the canonical multiplier as a scalar. -/ |
| 244 | private lemma exists_averagedPullback_eq_smul (hd : star c = d) |
| 245 | (hc_dual : ∀ a ∈ B.dualLattice, F c a - a ∈ L) (hd_dual : ∀ a ∈ B.dualLattice, F d a - a ∈ L) : |
| 246 | ∃ μ : ℂ, ∀ t ∈ B.thetaSpace h.multiplier, h.averagedPullback c d t = μ • t := by |
| 247 | -- Schur's lemma: on theta functions the operator commutes with the twisted translations by the |
| 248 | -- dual lattice, because `h.normShift a` is a non-zero multiple of the twisted translation by `a`. |
| 249 | let Q : Module.End ℂ (B.thetaSpace h.multiplier) := |
| 250 | (h.averagedPullback c d).restrict fun _ ht ↦ h.averagedPullback_mem_thetaSpace hd ht |
| 251 | have Q_commute : ∀ a : B.dualLattice, Commute (h.isAppellHumbert.thetaShiftEnd a) Q := by |
| 252 | rintro ⟨a, ha⟩ |
| 253 | refine LinearMap.ext fun t ↦ Subtype.ext ?_ |
| 254 | change B.thetaShift a (h.averagedPullback c d t) = h.averagedPullback c d (B.thetaShift a t) |
| 255 | have shift_eq_smul (s : V → ℂ) : h.normShift a s = (h.multiplier a)⁻¹ • B.thetaShift a s := rfl |
| 256 | have multiplier_ne : (h.multiplier a)⁻¹ ≠ 0 := by simp [canonicalMultiplier] |
| 257 | have scaled : (h.multiplier a)⁻¹ • h.averagedPullback c d (B.thetaShift a t) = |
| 258 | (h.multiplier a)⁻¹ • B.thetaShift a (h.averagedPullback c d t) := by |
| 259 | have commutes : h.averagedPullback c d (h.normShift a t) = |
| 260 | h.normShift a (h.averagedPullback c d t) := |
| 261 | h.averagedPullback_normShift_of_mem_dualLattice hd hc_dual hd_dual ha t.prop |
| 262 | rwa [shift_eq_smul, shift_eq_smul, map_smul] at commutes |
| 263 | exact (smul_right_injective (V → ℂ) multiplier_ne scaled).symm |
| 264 | obtain ⟨μ, hμ⟩ : ∃ μ : ℂ, Q = μ • 1 := |
| 265 | h.isAppellHumbert.schur_lemma (hp := h.isAmpleType.isPosRiemann) Q_commute |
| 266 | refine ⟨μ, fun t ht ↦ ?_⟩ |
| 267 | have Q_apply : Q ⟨t, ht⟩ = μ • ⟨t, ht⟩ := by |
| 268 | rw [hμ, LinearMap.smul_apply, one_apply_eq_self] |
| 269 | simpa [Q] using congrArg Subtype.val Q_apply |
| 270 | |
| 271 | /-- Let `d = star c` with `c` and `d` non-zero, and let `c` and `d` act as the identity on the dual |
| 272 | lattice modulo `L`. There is a number `μ` such that (a) `μ` is the order of `d⁻¹ L / L` times the |
| 273 | mean over `V / L` of `x ↦ K(d x, c x)`, with `K` the Poincaré kernel (a sum over `L`, a theta |
| 274 | function with the canonical multiplier in its second variable, of mean `1` on the diagonal); (b) for |
| 275 | every theta function `t` with the canonical multiplier, the sum over `z ∈ d⁻¹ L / L` (with chosen |
| 276 | representatives `z.out`) of the normalised translates of `t ∘ F c ∘ (F d)⁻¹` by `d z` is `μ • t`. -/ |
| 277 | lemma exists_sum_normShift_eq_smul (hd : star c = d) |
| 278 | (hc_dual : ∀ a ∈ B.dualLattice, F c a - a ∈ L) (hd_dual : ∀ a ∈ B.dualLattice, F d a - a ∈ L) : |
| 279 | ∃ μ : ℂ, |
| 280 | (Nat.card (h.MulKernel d) : ℂ) * |
| 281 | quotMean L.toAddSubgroup (fun x : V ↦ B.poincareSeries h.multiplier (F d x) (F c x)) = |
| 282 | μ ∧ |
| 283 | ∀ t ∈ B.thetaSpace h.multiplier, |
| 284 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) = μ • t := by |
| 285 | -- The averaged pull-back is a scalar `μ` on theta functions. Testing it on the Poincaré series |
| 286 | -- and taking the mean over `V / L` computes `μ`. |
| 287 | obtain ⟨μ, pullback_eq⟩ := h.exists_averagedPullback_eq_smul hd hc_dual hd_dual |
| 288 | have identity (t : V → ℂ) (ht : t ∈ B.thetaSpace h.multiplier) : |
| 289 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) = μ • t := |
| 290 | pullback_eq t ht |
| 291 | refine ⟨μ, ?_, identity⟩ |
| 292 | subst hd |
| 293 | -- the kernel is a theta function of its second variable, with mean `(h.multiplier 0)⁻¹` on the |
| 294 | -- diagonal |
| 295 | obtain ⟨-, -, kern_mem, kern_mean, -⟩ := |
| 296 | h.isAppellHumbert.poincareSeries_mem_thetaSpace_and_quotMean h.pos |
| 297 | set K : V → V → ℂ := B.poincareSeries h.multiplier |
| 298 | let G : V → ℂ := fun x ↦ K (F (star c) x) (F c x) |
| 299 | -- for `t = K (d x)`, at the point `d x`, the term `z` of the sum is `G (x + z)` |
| 300 | have sum_G (x : V) : |
| 301 | ∑ z : h.MulKernel (star c), G (x + z.out) = μ * K (F (star c) x) (F (star c) x) := by |
| 302 | have term (z : h.MulKernel (star c)) : |
| 303 | h.normShift (F (star c) z.out) (K (F (star c) x) ∘ F c ∘ (F (star c)).inverse) |
| 304 | (F (star c) x) = G (x + z.out) := by |
| 305 | simp [G, K, normalizedShift, h.poincareSeries_add, h.adjoint, mul_assoc, thetaShift_apply] |
| 306 | simpa [term] using congrFun (identity _ (kern_mem (F (star c) x))) (F (star c) x) |
| 307 | -- the mean of the diagonal does not change under pull-back along `d` |
| 308 | have diag_pullback : quotMean L.toAddSubgroup (fun x ↦ K (F (star c) x) (F (star c) x)) = |
| 309 | quotMean L.toAddSubgroup (fun x ↦ K x x) := by |
| 310 | simpa using quotMean_comp L.toAddSubgroup (F (star c)) (h.isContPeriodic_poincareSeries 1 0) |
| 311 | (h.map_mem _) (action_isInvertible _).surjective |
| 312 | -- and `h.multiplier 0 = 1` |
| 313 | have diag_mean : quotMean L.toAddSubgroup (fun x ↦ K x x) = 1 := by |
| 314 | simpa [canonicalMultiplier] using kern_mean |
| 315 | have G_periodic : IsContPeriodic L.toAddSubgroup G := by |
| 316 | simpa [G, K] using h.isContPeriodic_poincareSeries c 0 |
| 317 | calc (Nat.card (h.MulKernel (star c)) : ℂ) * quotMean L.toAddSubgroup G |
| 318 | _ = ∑ _ : h.MulKernel (star c), quotMean L.toAddSubgroup G := by simp |
| 319 | _ = ∑ z : h.MulKernel (star c), quotMean L.toAddSubgroup fun x ↦ G (x + z.out) := |
| 320 | sum_congr rfl fun z _ ↦ (quotMean_translate G_periodic _).symm |
| 321 | _ = quotMean L.toAddSubgroup fun x ↦ ∑ z : h.MulKernel (star c), G (x + z.out) := |
| 322 | (integral_finsetSum _ fun z _ ↦ (h.isContPeriodic_poincareSeries c z.out).integrable_out).symm |
| 323 | _ = μ := by simp [sum_G, diag_pullback, diag_mean] |
| 324 | |
| 325 | /-- Let `h` be a hermitian action of `R` on `V/L` (`B` positive definite hermitian with Riemann form |
| 326 | E integral on `L`, `F` preserving `L` with `star` giving adjoints, `star β = 1 - β`). Let `c` and |
| 327 | `d = star c` be coprime and non-zero, with `F d a - a ∈ L` for every `a` in the dual lattice of `B`. |
| 328 | Let `t` be a theta function of type (`B`, χ), where χ is the canonical multiplier x ↦ exp(πi E(βx, |
| 329 | x)), and let `z ≠ 0` lie in the kernel of `d` on `V/L`. Write `normShift x` for the twisted |
| 330 | translation by `x` divided by exp(πi E(βx, x)). Then the sum of |
| 331 | `normShift (F c k.out) (normShift (F c z.out) t)` over `k` in the kernel of `c` on `V/L` vanishes at |
| 332 | every point `x`. -/ |
| 333 | lemma sum_normShift_eq_zero (hd : star c = d) (hd_dual : ∀ a ∈ B.dualLattice, F d a - a ∈ L) |
| 334 | (hc : IsCoprime c d) {t : V → ℂ} (ht : t ∈ B.thetaSpace h.multiplier) {z : h.MulKernel d} |
| 335 | (hz : z ≠ 0) (x : V) : |
| 336 | ∑ k : h.MulKernel c, h.normShift (F c k.out) (h.normShift (F c z.out) t) x = 0 := by |
| 337 | -- If the sum is not zero, then `c z` lies in the dual lattice, hence in `L`; as `d z ∈ L` and |
| 338 | -- `c`, `d` are coprime, `z` lies in `L`, that is `z = 0`. |
| 339 | subst hd |
| 340 | by_contra hne |
| 341 | have killed : F (star c) (F c z.out) ∈ L := by simp [action_comm _ c, h.map_mem] |
| 342 | have t_periodic : ∀ l ∈ L, h.normShift l t = t := (mem_thetaSpace_iff_normalizedShift.mp ht).2 |
| 343 | have fixed (l : V) (hl : l ∈ L) : |
| 344 | h.normShift (F c l) (h.normShift (F c z.out) t) = h.normShift (F c z.out) t := by |
| 345 | rw [h.normShift_comm, h.riemannPhase_eq_one (h.riemannForm_integral l hl) killed, one_smul, |
| 346 | t_periodic _ (h.map_mem _ _ hl)] |
| 347 | -- Translation by `l ∈ L` fixes the sum (`normShift_sum_eq_char_smul`) and multiplies it by the |
| 348 | -- commutator of `l` and `c z`. As the sum is not zero, the commutator is `1`: `c z` lies in the |
| 349 | -- dual lattice. |
| 350 | have dual_mem : F c z.out ∈ B.dualLattice := by |
| 351 | intro l hl |
| 352 | have sum_fixed : h.normShift l (∑ k : h.MulKernel c, |
| 353 | h.normShift (F c k.out) (h.normShift (F c z.out) t)) = |
| 354 | ∑ k : h.MulKernel c, h.normShift (F c k.out) (h.normShift (F c z.out) t) := by |
| 355 | simpa using h.normShift_sum_eq_char_smul c fixed 1 |
| 356 | ⟨(F c).inverse l, by simpa [divLattice]⟩ rfl |
| 357 | -- Factor the sum as a scalar multiple of the translated theta function. |
| 358 | let C := ∑ k : h.MulKernel c, B.riemannPhase (F c k.out) (F c z.out) |
| 359 | have factor : (∑ k : h.MulKernel c, h.normShift (F c k.out) (h.normShift (F c z.out) t)) = |
| 360 | C • h.normShift (F c z.out) t := by |
| 361 | simp [C, h.normShift_comm _ (F c z.out), mem_thetaSpace_iff_normalizedShift.mp ht, |
| 362 | Finset.sum_smul] |
| 363 | -- Translation by `l` scales the translated theta function by its commutator phase |
| 364 | -- `B.riemannPhase l (F c z.out)` and fixes the sum. |
| 365 | have phase_eq_one : B.riemannPhase l (F c z.out) = 1 := by |
| 366 | rw [factor, map_smul, h.normShift_comm, t_periodic l hl, smul_comm C, ← factor] at sum_fixed |
| 367 | apply (mul_eq_right₀ hne).mp |
| 368 | simpa only [Pi.smul_apply, smul_eq_mul, Finset.sum_apply] using congrFun sum_fixed x |
| 369 | simpa [riemannForm_swap l, exp_neg, ← fourierChar_eq_one_iff, Circle.ext_iff] using phase_eq_one |
| 370 | have h_dual_star : F (star c) (F c z.out) - F c z.out ∈ L := hd_dual _ dual_mem |
| 371 | have cz_mem : F c z.out ∈ L := (L.sub_mem_iff_right killed).mp h_dual_star |
| 372 | -- `z = a (c z) + b (star c z)` lies in `L` |
| 373 | obtain ⟨a, b, hab⟩ : ∃ a b : R, a * c + b * star c = 1 := hc |
| 374 | have comb : F (a * c + b * star c) z.out ∈ L := by |
| 375 | simpa using add_mem (h.map_mem a _ cz_mem) |
| 376 | (h.map_mem b _ (map_divLattice_mem (L := L) (F := F) _ z.out)) |
| 377 | have z_mem : (z.out : V) ∈ L := by simpa [hab] using comb |
| 378 | exact hz ((h.out_mem_iff_eq_zero _ z).mp z_mem) |
| 379 | |
| 380 | omit [IsDomain R] [IsFullRankLattice L] [Module.Finite ℤ R] in |
| 381 | /-- The Poincaré kernel `K` of the canonical multiplier (`ThetaTori.LatticeForm.poincareSeries`, a |
| 382 | sum of `ThetaTori.LatticeForm.poincareTerm` over the lattice) at `(c x, star c x)` is the complex |
| 383 | conjugate of its value at `(star c x, c x)`. -/ |
| 384 | lemma poincareSeries_eq_conj_poincareSeries_star (c : R) (x : V) : |
| 385 | B.poincareSeries h.multiplier (F c x) (F (star c) x) = |
| 386 | starRingEnd ℂ (B.poincareSeries h.multiplier (F (star c) x) (F c x)) := by |
| 387 | -- Conjugate term by term and substitute `l ↦ -l` in the sum over the lattice. |
| 388 | simp only [ThetaTori.LatticeForm.poincareSeries, conj_tsum] |
| 389 | rw [← tsum_comp_neg] |
| 390 | refine tsum_congr fun l ↦ ?_ |
| 391 | rw [ThetaTori.LatticeForm.poincareTerm, ThetaTori.LatticeForm.poincareTerm, h.multiplier_eq_exp, |
| 392 | h.multiplier_eq_exp] |
| 393 | simp [← exp_sub, ← exp_conj] |
| 394 | -- the exponents differ by `B x y - B y x` for lattice vectors, by adjointness and symmetry |
| 395 | grind [h.exp_eq_of_mem_lattice l.prop (h.map_mem β _ l.prop), action_comm, adjoint, conj_symm] |
| 396 | |
| 397 | /-- The theta identity. Let `d = star c` with `c` and `d` non-zero and `c ≠ d`, let `c` and `d` be |
| 398 | coprime, and let both act as the identity on the dual lattice modulo `L`. Then there is `μ` with |
| 399 | `μ ^ 8 = det (F d) ^ 8`, that is, `μ` is the determinant of `d` up to an eighth root of unity, such |
| 400 | that for every theta function `t` with the canonical multiplier the sum over `z ∈ d⁻¹ L / L` of the |
| 401 | normalised translates of `t ∘ F c ∘ (F d)⁻¹` by `d z` is `μ • t`. -/ |
| 402 | lemma exists_theta_identity (hd : star c = d) |
| 403 | (hc_dual : ∀ a ∈ B.dualLattice, F c a - a ∈ L) (hd_dual : ∀ a ∈ B.dualLattice, F d a - a ∈ L) |
| 404 | (hc_ne_d : c ≠ d) (hc : IsCoprime c d) : |
| 405 | ∃ μ : ℂ, |
| 406 | μ ^ 8 = (F d).det ^ 8 ∧ |
| 407 | ∀ t ∈ B.thetaSpace h.multiplier, |
| 408 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) = μ • t := by |
| 409 | -- The averaged pull-backs for `(c, star c)` and `(star c, c)` are the scalars `μ` and `ν`. The |
| 410 | -- means give `ν = #(c⁻¹ L / L) * conj m` and `μ = δ * conj δ * m`, with `δ = det (star c)`; |
| 411 | -- composing the two identities gives `conj m * μ = 1`, and `m * conj δ` has a real fourth power. |
| 412 | have h_sub_ne : NeZero (c - d) := ⟨sub_ne_zero.mpr hc_ne_d⟩ |
| 413 | subst hd |
| 414 | obtain ⟨μ, hμ, identity⟩ := h.exists_sum_normShift_eq_smul rfl hc_dual hd_dual |
| 415 | obtain ⟨ν, hν, identity_star⟩ := h.exists_sum_normShift_eq_smul (star_star c) hd_dual hc_dual |
| 416 | set K : V → V → ℂ := B.poincareSeries h.multiplier with hK |
| 417 | set m : ℂ := quotMean L.toAddSubgroup fun x ↦ K (F (star c) x) (F c x) with hm |
| 418 | set δ : ℂ := (F (star c)).det |
| 419 | refine ⟨μ, ?_, identity⟩ |
| 420 | have ν_eq : ν = Fintype.card (h.MulKernel c) * starRingEnd ℂ m := by |
| 421 | simp [← hν, hm, hK, h.poincareSeries_eq_conj_poincareSeries_star c, quotMean, integral_conj, |
| 422 | Nat.card_eq_fintype_card] |
| 423 | have μ_eq : μ = δ * starRingEnd ℂ δ * m := by rw [← hμ, h.card_mulKernel] |
| 424 | -- Compose the two identities. In the double sum only the terms with `z = 0` survive. |
| 425 | have conj_m_mul_μ : starRingEnd ℂ m * μ = 1 := by |
| 426 | obtain ⟨t, ht, x, hx⟩ : ∃ t ∈ B.thetaSpace h.multiplier, ∃ x : V, t x ≠ 0 := by |
| 427 | simpa [funext_iff] using |
| 428 | h.isAppellHumbert.exists_mem_thetaSpace_ne_zero (hp := h.isAmpleType.isPosRiemann) |
| 429 | have double_sum_eq : |
| 430 | ∑ k : h.MulKernel c, ∑ z : h.MulKernel (star c), |
| 431 | h.normShift (F c k.out) (h.normShift (F c z.out) t) x = |
| 432 | ν * (μ * t x) := by |
| 433 | have at_x : (∑ z : h.MulKernel c, h.normShift (F c z.out)) |
| 434 | ((μ • t) ∘ F (star c) ∘ (F c).inverse) x = ν * (μ * t x) := |
| 435 | congrFun (identity_star _ (Submodule.smul_mem _ μ ht)) x |
| 436 | simpa [smul_smul, ← identity _ ht, h.normShift_comp_inverse_eq, mul_assoc] using at_x |
| 437 | rw [sum_comm, Fintype.sum_eq_single 0 fun z hz ↦ |
| 438 | h.sum_normShift_eq_zero rfl hd_dual hc ht hz _] at double_sum_eq |
| 439 | simpa [mem_thetaSpace_iff_normalizedShift.mp ht, h.map_mem, ν_eq, hx, field, |
| 440 | out_mem_iff_eq_zero] using double_sum_eq.symm |
| 441 | -- `μ = δ * a` with `a = m * conj δ`; `a * conj a = 1` and `a ^ 4` is real, so `a ^ 8 = 1` |
| 442 | have conj_pow_four_eq : starRingEnd ℂ m ^ 4 * δ ^ 4 = (m * starRingEnd ℂ δ) ^ 4 := by |
| 443 | simpa [IsSelfAdjoint, mul_pow] using h.isSelfAdjoint_quotMean_pow c rfl |
| 444 | have a_mul_conj : m * starRingEnd ℂ δ * starRingEnd ℂ (m * starRingEnd ℂ δ) = 1 := by |
| 445 | rw [← conj_m_mul_μ, μ_eq, map_mul, Complex.conj_conj] |
| 446 | ring |
| 447 | calc μ ^ 8 |
| 448 | _ = δ ^ 8 * ((m * starRingEnd ℂ δ) ^ 4 * (starRingEnd ℂ m ^ 4 * δ ^ 4)) := by |
| 449 | rw [conj_pow_four_eq, μ_eq] |
| 450 | ring |
| 451 | _ = δ ^ 8 * (m * starRingEnd ℂ δ * starRingEnd ℂ (m * starRingEnd ℂ δ)) ^ 4 := by |
| 452 | rw [map_mul, Complex.conj_conj] |
| 453 | ring |
| 454 | _ = δ ^ 8 := by rw [a_mul_conj, one_pow, mul_one] |
| 455 | |
| 456 | omit h in |
| 457 | /-- Let `v` be a valuation on `ℂ` with values in `ℝ≥0`, let `p` be a prime and `ζ` a `p ^ n`-th root |
| 458 | of unity. Then `v (ζ - 1) ^ p ^ n ≤ v p`. -/ |
| 459 | theorem _root_.Valuation.map_sub_one_pow_le_of_pow_eq_one {v : Valuation ℂ ℝ≥0} {p n : ℕ} |
| 460 | (hp : p.Prime) {ζ : ℂ} (hζ : ζ ^ p ^ n = 1) : v (ζ - 1) ^ p ^ n ≤ v p := by |
| 461 | let ζ₀ : v.integer := ⟨ζ, (valuation_eq_one_of_pow_eq_one (pow_ne_zero n hp.ne_zero) hζ).le⟩ |
| 462 | have dvd : (p : v.integer) ∣ (ζ₀ - 1) ^ p ^ n := |
| 463 | hp.dvd_sub_one_pow_of_pow_eq_one (Subtype.ext (by simpa [ζ₀] using hζ)) |
| 464 | simpa [ζ₀, Algebra.algebraMap_ofSubring] using (Valuation.integer.integers v).le_of_dvd dvd |
| 465 | |
| 466 | omit h in |
| 467 | /-- If `S ≤ max (√T) (ρ * S)` in `ℝ≥0` with `ρ < 1`, then `S ^ 2 ≤ T`. -/ |
| 468 | theorem _root_.NNReal.sq_le_of_le_max_sqrt_mul {S T ρ : ℝ≥0} (hρ : ρ < 1) |
| 469 | (h_le : S ≤ max (NNReal.sqrt T) (ρ * S)) : S ^ 2 ≤ T := by |
| 470 | rw [← NNReal.le_sqrt_iff_sq_le, ← not_lt] |
| 471 | intro h_lt |
| 472 | exact (max_lt h_lt (mul_lt_of_lt_one_left (pos_of_gt h_lt) hρ)).not_ge h_le |
| 473 | |
| 474 | /-- Let `d = star c`, let `μ` be the scalar of the theta identity `identity`, let `f` be a theta |
| 475 | function with the canonical multiplier and let `c g ∈ L`. Write `T(x, y)` for the value at `0` of |
| 476 | the normalised translate of `f` by `x` and then by `y`. Then `μ` times the value at `0` of the |
| 477 | normalised translate of `f` by `d q` equals `μ * T(d g, d q)` minus the sum over `z ∈ d⁻¹ L / L` |
| 478 | (with chosen representatives `z.out`) of `(B.riemannPhase (c g) (c z) - 1) * T(c z, c q)`. -/ |
| 479 | lemma mul_normShift_eq_mul_normShift_sub_sum (hd : star c = d) {μ : ℂ} |
| 480 | (identity : ∀ t ∈ B.thetaSpace h.multiplier, |
| 481 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) = μ • t) |
| 482 | {f : V → ℂ} (hf : f ∈ B.thetaSpace h.multiplier) {g : V} (hg : F c g ∈ L) (q : V) : |
| 483 | μ * h.normShift (F d q) f 0 = |
| 484 | μ * h.normShift (F d q) (h.normShift (F d g) f) 0 - |
| 485 | ∑ z : h.MulKernel d, (B.riemannPhase (F c g) (F c z.out) - 1) * |
| 486 | h.normShift (F c q) (h.normShift (F c z.out) f) 0 := by |
| 487 | have plain : ∑ z : h.MulKernel d, h.normShift (F c q) (h.normShift (F c z.out) f) 0 = |
| 488 | μ * h.normShift (F d q) f 0 := by |
| 489 | simpa [h.normShift_comp_inverse_eq hd] |
| 490 | using congrArg (fun s : V → ℂ ↦ h.normShift (F d q) s 0) (identity f hf) |
| 491 | have moved : ∑ z : h.MulKernel d, B.riemannPhase (F c g) (F c z.out) * |
| 492 | h.normShift (F c q) (h.normShift (F c z.out) f) 0 = |
| 493 | μ * h.normShift (F d q) (h.normShift (F d g) f) 0 := by |
| 494 | simpa [h.normShift_comp_inverse_eq hd, h.normShift_comm (F c g), |
| 495 | mem_thetaSpace_iff_normalizedShift.mp hf, hg] |
| 496 | using congrArg (fun s : V → ℂ ↦ h.normShift (F d q) (h.normShift (F d g) s) 0) (identity f hf) |
| 497 | simp [← plain, ← moved, sub_mul] |
| 498 | |
| 499 | /-- For a hermitian action `h` of `R` on a lattice form `B` over `L` (acting on `V` through |
| 500 | `F : R →+* V →L[ℂ] V`), elements `c d : R` with `star c = d`, and a valuation `v : Valuation ℂ ℝ≥0`, |
| 501 | let `μ : ℂ` have `v μ = 1` and satisfy |
| 502 | `(∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) = μ • t` for every theta |
| 503 | function `t ∈ B.thetaSpace h.multiplier`. Let `f ∈ B.thetaSpace h.multiplier` have size function |
| 504 | `B.sizeAt v f ∈ B.sizes v`, let `p n : ℕ`, let `w g : torsionPoints L` satisfy |
| 505 | `(w : V) - h.torsionAction d g ∈ L`, `F c g ∈ L`, and `p ^ n • (g : V) ∈ L`, and let `ρ : ℝ≥0` |
| 506 | bound `v (ζ - 1)` for every `p ^ n`-th root of unity `ζ : ℂ`. Then for every `q : torsionPoints L`, |
| 507 | `B.sizeAt v f (h.torsionAction d q)` is at most the maximum of |
| 508 | `B.sizeAt v f (h.torsionAction d q + w)` and `ρ * ⨆ x, B.sizeAt v f x`. -/ |
| 509 | private lemma sizeAt_torsionAction_le_max (hd : star c = d) {μ : ℂ} (v_μ : v μ = 1) |
| 510 | (identity : ∀ t ∈ B.thetaSpace h.multiplier, |
| 511 | (∑ z : h.MulKernel d, h.normShift (F d z.out)) (t ∘ F c ∘ (F d).inverse) = μ • t) |
| 512 | (hf : f ∈ B.thetaSpace h.multiplier) (hφ : B.sizeAt v f ∈ B.sizes v) |
| 513 | {w g : torsionPoints L} (g_eq : (w : V) - h.torsionAction d g ∈ L) (g_mem : F c g ∈ L) |
| 514 | {p n : ℕ} (hpg : p ^ n • (g : V) ∈ L) {ρ : ℝ≥0} |
| 515 | (v_sub_one : ∀ {ζ : ℂ}, ζ ^ p ^ n = 1 → v (ζ - 1) ≤ ρ) (q : torsionPoints L) : |
| 516 | B.sizeAt v f (h.torsionAction d q) ≤ |
| 517 | max (B.sizeAt v f (h.torsionAction d q + w)) (ρ * ⨆ x, B.sizeAt v f x) := by |
| 518 | set φ : torsionPoints L → ℝ≥0 := B.sizeAt v f with φ_def |
| 519 | let T : torsionPoints L → torsionPoints L := h.torsionAction d |
| 520 | have killed (z : h.MulKernel d) : F d (F c z.out) ∈ L := by simp [action_comm _ c, h.map_mem] |
| 521 | let ζ (z : h.MulKernel d) : ℂ := B.riemannPhase (F c g) (F c z.out) |
| 522 | have root (z : h.MulKernel d) : ζ z ^ p ^ n = 1 := by |
| 523 | subst hd |
| 524 | simpa [ζ, action_comm c, ← exp_nsmul, mul_left_comm] using |
| 525 | h.riemannPhase_eq_one (h.riemannForm_integral _ hpg) (killed z) |
| 526 | -- compare the identity translated by `d q` with the one translated by `d g` and then `d q` |
| 527 | let E : ℂ := ∑ z, (ζ z - 1) * h.normShift (F c q) (h.normShift (F c z.out) f) 0 |
| 528 | have diff : |
| 529 | μ * h.normShift (F d q) f 0 = μ * h.normShift (F d q) (h.normShift (F d g) f) 0 - E := |
| 530 | h.mul_normShift_eq_mul_normShift_sub_sum hd identity hf g_mem q |
| 531 | have error : v E ≤ ρ * iSup φ := by |
| 532 | refine v.map_sum_le fun z _ ↦ (v.map_mul _ _).trans_le (mul_le_mul' (v_sub_one (root z)) ?_) |
| 533 | -- the term is the size of `f` at the torsion point `c q + c z` |
| 534 | let cz : torsionPoints L := ⟨F c z.out, h.mem_torsionPoints (c := d) ⟨F c z.out, killed z⟩⟩ |
| 535 | calc v (h.normShift (F c q) (h.normShift (F c z.out) f) 0) |
| 536 | _ = φ (h.torsionAction c q + cz) := (h.sizeAt_add (h.torsionAction c q) cz).symm |
| 537 | _ ≤ iSup φ := le_iSup_of_mem_sizes hφ _ |
| 538 | have h_sub : ((T q + w : torsionPoints L) : V) - (T q + T g : torsionPoints L) ∈ L := by |
| 539 | simpa using g_eq |
| 540 | calc φ (T q) |
| 541 | _ = v (μ * h.normShift (F d q) f 0) := by simp [φ_def, h.sizeAt_eq_normShift, v_μ, T] |
| 542 | _ ≤ max (v (μ * h.normShift (F d q) (h.normShift (F d g) f) 0)) (ρ * iSup φ) := by |
| 543 | grw [diff, v.map_sub, error] |
| 544 | _ = max (φ (T q + w)) (ρ * iSup φ) := by |
| 545 | rw [factorsThrough_mkQ_of_mem_sizes hφ (a := T q + w) (b := T q + T g) |
| 546 | (SModEq.sub_mem.mpr h_sub), φ_def, h.sizeAt_add] |
| 547 | simp [v_μ, T] |
| 548 | |
| 549 | /-- The constant `1` on the kernel of `c`. Let `c ≠ 0` and `d = star c` be distinct and coprime and |
| 550 | act as the identity on the dual lattice of `B` modulo `L`; let `p` be a prime with `v p < 1`, let |
| 551 | `det d` have valuation `1`, and let `B - A` have a positive Riemann form. Then every torsion point |
| 552 | `w` with `c w ∈ L` and `p ^ n w ∈ L` has the constant `1` in degree `A`, meaning |
| 553 | `(sup φ) ^ 2 ≤ ⨆ x, φ x * φ (x + w)` (`x` over torsion points) for the size function `φ`, taken with |
| 554 | `v`, of every twisted theta function of degree `A`. -/ |
| 555 | lemma hasShiftBound_one_of_ker {A : LatticeForm L} {w : torsionPoints L} (hd : star c = d) |
| 556 | (hc_dual : ∀ a ∈ B.dualLattice, F c a - a ∈ L) (hd_dual : ∀ a ∈ B.dualLattice, F d a - a ∈ L) |
| 557 | (hc_ne_d : c ≠ d) {p n : ℕ} (hp : p.Prime) (hv : v p < 1) (h_det : v (F d).det = 1) |
| 558 | (h_pos : IsPosRiemann (B + -A)) (hw : F c w ∈ L) (hc : IsCoprime c d) |
| 559 | (hpw : p ^ n • (w : V) ∈ L) : |
| 560 | A.HasShiftBound v w 1 := by |
| 561 | -- By `LatticeForm.HasShiftBound.of_isPosRiemann_sub` it is enough to treat the size `φ` of a |
| 562 | -- theta function `f` of degree `B`. Write `w ≡ d g` with `c g ∈ L`. Translating the theta |
| 563 | -- identity by `d g` multiplies each term by a `p ^ n`-th root of unity, so the ultrametric |
| 564 | -- inequality gives `φ y ≤ max (φ (y + w)) (ρ * iSup φ)` with `ρ < 1`, and the first term decides. |
| 565 | refine .of_isPosRiemann_sub h.isAmpleType h_pos fun f hf y ↦ ?_ |
| 566 | obtain ⟨μ, hμ, identity⟩ := h.exists_theta_identity hd hc_dual hd_dual hc_ne_d hc |
| 567 | have v_μ : v μ = 1 := by simpa [h_det] using congrArg v hμ |
| 568 | have hφ : B.sizeAt v f ∈ B.sizes v := .of_mem_thetaSpace h.isAmpleType hf |
| 569 | set φ : torsionPoints L → ℝ≥0 := B.sizeAt v f with φ_def |
| 570 | have hP : p ^ n ≠ 0 := pow_ne_zero n hp.ne_zero |
| 571 | -- `ρ` is the `p ^ n`-th root of `v p` |
| 572 | let ρ : ℝ≥0 := (powOrderIso _ hP).symm (v p) |
| 573 | have hρ : ρ < 1 := (powOrderIso _ hP).symm_apply_lt.mpr ((one_pow _).trans_gt hv) |
| 574 | have v_sub_one {ζ : ℂ} (hζ : ζ ^ p ^ n = 1) : v (ζ - 1) ≤ ρ := |
| 575 | (OrderIso.le_symm_apply _).mpr (v.map_sub_one_pow_le_of_pow_eq_one hp hζ) |
| 576 | obtain ⟨α, γ, hαγ⟩ : ∃ α γ : R, α * c + γ * d = 1 := hc |
| 577 | let T : torsionPoints L → torsionPoints L := h.torsionAction d |
| 578 | let g : torsionPoints L := h.torsionAction γ w |
| 579 | -- `γ d = 1 - α c`, so `w - d g = α (c w)`, which lies in `L` as `c w` does |
| 580 | have g_eq : (w : V) - T g ∈ L := by |
| 581 | have h_apply : F d (F γ w) = (w : V) - F α (F c w) := by |
| 582 | calc F d (F γ w) |
| 583 | _ = F (γ * d) w := by |
| 584 | rw [action_comm d γ] |
| 585 | simp |
| 586 | _ = F (1 - α * c) w := by rw [eq_sub_of_add_eq' hαγ] |
| 587 | _ = (w : V) - F α (F c w) := by simp |
| 588 | change (w : V) - F d (F γ w) ∈ L |
| 589 | simpa only [T, g, torsionAction, h_apply, sub_sub_cancel] using h.map_mem α _ hw |
| 590 | have g_mem : F c g ∈ L := by simpa [g, action_comm c] using h.map_mem _ _ hw |
| 591 | have hpg : p ^ n • (g : V) ∈ L := by simpa [g] using h.map_mem γ _ hpw |
| 592 | have step (q : torsionPoints L) : φ (T q) ≤ max (φ (T q + w)) (ρ * iSup φ) := |
| 593 | h.sizeAt_torsionAction_le_max hd v_μ identity hf hφ g_eq g_mem hpg v_sub_one q |
| 594 | -- Every torsion point is of the form `d q`, so `step` bounds the supremum; in the case |
| 595 | -- `φ (T q) ≤ φ (T q + w)` use `φ (T q) ^ 2 ≤ φ (T q) * φ (T q + w)`. |
| 596 | have sup_le : iSup φ ≤ max (NNReal.sqrt (⨆ x, φ x * φ (x + w))) (ρ * iSup φ) := by |
| 597 | refine ciSup_le ((h.torsionAction_surjective d).forall.mpr fun q ↦ ?_) |
| 598 | rcases le_max_iff.mp (step q) with hle | hle |
| 599 | · grw [← le_max_left, le_sqrt_iff_sq_le, |
| 600 | ← le_iSup_of_mem_sizes (mul_shift_mem_sizes hφ hφ w) (T q), |
| 601 | ← hle, sq] |
| 602 | · exact le_max_of_le_right hle |
| 603 | calc φ y ^ 2 |
| 604 | _ ≤ iSup φ ^ 2 := by grw [le_iSup_of_mem_sizes hφ y] |
| 605 | _ ≤ ⨆ x, φ x * φ (x + w) := NNReal.sq_le_of_le_max_sqrt_mul hρ sup_le |
| 606 | _ = 1 * ⨆ x, φ x * φ (x + w) := (one_mul _).symm |
| 607 | |
| 608 | variable {w : torsionPoints L} |
| 609 | |
| 610 | /-! ### The contraction argument -/ |
| 611 | |
| 612 | omit [IsFullRankLattice L] in |
| 613 | /-- The pull-back `c^* B` of `B` along the action of `c ≠ 0` (the form `B.pullForm (F c)`) is again |
| 614 | a hermitian form for the action of `R`, with the same `β`. -/ |
| 615 | private lemma isHermitianAction_pullForm : IsHermitianAction L (B.pullForm (F c)) F β := by |
| 616 | refine ⟨h.map_mem, fun x y ↦ ?_, fun x hx ↦ ?_, fun a x y ↦ ?_, fun l hl m hm ↦ ?_, |
| 617 | h.star_eq_one_sub⟩ |
| 618 | · simpa [pullForm_apply_apply] using h.conj_symm (F c x) (F c y) |
| 619 | · simpa [pullForm_apply_apply] using |
| 620 | h.pos (F c x) fun h0 ↦ hx (action_injective c (h0.trans (map_zero (F c)).symm)) |
| 621 | · simp only [pullForm_apply_apply] |
| 622 | rw [action_comm, h.adjoint, action_comm] |
| 623 | · simpa [riemannForm_def, pullForm_apply_apply] using |
| 624 | h.riemannForm_integral _ (h.map_mem c l hl) _ (h.map_mem c m hm) |
| 625 | |
| 626 | /-- Descent along `c ≠ 0`. Say that a torsion point `x` has the constant `C` in degree `A` (a form |
| 627 | on `V`) when `A.HasShiftBound v x C` holds: for the size function `φ` (taken with `v`) of every |
| 628 | twisted theta function of degree `A`, `(sup φ)² ≤ C · sup_y φ(y) φ(y + x)`, with `y` running over |
| 629 | the torsion points. Suppose the torsion points `y` with `c y ∈ L` have the constant `1` in every |
| 630 | degree, and `c^* B - A` has a positive Riemann form, where `c^* B` is the pull-back |
| 631 | `B.pullForm (F c)`; then for a torsion point `w`, if `c w` (that is `h.torsionAction c w`) has the |
| 632 | constant `D` in degree `B`, `w` has the constant `D / v (#(c⁻¹ L / L)) ^ 2` in degree `A`. -/ |
| 633 | lemma hasShiftBound_of_torsionAction |
| 634 | (h_ker : ∀ (A : LatticeForm L) (y : torsionPoints L), F c y ∈ L → A.HasShiftBound v y 1) |
| 635 | (h_pos : IsPosRiemann (B.pullForm (F c) + -A)) {D : ℝ≥0} |
| 636 | (h_cw : B.HasShiftBound v (h.torsionAction c w) D) : |
| 637 | A.HasShiftBound v w (D * (v (Nat.card (h.MulKernel c)))⁻¹ ^ 2) := by |
| 638 | classical |
| 639 | -- As `c^* B - A` is positive, it is enough to bound the size `φ` of a theta function `t` of |
| 640 | -- degree `c^* B`. Split `t ∘ c⁻¹` into eigensums `s ξ` for the characters `ξ` of the kernel of |
| 641 | -- `c`. These are theta functions of degree `B`, so `h_cw` bounds each of them, and `h_ker` |
| 642 | -- compares their sizes with `φ`. |
| 643 | have h_pull : IsHermitianAction L (B.pullForm (F c)) F β := isHermitianAction_pullForm h |
| 644 | refine .of_isPosRiemann_sub h_pull.isAmpleType h_pos fun t ht x ↦ ?_ |
| 645 | have t_diff : Differentiable ℂ t := (mem_thetaSpace_iff_normalizedShift.mp ht).left |
| 646 | set φ : torsionPoints L → ℝ≥0 := LatticeForm.sizeAt v (B.pullForm (F c)) t with φ_def |
| 647 | have hφ : φ ∈ LatticeForm.sizes v (B.pullForm (F c)) := |
| 648 | .of_mem_thetaSpace h_pull.isAmpleType ht |
| 649 | have h_transl (a : V) (t : V → ℂ) : |
| 650 | h.normShift (F c a) (t ∘ (F c).inverse) = h_pull.normShift a t ∘ (F c).inverse := by |
| 651 | ext |
| 652 | simp [normalizedShift, riemannForm, action_comm, canonicalMultiplier, thetaShift_apply] |
| 653 | have h_fixed : ∀ l ∈ L, h.normShift (F c l) (t ∘ (F c).inverse) = t ∘ (F c).inverse := by |
| 654 | grind [mem_thetaSpace_iff_normalizedShift.mp ht] |
| 655 | -- The eigensum `s ξ` for a character `ξ` of the kernel of `c` has degree `B` and the multiplier |
| 656 | -- `χ l = h.multiplier l * ξ (c⁻¹ l)`, of finite order. |
| 657 | let s (ξ : AddChar (h.MulKernel c) ℂ) : V → ℂ := |
| 658 | ∑ k : h.MulKernel c, ξ (-k) • h.normShift (F c k.out) (t ∘ (F c).inverse) |
| 659 | have hs_mem (ξ : AddChar (h.MulKernel c) ℂ) : B.sizeAt v (s ξ) ∈ B.sizes v := by |
| 660 | let χ (l : V) : ℂ := |
| 661 | h.multiplier l * if hl : l ∈ L then ξ ⟦⟨(F c).inverse l, by simpa [divLattice]⟩⟧ else 1 |
| 662 | have h_ah : IsAppellHumbert B χ := by |
| 663 | refine ⟨h.isAppellHumbert.re_symm, fun l hl ↦ ?_, fun l hl m hm ↦ ?_⟩ |
| 664 | · simp [χ, hl, h.isAppellHumbert.norm_eq_one l hl] |
| 665 | · simp [χ, h.isAppellHumbert.semicharacter, field, hl, hm, ← ξ.map_add_eq_mul, mul_assoc, |
| 666 | add_mem] |
| 667 | -- the class of a sum is the sum of the classes, by definition of the quotient |
| 668 | exact Or.inl (Or.inl rfl) |
| 669 | have h_order : ∀ l ∈ L, χ l ^ (2 * Nat.card (h.MulKernel c)) = 1 := by |
| 670 | simp +contextual [χ, mul_pow, pow_mul, h.multiplier_sq, ← ξ.map_nsmul_eq_pow] |
| 671 | have h_ample : IsAmpleType B χ := |
| 672 | ⟨h_ah, h.isAmpleType.isPosRiemann, 2 * Nat.card (h.MulKernel c), by simp, h_order⟩ |
| 673 | refine .of_mem_thetaSpace h_ample ⟨?_, fun l hl z ↦ ?_⟩ |
| 674 | · simp only [normShift, normalizedShift, canonicalMultiplier, LinearMap.smul_apply, s] |
| 675 | fun_prop |
| 676 | -- translation by `l ∈ L` multiplies `s ξ` by `ξ (c⁻¹ l)` |
| 677 | let y : divLattice L F c := ⟨(F c).inverse l, by simpa [divLattice]⟩ |
| 678 | have h_eigen_z : h.normShift (F c y) (s ξ) z = ξ y * s ξ z := |
| 679 | congrFun (h.normShift_sum_eq_char_smul c h_fixed ξ y rfl) z |
| 680 | simpa [y, χ, normalizedShift, ← neg_add_rev, exp_neg, field, mul_right_comm _ (ξ _), hl, |
| 681 | canonicalMultiplier, thetaShift_apply] using h_eigen_z |
| 682 | -- The size of `s ξ` at `c y` is at most a maximum of the `φ (y + k)`, `k` in the kernel of `c`; |
| 683 | -- these translations do not raise the norm of `φ · φ (· + w)`. |
| 684 | set T : torsionPoints L → torsionPoints L := h.torsionAction c |
| 685 | have hs_le (ξ : AddChar (h.MulKernel c) ℂ) (y : torsionPoints L) : |
| 686 | B.sizeAt v (s ξ) (T y) * B.sizeAt v (s ξ) (T y + T w) ≤ ⨆ z, φ z * φ (z + w) := by |
| 687 | simp only [h.sizeAt_eq_normShift, ← map_mul, s, map_sum, univ.sum_apply, sum_mul_sum] |
| 688 | refine v.map_sum_le fun i _ ↦ v.map_sum_le fun j _ ↦ ?_ |
| 689 | let a : torsionPoints L := ⟨i.out, h.mem_torsionPoints i.out⟩ |
| 690 | let b : torsionPoints L := ⟨j.out, h.mem_torsionPoints j.out⟩ |
| 691 | have h_one : LatticeForm.HasShiftBound v (B.pullForm (F c) + B.pullForm (F c)) |
| 692 | (y + w + b - (y + a) - w) 1 := |
| 693 | h_ker _ _ (by simp [a, b, sub_sub, add_right_comm, sub_mem]) |
| 694 | refine (mul_le_iSup_of_hasShiftBound hφ hφ h_one).trans_eq' ?_ |
| 695 | simp [a, b, ← map_add, T, φ_def, h_transl, h_pull.sizeAt_add, |
| 696 | valuation_eq_one_of_pow_eq_one (orderOf_pos ξ).ne', ← pow_apply ξ] |
| 697 | have h_card_pos : 0 < v (Nat.card (h.MulKernel c)) := by simp [v.pos_iff] |
| 698 | -- Take square roots and move the order of the kernel to the left. |
| 699 | suffices h_main : φ x * v (Nat.card (h.MulKernel c)) ≤ NNReal.sqrt (D * ⨆ z, φ z * φ (z + w)) by |
| 700 | rwa [← le_sqrt_iff_sq_le, mul_right_comm, sqrt_mul, sqrt_sq, le_mul_inv_iff₀ h_card_pos] |
| 701 | -- The eigensums add up to the order of the kernel times `t ∘ c⁻¹`. |
| 702 | calc φ x * v (Nat.card (h.MulKernel c)) |
| 703 | _ = v (∑ ξ, h.normShift (T x) (s ξ) 0) := by |
| 704 | simp [s, T, φ_def, sum_comm, ← sum_mul, h_transl, mem_thetaSpace_iff_normalizedShift.mp ht, |
| 705 | AddChar.sum_apply_eq_ite, field, h_pull.sizeAt_eq_normShift, out_mem_iff_eq_zero] |
| 706 | _ ≤ NNReal.sqrt (D * ⨆ z, φ z * φ (z + w)) := by |
| 707 | refine v.map_sum_le fun ξ _ ↦ ?_ |
| 708 | -- Each term is bounded by the hypothesis at `c w`; `c` is onto the torsion points. |
| 709 | grw [← h.sizeAt_eq_normShift, le_sqrt_iff_sq_le, h_cw _ (hs_mem ξ), |
| 710 | ← (h.torsionAction_surjective c).iSup_comp, ciSup_le' (hs_le ξ)] |
| 711 | |
| 712 | /-- Let `h` be a hermitian action of `R` on `V/L`: `B` is positive definite hermitian with Riemann |
| 713 | form integral on the full lattice `L`, each `F a` preserves `L` with `F (star a)` adjoint to `F a`, |
| 714 | and `star β = 1 - β`. Here `A.HasShiftBound v y C` means that for the size function φ of every |
| 715 | twisted theta function of degree `A`, (sup φ)² ≤ `C` · sup_x φ(x) φ(x + `y`), with x over the |
| 716 | torsion points. Suppose that arbitrarily close to `0` there are continuous linear maps `e` with |
| 717 | `F c (e x) = x` for some `c ≠ 0` in `R`, such that `A.HasShiftBound v y 1` holds for every form `A` |
| 718 | and every torsion point `y` with `F c y ∈ L`; then for every torsion point `w`, |
| 719 | `B.HasShiftBound v w C` holds for all sufficiently large `C`. -/ |
| 720 | lemma eventually_hasShiftBound |
| 721 | (h_frequently : ∃ᶠ e : V →L[ℂ] V in nhds 0, ∃ c : R, c ≠ 0 ∧ (∀ x : V, F c (e x) = x) ∧ |
| 722 | ∀ (A : LatticeForm L) (y : torsionPoints L), F c y ∈ L → A.HasShiftBound v y 1) : |
| 723 | ∀ᶠ C : ℝ≥0 in atTop, B.HasShiftBound v w C := by |
| 724 | -- The evaluation forms `ev y` on the finite-dimensional space `Θ` of theta functions of type |
| 725 | -- `(2 B, multiplier²)`, taken at the points `y` such that `2 y - w` has the constant `1` in |
| 726 | -- degree `2 B`, have no common zero that is not a zero of `ev 0`. So `ev 0` is a finite |
| 727 | -- combination of them, and the sizes of the coefficients give the constant. |
| 728 | let Θ : Submodule ℂ (V → ℂ) := (2 • B).thetaSpace (h.multiplier ^ 2) |
| 729 | have h_findim : FiniteDimensional ℂ Θ := |
| 730 | (h.isAppellHumbert.nsmul 2).finite_thetaSpace |
| 731 | (hp := h.isAmpleType.isPosRiemann.nsmul two_ne_zero) |
| 732 | let ev (x : V) : Θ →ₗ[ℂ] ℂ := proj 0 ∘ₗ ((2 • B).thetaShift x).domRestrict Θ |
| 733 | let Y : Type := {y : torsionPoints L // (B + B).HasShiftBound v (y + y - w) 1} |
| 734 | have h_ker : ⨅ y : Y, LinearMap.ker (ev y) ≤ LinearMap.ker (ev 0) := by |
| 735 | intro f hf |
| 736 | have hf_zero (y : Y) : (f : V → ℂ) y = 0 := by |
| 737 | simpa [ev, thetaShift_apply] using (Submodule.mem_iInf _).mp hf y |
| 738 | have hf_diff : Differentiable ℂ (f : V → ℂ) := f.property.1 |
| 739 | -- The midpoints of `w` and the points of the lattices `c⁻¹ L` lie in `Y`, and these lattices |
| 740 | -- have arbitrarily small mesh. |
| 741 | have hf_mid : (f : V → ℂ) ∘ midpoint ℝ (w : V) = 0 := by |
| 742 | refine eq_zero_of_small_mesh (L := L) (hf_diff.continuous.comp (by fun_prop [midpoint])) |
| 743 | (h_frequently.mono fun e ⟨c, hc_ne, h_inv, h_one⟩ ↦ ⟨F c, h_inv, fun z hz ↦ ?_⟩) |
| 744 | have hc_inst : NeZero c := ⟨hc_ne⟩ |
| 745 | have h_sum : (w : V) + z ∈ torsionPoints L := add_mem w.property (h.mem_torsionPoints ⟨z, hz⟩) |
| 746 | have mid_tors : midpoint ℝ (w : V) z ∈ torsionPoints L := by |
| 747 | refine h_sum.imp' (fun n ↦ n * 2) fun n hn ↦ ?_ |
| 748 | simpa [two_smul, mul_smul] using hn |
| 749 | let m : torsionPoints L := ⟨midpoint ℝ (w : V) z, mid_tors⟩ |
| 750 | exact hf_zero ⟨m, h_one _ _ (by simpa [m] using hz)⟩ |
| 751 | simpa [ev] using congrFun hf_mid (-w) |
| 752 | obtain ⟨g, hg⟩ : ∃ g : Y →₀ ℂ, (g.sum fun y a ↦ a • ev y) = ev 0 := |
| 753 | Finsupp.mem_span_range_iff_exists_finsupp.mp (mem_span_of_iInf_ker_le_ker h_ker) |
| 754 | filter_upwards [mem_atTop (g.support.sup (v ∘ g))] with C hC φ hφ x |
| 755 | obtain @⟨χ, f, h_ample, hf⟩ := hφ |
| 756 | have hφ : B.sizeAt v f ∈ B.sizes v := .of_mem_thetaSpace h_ample hf |
| 757 | obtain ⟨hf_diff, hf_per⟩ : Differentiable ℂ f ∧ |
| 758 | ∀ l ∈ L, ∀ z : V, f (z + l) = χ l * Complex.exp (B l z + B l l / 2) * f z := hf |
| 759 | -- `y ↦ f (x - y) f (x + y)` lies in `Θ` whatever the multiplier of `f`, and once normalised its |
| 760 | -- size at `y` is `φ (x - y) φ (x + y)`, where `φ` is the size of `f`. |
| 761 | have hP_mem : (fun y : V ↦ (-B x x).exp * f (x - y) * f (x + y)) ∈ Θ := by |
| 762 | refine ⟨by fun_prop, fun l hl z ↦ ?_⟩ |
| 763 | have hf_back : |
| 764 | f (x - z) = χ l * Complex.exp (B l (x - z - l) + B l l / 2) * f (x - z - l) := by |
| 765 | rw [← hf_per l hl (x - z - l), sub_add_cancel] |
| 766 | simp [← add_assoc, ← sub_sub, hf_back, hf_per, hl, exp_add, exp_sub, two_mul, field, |
| 767 | h.multiplier_sq l hl] |
| 768 | let P : Θ := ⟨fun y ↦ (-B x x).exp * f (x - y) * f (x + y), hP_mem⟩ |
| 769 | have hP (y : torsionPoints L) : v (ev y P) = B.sizeAt v f (x - y) * B.sizeAt v f (x + y) := by |
| 770 | simp [LatticeForm.sizeAt, ev, P, ← map_mul, mul_mul_mul_comm _ (f _), ← exp_add, ← mul_assoc, |
| 771 | thetaShift_apply] |
| 772 | ring_nf |
| 773 | calc B.sizeAt v f x ^ 2 = v (ev 0 P) := by simpa [sq] using (hP 0).symm |
| 774 | _ = v (∑ y ∈ g.support, g y * ev y P) := by simp [← hg, Finsupp.sum] |
| 775 | _ ≤ C * ⨆ z, B.sizeAt v f z * B.sizeAt v f (z + w) := by |
| 776 | refine v.map_sum_le fun y hy ↦ ?_ |
| 777 | rw [map_mul, hP] |
| 778 | exact mul_le_mul' ((le_sup hy).trans hC) |
| 779 | (mul_le_iSup_of_hasShiftBound hφ hφ (by simpa using y.property)) |
| 780 | |
| 781 | /-- The contraction. Suppose that arbitrarily close to `0` there are linear maps `e` with (a) `e` |
| 782 | right inverse to the action `F c` of some `c ≠ 0` in `R`, and (b) every torsion point `y` with |
| 783 | `c y ∈ L` has the constant `1` in every degree (`A.HasShiftBound v y 1` for every form `A`: for the |
| 784 | size function `φ` of each twisted theta function of degree `A`, `(sup φ)² ≤ sup_x φ(x) φ(x + y)` |
| 785 | over torsion points `x`). Then `HasMultiplicativeNorm v L` holds: for any two forms and twisted |
| 786 | theta functions `f`, `g` of those degrees, the sup norm (with respect to `v`) of `f g` is the |
| 787 | product of the sup norms of `f` and `g`. -/ |
| 788 | lemma hasMultiplicativeNorm_of_frequently_hasShiftBound |
| 789 | (h_frequently : ∃ᶠ e : V →L[ℂ] V in nhds 0, ∃ c : R, c ≠ 0 ∧ (∀ x : V, F c (e x) = x) ∧ |
| 790 | ∀ (A : LatticeForm L) (y : torsionPoints L), F c y ∈ L → A.HasShiftBound v y 1) : |
| 791 | HasMultiplicativeNorm v L := by |
| 792 | -- Fix `c` so large that `c^* B - 2 B` is positive. It is enough to show that no torsion point |
| 793 | -- distorts sizes: `A.HasShiftBound v w 1` for all `A` and `w`. |
| 794 | have h_tendsto : Tendsto (fun e : V →L[ℂ] V ↦ pullForm e (B + B)) (nhds 0) (nhds 0) := by |
| 795 | refine Continuous.tendsto' ?_ 0 0 (by aesop) |
| 796 | simp only [continuous_clm_apply, pullForm_apply_apply, add_apply] |
| 797 | fun_prop |
| 798 | obtain ⟨e, ⟨c, hc_ne, hce, h_ker⟩, h_pos⟩ : ∃ e : V →L[ℂ] V, |
| 799 | (∃ c : R, c ≠ 0 ∧ (∀ x : V, F c (e x) = x) ∧ |
| 800 | ∀ (A : LatticeForm L) (y : torsionPoints L), F c y ∈ L → A.HasShiftBound v y 1) ∧ |
| 801 | IsPosRiemann (B + -pullForm e (B + B)) := |
| 802 | (h_frequently.and_eventually |
| 803 | (h_tendsto.eventually h.isAmpleType.isPosRiemann.eventually_add_neg)).exists |
| 804 | have hc_inst : NeZero c := ⟨hc_ne⟩ |
| 805 | let C : ℝ≥0 := (v (Nat.card (h.MulKernel c)))⁻¹ ^ 2 |
| 806 | have h_const (w : torsionPoints L) (A : LatticeForm L) : A.HasShiftBound v w C := by |
| 807 | obtain ⟨n, hn, hw⟩ : ∃ n : ℕ, n ≠ 0 ∧ n • (w : V) ∈ L := w.property |
| 808 | -- It is enough to treat a degree `a • B` that exceeds `A`. |
| 809 | obtain ⟨a, ha, h_exceeds⟩ := (h.isAmpleType.eventually_isPosRiemann_smul_sub A).exists |
| 810 | have h_mul : IsHermitianAction L (a • B) F β := h.nsmul ha |
| 811 | suffices h_aB : (a • B).HasShiftBound v w C from |
| 812 | .of_isPosRiemann_sub h_mul.isAmpleType h_exceeds fun f hf ↦ |
| 813 | h_aB _ (.of_mem_thetaSpace h_mul.isAmpleType hf) |
| 814 | -- Apply `LatticeForm.HasShiftBound.of_doubling` to the group `W` of `y` with `n • y ∈ L`: if |
| 815 | -- some constant works on `W` and a constant `D` gives `D * C` in twice the degree, then `C` |
| 816 | -- works on `W`. |
| 817 | let W : Submodule ℤ (torsionPoints L) := L.comap (n • (torsionPoints L).subtype) |
| 818 | refine LatticeForm.HasShiftBound.of_doubling (const W (a • B)) Subtype.val ?_ (fun D hD y ↦ ?_) |
| 819 | ⟨w, hw⟩ |
| 820 | · -- Some constant works on `W`: each point has one by `eventually_hasShiftBound`, and `W` is |
| 821 | -- finite modulo `L`. |
| 822 | let consts (y : torsionPoints L) : Set ℝ≥0 := {D | (a • B).HasShiftBound v y D} |
| 823 | have h_factors : (fun y : torsionPoints L ↦ consts y).FactorsThrough |
| 824 | fun x : torsionPoints L ↦ L.mkQ x := by |
| 825 | intro y y' h_eq |
| 826 | have shift_eq (φ : torsionPoints L → ℝ≥0) (hφ : φ ∈ (a • B).sizes v) |
| 827 | (z : torsionPoints L) : φ (z + y) = φ (z + y') := |
| 828 | factorsThrough_mkQ_of_mem_sizes hφ (by simpa using h_eq) |
| 829 | exact Set.ext fun _ ↦ forall₂_congr fun φ hφ ↦ by simp only [shift_eq φ hφ] |
| 830 | have h_fin : (Set.range fun y : W ↦ consts y).Finite := |
| 831 | finite_range_nsmul_torsion hn h_factors |
| 832 | have h_mem : ⋂ y : W, consts y ∈ atTop := |
| 833 | (sInter_mem h_fin).mpr |
| 834 | (Set.forall_mem_range.mpr fun y ↦ h_mul.eventually_hasShiftBound h_frequently) |
| 835 | exact Set.nonempty_iInter.mp (nonempty_of_mem h_mem) |
| 836 | · -- `c` keeps `W`, so a constant on `W` descends along `c` to twice the degree. |
| 837 | have h_pos' : IsPosRiemann ((a • B).pullForm (F c) + -(a • B + a • B)) := by |
| 838 | refine ⟨fun z ↦ ?_⟩ |
| 839 | simpa [riemannForm, action_injective c (hce _), map_eq_zero_iff, action_injective] using |
| 840 | (h_pos.nsmul ha).riemannForm_pos (F c z) |
| 841 | exact h_mul.hasShiftBound_of_torsionAction h_ker h_pos' |
| 842 | (hD ⟨h.torsionAction c y, by simpa [W] using h.map_mem c _ y.property⟩) |
| 843 | -- A constant valid in all degrees improves to `1`, by `LatticeForm.HasShiftBound.of_doubling` for |
| 844 | -- the family of all degrees. |
| 845 | have h_one (w : torsionPoints L) (A : LatticeForm L) : A.HasShiftBound v w 1 := by |
| 846 | exact .of_doubling (fun A ↦ A) (fun _ ↦ w) ⟨C, h_const w⟩ |
| 847 | (fun D hD A ↦ by simpa using hD (A + A)) A |
| 848 | -- One inequality is general; the other is `mul_le_iSup_of_hasShiftBound` with `w = 0`. |
| 849 | intro A A' φ ψ hφ hψ |
| 850 | refine (ciSup_mul_le_ciSup_mul_ciSup (bddAbove_of_mem_sizes hφ) |
| 851 | (bddAbove_of_mem_sizes hψ)).antisymm (iSup_mul_iSup_le fun x y ↦ ?_) |
| 852 | simpa using mul_le_iSup_of_hasShiftBound hφ hψ (h_one (y - x - 0) (A + A')) |
| 853 | |
| 854 | /-- The multiplicative norm from expanding multiplications. Let `R`, a domain of characteristic zero |
| 855 | and finite over ℤ, act on `V / L` with the hermitian data `h`. Let `p` be a prime with `v p < 1`, |
| 856 | and let `n`, prime to `p`, map the dual lattice of `B` into `L`. Suppose every neighbourhood of `0` |
| 857 | holds a right inverse of `F c` for some `c ∈ R` that is not a unit, is prime to `star c`, divides a |
| 858 | power of `p` and has `v (det (F (star c))) = 1`. Then `V / L` has good reduction at `v` in analytic |
| 859 | form. For any degrees and any sizes φ, ψ of twisted theta functions f, g of those degrees, the sup |
| 860 | norm (on torsion points) of φψ, the size of fg, is the product of the sup norms. -/ |
| 861 | lemma _root_.New.ThetaTori.hasMultiplicativeNorm_of_expanding [CharZero R] {n p : ℕ} (hn : ¬p ∣ n) |
| 862 | (h_dual : ∀ a ∈ B.dualLattice, n • a ∈ L) (hp : p.Prime) (hv : v p < 1) |
| 863 | (h_expand : ∃ᶠ e : V →L[ℂ] V in nhds 0, ∃ (c : R) (k : ℕ), |
| 864 | (∀ x : V, F c (e x) = x) ∧ |
| 865 | ¬IsUnit c ∧ IsCoprime c (star c) ∧ c ∣ p ^ k ∧ |
| 866 | v (F (star c)).det = 1) : |
| 867 | HasMultiplicativeNorm v L := by |
| 868 | -- By `IsHermitianAction.hasMultiplicativeNorm_of_frequently_hasShiftBound` it is enough to show |
| 869 | -- `HasShiftBound` with constant `1`, in any degree `A`, for the points `y` killed by `c`. Take |
| 870 | -- `i ≡ n mod p` with `i • B - A` positive and apply `hasShiftBound_one_of_ker` to `i • B` and a |
| 871 | -- power of `c`. |
| 872 | refine h.hasMultiplicativeNorm_of_frequently_hasShiftBound |
| 873 | (h_expand.mono fun e ⟨c, k, h_inv, h_nonunit, h_cop, h_dvd, h_det⟩ ↦ ?_) |
| 874 | have hc_ne : c ≠ 0 := fun hc0 ↦ by simp [IsCoprime, hc0] at h_cop |
| 875 | have hc_inst : NeZero c := ⟨hc_ne⟩ |
| 876 | refine ⟨c, hc_ne, h_inv, fun A y hy ↦ ?_⟩ |
| 877 | obtain ⟨i, hi, hi0, h_pos⟩ : ∃ i : ℕ, i ≡ n [MOD p] ∧ i ≠ 0 ∧ IsPosRiemann (i • B + -A) := |
| 878 | ((Nat.frequently_modEq hp.ne_zero n).and_eventually |
| 879 | (h.isAmpleType.eventually_isPosRiemann_smul_sub A)).exists |
| 880 | -- `n i` is prime to `p`, hence to `c`; so `c` is a unit of the finite ring `R / n i`, and |
| 881 | -- `c ^ (j + 1) ≡ 1 mod n i` for some `j`. |
| 882 | have hpi : ¬p ∣ n * i := hp.not_dvd_mul hn (mt (hi.dvd_iff dvd_rfl).mp hn) |
| 883 | have h_cop_pow_p : IsCoprime ((p : R) ^ k) ((n * i : ℕ) : R) := |
| 884 | (hp.coprime_iff_not_dvd.mpr hpi).cast.pow_left |
| 885 | have h_cop_ni : IsCoprime c (n * i) := by |
| 886 | exact_mod_cast h_cop_pow_p.mono h_dvd dvd_rfl |
| 887 | have h_finite : Finite (R ⧸ span {(n * i : R)}) := finiteQuotientOfFreeOfNeBot _ (by aesop) |
| 888 | have h_unit : IsUnit (Ideal.Quotient.mk (span {(n * i : R)}) c) := |
| 889 | (h_cop_ni.map _).isUnit_of_dvd (by simp) |
| 890 | obtain ⟨m, hm_pos, h_pow⟩ := h_unit.isOfFinOrder.exists_pow_eq_one |
| 891 | obtain ⟨j, rfl⟩ := Nat.exists_eq_add_one.mpr hm_pos |
| 892 | have h_dvd_pow : (n * i : R) ∣ c ^ (j + 1) - 1 := mk_span_eq_iff_dvd_sub.mp h_pow |
| 893 | have h_cop_pow : IsCoprime (c ^ (j + 1)) (star (c ^ (j + 1))) := by simpa using h_cop.pow |
| 894 | -- A non-unit prime to its conjugate differs from it. |
| 895 | have h_ne_star : c ^ (j + 1) ≠ star (c ^ (j + 1)) := by |
| 896 | intro h_eq |
| 897 | exact h_nonunit (by simpa using h_cop_pow.isUnit_of_dvd h_eq.dvd) |
| 898 | -- `c ^ (j + 1) - 1` and its conjugate are multiples of `n i`, which maps the dual lattice of |
| 899 | -- `i • B` into `L`. |
| 900 | have h_tor (a : V) (ha : a ∈ (i • B).dualLattice) : n • i • a ∈ L := |
| 901 | h_dual _ (mem_dualLattice_nsmul.mp ha) |
| 902 | have h_dual_of_dvd {u : R} (hu : (n * i : R) ∣ u - 1) : |
| 903 | ∀ a ∈ (i • B).dualLattice, F u a - a ∈ L := by |
| 904 | obtain ⟨t, ht⟩ := hu |
| 905 | intro a ha |
| 906 | simpa [eq_add_of_sub_eq ht] using h.map_mem t _ (h_tor a ha) |
| 907 | have h_dvd_star : (n * i : R) ∣ star (c ^ (j + 1)) - 1 := by |
| 908 | simpa using map_dvd starRingAut h_dvd_pow |
| 909 | -- `p ^ k` is a multiple of `c` |
| 910 | have hy_p : p ^ k • (y : V) ∈ L := by |
| 911 | obtain ⟨r, hr⟩ := h_dvd |
| 912 | have h_mem : F ((p ^ k : ℕ) : R) y ∈ L := by grind [action_comm, map_mem] |
| 913 | simpa only [map_natCast, ContinuousLinearMap.natCast_apply] using h_mem |
| 914 | have h_det_pow : v (LinearMap.det (F (star (c ^ (j + 1))) : V →ₗ[ℂ] V)) = 1 := by simp [h_det] |
| 915 | exact (h.nsmul hi0).hasShiftBound_one_of_ker rfl |
| 916 | (h_dual_of_dvd h_dvd_pow) (h_dual_of_dvd h_dvd_star) h_ne_star hp hv |
| 917 | h_det_pow h_pos (by grind [map_mem]) h_cop_pow hy_p |
| 918 | |
| 919 | end New.ThetaTori.IsHermitianAction |
| 920 | |
| 921 | /-! ## Good reduction of a theta torus over a good prime -/ |
| 922 | |
| 923 | section ArcReduction |
| 924 | |
| 925 | open NumberField IsLocalRing Valuation LinearMap Ideal IsPrime valuationSubring |
| 926 | New.ThetaTori.PeriodMap |
| 927 | |
| 928 | /-- The average `(x.automorphyForm + i^* x.automorphyForm) / 2` of the form of the theta torus `x` |
| 929 | over multiplication by `i` has the same Riemann form as `x.automorphyForm`. -/ |
| 930 | private lemma New.ThetaTori.ThetaTorus.riemannForm_smul_add_pullForm {E : Type} [Field E] |
| 931 | [CMBase E] {V : Type} [FinComplexSpace V] {D : PEL E} {g : GL D.Index (𝔸f E)} |
| 932 | {ℓ : Matrix D.Index D.Index ℂ} (x : ThetaTorus D g ℓ V) : |
| 933 | riemannForm ((2⁻¹ : ℂ) • (x.automorphyForm + x.automorphyForm.pullForm (Complex.I • 1))) = |
| 934 | x.automorphyForm.riemannForm := by |
| 935 | ext |
| 936 | simp [riemannForm, re_symm] |
| 937 | ring |
| 938 | |
| 939 | /-- The average `(x.automorphyForm + i^* x.automorphyForm) / 2` of the form of the theta torus `x` |
| 940 | over multiplication by `i` is a hermitian form for the action `x.intAction` of `𝓞 E`, with |
| 941 | `β = D.β`. -/ |
| 942 | private lemma New.ThetaTori.ThetaTorus.isHermitianAction_smul_add_pullForm {E : Type} [Field E] |
| 943 | [CMBase E] {V : Type} [FinComplexSpace V] {D : PEL E} {g : GL D.Index (𝔸f E)} |
| 944 | {ℓ : Matrix D.Index D.Index ℂ} (x : ThetaTorus D g ℓ V) : |
| 945 | IsHermitianAction x.periodLattice ((2⁻¹ : ℂ) • |
| 946 | (x.automorphyForm + x.automorphyForm.pullForm (Complex.I • 1))) |
| 947 | x.intAction D.β where |
| 948 | map_mem := x.intAction_mem_periodLattice |
| 949 | conj_symm y z := by |
| 950 | simpa [Complex.ext_iff, re_symm, add_comm] using x.re_symm (Complex.I • y) (Complex.I • z) |
| 951 | pos y hy := by simpa [riemannForm, field] using x.isPosRiemann.riemannForm_pos y hy |
| 952 | adjoint := by simp [← adjoint] |
| 953 | riemannForm_integral := by |
| 954 | rw [x.riemannForm_smul_add_pullForm] |
| 955 | exact x.isAppellHumbert_periodLattice.le_dualLattice |
| 956 | star_eq_one_sub := D.star_beta |
| 957 | |
| 958 | /-- Let `ρ` map `𝓞 E` into the valuation ring of `v`, agreeing with `Φ v₀`, and let the prime of |
| 959 | `𝓞 E` below the maximal ideal of the valuation ring be good for `D`. Then the theta torus `x` has |
| 960 | good reduction for `v` (`New.ThetaTori.HasGoodReduction` for `x.automorphyForm`, `x.multiplier` and |
| 961 | `D.paddedNorm`), and the order of `D.dualTorsion` has valuation `1`. -/ |
| 962 | lemma New.ThetaTori.ThetaTorus.hasGoodReduction_and_val_card_eq_one {E : Type} [Field E] [CMBase E] |
| 963 | {V : Type} [FinComplexSpace V] {D : PEL E} {g : GL D.Index (𝔸f E)} |
| 964 | {ℓ : Matrix D.Index D.Index ℂ} (x : ThetaTorus D g ℓ V) {v : Valuation ℂ NNReal} |
| 965 | {ρ : 𝓞 E →+* v.valuationSubring} (hρ : ∀ c : 𝓞 E, ρ c = Φ v₀ c.val) |
| 966 | (hw : D.IsGoodAt (Ideal.comap ρ (maximalIdeal v.valuationSubring))) : |
| 967 | HasGoodReduction x.automorphyForm x.multiplier v D.paddedNorm ∧ v (Nat.card D.dualTorsion) = |
| 968 | 1 := by |
| 969 | -- Apply `hasMultiplicativeNorm_of_expanding` with `c = star a`, where `a` generates a high power |
| 970 | -- of the second prime `w` that contains `p` and `β - b`, and is large at all complex embeddings. |
| 971 | obtain ⟨⟨hr, hT⟩, p, b, hp, hp_mem, hb_mem, h_coprime, -, h_second⟩ := hw |
| 972 | obtain ⟨w, hw_ne, hp_w, hb_w⟩ := h_second |
| 973 | have v_eq_one {y : 𝓞 E} (hy : y ∉ comap ρ (maximalIdeal v.valuationSubring)) : |
| 974 | v (Φ v₀ y.val) = 1 := by |
| 975 | rw [← hρ] |
| 976 | exact (integers v).one_of_isUnit (of_not_not hy) |
| 977 | have hvT : v (Nat.card D.dualTorsion) = 1 := by simpa using v_eq_one hT |
| 978 | have hvr : v D.paddedNorm = 1 := by simpa using v_eq_one hr |
| 979 | have hvp : v p < 1 := by simpa [v.mem_maximalIdeal_iff] using hp_mem |
| 980 | have hvβ : v (starRingEnd ℂ (Φ v₀ D.β.val) - b) = 1 := by |
| 981 | simpa using v_eq_one (notMem_of_isCoprime_of_mem h_coprime hb_mem) |
| 982 | -- As `w` is maximal and differs from the prime of `ρ`, some `t ∈ w` is a unit at `Φ v₀`. |
| 983 | obtain ⟨t, ht_w, ht_not⟩ : ∃ t ∈ w.asIdeal, t ∉ comap ρ (maximalIdeal v.valuationSubring) := |
| 984 | Set.not_subset.mp fun h_le ↦ hw_ne (w.isMaximal.eq_of_le ne_top' h_le) |
| 985 | -- The dual lattice lies over `D.dualTorsion`, so multiplying by `Nat.card D.dualTorsion` carries |
| 986 | -- it into `x.periodLattice`. |
| 987 | have h_tor : ∀ a ∈ x.automorphyForm.dualLattice, Nat.card D.dualTorsion • a ∈ x.periodLattice := |
| 988 | fun a ha ↦ |
| 989 | x.card_nsmul_mem_periodLattice (x.dualLattice_periodLattice.le ha) |
| 990 | suffices h_norm : HasMultiplicativeNorm v x.periodLattice from |
| 991 | ⟨{ x.hasGoodReduction_one with |
| 992 | dual_torsion := ⟨Nat.card D.dualTorsion, hvT, h_tor⟩ |
| 993 | val_eq_one := hvr |
| 994 | hasMultiplicativeNorm := h_norm }, hvT⟩ |
| 995 | -- Averaging `x.automorphyForm` over multiplication by `i` gives a hermitian form with the same |
| 996 | -- Riemann form. |
| 997 | let H : LatticeForm x.periodLattice := (2⁻¹ : ℂ) • |
| 998 | (x.automorphyForm + x.automorphyForm.pullForm (Complex.I • 1)) |
| 999 | have hp_ndvd : ¬p ∣ Nat.card D.dualTorsion := fun h_dvd ↦ hT (mem_of_dvd _ h_dvd.natCast hp_mem) |
| 1000 | have h_dual_H : ∀ a ∈ H.dualLattice, Nat.card D.dualTorsion • a ∈ x.periodLattice := fun a ha ↦ |
| 1001 | h_tor a (by grind [RealComplexForm.dualLattice, x.riemannForm_smul_add_pullForm]) |
| 1002 | have h_herm : IsHermitianAction x.periodLattice H x.intAction D.β := |
| 1003 | x.isHermitianAction_smul_add_pullForm |
| 1004 | refine hasMultiplicativeNorm_of_expanding h_herm hp_ndvd h_dual_H hp hvp ?_ |
| 1005 | -- The inverse of `x.intAction c` is `complexMul` of a small vector, and `complexMul` is |
| 1006 | -- continuous at `0`. |
| 1007 | have h_cont : Continuous x.isPeriodMap.complexMul := by |
| 1008 | simp only [continuous_clm_apply, Variety.IsPeriodMap.complexMul_apply_apply] |
| 1009 | fun_prop |
| 1010 | refine (h_cont.tendsto' 0 _ (map_zero _)).frequently |
| 1011 | (Metric.nhds_basis_ball.frequently_iff.mpr fun r hr_pos ↦ ?_) |
| 1012 | obtain ⟨a, ⟨k, ha⟩, ha_unit, ha_large⟩ : |
| 1013 | ∃ a : 𝓞 E, (∃ k : ℕ, w.asIdeal ^ k = span {a}) ∧ ¬IsUnit a ∧ ∀ σ : E →+* ℂ, ‖σ a‖⁻¹ < r := |
| 1014 | exists_pow_eq_span_inv_lt w.one_lt_q hr_pos |
| 1015 | have ha_ne : a ≠ 0 := by |
| 1016 | intro ha_zero |
| 1017 | exact pow_ne_zero k w.ne_bot (by simpa [ha_zero] using ha) |
| 1018 | have dvd_pow {y : 𝓞 E} (hy : y ∈ w.asIdeal) : a ∣ y ^ k := by |
| 1019 | simpa [ha, mem_span_singleton] using pow_mem_pow hy k |
| 1020 | -- If `w` contains a unit at `σ`, then `a` divides a unit among `v`-integers, so it is a unit. |
| 1021 | have unit_at (σ : E →+* ℂ) {y : 𝓞 E} (hy : y ∈ w.asIdeal) (hvy : v (σ y) = 1) : v (σ a) = 1 := by |
| 1022 | obtain ⟨c, hc⟩ := dvd_pow hy |
| 1023 | have v_le (z : 𝓞 E) : v (σ z) ≤ 1 := |
| 1024 | (integers (v.comap σ)).mem_of_integral (RingOfIntegers.isIntegral_coe z).tower_top |
| 1025 | have h_prod : 1 ≤ v (σ a) * v (σ c) := by |
| 1026 | simpa [hvy] using (congrArg (fun z : 𝓞 E ↦ v (σ z)) hc).le |
| 1027 | exact eq_one_of_one_le_mul_left (v_le a) (v_le c) h_prod |
| 1028 | have h_star_nonunit : ¬IsUnit (star a) := by simpa using ha_unit |
| 1029 | have h_star_dvd : star a ∣ (p : 𝓞 E) ^ k := by simpa using map_dvd starRingAut (dvd_pow hp_w) |
| 1030 | refine ⟨fun u ↦ (Φ u (star a))⁻¹, by simp [pi_norm_lt_iff, hr_pos, ha_large], star a, k, ?_, |
| 1031 | h_star_nonunit, ?_, h_star_dvd, ?_⟩ |
| 1032 | · simp [intAction, ← x.realEquiv.eq_symm_apply, funext_iff, ha_ne] |
| 1033 | · -- `a` divides a power of `β - b`, and `star a` a power of its conjugate. |
| 1034 | have h_star : star a ∣ (star D.β - b) ^ k := by simpa using map_dvd starRingAut (dvd_pow hb_w) |
| 1035 | simpa using (h_coprime.pow.mono (dvd_pow hb_w) h_star).symm |
| 1036 | · -- In the standard form of the action the determinant is a product of powers of `Φ v₀ a` (a unit |
| 1037 | -- by `t`), its conjugate and `Φ u a`, `u ≠ v₀` (units by `β - b`, using `D.emb_beta_eq_of_ne`). |
| 1038 | obtain ⟨ε, hε⟩ := x.exists_std_equiv |
| 1039 | have h_v₀ : v (Φ v₀ a.val) = 1 := unit_at _ ht_w (v_eq_one ht_not) |
| 1040 | have h_conj : v (star (Φ v₀) a.val) = 1 := unit_at _ hb_w (by simpa) |
| 1041 | have h_other u (hu : u ≠ v₀) : v (Φ u a.val) = 1 := |
| 1042 | unit_at _ hb_w (by simpa [D.emb_beta_eq_of_ne u hu]) |
| 1043 | simpa [← det_conj _ ε, det_prodMap, piMap, det_pi, hε, h_v₀, |
| 1044 | Subtype.forall'.mp h_other] using Or.inl h_conj |
| 1045 | |
| 1046 | end ArcReduction |