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

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Rat |
| 4 | import Mathlib.Analysis.LocallyConvex.AbsConvexOpen |
| 5 | import Mathlib.RingTheory.PiTensorProduct |
| 6 | import Mathlib.RingTheory.Valuation.Integral |
| 7 | public import Lib.Shimura.ThetaModuli.ThetaFamilyRigidity |
| 8 | public import Lib.Shimura.Uniformisation.HolomorphicFamilies |
| 9 | import Lib.Adelic.Adeles.StrongApproximation |
| 10 | import Lib.Shimura.AbelianScheme.IsogenyFlatness |
| 11 | import Lib.Shimura.AbelianScheme.Pairings |
| 12 | import Lib.Shimura.ArcExtension |
| 13 | import Lib.Shimura.Uniformisation.AppellHumbert |
| 14 | import Lib.Shimura.Uniformisation.BallModel |
| 15 | import Lib.Shimura.Uniformisation.LieExponential |
| 16 | |
| 17 | /-! |
| 18 | # Objects modelled on complex tori and their homomorphisms as rational matrices |
| 19 | |
| 20 | This file models the objects of a PEL family `X` (`New.ThetaFamily`) over a valuation ring with |
| 21 | fraction field ℂ on complex tori `V` modulo a lattice given by a polarised period map. It then |
| 22 | describes homomorphisms of modelled objects by matrices `z ∈ GL_n(E)`. |
| 23 | |
| 24 | ## Main definitions and results |
| 25 | |
| 26 | * `New.ThetaObject.TorusModel`: `y.groupScheme` is uniformised by `V` modulo that lattice, with |
| 27 | theta coordinates. |
| 28 | * `New.ThetaTori.PeriodMap.exists_uniformisation_of_isSeparatingFamily`: a dense map given by theta |
| 29 | functions is a uniformisation. |
| 30 | * `New.ThetaObject.TorusModel.fullStructure`: a model trivialises all torsion, compatibly with the |
| 31 | Weil pairing. `New.ThetaObject.TorusModel.exists_unit_on_roots_of_unity` supplies the unit of Ẑ |
| 32 | through which a ring homomorphism `O → ℂ` acts on roots of unity. |
| 33 | * `New.ThetaObject.TorusModel.exists_isTranslationLift_of_dualLattice` (with its parts |
| 34 | `New.ThetaObject.TorusModel.card_nsmul_mem_of_mem_dualLattice` and |
| 35 | `New.ThetaObject.TorusModel.exists_isTranslationLift_of_mem_dualLattice`), |
| 36 | `New.ThetaObject.TorusModel.multiplier_eq_canonicalMultiplier`: translations by the dual lattice |
| 37 | lift to `y.lineBundle`, and the multiplier of the theta coordinates is the canonical one. |
| 38 | * `New.ThetaObject.TorusModel.exists_matrix_of_hom`: a linear `ψ` of multiplier `μ ≠ 0` comes from a |
| 39 | `z`. |
| 40 | * `New.ThetaObject.TorusModel.exists_isIsogenyOfMatrix`, |
| 41 | `New.ThetaObject.TorusModel.exists_isogeny`: a `z` with `z ℓ z⁻¹ = ℓ'` and `g'⁻¹ z g` an integral |
| 42 | similitude of multiplier `μ` gives an isogeny (`New.ThetaObject.TorusModel.IsIsogenyOfMatrix`); |
| 43 | objects with models have the same map from `𝓞 E` |
| 44 | (`New.ThetaObject.TorusModel.baseHom_eq_baseHom`). |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.ThetaTori.PeriodMap`: the linear part of a model: a real isomorphism Q from (E ⊗ ℝ)ⁿ onto V, |
| 48 | a form β with frame g, and a form B on V whose Riemann form pulls back to |
| 49 | `New.Variety.polarisationForm`. |
| 50 | * `New.Variety.frameCoords`: the map y ↦ g⁻¹y from Eⁿ to n-tuples of finite adeles. |
| 51 | * `New.Variety.realVecAction`: the action of a matrix A over E on (E ⊗ ℝ)ⁿ, through Φ_v(A) at the |
| 52 | infinite place v. |
| 53 | |
| 54 | ## Relation to the literature |
| 55 | |
| 56 | Known; see `Lib.Shimura.Uniformisation.AppellHumbert` and `Lib.Shimura.ThetaModuli.UniversalFamily` |
| 57 | for sources. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | /-! |
| 63 | ## Theta uniformisation, Weil pairing and canonical multiplier |
| 64 | |
| 65 | Complex tori as models of the objects of a PEL family `X` (`New.ThetaFamily`). An object `y` over a |
| 66 | valuation ring `O` with fraction field ℂ (`New.ValuativeArc`) is an `O`-point of the base of `X`. It |
| 67 | carries an abelian scheme `y.groupScheme`, a linear system `y.lineBundle` and level points |
| 68 | `y.levelPoints`. A polarised period map (`New.ThetaTori.PeriodMap`) is an isomorphism |
| 69 | `Q : (E ⊗ ℝ)ⁿ ≃ V` with a form `B`. Its lattice consists of the `Q (toRealVectors z)` for `z ∈ Eⁿ` |
| 70 | with `g⁻¹ z` integral. |
| 71 | -/ |
| 72 | |
| 73 | namespace New |
| 74 | |
| 75 | open CategoryTheory Complex LinearMap Submodule NumberField LineBundle Variety ThetaTori Set |
| 76 | AlgebraicGeometry Polynomial AddChar IsIntegrallyClosed |
| 77 | |
| 78 | variable {E : Type} [Field E] [CMBase E] |
| 79 | {D : PEL E} {Z : Scheme} {τ : Z ⟶ Spec (CommRingCat.of (𝓞 E))} {X : ThetaFamily D Z τ} |
| 80 | {O : Type} [CommRing O] [ValuativeArc O] (y : ThetaObject X (Spec ⟨O⟩)) |
| 81 | {g : GL D.Index (𝔸f E)} {ℓ : Matrix D.Index D.Index ℂ} {V : Type} [FinComplexSpace V] |
| 82 | (Y : PeriodMap D g ℓ V) |
| 83 | |
| 84 | /-- The object `y` is modelled on the torus of the polarised period map `Y` onto `V`. The model is a |
| 85 | uniformisation of `y.groupScheme` by `V`. It is compatible with the action of `𝓞 E` and the level |
| 86 | points. Its kernel is the period lattice. Along it, `y.lineBundle` has theta coordinates. -/ |
| 87 | structure ThetaObject.TorusModel where |
| 88 | /-- The map `𝓞 E → O → ℂ` is the embedding `Φ v₀`. -/ |
| 89 | baseHom_eq (c : 𝓞 E) : algebraMap O ℂ (y.baseHom c) = Φ v₀ c.val |
| 90 | /-- The uniformisation of `y.groupScheme` by `V`. -/ |
| 91 | uniformisation : Uniformisation y.groupScheme V |
| 92 | /-- The multiplier of the theta coordinates. -/ |
| 93 | χ : V → ℂ |
| 94 | /-- The theta coordinates, indexed by `D.dualTorsion`. -/ |
| 95 | θ : V → D.dualTorsion → ℂ |
| 96 | /-- Along the uniformisation, `θ` are coordinates of `y.lineBundle` and theta functions of type |
| 97 | `(B, χ)`. -/ |
| 98 | hasThetaCoords : |
| 99 | HasThetaCoords uniformisation.lattice (atGeneric uniformisation.expMap) y.lineBundle |
| 100 | Y.automorphyForm χ θ |
| 101 | /-- The composite of `Q` and the uniformisation commutes with the action of `𝓞 E`. -/ |
| 102 | equivariant (c : 𝓞 E) (w : RealVectors E D.Index) : |
| 103 | uniformisation.expMap (Y.realEquiv (cmEmbedding c.val • w)) = c • uniformisation.expMap |
| 104 | (Y.realEquiv w) |
| 105 | /-- The level points are the images of the chosen rational vectors. -/ |
| 106 | level_eq (l : D.levelTorsion) : y.levelPoints l = uniformisation.expMap (Y.torsionLift l) |
| 107 | /-- The kernel of the uniformisation is the period lattice. -/ |
| 108 | lattice_eq : uniformisation.lattice = Y.periodLattice |
| 109 | |
| 110 | /-- Let `A` be an abelian scheme over `ℂ` embedded in projective space by `N`, and let |
| 111 | `e : V → A(ℂ)` be additive with image dense in the reduced scheme `A`, killing `Y.periodLattice`, |
| 112 | along which `N` has theta coordinates `Y.thetaCoord` of type `(Y.automorphyForm, Y.multiplier)`. Let |
| 113 | `u` be a uniformisation of `A` by `W` along which `N` has theta coordinates of type `(B', χ')`, and |
| 114 | let `F : V → W` be complex linear with `u.expMap ∘ F = e`, pulling the Riemann form of `B'` back to |
| 115 | that of `Y.automorphyForm`. If a line bundle `M` has theta coordinates of type `(B', χ)` along `u` |
| 116 | and `χ ∘ F = Y.multiplier` on `Y.periodLattice`, then `χ = χ'` on `u.lattice`. -/ |
| 117 | lemma ThetaTori.PeriodMap.multiplier_eq_of_pullback {A : Over (Spec (CommRingCat.of ℂ))} {W : Type} |
| 118 | {N M : LineBundle A.left D.dualTorsion} {χ χ' : W → ℂ} {θ θ' : W → D.dualTorsion → ℂ} |
| 119 | [IsAbelianScheme A] [FinComplexSpace W] (hN : IsProjEmbedding N A.hom) |
| 120 | {e : V →+ ComplexPoint A} (h_sep : IsSeparatingFamily (atGeneric e)) |
| 121 | (hY : HasThetaCoords Y.periodLattice (atGeneric e) N Y.automorphyForm Y.multiplier |
| 122 | (flip Y.thetaCoord)) |
| 123 | (h_kill : ∀ l ∈ Y.periodLattice, e l = 0) |
| 124 | {u : Uniformisation A W} {B' : LatticeForm u.lattice} |
| 125 | (hu : HasThetaCoords u.lattice (atGeneric u.expMap) N B' χ' θ') |
| 126 | {F : V →L[ℂ] W} (hF : ∀ z : V, u.expMap (F z) = e z) |
| 127 | (h_riem : RealComplexForm.riemannForm (B'.pullForm F) = Y.automorphyForm.riemannForm) |
| 128 | (hM : HasThetaCoords (ι := D.dualTorsion) u.lattice (atGeneric u.expMap) M B' χ θ) |
| 129 | (hχ : ∀ l ∈ Y.periodLattice, χ (F l) = Y.multiplier l) (l : W) (hl : l ∈ u.lattice) : |
| 130 | χ l = χ' l := by |
| 131 | -- The coordinates of `M`, pulled back by `F` and normalised, are sections of `N`; together they |
| 132 | -- form a section of `N ⊗ M⁻¹`, which is a theta function `G` of type `(0, χ' / χ)` along `u`. |
| 133 | -- Such a `G` is constant on lines through `0` and `G 0 ≠ 0`; so `χ' / χ` is `1` on `u.lattice`. |
| 134 | have h_lifts (z : V) : N.IsHomogeneousCoords (e z).left fun i : D.dualTorsion ↦ |
| 135 | Y.thetaCoord i z := |
| 136 | hY.hasFieldCoords z |
| 137 | have h_pull {M : LineBundle A.left D.dualTorsion} {χ : W → ℂ} {θ : W → D.dualTorsion → ℂ} |
| 138 | (hM : HasThetaCoords (ι := D.dualTorsion) u.lattice (atGeneric u.expMap) M B' χ θ) : |
| 139 | HasThetaCoords Y.periodLattice (fun z : V ↦ (e z).left) M (B'.pullForm F) (χ ∘ F) |
| 140 | (θ ∘ F) := by |
| 141 | -- `atGeneric_eq`, `comp_id` and `pull_id` are rewritten: the kernel is slow to unfold them. |
| 142 | have h := hM.pull F (f := 𝟙 _) (e' := fun z ↦ (e z).left) (fun z ↦ by |
| 143 | rw [Category.comp_id, atGeneric_eq]; exact congrArg Over.Hom.left (hF z)) |
| 144 | fun l hl ↦ by rw [u.eq_zero_iff, hF, h_kill l hl] |
| 145 | rwa [LineBundle.pull_id] at h |
| 146 | -- Evaluation along `e` sends sections of `N` to functions on `V`, and the coordinates to |
| 147 | -- `Y.thetaCoord`. |
| 148 | obtain ⟨ev, h_ev, h_ev_coord, -⟩ := exists_theta_evaluation hY |
| 149 | -- The range of `ev` contains the translates of `Y.thetaCoord 0` by the dual lattice |
| 150 | -- (`Y.thetaShift_thetaCoord`), so by irreducibility it contains every theta function of type |
| 151 | -- `(Y.automorphyForm, Y.multiplier)`. |
| 152 | have h_range : Y.automorphyForm.thetaSpace Y.multiplier ≤ ev.range := by |
| 153 | refine Y.isAppellHumbert_periodLattice.thetaSpace_le_of_thetaShift_mem |
| 154 | (Y.thetaCoord_mem_thetaSpace 0) (Y.thetaCoord_ne_zero 0) ev.range ?_ |
| 155 | rw [Y.dualLattice_periodLattice] |
| 156 | rintro _ ⟨w, hw, rfl⟩ |
| 157 | change Y.automorphyForm.thetaShift (Y.periodPoint w) (Y.thetaCoord 0) ∈ ev.range |
| 158 | rw [Y.thetaShift_thetaCoord (s := ⟨_, hw⟩) rfl 0] |
| 159 | exact ev.range.smul_mem _ ⟨_, h_ev_coord _⟩ |
| 160 | -- The normalised pull-backs of the coordinates of `M` are such theta functions, so they come |
| 161 | -- from sections `σ a` of `N`. |
| 162 | let q (z : V) : ℂ := exp ((Y.automorphyForm z z - B'.pullForm F z z) / 2) |
| 163 | have h_mem_range (a : D.dualTorsion) : (fun z : V ↦ q z * (θ ∘ F) z a) ∈ ev.range := |
| 164 | h_range <| (h_pull hM).isAppellHumbert.exp_mul_mem_thetaSpace Y.isAppellHumbert_periodLattice |
| 165 | h_riem |
| 166 | hχ ((h_pull hM).mem_thetaSpace a) |
| 167 | choose σ hσ using h_mem_range |
| 168 | have hσ_val (a i : D.dualTorsion) (z : V) (hz : Y.thetaCoord i z ≠ 0) : |
| 169 | (σ a).val i (CommRingCat.of ℂ) (e z).left = q z * θ (F z) a / Y.thetaCoord i z := |
| 170 | (h_ev (σ a) _).mp (hσ a) i z hz |
| 171 | -- By density of the points `e z`, the `σ a` transform in `a` by the cocycle of `M`; so they |
| 172 | -- glue to a section of `N ⊗ M⁻¹`, given on `u` by a theta function `G` of type `(0, χ' / χ)`. |
| 173 | have h_reg (p : D.dualTorsion × D.dualTorsion) : |
| 174 | PointFn.IsRegularOn ((σ p.2).val p.1) ((N.mul M.inv).opens p) := |
| 175 | -- The components of a section are regular on their charts. |
| 176 | ((σ p.2).prop.left.left p.1).mono inf_le_left |
| 177 | have h_sec : (N.mul M.inv).IsSection fun p : D.dualTorsion × D.dualTorsion ↦ (σ p.2).val p.1 := by |
| 178 | refine ⟨h_reg, fun p p' R x hp hp' ↦ h_sep.pointFn_ext ((h_reg p).mono (by order)) |
| 179 | (.mul (regular ..) (h_reg p')) ?_ R x (landsIn_inf.mpr ⟨landsIn_inf.mpr ⟨hp, hp'⟩, hp'⟩)⟩ |
| 180 | -- At the points `e z` both sides are computed from `hσ_val` and the coordinates of `N`, `M`. |
| 181 | simp +contextual [h_lifts .., hσ_val, (h_pull hM).hasFieldCoords .., field] |
| 182 | obtain ⟨G, hG, hG_val⟩ := hu.exists_theta_of_isSection hM h_sec (hu.holomorphicAt hN) |
| 183 | fun l hl z p ↦ by rw [u.atGeneric_add_of_mem l hl z] |
| 184 | -- `G` has no zero on the image of `F`: where `Y.thetaCoord i z` and `θ (F z) a` are nonzero, the |
| 185 | -- value of `σ a` is nonzero by `hσ_val` and a multiple of `G (F z)` by `hG_val`. |
| 186 | have hG_ne (z : V) : G (F z) ≠ 0 := by |
| 187 | obtain ⟨i, hi⟩ : ∃ i : D.dualTorsion, Y.thetaCoord i z ≠ 0 := (h_lifts z).exists_ne_zero |
| 188 | obtain ⟨a, ha⟩ : ∃ i : D.dualTorsion, (θ ∘ F) z i ≠ 0 := |
| 189 | ((h_pull hM).hasFieldCoords z).exists_ne_zero |
| 190 | -- Both systems of coordinates are units exactly on the same chart `i`. |
| 191 | have hi' : θ' (F z) i ≠ 0 := by |
| 192 | obtain ⟨h_lands_iff, -⟩ := h_lifts z i |
| 193 | obtain ⟨h_lands_iff', -⟩ := (h_pull hu).hasFieldCoords z i |
| 194 | exact (h_lands_iff'.mp (h_lands_iff.mpr hi.isUnit)).ne_zero |
| 195 | intro h_zero |
| 196 | apply ha |
| 197 | simpa [h_zero, hσ_val, hF, hi, q] using hG_val i a (F z) hi' |
| 198 | -- The form `B' - B'` of `G` is zero, so `G` is constant on lines through `0`; its functional |
| 199 | -- equation at `0` then forces the multiplier `χ' l / χ l` to be `1`. |
| 200 | have hG_const : G l = G 0 := by |
| 201 | simpa using |
| 202 | (hu.isAppellHumbert.add hM.isAppellHumbert.neg).apply_smul_of_nonpos hG l (by simp) 1 |
| 203 | have hG_zero : G 0 ≠ 0 := by simpa using hG_ne 0 |
| 204 | obtain ⟨-, hG_shift⟩ : Differentiable ℂ G ∧ ∀ l ∈ u.lattice, ∀ z : W, |
| 205 | G (z + l) = (χ' * χ⁻¹) l * Complex.exp ((B' + -B') l z + (B' + -B') l l / 2) * G z := hG |
| 206 | simpa [hG_const, hG_zero, hM.isAppellHumbert.ne_zero hl, field, eq_comm] using hG_shift l hl 0 |
| 207 | |
| 208 | /-- Let `A` be an abelian scheme over `ℂ`, smooth of relative dimension `d`, embedded in projective |
| 209 | space by `N` whose class satisfies the parallelogram law. Let the homomorphism `e : V → A(ℂ)` have |
| 210 | dense image in `A` (with `A` reduced), kill `Y.periodLattice` and carry `Y.thetaCoord` as |
| 211 | homogeneous coordinates. Then there is a uniformisation `u` of `A` by `V` with (a) theta coordinates |
| 212 | `Y.thetaCoord` of type `(Y.automorphyForm, Y.multiplier)`, (b) map `e` and kernel `Y.periodLattice`; |
| 213 | and (c) `d = New.Variety.abelianDim E D.Index`, which is `|D.Index|` times the number of infinite |
| 214 | places of `E`. -/ |
| 215 | lemma ThetaTori.PeriodMap.exists_uniformisation_of_isSeparatingFamily |
| 216 | {A : Over (Spec (CommRingCat.of ℂ))} |
| 217 | {N : LineBundle A.left D.dualTorsion} [IsAbelianScheme A] (d : ℕ) |
| 218 | (h_smooth : SmoothOfRelativeDimension d A.hom) (hN : IsProjEmbedding N A.hom) |
| 219 | (h_par : N.picClass.ParallelogramLaw) |
| 220 | (e : V →+ ComplexPoint A) (h_sep : IsSeparatingFamily (atGeneric e)) |
| 221 | (h_lifts : ∀ z : V, N.IsHomogeneousCoords (e z).left fun i : D.dualTorsion ↦ Y.thetaCoord i z) |
| 222 | (h_kill : ∀ l ∈ Y.periodLattice, e l = 0) : |
| 223 | ∃ u : Uniformisation A V, |
| 224 | HasThetaCoords u.lattice (atGeneric u.expMap) N Y.automorphyForm Y.multiplier |
| 225 | (flip Y.thetaCoord) ∧ |
| 226 | u.expMap = e ∧ |
| 227 | u.lattice = Y.periodLattice ∧ |
| 228 | d = abelianDim E D.Index := by |
| 229 | -- Take any uniformisation `u` of `A`, with theta coordinates of type `(B', χ')`, and the linear |
| 230 | -- lift `F` of `e`. It pulls the Riemann form of `B'` back to that of `Y.automorphyForm`. The main |
| 231 | -- step shows that a vector dual to `F Y.periodLattice` is dual to all of `u.lattice`; it follows |
| 232 | -- that `F` is bijective and that `Y.periodLattice` is the kernel of `e = u.expMap ∘ F`, so `e` is |
| 233 | -- itself a uniformisation. |
| 234 | obtain ⟨u⟩ : Nonempty (Uniformisation A (Fin d → ℂ)) := hN.nonempty_uniformisation h_smooth |
| 235 | have hY : HasThetaCoords Y.periodLattice (atGeneric e) N Y.automorphyForm Y.multiplier |
| 236 | (flip Y.thetaCoord) := |
| 237 | .mk hN.isLinearSystem Y.isAppellHumbert_periodLattice Y.thetaCoord_mem_thetaSpace h_lifts |
| 238 | obtain ⟨B', χ', θ', hu, h_pos⟩ := u.appell_humbert hN h_par |
| 239 | obtain ⟨F, hF⟩ := u.universal e (hY.holomorphicAt hN 0) |
| 240 | -- Along `e`, `N` now has two systems of theta coordinates; so their Riemann forms agree |
| 241 | -- (`h_riem`), and so do their multipliers on `Y.periodLattice` (`hχ'`). |
| 242 | have hF_mem : ∀ l ∈ Y.periodLattice, F l ∈ u.lattice := fun l hl ↦ by |
| 243 | rw [u.eq_zero_iff, hF, h_kill l hl] |
| 244 | have h_pull : |
| 245 | HasThetaCoords Y.periodLattice (atGeneric e) N (B'.pullForm F) (χ' ∘ F) (θ' ∘ F) := by |
| 246 | -- `atGeneric_eq`, `comp_id` and `pull_id` are rewritten: the kernel is slow to unfold them. |
| 247 | have h := hu.pull F (f := 𝟙 _) (e' := atGeneric e) (fun z ↦ by |
| 248 | rw [Category.comp_id, atGeneric_eq, atGeneric_eq]; exact congrArg Over.Hom.left (hF z)) hF_mem |
| 249 | rwa [LineBundle.pull_id] at h |
| 250 | -- `N ⊗ N⁻¹` has a frame, as the class of `N` is equal to itself. |
| 251 | obtain ⟨w, h_frame⟩ := picClass_eq_iff.mp (rfl : N.picClass = N.picClass) |
| 252 | obtain ⟨h_riem, hχ', -⟩ := h_pull.riemannForm_eq_of_isFrame hY h_frame (hY.holomorphicAt hN) |
| 253 | fun l hl ↦ atGeneric_add_of_map_eq_zero e (h_kill l hl) |
| 254 | -- Main step: the translate of `N` by `u.expMap b` has multiplier `χ' l * B'.riemannPhase l b`, so |
| 255 | -- by `multiplier_eq_of_pullback` a vector dual to `F Y.periodLattice` is dual to `u.lattice`. |
| 256 | have h_dual (b : Fin d → ℂ) (hb : ∀ l ∈ Y.periodLattice, B'.riemannPhase (F l) b = 1) |
| 257 | (l : Fin d → ℂ) (hl : l ∈ u.lattice) : B'.riemannPhase l b = 1 := by |
| 258 | have h := Y.multiplier_eq_of_pullback hN h_sep hY h_kill hu hF h_riem |
| 259 | (hu.pull_translate (u.atGeneric_add b)) |
| 260 | (fun l' hl' ↦ by rw [hb l' hl', mul_one]; exact hχ' l' hl') l hl |
| 261 | exact mul_left_cancel₀ (hu.isAppellHumbert.ne_zero hl) (h.trans (mul_one _).symm) |
| 262 | -- `F` is bijective: with `T b = B'.riemannForm (F ·) b`, the map `T ∘ F` is bijective since the |
| 263 | -- pulled-back form is nondegenerate, and `T` is injective: the real subspace `ker T` pairs |
| 264 | -- integrally, hence trivially, with `u.lattice`, which spans, and `B'.riemannForm` is |
| 265 | -- nondegenerate. |
| 266 | let T : (Fin d → ℂ) →ₗ[ℝ] V →ₗ[ℝ] ℝ := (B'.riemannForm ∘ₗ F.toLinearMap.restrictScalars ℝ).flip |
| 267 | have h_nondeg : (RealComplexForm.riemannForm (B'.pullForm F)).Nondegenerate := by |
| 268 | simpa only [h_riem] using Y.isPosRiemann.nondegenerate (L := Y.periodLattice) |
| 269 | have hTF : Function.Bijective (T ∘ F) := (BilinForm.toDual _ h_nondeg.flip).bijective |
| 270 | have hT : Function.Injective T := by |
| 271 | rw [← ker_eq_bot, eq_bot_iff, ← h_pos.nondegenerate.flip.ker_eq_bot] |
| 272 | refine le_ker_iff_comp_subtype_eq_zero.mpr |
| 273 | (flip_inj (ext_on (IsZLattice.span_top (L := u.lattice)) fun l hl ↦ ?_)) |
| 274 | refine eq_zero_of_forall_fourierChar_eq_one _ fun ⟨b, hb⟩ ↦ ?_ |
| 275 | have hb_dual : ∀ l ∈ Y.periodLattice, B'.riemannPhase (F l) b = 1 := fun l _ ↦ by |
| 276 | have h0 : B'.riemannForm (F l) b = 0 := LinearMap.congr_fun (mem_ker.mp hb) l |
| 277 | rw [RealComplexForm.riemannPhase, h0, map_zero_eq_one] |
| 278 | rfl |
| 279 | exact h_dual b hb_dual l hl |
| 280 | let F_equiv : V ≃ₗ[ℂ] (Fin d → ℂ) := .ofBijective F.toLinearMap (.of_comp_left hTF hT) |
| 281 | have he : ⇑e = u.expMap ∘ F_equiv := (funext hF).symm |
| 282 | -- If `e z = 0` then `F z ∈ u.lattice` pairs integrally with `F y` for `y` in the dual of |
| 283 | -- `Y.periodLattice`; so `z` pairs integrally with that dual, and `z ∈ Y.periodLattice`. |
| 284 | have h_ker (z : V) (hz : e z = 0) : z ∈ Y.periodLattice := by |
| 285 | have hFz_mem : F z ∈ u.lattice := by rw [u.eq_zero_iff, hF, hz] |
| 286 | refine Y.isPosRiemann.isDualFamily.mem_of_forall_eq_one z fun y ↦ ?_ |
| 287 | have h_dual_y : ∀ l ∈ Y.periodLattice, B'.riemannPhase (F l) (F y) = 1 := fun l hl ↦ by |
| 288 | simpa [← h_riem, riemannForm_pullForm] using (Y.isPosRiemann.isDualFamily.periodic y).2 l hl 0 |
| 289 | rw [← h_riem] |
| 290 | exact h_dual (F y) h_dual_y (F z) hFz_mem |
| 291 | -- Immersivity and the universal property pass from `u.expMap` to `e` along the isomorphism `F`. |
| 292 | have h_imm (z v : V) (hv : IsFirstOrderConst (atGeneric e) z v) : v = 0 := by |
| 293 | obtain ⟨h_hol, h_only_zero⟩ := u.immersive (F z) |
| 294 | rw [he] at hv |
| 295 | have h_Fv : IsFirstOrderConst (atGeneric u.expMap) (F z) (F v) := |
| 296 | (isJet_comp_iff F.hasFDerivAt h_hol).mp hv |
| 297 | exact F_equiv.ker.le (h_only_zero (F v) h_Fv) |
| 298 | refine ⟨{ expMap := e |
| 299 | lattice := Y.periodLattice |
| 300 | surjective := by simpa only [he] using u.surjective.comp F_equiv.surjective |
| 301 | eq_zero_iff := fun z ↦ ⟨h_kill z, h_ker z⟩ |
| 302 | immersive := fun z ↦ ⟨hY.holomorphicAt hN z, h_imm z⟩ |
| 303 | universal := fun γ hγ ↦ ?_ }, hY, rfl, rfl, |
| 304 | by simp [← finrank_eq_abelianDim Y.realEquiv, F_equiv.finrank_eq]⟩ |
| 305 | obtain ⟨F', hF'⟩ := u.universal γ hγ |
| 306 | refine ⟨F_equiv.symm.toContinuousLinearEquiv ∘L F', fun w ↦ ?_⟩ |
| 307 | simp [he, hF'] |
| 308 | |
| 309 | end New |
| 310 | |
| 311 | namespace New.ThetaObject.TorusModel |
| 312 | |
| 313 | open CategoryTheory Complex LinearMap Submodule NumberField LineBundle Variety ThetaTori Set |
| 314 | AlgebraicGeometry Polynomial AddChar IsIntegrallyClosed |
| 315 | |
| 316 | variable {E : Type} [Field E] [CMBase E] |
| 317 | {D : PEL E} {Z : Scheme} {τ : Z ⟶ Spec (CommRingCat.of (𝓞 E))} {X : ThetaFamily D Z τ} |
| 318 | {O : Type} [CommRing O] [ValuativeArc O] {y : ThetaObject X (Spec ⟨O⟩)} |
| 319 | {g : GL D.Index (𝔸f E)} {ℓ : Matrix D.Index D.Index ℂ} {V : Type} [FinComplexSpace V] |
| 320 | {Y : PeriodMap D g ℓ V} (m : y.TorusModel Y) |
| 321 | |
| 322 | /-! ### The full structure of a model -/ |
| 323 | |
| 324 | /-- The map `π` of a model `m` sends (E ⊗ ℝ)ⁿ to the sections of `y.groupScheme` over `O`. It is the |
| 325 | period map `Q` followed by the uniformisation. -/ |
| 326 | noncomputable def π (w : RealVectors E D.Index) : |
| 327 | MonoidalCategoryStruct.tensorUnit (Over (Spec (CommRingCat.of O))) ⟶ y.groupScheme := |
| 328 | m.uniformisation.expMap (Y.realEquiv w) |
| 329 | |
| 330 | /-- A ring homomorphism `φ : O → ℂ` acts on roots of unity through a unit of Ẑ. Here `ψf E` is the |
| 331 | standard additive character of the finite adeles of `E`, whose values are roots of unity. There is |
| 332 | a unit `ε` of Ẑ such that each value `ψf E t` is the image of some `c ∈ O` with |
| 333 | `φ c = ψf E (t ε)`. -/ |
| 334 | lemma exists_unit_on_roots_of_unity (φ : O →+* ℂ) : |
| 335 | ∃ ε : (Ô ℚ)ˣ, ∀ t : 𝔸f E, ∃ c : O, |
| 336 | algebraMap O ℂ c = ψf E t ∧ φ c = ψf E (t * finAdeleIncl ℚ E ε) := by |
| 337 | -- Roots of unity are integral, so they lie in `O`: `ζ z` is the preimage of `z`. |
| 338 | have : IsIntegrallyClosed O := (ValuationRing.integers O ℂ).isIntegrallyClosed |
| 339 | have h_lift (z : ℂ) (hz : IsOfFinOrder z) : ∃ c : O, algebraMap O ℂ c = z := |
| 340 | isIntegral_iff (R := O).mp |
| 341 | ((IsPrimitiveRoot.orderOf z).isIntegral (orderOf_pos_iff.mpr hz)).tower_top |
| 342 | choose! ζ hζ using h_lift |
| 343 | -- The sets `C t` of pairs `(ε, ε')` with `φ (ζ (ψf E t)) = ψf E (t ε)` and |
| 344 | -- `ψf E (t ε ε') = ψf E t` are closed; by compactness of `Ẑ × Ẑ` it is enough to treat finitely |
| 345 | -- many `t` at a time. |
| 346 | let ι : 𝔸f ℚ →+* 𝔸f E := finAdeleIncl ℚ E |
| 347 | let C (t : 𝔸f E) : Set (𝔸f ℚ × 𝔸f ℚ) := |
| 348 | {p : 𝔸f ℚ × 𝔸f ℚ | |
| 349 | φ (ζ (ψf E t)) = ψf E (t * ι p.fst) ∧ ψf E (t * ι (p.fst * p.snd)) = ψf E t} |
| 350 | have hC_closed (t : 𝔸f E) : IsClosed (C t) := by |
| 351 | apply (isClosed_eq _ (.subtypeVal _)).and (isClosed_eq ..) <;> fun_prop |
| 352 | have h_fin (U : Finset (𝔸f E)) : ((Ô ℚ : Set _) ×ˢ (Ô ℚ : Set _) ∩ ⋂ t ∈ U, C t).Nonempty := by |
| 353 | -- All `ψf E t`, `t ∈ U`, are `N`-th roots of unity. |
| 354 | obtain ⟨N, hN, hU⟩ := exists_forall_mul_mem_Ô fun t : U ↦ (t : 𝔸f E) |
| 355 | have hN_ne : NeZero N := ⟨hN⟩ |
| 356 | have h_inj : Function.Injective (algebraMap O ℂ) := IsFractionRing.injective O ℂ |
| 357 | obtain ⟨ω, hω⟩ : ∃ ω : ℂ, IsPrimitiveRoot ω N := ⟨_, isPrimitiveRoot_exp N hN⟩ |
| 358 | have hω_alg : algebraMap O ℂ (ζ ω) = ω := hζ ω (hω.isOfFinOrder hN) |
| 359 | have hζω : IsPrimitiveRoot (ζ ω) N := .of_map_of_injective (by rwa [hω_alg]) h_inj |
| 360 | -- `φ (ζ ω)` is a root of the cyclotomic polynomial, so it and `ω` are powers of each other. |
| 361 | have hφω : IsPrimitiveRoot (φ (ζ ω)) N := by |
| 362 | rw [← isRoot_cyclotomic_iff, ← map_cyclotomic N φ] |
| 363 | exact (hζω.isRoot_cyclotomic hN.pos).map φ |
| 364 | obtain ⟨k, -, hk⟩ := hω.eq_pow_of_pow_eq_one hφω.pow_eq_one |
| 365 | obtain ⟨l, -, hl⟩ := hφω.eq_pow_of_pow_eq_one hω.pow_eq_one |
| 366 | refine ⟨(k, l), by simp, Set.mem_biInter fun t ht ↦ ?_⟩ |
| 367 | have ht_alg : algebraMap O ℂ (ζ (ψf E t)) = ψf E t := hζ _ (isOfFinOrder_ψf t) |
| 368 | have ht_pow : ζ (ψf E t) ^ N = 1 := by |
| 369 | apply h_inj |
| 370 | simp [ht_alg, ← Circle.coe_pow, ← map_nsmul_eq_pow, ψf_eq_one_of_mem (hU ⟨t, ht⟩)] |
| 371 | -- So `ζ (ψf E t)` is a power of `ζ ω`: `φ` acts on it as the `k`-th power, undone by `l`. |
| 372 | obtain ⟨a, -, ha⟩ := hζω.eq_pow_of_pow_eq_one ht_pow |
| 373 | have h_pow : ω ^ a = ψf E t := by rw [← hω_alg, ← map_pow, ha, ht_alg] |
| 374 | have h_act : φ (ζ (ψf E t)) = ψf E t ^ k := by |
| 375 | rw [← ha, map_pow, ← hk, pow_right_comm, h_pow] |
| 376 | have h_undo : ((ψf E t : ℂ) ^ k) ^ l = ψf E t := by |
| 377 | rw [← h_pow, pow_right_comm ω a k, hk, pow_right_comm, hl] |
| 378 | refine ⟨?_, Circle.ext ?_⟩ |
| 379 | · change φ (ζ (ψf E t)) = ψf E (t * ι (k : 𝔸f ℚ)) |
| 380 | rw [map_natCast, ← nsmul_eq_mul', map_nsmul_eq_pow, Circle.coe_pow, h_act] |
| 381 | · change (ψf E (t * ι ((k : 𝔸f ℚ) * (l : 𝔸f ℚ))) : ℂ) = ψf E t |
| 382 | rw [map_mul ι, map_natCast, map_natCast, ← mul_assoc, ← nsmul_eq_mul', ← nsmul_eq_mul', |
| 383 | map_nsmul_eq_pow, map_nsmul_eq_pow, Circle.coe_pow, Circle.coe_pow, h_undo] |
| 384 | obtain ⟨⟨ε, ε'⟩, ⟨hε, hε'⟩, h_mem⟩ := |
| 385 | (isCompact_Ô.prod isCompact_Ô).inter_iInter_nonempty C hC_closed h_fin |
| 386 | rw [Set.mem_iInter] at h_mem |
| 387 | -- `ψf` separates finite adeles, so `ε * ε' = 1`. |
| 388 | have h_unit : ε * ε' = 1 := |
| 389 | adeleMap_injective (algebraMap _ E) (eq_of_forall_ψf_mul_eq fun t ↦ by |
| 390 | simpa [ι] using (h_mem t).right) |
| 391 | exact ⟨.mkOfMulEqOne ⟨ε, hε⟩ ⟨ε', hε'⟩ (Subtype.ext h_unit), fun t ↦ |
| 392 | ⟨ζ (ψf E t), hζ (ψf E t) (isOfFinOrder_ψf t), (h_mem t).left⟩⟩ |
| 393 | |
| 394 | /-- Two rational vectors `a`, `b` give the same point of `y.groupScheme` (the images of their |
| 395 | periods under the uniformisation of the model `m`) exactly when their torsion classes g⁻¹a and g⁻¹b |
| 396 | in (𝔸_f / Ô)ⁿ agree. -/ |
| 397 | lemma expMap_periodPoint_eq_iff (a b : D.Index → E) : |
| 398 | m.uniformisation.expMap (Y.periodPoint a) = m.uniformisation.expMap (Y.periodPoint b) ↔ |
| 399 | Variety.frameTorsionClass g a = Variety.frameTorsionClass g b := by |
| 400 | simpa [← m.lattice_eq, sub_eq_zero] using Y.sub_mem_periodLattice_iff (y := a) (z := b) |
| 401 | |
| 402 | /-- The full structure of a model: the class of g⁻¹a in (𝔸_f / Ô)ⁿ, for a in Eⁿ, is sent to the |
| 403 | torsion section `expMap (Q (toRealVectors a))`, computed at the chosen rational lift `ratLift g` of |
| 404 | the class. -/ |
| 405 | noncomputable def fullStructure : y.FullLevelStructure where |
| 406 | torsionPoint := |
| 407 | { toFun x := m.uniformisation.expMap (Y.periodPoint (ratLift g x)) |
| 408 | map_add' := by |
| 409 | simp only [← map_add, m.expMap_periodPoint_eq_iff, frameTorsionClass_ratLift, |
| 410 | map_add (frameTorsionClass g), implies_true] |
| 411 | map_smul' := by |
| 412 | simp only [RingHom.id_apply, ← equivariant, ← toRealVectors_smul, |
| 413 | m.expMap_periodPoint_eq_iff, frameTorsionClass_ratLift, map_smul, implies_true] } |
| 414 | injective _ := by |
| 415 | simp only [LinearMap.coe_mk, AddHom.coe_mk, m.expMap_periodPoint_eq_iff, |
| 416 | frameTorsionClass_ratLift, imp_self, implies_true] |
| 417 | levelPoints_eq := m.level_eq |
| 418 | weil_pairing ι := by |
| 419 | -- The frame `g` scales the form by a unit `a`, and `ι` acts on roots of unity through `ε`. |
| 420 | obtain ⟨a, ha⟩ := Y.isFrameFor |
| 421 | obtain ⟨ε, hε⟩ := exists_unit_on_roots_of_unity (E := E) ι |
| 422 | refine ⟨a * ε, fun k s t hs ht ↦ ?_⟩ |
| 423 | obtain ⟨c, hc, hιc⟩ := hε (finAdeleIncl ℚ E a * (k * xiForm D.ξ s t)) |
| 424 | refine ⟨c, by simpa only [Units.val_mul, Subring.coe_mul, map_mul, mul_right_comm] using hιc, |
| 425 | fun Φ Ψ hΦ hΨ ↦ (lift_commutator_iff_weil_pairing _ m.hasThetaCoords hΦ hΨ).2 ?_⟩ |
| 426 | -- It remains to see that `c` is `Real.fourierChar` of `polarisationForm` at `s'` and `k • t'`, |
| 427 | -- where `s'`, `t'` are rational lifts of the classes of `s` and `t`. |
| 428 | -- `fourierChar_polarisationForm` rewrites this through `ψf`. |
| 429 | set s' := ratLift g (torsionClass s) with hs' |
| 430 | set t' := ratLift g (torsionClass t) with ht' |
| 431 | have h_repr : |
| 432 | ψf E (finAdeleIncl ℚ E a * xiForm D.ξ (frameCoords g s') (frameCoords g (k • t'))) = |
| 433 | Real.fourierChar (polarisationForm D Y.formMatrix (toRealVectors s') |
| 434 | (toRealVectors (k • t'))) := |
| 435 | (fourierChar_polarisationForm ha s' (k • t')).symm |
| 436 | -- Up to the main term, the form pairs integral vectors, on which `ψf` is trivial |
| 437 | -- (`D.mem_dualTorsion`). |
| 438 | have h_form (ξ : E) (v : D.Index → E) (w : D.Index → 𝔸f E) : |
| 439 | xiForm ξ (frameCoords g v) (k • w) = |
| 440 | k * xiForm ξ s t + xiForm ξ (k • s) (w - t) + xiForm ξ (frameCoords g v - s) (k • w) := by |
| 441 | -- Expand the form by bilinearity; the identity is then one of the commutative ring `𝔸f E`. |
| 442 | simp only [xiForm, star_sub, star_smul, star_trivial, dotProduct_sub, sub_dotProduct, |
| 443 | smul_dotProduct, dotProduct_smul] |
| 444 | ring |
| 445 | simpa only [hc, hs', ht', coe_fourierChar_eq_exp, map_nsmul, LinearMap.smul_apply, |
| 446 | Y.riemannForm_eq, polarisationForm_toRealVectors, map_smul_of_tower, h_form, mul_add, |
| 447 | map_add_eq_mul, hs, zero_mem, map_sub, ← frameTorsionClass_apply, frameTorsionClass_ratLift, |
| 448 | sub_self, (D.mem_dualTorsion _).1, (ψf_unit_mul_eq_one_iff _).2, mul_one, ht, |
| 449 | Circle.ext_iff] using h_repr |
| 450 | |
| 451 | /-- `New.ThetaObject.TorusModel.fullStructure` sends the class of g⁻¹z to the section at the period |
| 452 | of z for every z in Eⁿ, not only for the chosen representative of the class. -/ |
| 453 | lemma torsionPoint_frameTorsionClass (z : D.Index → E) : |
| 454 | m.fullStructure.torsionPoint (Variety.frameTorsionClass g z) = |
| 455 | m.uniformisation.expMap (Y.periodPoint z) := by |
| 456 | change m.uniformisation.expMap (Y.periodPoint (ratLift g (Variety.frameTorsionClass g z))) = _ |
| 457 | rw [m.expMap_periodPoint_eq_iff, frameTorsionClass_ratLift] |
| 458 | |
| 459 | /-! ### The dual lattice and the multiplier of a model -/ |
| 460 | |
| 461 | /-- The order of `D.dualTorsion` kills the lattice dual to `m.uniformisation.lattice` (for the |
| 462 | Riemann form) modulo `m.uniformisation.lattice`. -/ |
| 463 | lemma card_nsmul_mem_of_mem_dualLattice : |
| 464 | ∀ b ∈ Y.automorphyForm.dualLattice (L := m.uniformisation.lattice), |
| 465 | Nat.card D.dualTorsion • b ∈ m.uniformisation.lattice := by |
| 466 | -- The dual lattice consists of the periods of the vectors `w` whose class lies in |
| 467 | -- `D.dualTorsion`. |
| 468 | rw [m.lattice_eq, Y.dualLattice_periodLattice] |
| 469 | exact fun b hb ↦ Y.card_nsmul_mem_periodLattice hb |
| 470 | |
| 471 | /-- Let `S` be the `O`-span of the coordinates of `y.lineBundle` and `b` a vector of the lattice |
| 472 | dual to `m.uniformisation.lattice` for the Riemann form. Then the translation by the section |
| 473 | `m.uniformisation.expMap b` has a lift `Φ` to the sections of `y.lineBundle` with `Φ S ⊆ S`. -/ |
| 474 | lemma exists_isTranslationLift_of_mem_dualLattice : |
| 475 | ∀ b ∈ Y.automorphyForm.dualLattice (L := m.uniformisation.lattice), ∃ Φ : |
| 476 | Module.End O ↥(y.lineBundle.H0 O), |
| 477 | IsTranslationLift y.lineBundle (m.uniformisation.expMap b) Φ ∧ |
| 478 | span O (Set.range (coordSection y.isProjEmbedding.isLinearSystem)) ∈ Φ.invtSubmodule := by |
| 479 | -- The dual lattice consists of the periods of the vectors `w` whose class lies in |
| 480 | -- `D.dualTorsion`. |
| 481 | rw [m.lattice_eq, Y.dualLattice_periodLattice] |
| 482 | rintro _ ⟨w, hw, rfl⟩ |
| 483 | -- The theta structure lifts translation by the level point of that class; the lift permutes |
| 484 | -- the coordinates up to scalars, the cocycle chosen inside the theta structure. |
| 485 | obtain ⟨Φ, h_lift, h_coord⟩ := y.isThetaStructure.theta_law 1 ⟨frameTorsionClass g w, hw⟩ |
| 486 | have h_point : |
| 487 | y.levelPoints (AddSubgroup.inclusion D.dualTorsion_le_levelTorsion |
| 488 | ⟨frameTorsionClass g w, hw⟩) = |
| 489 | m.uniformisation.expMap (Y.periodPoint w) := |
| 490 | (m.fullStructure.levelPoints_eq _).trans (m.torsionPoint_frameTorsionClass w) |
| 491 | refine ⟨Φ, by simpa [← h_point] using h_lift, span_le.mpr ?_⟩ |
| 492 | simp [h_coord, range_subset_iff, smul_mem, mem_span_of_mem] |
| 493 | |
| 494 | /-- Let `S` be the `O`-span of the coordinates of `y.lineBundle` and `b` a vector of the lattice |
| 495 | dual to `m.uniformisation.lattice` for the Riemann form. Then `|D.dualTorsion| • b` lies in |
| 496 | `m.uniformisation.lattice`, and the translation by the section `m.uniformisation.expMap b` has a |
| 497 | lift `Φ` to the sections of `y.lineBundle` with `Φ S ⊆ S`. -/ |
| 498 | lemma exists_isTranslationLift_of_dualLattice : |
| 499 | ∀ b ∈ Y.automorphyForm.dualLattice (L := m.uniformisation.lattice), |
| 500 | Nat.card D.dualTorsion • b ∈ m.uniformisation.lattice ∧ |
| 501 | ∃ Φ : Module.End O ↥(y.lineBundle.H0 O), |
| 502 | IsTranslationLift y.lineBundle (m.uniformisation.expMap b) Φ ∧ |
| 503 | span O (Set.range (coordSection y.isProjEmbedding.isLinearSystem)) ∈ Φ.invtSubmodule := |
| 504 | fun b hb ↦ |
| 505 | ⟨m.card_nsmul_mem_of_mem_dualLattice b hb, m.exists_isTranslationLift_of_mem_dualLattice b hb⟩ |
| 506 | |
| 507 | private lemma intAction_apply (Y : PeriodMap D g ℓ V) (c : 𝓞 E) (v : V) : |
| 508 | Y.intAction c v = Y.realEquiv (cmEmbedding c.val • Y.realEquiv.symm v) := |
| 509 | rfl |
| 510 | |
| 511 | private lemma intAction_realEquiv (Y : PeriodMap D g ℓ V) (c : 𝓞 E) (w : RealVectors E D.Index) : |
| 512 | Y.intAction c (Y.realEquiv w) = Y.realEquiv (cmEmbedding c.val • w) := by |
| 513 | rw [intAction_apply, ContinuousLinearEquiv.symm_apply_apply] |
| 514 | |
| 515 | /-- Shows that `Y.intAction c` preserves the uniformisation lattice of a torus model. -/ |
| 516 | private lemma intAction_mem_lattice (m : y.TorusModel Y) (c : 𝓞 E) : |
| 517 | ∀ l ∈ m.uniformisation.lattice, Y.intAction c l ∈ m.uniformisation.lattice := by |
| 518 | simpa [m.lattice_eq] using Y.intAction_mem_periodLattice c |
| 519 | |
| 520 | /-- Shows that `m.θ` pulled back along `Y.intAction c` gives theta coordinates for the |
| 521 | pulled-back line bundle along `(c • 𝟙 y.groupScheme).left`. -/ |
| 522 | private lemma pull_hasThetaCoords_intAction (m : y.TorusModel Y) (c : 𝓞 E) : |
| 523 | HasThetaCoords m.uniformisation.lattice (atGeneric m.uniformisation.expMap) |
| 524 | (y.lineBundle.pull (c • 𝟙 y.groupScheme).left) |
| 525 | (Y.automorphyForm.pullForm (Y.intAction c)) (m.χ ∘ Y.intAction c) |
| 526 | (m.θ ∘ Y.intAction c) := by |
| 527 | -- `Y.intAction c` lifts the action of `c` on `y.groupScheme`, read at the generic point. |
| 528 | have h_generic (v : V) : |
| 529 | atGeneric m.uniformisation.expMap (Y.intAction c v) = |
| 530 | atGeneric m.uniformisation.expMap v ≫ (c • 𝟙 y.groupScheme).left := by |
| 531 | obtain ⟨w, rfl⟩ := Y.realEquiv.surjective v |
| 532 | have h_eq : m.uniformisation.expMap (Y.intAction c (Y.realEquiv w)) = |
| 533 | m.uniformisation.expMap (Y.realEquiv w) ≫ (c • 𝟙 y.groupScheme) := by |
| 534 | rw [intAction_realEquiv, m.equivariant, ModuleObj.comp_smul, Category.comp_id] |
| 535 | rw [atGeneric, atGeneric, ← Over.comp_left, Category.assoc, h_eq] |
| 536 | exact m.hasThetaCoords.pull (Y.intAction c) h_generic (intAction_mem_lattice m c) |
| 537 | |
| 538 | /-- Let `m` model the object `y` on the torus of the polarised period map `Y`. On the period lattice |
| 539 | `m.uniformisation.lattice`, the multiplier `m.χ` of the theta coordinates is χ(l) = exp(πi·e(βl, |
| 540 | l)). Here e is the Riemann form of B = `Y.automorphyForm`, and β = `D.β` ∈ `𝓞 E` acts on V through |
| 541 | `Y.intAction`, the action of `𝓞 E` transported through the period map. -/ |
| 542 | lemma multiplier_eq_canonicalMultiplier (l : V) (hl : l ∈ m.uniformisation.lattice) : |
| 543 | m.χ l = canonicalMultiplier Y.automorphyForm (Y.intAction D.β) l := by |
| 544 | -- The bundles `N ⊗ N ⊗ β^* N` and `(β + 1)^* N` are isomorphic (the class law `y.hasClassLaws.2` |
| 545 | -- at the identity of `y.groupScheme`), so their multipliers agree: `χ(l)² χ(βl) = χ(l + βl)`. The |
| 546 | -- cocycle rule expands the right side as `χ(l) χ(βl) exp(πi e(βl, l))`; cancel `χ(l) χ(βl)`. |
| 547 | let F : 𝓞 E →+* V →L[ℂ] V := Y.intAction |
| 548 | have hF_mem : ∀ l ∈ m.uniformisation.lattice, F D.β l ∈ m.uniformisation.lattice := |
| 549 | intAction_mem_lattice m D.β |
| 550 | have h_pull (c : 𝓞 E) : HasThetaCoords m.uniformisation.lattice |
| 551 | (atGeneric m.uniformisation.expMap) |
| 552 | (y.lineBundle.pull (c • 𝟙 y.groupScheme).left) (Y.automorphyForm.pullForm (F c)) (m.χ ∘ F c) |
| 553 | (m.θ ∘ F c) := |
| 554 | pull_hasThetaCoords_intAction m c |
| 555 | have h_cls : |
| 556 | ((y.lineBundle.mul y.lineBundle).mul |
| 557 | (y.lineBundle.pull (D.β • 𝟙 y.groupScheme).left)).picClass = |
| 558 | (y.lineBundle.pull ((D.β + 1) • 𝟙 y.groupScheme).left).picClass := by |
| 559 | -- `using!`, because the class law is stated with `Pic.atPoint`, a pullback by definition, |
| 560 | -- and unfolding it leaves the terms at `0` that `atPoint_zero` would remove. |
| 561 | simpa [Pic.pairing, add_smul, eq_sub_iff_add_eq] using! y.hasClassLaws.2 0 (𝟙 _) |
| 562 | -- Isomorphic bundles with theta coordinates have the same multiplier on the lattice. |
| 563 | obtain ⟨-, h_mult_on_L, -⟩ := |
| 564 | ((m.hasThetaCoords.mul m.hasThetaCoords).mul (h_pull _)).riemannForm_eq_of_isFrame (h_pull _) |
| 565 | (picClass_eq_iff.mp h_cls).choose_spec m.uniformisation.holomorphicAt |
| 566 | m.uniformisation.atGeneric_add_of_mem |
| 567 | have h_mult : m.χ l * m.χ l * m.χ (F D.β l) = m.χ (F (D.β + 1) l) := h_mult_on_L l hl |
| 568 | have h_add : m.χ (F (D.β + 1) l) = m.χ l * m.χ (F D.β l) * canonicalMultiplier Y.automorphyForm |
| 569 | (F D.β) l := by |
| 570 | simpa [F, add_comm l, canonicalMultiplier] using |
| 571 | m.hasThetaCoords.isAppellHumbert.semicharacter l hl _ (hF_mem l hl) |
| 572 | have h_ne : m.χ l * m.χ (F D.β l) ≠ 0 := |
| 573 | mul_ne_zero (m.hasThetaCoords.isAppellHumbert.ne_zero hl) |
| 574 | (m.hasThetaCoords.isAppellHumbert.ne_zero (hF_mem l hl)) |
| 575 | have h_eq : |
| 576 | m.χ l * m.χ (F D.β l) * m.χ l = |
| 577 | m.χ l * m.χ (F D.β l) * canonicalMultiplier Y.automorphyForm (F D.β) l := by |
| 578 | rw [← h_add, ← h_mult] |
| 579 | ring |
| 580 | exact mul_left_cancel₀ h_ne h_eq |
| 581 | |
| 582 | end New.ThetaObject.TorusModel |
| 583 | |
| 584 | /-! |
| 585 | ## Homomorphisms of modelled objects and rational matrices |
| 586 | |
| 587 | Objects `x`, `x'` over a valuation ring `O` with fraction field `ℂ` are modelled on the tori of |
| 588 | `(g, ℓ)` and `(g', ℓ')`, with `g`, `g'` adelic frames and `ℓ`, `ℓ'` complex matrices. |
| 589 | -/ |
| 590 | |
| 591 | namespace New.ThetaObject.TorusModel |
| 592 | |
| 593 | open CategoryTheory AlgebraicGeometry NumberField Matrix Category LineBundle ThetaTori Variety |
| 594 | LinearMap Function |
| 595 | |
| 596 | variable {E : Type} [Field E] [CMBase E] |
| 597 | {V V' : Type} [FinComplexSpace V] [FinComplexSpace V'] |
| 598 | {D : PEL E} {g g' : GL D.Index (𝔸f E)} {ℓ ℓ' : Matrix D.Index D.Index ℂ} {Z : Scheme} |
| 599 | {τ : Z ⟶ Spec (CommRingCat.of (𝓞 E))} {X : ThetaFamily D Z τ} |
| 600 | {O : Type} [CommRing O] [ValuativeArc O] |
| 601 | {x x' : ThetaObject X (Spec ⟨O⟩)} {Y : PeriodMap D g ℓ V} {Y' : PeriodMap D g' ℓ' V'} |
| 602 | |
| 603 | /-- If `ψ` carries `m.π w` to `m'.π (z w)` for all `w`, then it carries the torsion point of the |
| 604 | class of `y` in (𝔸_f / Ô)ⁿ to the torsion point of the class of `g'⁻¹ z g y` (with `toFinGL z` the |
| 605 | image of `z` over 𝔸_f), for every finite adelic vector `y`. -/ |
| 606 | lemma torsionPoint_comp (m : x.TorusModel Y) (m' : x'.TorusModel Y') {z : GL D.Index E} |
| 607 | {ψ : x.groupScheme ⟶ x'.groupScheme} |
| 608 | (h_periods : ∀ w : RealVectors E D.Index, m.π w ≫ ψ = m'.π (realVecAction z.val w)) |
| 609 | (y : D.Index → 𝔸f E) : |
| 610 | m.fullStructure.torsionPoint (torsionClass y) ≫ ψ = |
| 611 | m'.fullStructure.torsionPoint (torsionClass ((g'⁻¹ * toFinGL z * g).val *ᵥ y)) := by |
| 612 | -- Both sides are locally constant in `y`, so the set of good `y` is closed; by `h_periods` it |
| 613 | -- contains the dense range of `frameCoords g`. |
| 614 | refine denseRange_frameCoords (g := g).induction_on y ⟨?_⟩ fun w ↦ ?_ |
| 615 | · exact IsLocallyConstant.comp₂ isOpen_preimage_torsionClass |
| 616 | (.comp_continuous isOpen_preimage_torsionClass (by fun_prop)) |
| 617 | (fun t t' ↦ m.fullStructure.torsionPoint t ≫ ψ = m'.fullStructure.torsionPoint t') {p | ¬p} |
| 618 | · simpa [← torsionPoint_frameTorsionClass, frameTorsionClass_apply, frameCoords, |
| 619 | LinearMap.compLeft, comp_def, RingHom.map_mulVec, π] using h_periods (toRealVectors w) |
| 620 | |
| 621 | /-- Let `x`, `x'` be objects over `O` with torus models `m`, `m'` on the polarised period maps `Y` |
| 622 | (frame `g`, matrix `ℓ`) and `Y'` (frame `g'`, matrix `ℓ'`), with period maps `m.π`, `m'.π` from |
| 623 | `(E ⊗ ℝ)ⁿ`. Let `ψ : x.groupScheme ⟶ x'.groupScheme` be an `𝓞 E`-linear homomorphism that pulls the |
| 624 | Picard class of `x'.lineBundle` back to `μ ≠ 0` times that of `x.lineBundle`. Then `ψ` comes from |
| 625 | some `z ∈ GL_n(E)`: (a) `m.π w ≫ ψ = m'.π (z·w)` for all `w`; (b) with `Y.formMatrix` the matrix of |
| 626 | the form β of `Y` (not the element `D.β` of `𝓞 E`), `μ` times the polarisation form of |
| 627 | `Y.formMatrix` is the polarisation form of `zᴴ Y'.formMatrix z`; (c) `z ℓ z⁻¹ = ℓ'` (conjugation |
| 628 | through `Φ v₀`). -/ |
| 629 | lemma exists_matrix_of_hom (m : x.TorusModel Y) (m' : x'.TorusModel Y') |
| 630 | (ψ : x.groupScheme ⟶ x'.groupScheme) [hψ : IsLinear ψ] {μ : ℕ} (hμ : μ ≠ 0) |
| 631 | (hψ_cls : x'.lineBundle.picClass.pull ψ.left = μ • x.lineBundle.picClass) : |
| 632 | ∃ z : GL D.Index E, |
| 633 | -- (a) `ψ` acts on periods by `z` |
| 634 | (∀ w : RealVectors E D.Index, m.π w ≫ ψ = m'.π (realVecAction z w)) ∧ |
| 635 | -- (b) `z` pulls the form of `Y'` back to `μ` times the form of `Y` |
| 636 | (∀ y w : RealVectors E D.Index, |
| 637 | μ * polarisationForm D Y.formMatrix y w = polarisationForm D (z.valᴴ * Y'.formMatrix * z) y |
| 638 | w) ∧ |
| 639 | -- (c) `z` carries `ℓ` to `ℓ'` |
| 640 | ratConj z ℓ = ℓ' := by |
| 641 | -- `ψ` lifts to a complex linear map `F` of the universal covers. `F` keeps rational points and |
| 642 | -- commutes with `𝓞 E`, so it is given by a matrix `z` over `E`; the theta data give the forms. |
| 643 | obtain ⟨F, hF : ∀ w : V, m'.uniformisation.expMap (F w) = m.uniformisation.expMap w ≫ ψ⟩ := |
| 644 | m'.uniformisation.universal ((IsAddMonHom.addMonoidHom ψ _).comp _) |
| 645 | ((m.uniformisation.immersive 0).1.comp_hom _) |
| 646 | -- Isomorphic bundles with theta coordinates have the same Riemann form |
| 647 | -- (`riemannForm_eq_of_isFrame`); here `x.lineBundle ^ μ` and `ψ^* x'.lineBundle`. |
| 648 | have hF_mem : ∀ l ∈ m.uniformisation.lattice, F l ∈ m'.uniformisation.lattice := fun l hl ↦ |
| 649 | (m'.uniformisation.eq_zero_iff (F l)).mpr <| by |
| 650 | rw [hF, (m.uniformisation.eq_zero_iff l).mp hl] |
| 651 | exact (IsAddMonHom.addMonoidHom ψ _).map_zero |
| 652 | have h_cls : (x.lineBundle.pow μ).picClass = (x'.lineBundle.pull ψ.left).picClass := by |
| 653 | simp [← Pic.pull_picClass, hψ_cls] |
| 654 | have h_generic (w : V) : |
| 655 | atGeneric m'.uniformisation.expMap (F w) = atGeneric m.uniformisation.expMap w ≫ ψ.left := by |
| 656 | rw [atGeneric, atGeneric, ← Over.comp_left, assoc, hF] |
| 657 | obtain ⟨_, h_frame⟩ := picClass_eq_iff.mp h_cls |
| 658 | obtain ⟨h_riem, -⟩ : |
| 659 | RealComplexForm.riemannForm (μ • Y.automorphyForm) = RealComplexForm.riemannForm |
| 660 | (Y'.automorphyForm.pullForm F) ∧ _ := |
| 661 | (m.hasThetaCoords.pow μ).riemannForm_eq_of_isFrame (m'.hasThetaCoords.pull F h_generic hF_mem) |
| 662 | h_frame m.uniformisation.holomorphicAt m.uniformisation.atGeneric_add_of_mem |
| 663 | -- A rational point maps to a torsion point of `x'`, which is again a rational point. |
| 664 | have h_rat (y : D.Index → E) : |
| 665 | ∃ y', toRealVectors y' = Y'.realEquiv.symm (F (Y.realEquiv (toRealVectors y))) := by |
| 666 | obtain ⟨k, hk, hky⟩ := exists_nsmul_adelicTorsion_eq_zero (frameTorsionClass g y) |
| 667 | have h_ker : k • F (Y.realEquiv (toRealVectors y)) ∈ Y'.periodLattice := by |
| 668 | rw [← m'.lattice_eq, m'.uniformisation.eq_zero_iff, map_nsmul, hF, ← nsmul_comp] |
| 669 | have hy0 : k • m.uniformisation.expMap (Y.realEquiv (toRealVectors y)) = 0 := by |
| 670 | rw [← m.torsionPoint_frameTorsionClass y, ← map_nsmul, hky, map_zero] |
| 671 | rw [hy0] |
| 672 | exact (IsAddMonHom.addMonoidHom ψ _).map_zero |
| 673 | obtain ⟨y', -, hy'⟩ := (Y'.nsmul_mem_latticeOver hk).mp h_ker |
| 674 | exact ⟨y', Y'.realEquiv.eq_symm_apply.mpr hy'⟩ |
| 675 | choose f hf using h_rat |
| 676 | have h_lin (c : 𝓞 E) (w : RealVectors E D.Index) : |
| 677 | F (Y.realEquiv (cmEmbedding (algebraMap (𝓞 E) E c) • w)) = |
| 678 | Y'.realEquiv (cmEmbedding (algebraMap (𝓞 E) E c) • Y'.realEquiv.symm |
| 679 | (F (Y.realEquiv w))) := by |
| 680 | have h_comp : F ∘L Y.intAction c = Y'.intAction c ∘L F := |
| 681 | m'.uniformisation.linear_ext fun v ↦ by |
| 682 | obtain ⟨u, rfl⟩ := Y.realEquiv.surjective v |
| 683 | rw [ContinuousLinearMap.comp_apply, ContinuousLinearMap.comp_apply, intAction_realEquiv, |
| 684 | hF, m.equivariant, IsLinear.smul_comp, ← hF, intAction_apply, m'.equivariant, |
| 685 | ContinuousLinearEquiv.apply_symm_apply] |
| 686 | have h := DFunLike.congr_fun h_comp (Y.realEquiv w) |
| 687 | rw [ContinuousLinearMap.comp_apply, ContinuousLinearMap.comp_apply, intAction_realEquiv, |
| 688 | intAction_apply] at h |
| 689 | exact h |
| 690 | -- `f` is `𝓞 E`-linear, hence `E`-linear; rational points are dense, so its matrix gives `F`. |
| 691 | obtain ⟨z, hz⟩ : ∃ z : Matrix D.Index D.Index E, ∀ w, |
| 692 | F (Y.realEquiv w) = Y'.realEquiv (realVecAction z w) := by |
| 693 | let f₀ : (D.Index → E) →ₗ[𝓞 E] D.Index → E := |
| 694 | { toFun := f |
| 695 | map_add' a b := toRealVectors_injective <| by |
| 696 | rw [map_add, hf, hf, hf, map_add, map_add, map_add, map_add] |
| 697 | map_smul' c a := toRealVectors_injective <| by |
| 698 | rw [RingHom.id_apply, toRealVectors_smul, hf, hf, toRealVectors_smul, h_lin, |
| 699 | ContinuousLinearEquiv.symm_apply_apply] } |
| 700 | refine ⟨toMatrix' (f₀.extendScalarsOfIsLocalization (nonZeroDivisors (𝓞 E)) E), |
| 701 | denseRange_toRealVectors.eq fun y ↦ ?_⟩ |
| 702 | rw [realVecAction_toRealVectors, ← Matrix.toLin'_apply, Matrix.toLin'_toMatrix', |
| 703 | LinearMap.extendScalarsOfIsLocalization_apply', LinearMap.coe_mk, AddHom.coe_mk, hf, |
| 704 | ContinuousLinearEquiv.apply_symm_apply] |
| 705 | -- `z` is invertible because it pulls a form back to the nondegenerate form of |
| 706 | -- `μ • Y.automorphyForm`. |
| 707 | have hz_inj : Injective z.mulVec := by |
| 708 | intro a b hab |
| 709 | obtain ⟨h_left_nondeg, -⟩ : (RealComplexForm.riemannForm |
| 710 | (Y'.automorphyForm.pullForm F)).Nondegenerate := by |
| 711 | simpa only [← h_riem] using (Y.isPosRiemann.nsmul hμ).nondegenerate (L := Y.periodLattice) |
| 712 | -- `F (Y.realEquiv (a - b)) = 0` pairs to zero with everything. |
| 713 | have h_pair_zero (v : V) : |
| 714 | RealComplexForm.riemannForm (Y'.automorphyForm.pullForm F) |
| 715 | (Y.realEquiv (toRealVectors a) - Y.realEquiv (toRealVectors b)) v = 0 := by |
| 716 | simp [hz, hab, riemannForm_pullForm] |
| 717 | exact toRealVectors_injective (Y.realEquiv.injective |
| 718 | (sub_eq_zero.mp (h_left_nondeg _ h_pair_zero))) |
| 719 | lift z to GL D.Index E using mulVec_injective_iff_isUnit.mp hz_inj |
| 720 | -- `z` conjugates `ℓ` to `ℓ'` as `F` is complex linear. |
| 721 | have h_periods (w : RealVectors E D.Index) : m.π w ≫ ψ = m'.π (realVecAction z w) := by |
| 722 | simp [← hF, hz, π] |
| 723 | refine ⟨z, h_periods, ?_, Y.isPeriodMap.ratConj_eq Y'.isPeriodMap F hz⟩ |
| 724 | -- (b) is `h_riem` read through `Y.riemannForm_eq` and `Y'.riemannForm_eq`. |
| 725 | intro y w |
| 726 | calc |
| 727 | _ = RealComplexForm.riemannForm (μ • Y.automorphyForm) (Y.realEquiv y) (Y.realEquiv w) := by |
| 728 | rw [map_nsmul, LinearMap.smul_apply, LinearMap.smul_apply, Y.riemannForm_eq, nsmul_eq_mul] |
| 729 | _ = RealComplexForm.riemannForm (Y'.automorphyForm.pullForm F) (Y.realEquiv y) |
| 730 | (Y.realEquiv w) := by rw [h_riem] |
| 731 | _ = _ := by |
| 732 | rw [riemannForm_pullForm, hz, hz, Y'.riemannForm_eq] |
| 733 | -- `↓`: the map of the product `zᴴ β' z` is split before `simp` distributes it entrywise. |
| 734 | simp [polarisationForm, ↓map_conjTranspose_mul_mul, dotProduct_mulVec, star_mulVec] |
| 735 | |
| 736 | /-- Objects with models have the same map from `𝓞 E`: after the injective map `O → ℂ`, both are |
| 737 | the embedding `Φ v₀`. -/ |
| 738 | lemma baseHom_eq_baseHom (m : x.TorusModel Y) (m' : x'.TorusModel Y') : |
| 739 | x'.baseHom = x.baseHom := |
| 740 | RingHom.ext fun c ↦ IsFractionRing.injective O ℂ (by rw [m'.baseHom_eq, m.baseHom_eq]) |
| 741 | |
| 742 | /-- `ψ` is an `𝓞 E`-linear isogeny from `x` to `x'` of multiplier `μ` that acts on torsion by |
| 743 | the adelic matrix `k` and on periods by the rational matrix `z`. -/ |
| 744 | structure IsIsogenyOfMatrix (m : x.TorusModel Y) (m' : x'.TorusModel Y') (z : GL D.Index E) |
| 745 | (k : GL D.Index (𝔸f E)) (μ : ℕ) (ψ : x.groupScheme ⟶ x'.groupScheme) : Prop where |
| 746 | /-- `ψ` is an isogeny. -/ |
| 747 | isIsogeny : IsIsogeny ψ |
| 748 | /-- `ψ` commutes with the action of `𝓞 E`. -/ |
| 749 | isLinear : IsLinear ψ |
| 750 | /-- `ψ` pulls the class of `x'.lineBundle` back to `μ` times that of `x.lineBundle`. -/ |
| 751 | pull_picClass : x'.lineBundle.picClass.pull ψ.left = μ • x.lineBundle.picClass |
| 752 | /-- `ψ` sends the torsion point of the class of `y` to that of `k y`. -/ |
| 753 | torsionPoint_comp (y : D.Index → 𝔸f E) : |
| 754 | m.fullStructure.torsionPoint (torsionClass y) ≫ ψ = |
| 755 | m'.fullStructure.torsionPoint (torsionClass (k.val *ᵥ y)) |
| 756 | /-- `ψ` sends `m.π w` to `m'.π (z w)`. -/ |
| 757 | π_comp (w : RealVectors E D.Index) : m.π w ≫ ψ = m'.π (realVecAction z w) |
| 758 | |
| 759 | /-- Let `x`, `x'` be objects over `O` with torus models `m`, `m'` on the polarised period maps `Y` |
| 760 | (frame `g`, matrix `ℓ`) and `Y'` (frame `g'`, matrix `ℓ'`). Let `z ∈ GL_n(E)` satisfy `z ℓ z⁻¹ = ℓ'` |
| 761 | (conjugation through `Φ v₀`), and let `k = g'⁻¹ z g` have entries in `Ô E` (the integral finite |
| 762 | adeles of `E`) with `IsScalarFrame k⁻¹ μ`, i.e. `μ > 0` and `μ (k⁻¹)ᴴ k⁻¹ = ε·1` for a unit `ε` of |
| 763 | `Ẑ`. Then some `ψ : x.groupScheme ⟶ x'.groupScheme` is an `𝓞 E`-linear isogeny from `x` to `x'` of |
| 764 | multiplier `μ`, acting by `k` on torsion and by `z` on periods. -/ |
| 765 | lemma exists_isIsogenyOfMatrix (z : GL D.Index E) (hz : ratConj z ℓ = ℓ') |
| 766 | (m : x.TorusModel Y) (m' : x'.TorusModel Y') {k : GL D.Index (𝔸f E)} {μ : ℕ} |
| 767 | (hk : g'⁻¹ * toFinGL z * g = k) (hk_int : ∀ i j : D.Index, k i j ∈ Ô E) |
| 768 | (hμ : IsScalarFrame k⁻¹ μ) : |
| 769 | ∃ ψ : x.groupScheme ⟶ x'.groupScheme, IsIsogenyOfMatrix m m' z k μ ψ := by |
| 770 | -- `z` defines a complex linear map `F` of the universal covers that respects the lattices and |
| 771 | -- multiplies the type of the theta functions by `μ`; `exists_hom_of_hasThetaCoords` makes it a |
| 772 | -- homomorphism `ψ`. |
| 773 | subst hk |
| 774 | have hQ : Function.Surjective Y.realEquiv := Y.realEquiv.surjective |
| 775 | -- `F` is complex linear because `z` carries `ℓ` to `ℓ'`. |
| 776 | have h_conj : z.map (Φ v₀) * ℓ = ℓ' * z.map (Φ v₀) := (z.map _).mul_inv_eq_iff_eq_mul.mp hz |
| 777 | have h_rva (u : RealVectors E D.Index) (i : D.Index) (v : InfinitePlace E) : |
| 778 | realVecAction z.val u i v = (z.val.map (Φ v) *ᵥ fun j ↦ u j v) i := by |
| 779 | simp only [realVecAction, Matrix.mulVecLin_apply, Matrix.mulVec, dotProduct, |
| 780 | Finset.sum_apply, Pi.mul_apply, Matrix.map_apply, RingHom.pi_apply] |
| 781 | have hF_I (w : RealVectors E D.Index) : |
| 782 | Y'.realEquiv (realVecAction z.val (Complex.I • fun (i : D.Index) (v : InfinitePlace E) ↦ |
| 783 | ((if v = v₀ then ℓ else 1) *ᵥ fun j ↦ w j v) i)) = |
| 784 | Complex.I • Y'.realEquiv (realVecAction z.val w) := by |
| 785 | rw [← Y'.isPeriodMap] |
| 786 | refine congrArg Y'.realEquiv ?_ |
| 787 | funext i v |
| 788 | rw [h_rva, Pi.smul_apply] |
| 789 | change (z.val.map (Φ v) *ᵥ (Complex.I • ((if v = v₀ then ℓ else 1) *ᵥ fun j ↦ w j v))) i = |
| 790 | Complex.I * ((if v = v₀ then ℓ' else 1) *ᵥ fun j ↦ realVecAction z.val w j v) i |
| 791 | rw [mulVec_smul, Pi.smul_apply, smul_eq_mul, mulVec_mulVec] |
| 792 | have h_eq : z.val.map (Φ v) * (if v = v₀ then ℓ else 1) = |
| 793 | (if v = v₀ then ℓ' else 1) * z.val.map (Φ v) := by |
| 794 | split_ifs with hv |
| 795 | · subst hv; exact h_conj |
| 796 | · rw [Matrix.mul_one, Matrix.one_mul] |
| 797 | rw [h_eq, ← mulVec_mulVec] |
| 798 | congr 2 |
| 799 | funext j |
| 800 | exact (h_rva w j v).symm |
| 801 | let F_r : V →L[ℝ] V' := |
| 802 | Y.realEquiv.arrowCongr Y'.realEquiv (realVecAction z.val).toContinuousLinearMap |
| 803 | have hF_r (w : RealVectors E D.Index) : |
| 804 | F_r (Y.realEquiv w) = Y'.realEquiv (realVecAction z.val w) := by |
| 805 | change Y'.realEquiv (realVecAction z.val (Y.realEquiv.symm (Y.realEquiv w))) = _ |
| 806 | rw [ContinuousLinearEquiv.symm_apply_apply] |
| 807 | let F : V →L[ℂ] V' := |
| 808 | { F_r with |
| 809 | map_smul' a v := by |
| 810 | obtain ⟨w, rfl⟩ := hQ v |
| 811 | change F_r (a • Y.realEquiv w) = a • F_r (Y.realEquiv w) |
| 812 | rw [smul_eq_re_smul_add_im_smul a, smul_eq_re_smul_add_im_smul a, ← Y.isPeriodMap w, |
| 813 | F_r.map_add, F_r.map_smul, F_r.map_smul, hF_r, hF_r, hF_I w] } |
| 814 | have hF_Q (w : RealVectors E D.Index) : |
| 815 | F (Y.realEquiv w) = Y'.realEquiv (realVecAction z.val w) := hF_r w |
| 816 | -- `F` maps lattice to lattice because `g'⁻¹ z g` is integral. |
| 817 | have h_lat : ∀ l ∈ m.uniformisation.lattice, F l ∈ m'.uniformisation.lattice := by |
| 818 | intro l hl |
| 819 | rw [m.lattice_eq, mem_classLattice] at hl |
| 820 | obtain ⟨y, hy, rfl⟩ := hl |
| 821 | have hP : toRealVectors y ∈ frameLattice g := by |
| 822 | rw [frameLattice, Submodule.mem_toAddSubgroup, mem_classLattice] |
| 823 | exact ⟨y, hy, rfl⟩ |
| 824 | have hPz := realVecAction_mem_frameLattice hk_int hP |
| 825 | rw [frameLattice, Submodule.mem_toAddSubgroup, mem_classLattice] at hPz |
| 826 | obtain ⟨y', hy', hy'_eq⟩ := hPz |
| 827 | rw [m'.lattice_eq, mem_classLattice] |
| 828 | exact ⟨y', hy', by rw [hF_Q, ← hy'_eq]; rfl⟩ |
| 829 | -- `z` pulls the form `Y'.formMatrix` back to `μ • Y.formMatrix`, by positivity and `hμ` |
| 830 | -- (`conjTranspose_mul_mul_eq_smul`). |
| 831 | have h_riem : |
| 832 | RealComplexForm.riemannForm (Y'.automorphyForm.pullForm F) = RealComplexForm.riemannForm |
| 833 | (μ • Y.automorphyForm) := by |
| 834 | -- At `Y.realEquiv y`, `Y.realEquiv w` the left side is the polarisation form of `Y'.formMatrix` |
| 835 | -- at `z y`, `z w`. |
| 836 | refine LinearMap.ext₂ (hQ.forall.mpr fun y ↦ hQ.forall.mpr fun w ↦ ?_) |
| 837 | -- `map_nsmul` is rewritten by name: `simp` first tries `map_smul` on `μ • Y.automorphyForm` |
| 838 | -- and is slow to fail. |
| 839 | rw [riemannForm_pullForm, hF_Q, hF_Q, Y'.riemannForm_eq, map_nsmul, LinearMap.smul_apply, |
| 840 | LinearMap.smul_apply, Y.riemannForm_eq, nsmul_eq_mul] |
| 841 | -- After `conjTranspose_mul_mul_eq_smul` both sides are sums over the infinite places, equal |
| 842 | -- term by term. |
| 843 | simp [← map_conjTranspose_mul_mul, vecMul_smul, map_smul', Finset.mul_sum, |
| 844 | Y.isSignedFrameFor.conjTranspose_mul_mul_eq_smul Y'.isSignedFrameFor hμ, polarisationForm, |
| 845 | dotProduct_mulVec, star_mulVec] |
| 846 | exact Finset.sum_congr rfl fun v _ ↦ by ring |
| 847 | -- Both multipliers are canonical, `χ l = exp (π i e(β l, l))` with `e` the Riemann form and |
| 848 | -- `β = D.β`, so `h_riem` compares them. |
| 849 | have h_char : ∀ l ∈ m.uniformisation.lattice, (m'.χ ∘ F) l = (m.χ ^ μ) l := by |
| 850 | intro l hl |
| 851 | -- `F` commutes with the action of `D.β`, since `z` acts linearly over `E ⊗ ℝ`. |
| 852 | have h_comm : Y'.intAction D.β (F l) = F (Y.intAction D.β l) := by |
| 853 | obtain ⟨w, rfl⟩ := hQ l |
| 854 | rw [hF_Q, intAction_realEquiv, intAction_realEquiv, hF_Q, (realVecAction z.val).map_smul] |
| 855 | -- So `h_riem` at `β l`, `l` compares the two exponents. |
| 856 | have h_form := LinearMap.congr_fun₂ h_riem (Y.intAction D.β l) l |
| 857 | rw [riemannForm_pullForm, ← h_comm, map_nsmul, LinearMap.smul_apply, LinearMap.smul_apply, |
| 858 | nsmul_eq_mul] at h_form |
| 859 | simp [multiplier_eq_canonicalMultiplier _ _ hl, |
| 860 | multiplier_eq_canonicalMultiplier _ _ (h_lat l hl), canonicalMultiplier, h_form, |
| 861 | ← Complex.exp_natCast_mul, mul_left_comm] |
| 862 | -- Pull the theta coordinates of `x'` back along `F`. |
| 863 | have h_pull : |
| 864 | HasThetaCoords m.uniformisation.lattice (fun v : V ↦ atGeneric m'.uniformisation.expMap (F v)) |
| 865 | x'.lineBundle (Y'.automorphyForm.pullForm F) (m'.χ ∘ F) (m'.θ ∘ F) := by |
| 866 | -- `pull_id` is rewritten: the kernel is slow to unfold `x'.lineBundle.pull (𝟙 _)`. |
| 867 | have h := m'.hasThetaCoords.pull F (fun _ ↦ .symm (comp_id _)) h_lat |
| 868 | rwa [LineBundle.pull_id] at h |
| 869 | -- Corrected by an exponential factor, they are theta coordinates of `x'.lineBundle` of type |
| 870 | -- `(μ • Y.automorphyForm, m.χ ^ μ)`. |
| 871 | obtain ⟨θ₀, h_coords⟩ : ∃ θ₀ : V → D.dualTorsion → ℂ, HasThetaCoords m.uniformisation.lattice |
| 872 | (atGeneric (m'.uniformisation.expMap.comp F.toAddMonoidHom)) x'.lineBundle |
| 873 | (μ • Y.automorphyForm) (m.χ ^ μ) |
| 874 | θ₀ := |
| 875 | have h_AH : IsAppellHumbert (L := m.uniformisation.lattice) (μ • Y.automorphyForm) (m.χ ^ μ) := |
| 876 | m.hasThetaCoords.isAppellHumbert.nsmul μ |
| 877 | ⟨_, h_pull.isLinearSystem, h_AH, |
| 878 | fun i ↦ h_pull.isAppellHumbert.exp_mul_mem_thetaSpace h_AH h_riem h_char |
| 879 | (h_pull.mem_thetaSpace i), |
| 880 | fun w ↦ (m'.hasThetaCoords.hasFieldCoords (F w)).smul (by simp)⟩ |
| 881 | -- `F` sends the lattice of `m` into that of `m'`, which the uniformisation of `x'` kills. |
| 882 | have h_kill : ∀ l ∈ m.uniformisation.lattice, m'.uniformisation.expMap (F l) = 0 := |
| 883 | fun l hl ↦ (m'.uniformisation.eq_zero_iff (F l)).mp (h_lat l hl) |
| 884 | -- Translations by the dual lattice lift to `x.lineBundle`, so the theta coordinates give `ψ`. |
| 885 | -- (Of `exists_isTranslationLift_of_dualLattice` only the lift is used, not its invariant span.) |
| 886 | obtain ⟨ψ, h_add, hψ, h_cls⟩ : |
| 887 | ∃ ψ : x.groupScheme ⟶ x'.groupScheme, |
| 888 | IsAdditive ψ ∧ |
| 889 | (∀ v : V, m.uniformisation.expMap v ≫ ψ = m'.uniformisation.expMap (F v)) ∧ |
| 890 | x'.lineBundle.picClass.pull ψ.left = μ • x.lineBundle.picClass := |
| 891 | exists_hom_of_hasThetaCoords _ m.hasThetaCoords h_kill x.isThetaStructure.isUnit_card |
| 892 | (fun b hb ↦ (m.exists_isTranslationLift_of_dualLattice b hb).imp_right |
| 893 | fun ⟨Φ, hΦ, _⟩ ↦ ⟨Φ, hΦ⟩) x'.isProjEmbedding |
| 894 | x.isProjEmbedding x.hasClassLaws.1 x'.hasClassLaws.1 h_coords |
| 895 | have hψ_π (w : RealVectors E D.Index) : m.π w ≫ ψ = m'.π (realVecAction z w) := by |
| 896 | simp [hF_Q, hψ, π] |
| 897 | -- The image of `ψ` contains the dense set of sections of `x'`. |
| 898 | have h_surj : AlgebraicGeometry.Surjective ψ.left := |
| 899 | (isSeparatingFamily_atGeneric_of_surjective m'.uniformisation.surjective).2.surjective _ |
| 900 | (atGeneric m.π ∘ realVecAction z⁻¹ ∘ Y'.realEquiv.symm) |
| 901 | (by simp [atGeneric, ← Over.comp_left, hF_Q, hψ, π]) |
| 902 | have h_isog : IsIsogeny ψ := isIsogeny_of_locallyQuasiFinite ψ |
| 903 | (locallyQuasiFinite_of_pull_picClass x.isProjEmbedding (Nat.cast_pos.mp hμ.left).ne' h_cls) |
| 904 | h_surj |
| 905 | -- Linearity is tested on the dense set of sections of `x`. |
| 906 | have h_lin : IsLinear ψ := by |
| 907 | refine ⟨fun c ↦ (isSeparatingFamily_atGeneric_of_surjective |
| 908 | (m.uniformisation.surjective.comp hQ)).hom_ext fun w ↦ ?_⟩ |
| 909 | rw [assoc, assoc] |
| 910 | refine congrArg (_ ≫ ·) ?_ |
| 911 | change m.uniformisation.expMap (Y.realEquiv w) ≫ (c • 𝟙 x.groupScheme) ≫ ψ = |
| 912 | m.uniformisation.expMap (Y.realEquiv w) ≫ (c • ψ) |
| 913 | rw [← assoc, ModuleObj.comp_smul, Category.comp_id, ← m.equivariant, hψ, hF_Q, |
| 914 | (realVecAction z.val).map_smul, m'.equivariant, ← hF_Q, ← hψ, ← ModuleObj.comp_smul] |
| 915 | exact ⟨ψ, h_isog, h_lin, h_cls, m.torsionPoint_comp m' hψ_π, hψ_π⟩ |
| 916 | |
| 917 | /-- Let `z ∈ GL_n(E)` satisfy `z ℓ z⁻¹ = ℓ'` (`hz`), and let `k = g'⁻¹ z g` have integral entries |
| 918 | with `IsScalarFrame k⁻¹ μ` (μ > 0 and `k⁻¹` is a frame for the scalar matrix μ). Then `x` and `x'` |
| 919 | have the same map from `𝓞 E`, and there is an `𝓞 E`-linear isogeny `ψ` that pulls the class of |
| 920 | `x'.lineBundle` back to `μ` times that of `x.lineBundle` and satisfies `ψ π = π' z`. It sends the |
| 921 | torsion point of the class of `y` to that of `k y`, for every finite adelic vector `y`. -/ |
| 922 | lemma exists_isogeny (z : GL D.Index E) (hz : ratConj z ℓ = ℓ') (m : x.TorusModel Y) |
| 923 | (m' : x'.TorusModel Y') {k : GL D.Index (𝔸f E)} {μ : ℕ} (hk : g'⁻¹ * toFinGL z * g = k) |
| 924 | (hk_int : ∀ i j : D.Index, k i j ∈ Ô E) (hμ : IsScalarFrame k⁻¹ μ) : |
| 925 | x'.baseHom = x.baseHom ∧ |
| 926 | ∃ ψ : x.groupScheme ⟶ x'.groupScheme, |
| 927 | IsIsogeny ψ ∧ IsLinear ψ ∧ |
| 928 | -- (a) the multiplier is `μ` |
| 929 | x'.lineBundle.picClass.pull ψ.left = μ • x.lineBundle.picClass ∧ |
| 930 | -- (b) `ψ` acts on torsion by `k` |
| 931 | (∀ y : D.Index → 𝔸f E, |
| 932 | m.fullStructure.torsionPoint (torsionClass y) ≫ ψ = |
| 933 | m'.fullStructure.torsionPoint (torsionClass (k.val *ᵥ y))) ∧ |
| 934 | -- (c) `ψ` acts on periods by `z` |
| 935 | ∀ w : RealVectors E D.Index, m.π w ≫ ψ = m'.π (realVecAction z w) := by |
| 936 | obtain ⟨ψ, hψ⟩ := exists_isIsogenyOfMatrix z hz m m' hk hk_int hμ |
| 937 | exact ⟨baseHom_eq_baseHom m m', ψ, hψ.isIsogeny, hψ.isLinear, hψ.pull_picClass, |
| 938 | hψ.torsionPoint_comp, hψ.π_comp⟩ |
| 939 | |
| 940 | end New.ThetaObject.TorusModel |