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.Module.StablyFree.Basic |
| 4 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 5 | import Mathlib.AlgebraicGeometry.ValuativeCriterion |
| 6 | import Mathlib.Analysis.Analytic.Polynomial |
| 7 | import Mathlib.RingTheory.Coalgebra.CoassocSimps |
| 8 | import Mathlib.RingTheory.Complex |
| 9 | import Mathlib.RingTheory.DualNumber |
| 10 | import Mathlib.RingTheory.SimpleRing.Principal |
| 11 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 12 | import TauCeti.AlgebraicGeometry.Morphisms.SchemeTheoreticallyDominant |
| 13 | public import Lib.General.Geometry.ProjectiveSpace |
| 14 | public import Lib.Shimura.AbelianScheme.TangentCoordinates |
| 15 | public import Lib.Shimura.ComplexTheta.AppellHumbertData |
| 16 | import Lib.Cohomology.Etale.Basic |
| 17 | |
| 18 | /-! |
| 19 | # Holomorphic families of complex points, jets, uniformisations and theta coordinates |
| 20 | |
| 21 | Except in `New.Uniformisation.hasSignature_iff`, where `O` is any commutative ring acting on `A`, |
| 22 | `O` is a valuation ring with fraction field `ℂ` (`New.ValuativeArc`), for example `ℂ` itself. This |
| 23 | file develops calculus for families of complex points of schemes over `O` without an |
| 24 | analytification: holomorphic families, jets and a chain rule. These notions are applied to a |
| 25 | uniformisation `V / L ≅ A(O)` of a commutative group scheme `A`, which yields a count of its torsion |
| 26 | points. The file also treats linear systems whose homogeneous coordinates are theta functions, and |
| 27 | their behaviour under operations on line bundles. |
| 28 | |
| 29 | ## Main definitions and results |
| 30 | |
| 31 | * `New.HolomorphicAt.exists_isJet`, `New.IsJet.unique`, `New.isJet_comp_iff`: jets exist and are |
| 32 | unique, and they obey the chain rule. |
| 33 | * `New.HolomorphicAt.isFirstOrderConst_of_nsmul`: on a smooth commutative group scheme, if `n • φ` |
| 34 | is constant to first order in a direction, for some `n ≠ 0`, then so is `φ`. |
| 35 | * `New.Uniformisation.hasSignature_iff`: the condition `New.HasSignature` on the matrices of the |
| 36 | action of `O` in algebraic coordinates holds iff the space `V` of a uniformisation has a common |
| 37 | eigenvector `Y ≠ 0` of the maps `F a`, with eigenvalues `ρ a`, such that `F b - ρ c` maps `V` into |
| 38 | the line of `Y`. |
| 39 | * `New.Uniformisation.card_torsion`: A(O) has m^(2 dim V) points killed by m ≠ 0. |
| 40 | * `New.HasThetaCoords.pull`, `New.HasThetaCoords.pow`, `New.HasThetaCoords.pull_translate`, |
| 41 | `New.HasThetaCoords.mul`: pull-back, power, translation and tensor product. |
| 42 | * `New.HasThetaCoords.riemannForm_eq_of_isFrame`: if `N ⊗ M⁻¹` has a frame, the Riemann forms and |
| 43 | the multipliers of `N` and `M` agree, and along the family the frame is a constant times |
| 44 | exp((B − B′)(z, z)/2)·θ′/θ. |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.PointFn`: a function on the points of a scheme X; it assigns to each point Spec R → X, for |
| 48 | every ring R, an element of R, with no compatibility required. |
| 49 | * `New.LandsIn`: the point t : Spec R → X lands in the open U when all of Spec R maps into U. |
| 50 | * `New.IsAppellHumbert`: Appell–Humbert data (B, χ) for a lattice L: Re B is symmetric, and on L one |
| 51 | has |χ| = 1 and χ(l + m) = χ(l)χ(m)·exp(πi E(m, l)), where E(u, v) = Im(B(u, v) − B(v, u))/(2π) is |
| 52 | the Riemann form of B (`New.RealComplexForm.riemannForm`). |
| 53 | * `New.RealComplexForm.thetaSpace`: the entire functions f on V with f(z + l) = χ(l)·exp(B(l, |
| 54 | z) + B(l, l)/2)·f(z) for l in L. |
| 55 | * `New.LineBundle.IsHomogeneousCoords`, `New.LineBundle.IsLinearSystem`: v is a vector of |
| 56 | homogeneous coordinates of the point t for the line bundle N when t lands in the chart U_j exactly |
| 57 | when v_j is a unit, and then g_jk(t) = v_k/v_j. N is a linear system when each transition function |
| 58 | g_ij is regular on U_i and zero at the points outside U_i, and the g_ij(t), j varying, are |
| 59 | homogeneous coordinates of every point t of U_i. |
| 60 | |
| 61 | ## Relation to the literature |
| 62 | |
| 63 | Known; see `Lib.Shimura.Uniformisation.AppellHumbert` and `Lib.Shimura.ArcExtension` for sources. |
| 64 | -/ |
| 65 | |
| 66 | @[expose] public section |
| 67 | |
| 68 | noncomputable section |
| 69 | |
| 70 | namespace New |
| 71 | |
| 72 | /-! |
| 73 | ## Complex points over a valuation ring, holomorphic families and uniformisations |
| 74 | |
| 75 | The analytic vocabulary for schemes over a valuation ring `O` with fraction field `ℂ` |
| 76 | (`New.ValuativeArc`; the case `O = ℂ` is included). |
| 77 | -/ |
| 78 | |
| 79 | section Uniformisation |
| 80 | |
| 81 | open CategoryTheory AlgebraicGeometry MonoidalCategory PointFn |
| 82 | |
| 83 | /-! ### Valuation rings of `ℂ` and sections over them -/ |
| 84 | |
| 85 | /-- A valuation ring O with fraction field ℂ, given with its algebra map O → ℂ, together with the |
| 86 | generic point Spec ℂ → Spec O, which is the morphism induced by O → ℂ. -/ |
| 87 | class ValuativeArc (O : Type) [CommRing.{0} O] extends |
| 88 | Algebra O ℂ, IsDomain O, ValuationRing O, IsFractionRing O ℂ where |
| 89 | /-- The generic point `Spec ℂ ⟶ Spec O`. -/ |
| 90 | genericPt : Spec ⟨ℂ⟩ ⟶ Spec ⟨O⟩ |
| 91 | /-- The generic point is the morphism induced by the algebra map `O → ℂ`. -/ |
| 92 | genericPt_eq : genericPt = specMap algebraMap := by rfl |
| 93 | |
| 94 | -- The projection ranks low, so that other algebra structures on `ℂ` are found first. |
| 95 | attribute [instance 100] ValuativeArc.toAlgebra |
| 96 | |
| 97 | instance : ValuativeArc ℂ where |
| 98 | genericPt := 𝟙 _ |
| 99 | genericPt_eq := by simp [specMap] |
| 100 | |
| 101 | instance (V : ValuationSubring ℂ) : ValuativeArc V := ⟨_, rfl⟩ |
| 102 | |
| 103 | /-- The set of complex points of a scheme A over ℂ, that is sections of its structure morphism. -/ |
| 104 | abbrev ComplexPoint (A : Over (Spec ⟨ℂ⟩)) : Type := 𝟙_ (Over (Spec ⟨ℂ⟩)) ⟶ A |
| 105 | |
| 106 | open ValuativeArc Over OverMorphism UniversallyClosed CartesianMonoidalCategory |
| 107 | |
| 108 | variable {O : Type} [CommRing O] [ValuativeArc O] {A : Over (Spec ⟨O⟩)} |
| 109 | |
| 110 | instance : IsSchemeTheoreticallyDominant ‹ValuativeArc O›.genericPt := by |
| 111 | rw [ValuativeArc.genericPt_eq] |
| 112 | exact (isSchemeTheoreticallyDominant_SpecMap_iff _).2 (IsFractionRing.injective O ℂ) |
| 113 | |
| 114 | /-- Valuative criterion of properness: for A proper over a valuation ring O with fraction field ℂ, |
| 115 | restriction to the generic point of Spec O is a bijection from the sections of A over O to the |
| 116 | ℂ-points of A above the generic point. -/ |
| 117 | lemma bijective_restrict_genericPt [IsProper A.hom] : |
| 118 | Function.Bijective fun s : 𝟙_ (Over (Spec (CommRingCat.of O))) ⟶ A ↦ |
| 119 | (toUnit (Over.mk genericPt) ≫ s : Over.mk genericPt ⟶ A) := by |
| 120 | refine ⟨fun a b h_eq ↦ ?_, fun t ↦ ?_⟩ |
| 121 | · -- `genericPt` is dominant and `A` is separated, so a section is determined by its generic |
| 122 | -- point. |
| 123 | have h_over : a.left ≫ A.hom = b.left ≫ A.hom := by simp |
| 124 | have h_generic : genericPt ≫ a.left = genericPt ≫ b.left := congrArg CommaMorphism.left h_eq |
| 125 | exact ext (ext_of_isDominant_of_isSeparated (X := Spec (CommRingCat.of O)) A.hom h_over |
| 126 | genericPt h_generic) |
| 127 | · -- Existence half of the valuative criterion for the universally closed morphism `A.hom`. |
| 128 | have h_exists : ValuativeCriterion.Existence A.hom := |
| 129 | (UniversallyClosed.eq_valuativeCriterion.le _ _ _ inferInstance).1 |
| 130 | let sq : ValuativeCommSq A.hom := |
| 131 | { R := O, K := ℂ, i₁ := t.left, i₂ := 𝟙 _, commSq := ⟨t.w.trans genericPt_eq⟩ } |
| 132 | -- `l.l : Spec O ⟶ A.left` is the lift in the square formed by `t` and the identity of `Spec O`. |
| 133 | obtain ⟨l⟩ : Nonempty sq.commSq.LiftStruct := (h_exists sq).exists_lift |
| 134 | have h_fac : genericPt ≫ l.l = t.left := |
| 135 | calc genericPt ≫ l.l = specMap (algebraMap O ℂ) ≫ l.l := by rw [genericPt_eq] |
| 136 | _ = t.left := l.fac_left |
| 137 | exact ⟨homMk l.l l.fac_right, ext h_fac⟩ |
| 138 | |
| 139 | /-- For a family s of sections of A over Spec O, O a valuation ring of ℂ, the complex point of A |
| 140 | given by s(z) at the generic point. -/ |
| 141 | def atGeneric {Z : Sort*} (s : Z → (𝟙_ (Over (Spec ⟨O⟩)) ⟶ A)) (z : Z) : Spec ⟨ℂ⟩ ⟶ A.left := |
| 142 | (toUnit (Over.mk genericPt) ≫ s z).left |
| 143 | |
| 144 | /-- Over `O = ℂ`, the point `atGeneric s z` is the underlying morphism of the section `s z`. -/ |
| 145 | @[simp] |
| 146 | lemma atGeneric_eq {A : Over (Spec (CommRingCat.of ℂ))} {Z : Sort*} (s : Z → ComplexPoint A) : |
| 147 | atGeneric s = fun z : Z ↦ (s z).left := rfl |
| 148 | |
| 149 | variable (A) [AddObj A] {X : Scheme} {ι P : Type} {T M : Type _} [FinComplexSpace.{0} P] |
| 150 | (V : Type) [FinComplexSpace.{0} V] [AddCommGroup M] [Module ℂ M] [Module ℂᵐᵒᵖ M] |
| 151 | [IsCentralScalar ℂ M] (L : Submodule ℤ P) (φ : P → (Spec ⟨ℂ⟩ ⟶ X)) (w₀ : P) |
| 152 | |
| 153 | /-! ### Holomorphic families of points and their jets -/ |
| 154 | |
| 155 | /-- For a family φ : T → X(ℂ) of complex points of the scheme X, a point w₀ of the space T and a |
| 156 | property Q of functions T → ℂ: for each open U of X containing φ(w₀) and each function f on the |
| 157 | points of X that is regular on U (at the points landing in U, f is given by a section over U), φ(w) |
| 158 | lies in U for w near w₀, and the function f ∘ φ satisfies Q. -/ |
| 159 | def HasGermAt [TopologicalSpace T] (Q : (T → ℂ) → Prop) (φ : T → (Spec ⟨ℂ⟩ ⟶ X)) (w₀ : T) : Prop := |
| 160 | ∀ ⦃U : X.Opens⦄ ⦃f : PointFn X⦄, f.IsRegularOn U → LandsIn (φ w₀) U → |
| 161 | (∀ᶠ w : T in nhds w₀, LandsIn (φ w) U) ∧ Q fun w : T ↦ f ⟨ℂ⟩ (φ w) |
| 162 | |
| 163 | /-- The family φ : P → X(ℂ) of complex points of the scheme X, P a finite-dimensional complex |
| 164 | space, is holomorphic at w₀: functions regular near φ(w₀) pull back to functions analytic at w₀. -/ |
| 165 | abbrev HolomorphicAt : Prop := HasGermAt (fun g : P → ℂ ↦ AnalyticAt ℂ g w₀) φ w₀ |
| 166 | |
| 167 | /-- τ is a jet of the family φ at w₀ for ℓ. Here τ : Spec(ℂ ⊕ M) → X is a point of X over the |
| 168 | trivial square-zero extension ℂ ⊕ M of ℂ by the ℂ-module M, and ℓ sends differentials on P to M. The |
| 169 | condition: τ lands in every open U that contains φ(w₀), and s(τ) = s(φ w₀) + ℓ(d(s ∘ φ) at w₀) for |
| 170 | every section s of the structure sheaf over U. -/ |
| 171 | def IsJet (ℓ : (P →ₗ[ℂ] ℂ) →ₗ[ℂ] M) (τ : Spec ⟨TrivSqZeroExt ℂ M⟩ ⟶ X) : Prop := |
| 172 | ∀ (U : X.Opens) (s : Γ(X, U)), LandsIn (φ w₀) U → LandsIn τ U ∧ |
| 173 | PointFn.ofSection s ⟨TrivSqZeroExt ℂ M⟩ τ = .inl (PointFn.ofSection s ⟨ℂ⟩ (φ w₀)) + |
| 174 | .inr (ℓ (fderiv ℂ (fun w : P ↦ PointFn.ofSection s ⟨ℂ⟩ (φ w)) w₀)) |
| 175 | |
| 176 | /-- φ is constant to first order at w₀ in the direction v: the constant point φ(w₀), seen over the |
| 177 | dual numbers, is the jet of φ for evaluation of differentials at v. Equivalently |
| 178 | (`New.isFirstOrderConst_iff`), d(s ∘ φ)(v) = 0 at w₀ for every section s over an open that contains |
| 179 | φ(w₀). -/ |
| 180 | abbrev IsFirstOrderConst (v : P) : Prop := |
| 181 | IsJet φ w₀ (LinearMap.applyₗ v) (specMap (algebraMap ℂ (TrivSqZeroExt ℂ ℂ)) ≫ φ w₀) |
| 182 | |
| 183 | /-- φ is a holomorphic immersion at w₀: it is holomorphic there, and constant to first order |
| 184 | only in the direction 0. -/ |
| 185 | def IsHolomorphicImmersionAt : Prop := |
| 186 | HolomorphicAt φ w₀ ∧ ∀ v : P, IsFirstOrderConst φ w₀ v → v = 0 |
| 187 | |
| 188 | /-! ### Uniformisations and theta coordinates -/ |
| 189 | |
| 190 | /-- A uniformisation of A by V, for a commutative group object A over Spec O (`New.AddObj`), O a |
| 191 | valuation ring of ℂ, and a finite-dimensional complex space V: a surjective homomorphism from V to |
| 192 | the sections of A over O whose kernel is a full-rank lattice, which is a holomorphic immersion on |
| 193 | complex points, and through which every homomorphism holomorphic at 0 factors ℂ-linearly. -/ |
| 194 | structure Uniformisation where |
| 195 | /-- The uniformising map, an additive map from `V` to the sections of `A` over `O`. -/ |
| 196 | expMap : V →+ (𝟙_ (Over (Spec ⟨O⟩)) ⟶ A) |
| 197 | /-- The period lattice. -/ |
| 198 | lattice : Submodule ℤ V |
| 199 | /-- The lattice is discrete and spans `V` over `ℝ`. -/ |
| 200 | [isFullRankLattice : IsFullRankLattice lattice] |
| 201 | /-- Every section of `A` over `O` is a value of the uniformising map. -/ |
| 202 | surjective : Function.Surjective expMap |
| 203 | /-- The kernel of the uniformising map is the lattice. -/ |
| 204 | eq_zero_iff (z : V) : z ∈ lattice ↔ expMap z = 0 |
| 205 | /-- On complex points the uniformising map is a holomorphic immersion at every point. -/ |
| 206 | immersive (z : V) : IsHolomorphicImmersionAt (atGeneric expMap) z |
| 207 | /-- Every additive map `γ` to the sections that is holomorphic at `0` factors through the |
| 208 | uniformising map by a continuous `ℂ`-linear map. -/ |
| 209 | universal {W : Type} [FinComplexSpace W] (γ : W →+ (𝟙_ (Over (Spec ⟨O⟩)) ⟶ A)) : |
| 210 | HolomorphicAt (atGeneric γ) 0 → ∃ F : W →L[ℂ] V, ∀ z : W, expMap (F z) = γ z |
| 211 | |
| 212 | attribute [instance] Uniformisation.isFullRankLattice |
| 213 | |
| 214 | attribute [simp, grind =] Uniformisation.eq_zero_iff |
| 215 | |
| 216 | /-- Theta coordinates for a family φ : P → X(ℂ) of complex points and a lattice L in P: the line |
| 217 | bundle N is a linear system (`New.LineBundle.IsLinearSystem`), (B, χ) are Appell–Humbert data |
| 218 | for L, with B a form on P, and θ(z) gives homogeneous coordinates of φ(z), each θ_i being a theta |
| 219 | function of type (B, χ). -/ |
| 220 | structure HasThetaCoords (N : LineBundle X ι) (B : ThetaTori.LatticeForm L) (χ : P → ℂ) |
| 221 | (θ : P → ι → ℂ) where |
| 222 | /-- `N` is a linear system. -/ |
| 223 | isLinearSystem : N.IsLinearSystem |
| 224 | /-- `(B, χ)` are Appell–Humbert data for the lattice `L`. -/ |
| 225 | isAppellHumbert : IsAppellHumbert (V := P) (L := L) B χ |
| 226 | /-- Each coordinate of `θ` is a theta function of type `(B, χ)` for `L`. -/ |
| 227 | mem_thetaSpace (i : ι) : (θ · i) ∈ B.thetaSpace χ |
| 228 | /-- `θ z` is a vector of homogeneous coordinates of the point `φ z`. -/ |
| 229 | hasFieldCoords (z : P) : N.IsHomogeneousCoords (φ z) (θ z) |
| 230 | |
| 231 | end Uniformisation |
| 232 | |
| 233 | /-! |
| 234 | ## Germs, jets and tangent vectors of families of complex points |
| 235 | |
| 236 | Families `φ` of complex points of a scheme are treated without an analytification. Sections over an |
| 237 | open set are functions on ring-valued points (`New.PointFn.ofSection`), and they are pulled back |
| 238 | along `φ`. For `New.HolomorphicAt`, `Q` is analyticity at `w₀`. |
| 239 | |
| 240 | * `New.HasGermAt.of_isHomogeneousCoords`, `New.HasGermAt.of_jointly_mono`: on a projective scheme, |
| 241 | `HasGermAt` can be tested on homogeneous coordinates (`New.LineBundle.IsHomogeneousCoords`) or on |
| 242 | maps that separate points. |
| 243 | * `New.HolomorphicAt.exists_isJet`, `New.IsJet.unique`, `New.isJet_comp_iff`: a holomorphic |
| 244 | family has exactly one jet for each linear map on differentials, and jets obey the chain rule. |
| 245 | * `New.HolomorphicAt.isFirstOrderConst_of_nsmul`, `New.Uniformisation.hasSignature_iff`: on a |
| 246 | smooth commutative group scheme, if `n • φ` is constant to first order in a direction for some |
| 247 | `n ≠ 0`, so is `φ`; and the signature condition on the tangent action can be read on the space |
| 248 | of a uniformisation. |
| 249 | -/ |
| 250 | |
| 251 | section HolomorphicFamily |
| 252 | |
| 253 | open CategoryTheory AlgebraicGeometry Limits CartesianMonoidalCategory Filter Topology CommRingCat |
| 254 | TrivSqZeroExt Variety Spec PointFn Over LineBundle ContinuousLinearMap Matrix |
| 255 | |
| 256 | attribute [local instance low] Fintype.ofFinite |
| 257 | |
| 258 | /-! ### Germs of families of points -/ |
| 259 | |
| 260 | section Germs |
| 261 | |
| 262 | variable {X Y : Scheme} {ι : Type} {T : Type*} {U : X.Opens} {Q : (T → ℂ) → Prop} |
| 263 | {N : LineBundle X ι} [TopologicalSpace T] {φ : T → (Spec (CommRingCat.of ℂ) ⟶ X)} {w₀ : T} |
| 264 | |
| 265 | /-- Every function in `Q` is continuous at `w₀`. `Q` also contains every function that near `w₀` is |
| 266 | an analytic function of finitely many functions in `Q`. -/ |
| 267 | class GermClass (Q : (T → ℂ) → Prop) (w₀ : T) where |
| 268 | /-- A finite family `p` of functions in the class is continuous at `w₀`, and the class contains |
| 269 | every function that agrees near `w₀` with `g ∘ p` for some `g` analytic at `p w₀`. -/ |
| 270 | comp {ι : Type} [Fintype ι] {p : T → ι → ℂ} : (∀ i : ι, Q (p · i)) → |
| 271 | ContinuousAt p w₀ ∧ |
| 272 | ∀ {g : (ι → ℂ) → ℂ} {f : T → ℂ}, AnalyticAt ℂ g (p w₀) → g ∘ p =ᶠ[𝓝 w₀] f → Q f |
| 273 | |
| 274 | instance : GermClass (ContinuousAt · w₀) w₀ where |
| 275 | comp h_cont := ⟨continuousAt_pi.mpr h_cont, |
| 276 | fun hg h_eq ↦ (hg.continuousAt.comp (continuousAt_pi.mpr h_cont)).congr h_eq⟩ |
| 277 | |
| 278 | namespace HasGermAt |
| 279 | |
| 280 | /-- If `φ` has a germ of class `Q` at `w₀`, so has its composite with a morphism `f : X ⟶ Y`. -/ |
| 281 | lemma comp_hom (h_germ : HasGermAt Q φ w₀) (f : X ⟶ Y) : HasGermAt Q (φ · ≫ f) w₀ := |
| 282 | fun _ _ hg ↦ h_germ (hg.pull f) |
| 283 | |
| 284 | /-- If `N` is a linear system, a family of class `Q` has, near `w₀`, homogeneous coordinates for `N` |
| 285 | of class `Q`. -/ |
| 286 | lemma exists_isHomogeneousCoords (h_germ : HasGermAt Q φ w₀) (hN : N.IsLinearSystem) : |
| 287 | ∃ p : T → ι → ℂ, (∀ i : ι, Q (p · i)) ∧ |
| 288 | ∀ᶠ w : T in 𝓝 w₀, N.IsHomogeneousCoords (φ w) (p w) := by |
| 289 | -- Take the affine coordinates `N.transition i j` of a chart `N.opens i` that contains `φ w₀`. |
| 290 | obtain ⟨i, hi⟩ : ∃ i : ι, LandsIn (φ w₀) (N.opens i) := N.exists_landsIn (φ w₀) |
| 291 | have h_near : ∀ᶠ w : T in 𝓝 w₀, LandsIn (φ w) (N.opens i) := |
| 292 | (h_germ (hN.isRegularOn_transition i i) hi).left |
| 293 | have h_coords_Q (j : ι) : Q fun w : T ↦ N.transition i j (CommRingCat.of ℂ) (φ w) := |
| 294 | (h_germ (hN.isRegularOn_transition i j) hi).right |
| 295 | exact ⟨fun w j ↦ N.transition i j _ (φ w), h_coords_Q, |
| 296 | h_near.mono fun w h_lands ↦ hN.isHomogeneousCoords_transition h_lands⟩ |
| 297 | |
| 298 | variable [hQ : GermClass Q w₀] [Finite ι] {R : CommRingCat} {p : T → ι → ℂ} |
| 299 | |
| 300 | /-- Let `Q` be a germ class at `w₀` and `U` an affine open set. Suppose that near `w₀` the family |
| 301 | stays in `U`, and that every section over `U` pulls back to a function of class `Q`. Then the family |
| 302 | is of class `Q`. -/ |
| 303 | lemma of_affine (hU : IsAffineOpen U) (h_near : ∀ᶠ w : T in 𝓝 w₀, LandsIn (φ w) U) |
| 304 | (h_sec : ∀ s : Γ(X, U), Q fun w : T ↦ PointFn.ofSection s (CommRingCat.of ℂ) (φ w)) : |
| 305 | HasGermAt Q φ w₀ := by |
| 306 | -- Near `φ w₀` the function `f` is a quotient `G / H ^ n` of sections over `U`, hence an analytic |
| 307 | -- function of the values of `G` and `H`, which lie in the class. |
| 308 | intro W f hf hW |
| 309 | obtain ⟨H, basic_le, mem_basic⟩ := |
| 310 | hU.exists_basicOpen_le ⟨_, landsIn_iff_mem.mp hW⟩ (landsIn_iff_mem.mp h_near.self_of_nhds) |
| 311 | obtain ⟨a, ha⟩ := (hf.mono basic_le).exists_ofSection |
| 312 | obtain ⟨n, G, hG⟩ := exists_eq_pow_mul_of_isAffineOpen _ _ hU _ a |
| 313 | let p (w : T) (i : Fin 2) : ℂ := PointFn.ofSection (![G, H] i) _ (φ w) |
| 314 | obtain ⟨p_cont, p_comp⟩ := hQ.comp (p := p) fun i ↦ h_sec _ |
| 315 | have H_ne : p w₀ 1 ≠ 0 := by |
| 316 | simpa [p, h_near.self_of_nhds, landsIn_basicOpen] using landsIn_iff_mem.mpr mem_basic |
| 317 | have quotient : ∀ᶠ w : T in 𝓝 w₀, LandsIn (φ w) W ∧ p w 0 / p w 1 ^ n = f _ (φ w) := by |
| 318 | filter_upwards [h_near, (p_cont.apply_nhds 1).eventually_ne H_ne] with w hw H_ne_w |
| 319 | have in_basic : LandsIn (φ w) (X.basicOpen H) := |
| 320 | (landsIn_basicOpen hw H).mpr H_ne_w.isUnit |
| 321 | -- Evaluate `G = H ^ n * a`, an equation on the basic open set of `H`, at the point `φ w`. |
| 322 | have h_eval := congrArg (evalSection (φ w) in_basic) hG |
| 323 | rw [map_mul, map_pow] at h_eval |
| 324 | have ev_G : p w 0 = p w 1 ^ n * f _ (φ w) := by |
| 325 | simpa [p, ← ofSection_eq in_basic, ofSection_map _ _ in_basic, ha _ _ in_basic, |
| 326 | TopCat.Presheaf.restrictOpen, TopCat.Presheaf.restrict] using h_eval |
| 327 | exact ⟨in_basic.mono basic_le, by rw [ev_G, mul_div_cancel_left₀ _ (pow_ne_zero n H_ne_w)]⟩ |
| 328 | have analytic : AnalyticAt ℂ (fun q : Fin 2 → ℂ ↦ q 0 / q 1 ^ n) (p w₀) := |
| 329 | ContDiffAt.analyticAt (by fun_prop (disch := exact pow_ne_zero n H_ne)) |
| 330 | exact (eventually_and.mp quotient).imp_right (p_comp analytic) |
| 331 | |
| 332 | /-- Let `N` embed `X` in projective space over `Spec R`, and let all points `φ w` lie over one |
| 333 | complex point `b` of `Spec R`. If near `w₀` the points `φ w` have homogeneous coordinates `p w` |
| 334 | whose components lie in the class `Q`, then `φ` has a germ of class `Q` at `w₀`. -/ |
| 335 | lemma of_isHomogeneousCoords {s : X ⟶ Spec R} {φ : T → (Spec (CommRingCat.of ℂ) ⟶ X)} |
| 336 | {b : Spec (CommRingCat.of ℂ) ⟶ Spec R} (hN : N.IsProjEmbedding s) (hp : ∀ i : ι, Q (p · i)) |
| 337 | (h_coords : ∀ᶠ w : T in 𝓝 w₀, N.IsHomogeneousCoords (φ w) (p w)) |
| 338 | (h_over : ∀ w : T, φ w ≫ s = b) : HasGermAt Q φ w₀ := by |
| 339 | -- The chart `N.opens i` with `p w₀ i ≠ 0` is affine, its sections are polynomials `π F` in the |
| 340 | -- affine coordinates, and these are `p w j / p w i` at `φ w`. |
| 341 | obtain ⟨i, hi⟩ : ∃ i : ι, p w₀ i ≠ 0 := h_coords.self_of_nhds.exists_ne_zero |
| 342 | obtain ⟨affine, π, π_surj, -, ev_π⟩ := hN.exists_affine_chart i |
| 343 | obtain ⟨p_cont, p_comp⟩ := hQ.comp hp |
| 344 | have near : ∀ᶠ w : T in 𝓝 w₀, p w i ≠ 0 := (p_cont.apply_nhds i).eventually_ne hi |
| 345 | have coord (j : ι) : AnalyticAt ℂ (fun q : ι → ℂ ↦ q j / q i) (p w₀) := |
| 346 | ContDiffAt.analyticAt (by fun_prop (disch := exact hi)) |
| 347 | have in_chart : ∀ᶠ w : T in 𝓝 w₀, LandsIn (φ w) (N.opens i) := by |
| 348 | filter_upwards [near, h_coords] with w p_ne coords_w using (coords_w i).left.mpr p_ne.isUnit |
| 349 | refine of_affine affine in_chart (π_surj.forall.mpr fun F ↦ ?_) |
| 350 | have ev_F : ∀ᶠ w : T in 𝓝 w₀, |
| 351 | MvPolynomial.aeval (fun j ↦ p w j / p w i) (F.map (preimage b).hom) = |
| 352 | PointFn.ofSection (π F) (CommRingCat.of ℂ) (φ w) := by |
| 353 | filter_upwards [near, h_coords, in_chart] with w p_ne coords_w in_chart_w |
| 354 | have affine_coords (j : ι) : N.transition i j (CommRingCat.of ℂ) (φ w) = p w j / p w i := by |
| 355 | rw [(coords_w i).right j p_ne.isUnit, Ring.inverse_eq_inv', div_eq_mul_inv] |
| 356 | rw [ev_π in_chart_w, h_over, funext affine_coords] |
| 357 | simp [MvPolynomial.aeval_eq_eval, MvPolynomial.eval_map] |
| 358 | exact p_comp (.aeval_mvPolynomial coord (F.map (preimage b).hom)) ev_F |
| 359 | |
| 360 | /-- Let `W` be proper over `Spec R`, with finitely many maps `π l` to projectively embedded |
| 361 | schemes that together separate its points. A family `φ` of points of `W` over one complex point |
| 362 | `b` of `Spec R` has a germ of class `Q` at `w₀` as soon as each image `φ · ≫ π l` has one. -/ |
| 363 | lemma of_jointly_mono {W : Over (Spec R)} [h_proper : IsProper W.hom] {Z : ι → Over (Spec R)} |
| 364 | (π : ∀ l : ι, W ⟶ Z l) [h_emb : ∀ l : ι, HasProjEmbedding (Z l).hom] |
| 365 | (h_sep : ∀ {C : Over (Spec R)} {x y : C ⟶ W}, (∀ l : ι, x ≫ π l = y ≫ π l) → x = y) |
| 366 | {φ : T → (Spec (CommRingCat.of ℂ) ⟶ W.left)} {b : Spec (CommRingCat.of ℂ) ⟶ Spec R} |
| 367 | (h_germ : ∀ l : ι, HasGermAt Q (fun w : T ↦ φ w ≫ (π l).left) w₀) |
| 368 | (h_over : ∀ w : T, φ w ≫ W.hom = b) : HasGermAt Q φ w₀ := by |
| 369 | -- The Segre product of the embeddings of the `Z l` embeds `W`; its coordinates are products of |
| 370 | -- coordinates of the points `φ w ≫ π l`. |
| 371 | choose ν N ν_finite hN using fun l : ι ↦ (hasProjEmbedding_iff _).mp (h_emb l) |
| 372 | choose p hp lifts using fun l : ι ↦ |
| 373 | (h_germ l).exists_isHomogeneousCoords (hN l).isLinearSystem |
| 374 | refine of_isHomogeneousCoords (isProjEmbedding_pi π hN h_sep) (p := fun w i ↦ ∏ l, p l w (i l)) |
| 375 | (fun i ↦ ?_) ?_ h_over |
| 376 | · -- A product is an analytic function of its factors. |
| 377 | obtain ⟨-, p_comp⟩ := hQ.comp fun l ↦ hp l (i l) |
| 378 | exact p_comp (g := fun q ↦ ∏ l, q l) (ContDiffAt.analyticAt (by fun_prop)) .rfl |
| 379 | · -- Both clauses of `IsHomogeneousCoords` for the product follow factor by factor. |
| 380 | filter_upwards [eventually_all.mpr lifts] with w lifts_w j |
| 381 | have landsIn_iff (l : ι) : |
| 382 | LandsIn (φ w ≫ (π l).left) ((N l).opens (j l)) ↔ IsUnit (p l w (j l)) := |
| 383 | (lifts_w l (j l)).left |
| 384 | refine ⟨?_, fun k prod_unit ↦ ?_⟩ |
| 385 | · -- The point lands in the product chart iff it lands in the chart of every factor. |
| 386 | simp [landsIn_iInf, landsIn_iff, Finset.prod_eq_zero_iff] |
| 387 | · have transition_eq (l : ι) : |
| 388 | (N l).transition (j l) (k l) (CommRingCat.of ℂ) (φ w ≫ (π l).left) = |
| 389 | p l w (k l) * Ring.inverse (p l w (j l)) := |
| 390 | (lifts_w l (j l)).right (k l) (IsUnit.prod_univ_iff.mp prod_unit l) |
| 391 | simp [transition_eq, Finset.prod_mul_distrib] |
| 392 | |
| 393 | /-- Two families of class `Q` in a projective scheme `A` give a family of class `Q` in `A × A`. -/ |
| 394 | lemma lift {A : Over (Spec ⟨ℂ⟩)} {N : LineBundle A.left ι} (hN : N.IsProjEmbedding A.hom) |
| 395 | {φ ψ : T → ComplexPoint A} (hφ : HasGermAt Q (fun w : T ↦ (φ w).left) w₀) |
| 396 | (hψ : HasGermAt Q (fun w : T ↦ (ψ w).left) w₀) : |
| 397 | HasGermAt Q (fun w : T ↦ (CartesianMonoidalCategory.lift (φ w) (ψ w)).left) w₀ := by |
| 398 | -- The two projections separate the points of the product, which is proper as `A` is. |
| 399 | have h_proper : IsProper A.hom := hN.isProper |
| 400 | refine of_jointly_mono ![CartesianMonoidalCategory.fst A A, CartesianMonoidalCategory.snd A A] |
| 401 | (h_emb := fun _ ↦ ⟨hN⟩) |
| 402 | (h_proper := inferInstanceAs (IsProper (pullback.fst A.hom A.hom ≫ A.hom))) |
| 403 | (fun h_proj ↦ CartesianMonoidalCategory.hom_ext _ _ (h_proj 0) (h_proj 1)) |
| 404 | (Fin.forall_fin_two.mpr ⟨?_, ?_⟩) fun w ↦ Over.w (CartesianMonoidalCategory.lift (φ w) (ψ w)) |
| 405 | · simpa only [Matrix.cons_val_zero, ← comp_left, lift_fst] using hφ |
| 406 | · simpa only [Matrix.cons_val_one, Matrix.cons_val_zero, ← comp_left, lift_snd] using hψ |
| 407 | |
| 408 | end HasGermAt |
| 409 | |
| 410 | end Germs |
| 411 | |
| 412 | variable {X Y S : Scheme} {P : Type _} [FinComplexSpace P] {s : X ⟶ S} |
| 413 | {φ ψ : P → (Spec (CommRingCat.of ℂ) ⟶ X)} {w₀ : P} {V M : Type} |
| 414 | {A : Over (Spec (CommRingCat.of ℂ))} [FinComplexSpace V] [AddObj A] |
| 415 | (u : Uniformisation (O := ℂ) A V) [AddCommGroup M] [Module ℂ M] [Module ℂᵐᵒᵖ M] |
| 416 | [IsCentralScalar ℂ M] {ℓ : (P →ₗ[ℂ] ℂ) →ₗ[ℂ] M} |
| 417 | {τ τ' : Spec (CommRingCat.of (TrivSqZeroExt ℂ M)) ⟶ X} {v₀ : V} |
| 418 | {b : Spec (CommRingCat.of ℂ) ⟶ S} {g : V → P} |
| 419 | |
| 420 | instance : GermClass (AnalyticAt ℂ · w₀) w₀ where |
| 421 | comp h_analytic := |
| 422 | ⟨(AnalyticAt.pi h_analytic).continuousAt, fun hg ↦ (hg.comp (.pi h_analytic)).congr⟩ |
| 423 | |
| 424 | namespace IsJet |
| 425 | |
| 426 | /-! ### Jets -/ |
| 427 | |
| 428 | lemma landsIn (hτ : IsJet (M := M) φ w₀ ℓ τ) {U : X.Opens} (hU : LandsIn (φ w₀) U) : LandsIn τ U := |
| 429 | (hτ U 0 hU).left |
| 430 | |
| 431 | /-- The value of a section `s` at a jet of `φ` is its value at `φ w₀` plus `ℓ` of the |
| 432 | derivative of `s ∘ φ` at `w₀`. -/ |
| 433 | lemma ofSection_eq (hτ : IsJet (M := M) φ w₀ ℓ τ) {U : X.Opens} (hU : LandsIn (φ w₀) U) |
| 434 | (s : Γ(X, U)) : |
| 435 | PointFn.ofSection s (CommRingCat.of (TrivSqZeroExt ℂ M)) τ = |
| 436 | inl (PointFn.ofSection s (CommRingCat.of ℂ) (φ w₀)) + |
| 437 | inr (ℓ (fderiv ℂ (fun w : P ↦ PointFn.ofSection s (CommRingCat.of ℂ) (φ w)) w₀)) := |
| 438 | (hτ U s hU).right |
| 439 | |
| 440 | /-- A family has at most one jet for a given linear map `ℓ` on differentials. -/ |
| 441 | lemma unique (hτ : IsJet (M := M) φ w₀ ℓ τ) (hτ' : IsJet φ w₀ ℓ τ') : τ = τ' := by |
| 442 | -- Both jets lie in an affine open set around `φ w₀` and give each section the same value. |
| 443 | obtain ⟨U, hU, mem⟩ := exists_isAffineOpen_landsIn (φ w₀) |
| 444 | exact point_eq_of_ofSection_eq hU (hτ.landsIn mem) (hτ'.landsIn mem) fun s ↦ |
| 445 | (hτ.ofSection_eq mem s).trans (hτ'.ofSection_eq mem s).symm |
| 446 | |
| 447 | /-- The composite of a jet `τ` of `φ` with a morphism `p : X ⟶ Y` is a jet of `w ↦ φ w ≫ p`. -/ |
| 448 | lemma comp_hom (hτ : IsJet (M := M) φ w₀ ℓ τ) (p : X ⟶ Y) : IsJet (φ · ≫ p) w₀ ℓ (τ ≫ p) := |
| 449 | fun U s ↦ hτ (p ⁻¹ᵁ U) (p.app U s) |
| 450 | |
| 451 | /-- A jet of `φ` at `w₀` is also a jet of every family `ψ` that agrees with `φ` near `w₀`. -/ |
| 452 | lemma congr (hτ : IsJet (M := M) φ w₀ ℓ τ) (h_eq : φ =ᶠ[𝓝 w₀] ψ) : IsJet ψ w₀ ℓ τ := by |
| 453 | -- The value and the derivative at `w₀` depend only on the germ. |
| 454 | intro U s |
| 455 | have h_deriv : fderiv ℂ (fun w ↦ PointFn.ofSection s _ (φ w)) w₀ = |
| 456 | fderiv ℂ (fun w ↦ PointFn.ofSection s _ (ψ w)) w₀ := |
| 457 | (h_eq.fun_comp (PointFn.ofSection s _)).fderiv_eq |
| 458 | rw [← h_eq.eq_of_nhds, ← h_deriv] |
| 459 | exact hτ U s |
| 460 | |
| 461 | /-- Reducing a jet `τ` of `φ` at `w₀` modulo the square-zero part `M` gives the point `φ w₀`. -/ |
| 462 | lemma fst_comp (hτ : IsJet (M := M) φ w₀ ℓ τ) : specMap (fstHom ℂ ℂ M).toRingHom ≫ τ = φ w₀ := by |
| 463 | -- Both points lie in an affine open set `U` and give each section the same value. |
| 464 | obtain ⟨U, hU, mem⟩ := exists_isAffineOpen_landsIn (φ w₀) |
| 465 | refine point_eq_of_ofSection_eq hU ((hτ.landsIn mem).comp _) mem fun s ↦ ?_ |
| 466 | simp [isRegularOn_ofSection s _ _ (hτ.landsIn mem), hτ.ofSection_eq mem s] |
| 467 | |
| 468 | /-- If all points `φ w` lie over one point `b` of `S`, a jet `τ` of `φ` lies over `b`, seen as a |
| 469 | point with values in `ℂ ⊕ M`. -/ |
| 470 | lemma comp_base_eq (hτ : IsJet (M := M) φ w₀ ℓ τ) (h_over : ∀ w : P, φ w ≫ s = b) : |
| 471 | τ ≫ s = specMap (algebraMap ℂ (TrivSqZeroExt ℂ M)) ≫ b := by |
| 472 | -- `φ · ≫ s` is the constant family `b`, and its jet is the constant point `b`. |
| 473 | have h_const_jet : IsJet (φ · ≫ s) w₀ ℓ (specMap (algebraMap ℂ (TrivSqZeroExt ℂ M)) ≫ b) := by |
| 474 | simp +contextual [h_over, isRegularOn_ofSection _ _, IsJet, LandsIn.comp, algebraMap_eq_inl] |
| 475 | exact (hτ.comp_hom s).unique h_const_jet |
| 476 | |
| 477 | end IsJet |
| 478 | |
| 479 | /-- A family holomorphic at `g v₀`, precomposed with a map `g` analytic at `v₀`, is holomorphic |
| 480 | at `v₀`. -/ |
| 481 | lemma HolomorphicAt.comp (hφ : HolomorphicAt φ (g v₀)) (hg : AnalyticAt ℂ g v₀) : |
| 482 | HolomorphicAt (fun v : V ↦ φ (g v)) v₀ := |
| 483 | fun _ _ hf hU ↦ ⟨hg.continuousAt (hφ hf hU).left, (hφ hf hU).right.comp hg⟩ |
| 484 | |
| 485 | /-- Let `φ` be a family of complex points of `X`, parametrised by a finite-dimensional complex space |
| 486 | `P` and holomorphic at `w₀`, and let `ℓ` be a linear map from linear functionals on `P` to a |
| 487 | ℂ-module `M`. Then there is a point `τ` of `X` over the trivial square-zero extension `ℂ ⊕ M` that |
| 488 | is a jet of `φ` at `w₀` for `ℓ`. That is, `τ` lands in every open containing `φ w₀`, and every |
| 489 | regular function `s` there satisfies `s(τ) = s(φ w₀) + ℓ(d(s ∘ φ) at w₀)`. -/ |
| 490 | lemma HolomorphicAt.exists_isJet (hφ : HolomorphicAt φ w₀) (ℓ : (P →ₗ[ℂ] ℂ) →ₗ[ℂ] M) : |
| 491 | ∃ τ : Spec (CommRingCat.of (TrivSqZeroExt ℂ M)) ⟶ X, IsJet (M := M) φ w₀ ℓ τ := by |
| 492 | -- Sending a section `s` near `x = φ w₀` to the value and the derivative of `s ∘ φ` at `w₀` is a |
| 493 | -- ring map to `ℂ ⊕ M` that is compatible with restriction, so it factors through the stalk at |
| 494 | -- `x`; the jet is the corresponding point `Spec (ℂ ⊕ M) → Spec 𝒪_x → X`. |
| 495 | let x : X := φ w₀ (IsLocalRing.closedPoint ℂ) |
| 496 | have near {U : X.Opens} (hU : x ∈ U) : ∀ᶠ w : P in 𝓝 w₀, LandsIn (φ w) U := |
| 497 | (hφ (isRegularOn_ofSection 0) (landsIn_iff_mem.mpr hU)).left |
| 498 | have diff {U : X.Opens} (hU : x ∈ U) (s : Γ(X, U)) : |
| 499 | DifferentiableAt ℂ (fun w ↦ PointFn.ofSection s _ (φ w)) w₀ := |
| 500 | (hφ (isRegularOn_ofSection s) (landsIn_iff_mem.mpr hU)).right.differentiableAt |
| 501 | let jet (f : P → ℂ) : TrivSqZeroExt ℂ M := inl (f w₀) + inr (ℓ (fderiv ℂ f w₀)) |
| 502 | have jet_congr {f g : P → ℂ} (h_eq : f =ᶠ[𝓝 w₀] g) : jet f = jet g := by |
| 503 | simp only [jet, h_eq.eq_of_nhds, h_eq.fderiv_eq] |
| 504 | let jetHom {U : X.Opens} (hU : x ∈ U) : Γ(X, U) →+* TrivSqZeroExt ℂ M := |
| 505 | { toFun s := jet fun w ↦ PointFn.ofSection s _ (φ w) |
| 506 | map_one' := by |
| 507 | have h_one_near : (fun w : P ↦ PointFn.ofSection (1 : Γ(X, U)) _ (φ w)) =ᶠ[𝓝 w₀] 1 := |
| 508 | (near hU).mono fun w hw ↦ by simp [ofSection_eq hw] |
| 509 | simp [jet_congr h_one_near, jet] |
| 510 | map_mul' s t := by simp [jet, diff hU, fderiv_fun_mul, TrivSqZeroExt.ext_iff] |
| 511 | map_zero' := by simp [jet] |
| 512 | map_add' s t := by simp [jet, diff hU, fderiv_fun_add, TrivSqZeroExt.ext_iff] } |
| 513 | let cocone : Cocone ((TopologicalSpace.OpenNhds.inclusion x).op ⋙ X.presheaf) := |
| 514 | { pt := of (TrivSqZeroExt ℂ M) |
| 515 | ι.app U := ofHom (jetHom U.unop.property) |
| 516 | ι.naturality _ V _ := hom_ext <| RingHom.ext fun _ ↦ |
| 517 | jet_congr ((near V.unop.property).mono fun _ ↦ ofSection_map _ _) } |
| 518 | let stalkHom : X.presheaf.stalk x ⟶ of (TrivSqZeroExt ℂ M) := colimit.desc _ cocone |
| 519 | refine ⟨map stalkHom ≫ X.fromSpecStalk x, fun U s hU ↦ ?_⟩ |
| 520 | have hx : x ∈ U := landsIn_iff_mem.mp hU |
| 521 | refine ⟨(landsIn_fromSpecStalk hx).comp _, ?_⟩ |
| 522 | calc PointFn.ofSection s _ (map stalkHom ≫ X.fromSpecStalk x) |
| 523 | _ = stalkHom (X.presheaf.germ U x hx s) := by |
| 524 | rw [isRegularOn_ofSection s _ _ (landsIn_fromSpecStalk hx), ofSection_fromSpecStalk] |
| 525 | _ = jet fun w ↦ PointFn.ofSection s _ (φ w) := colimit.ι_desc_apply cocone .. |
| 526 | |
| 527 | /-- The chain rule: if `g : V → P` has derivative `g'` at `v₀`, the jet of `φ ∘ g` at `v₀` in the |
| 528 | direction `v : V` is the jet of `φ` at `g v₀` in the direction `g' v`. -/ |
| 529 | lemma isJet_comp_iff {τ : Spec (CommRingCat.of (TrivSqZeroExt ℂ ℂ)) ⟶ X} {v₀ v : V} |
| 530 | {g' : V →L[ℂ] P} {g : V → P} (hg : HasFDerivAt (𝕜 := ℂ) g g' v₀) (hφ : HolomorphicAt φ (g v₀)) : |
| 531 | IsJet (fun u : V ↦ φ (g u)) v₀ (LinearMap.applyₗ v) τ ↔ |
| 532 | IsJet φ (g v₀) (LinearMap.applyₗ (g' v)) τ := by |
| 533 | -- The chain rule for each section `s` near `φ (g v₀)`. |
| 534 | refine forall₃_congr fun U s hU ↦ ?_ |
| 535 | have chain : fderiv ℂ (fun w ↦ PointFn.ofSection s _ (φ (g w))) v₀ = |
| 536 | fderiv ℂ (fun w ↦ PointFn.ofSection s _ (φ w)) (g v₀) ∘L g' := |
| 537 | ((hφ (isRegularOn_ofSection s) hU).right.differentiableAt.hasFDerivAt.comp v₀ hg).fderiv |
| 538 | simp [chain] |
| 539 | |
| 540 | /-- `φ` is constant to first order in the direction `v` iff the following holds for every open `U` |
| 541 | containing `φ w₀` and every section `s` over `U`: the derivative of `s ∘ φ` at `w₀` vanishes in the |
| 542 | direction `v`. -/ |
| 543 | lemma isFirstOrderConst_iff {v : P} : |
| 544 | IsFirstOrderConst φ w₀ v ↔ ∀ (U : X.Opens) (s : Γ(X, U)), LandsIn (φ w₀) U → |
| 545 | fderiv ℂ (fun w : P ↦ PointFn.ofSection s (CommRingCat.of ℂ) (φ w)) w₀ v = 0 := by |
| 546 | refine forall₃_congr fun U s hU ↦ ?_ |
| 547 | simp only [hU.comp, true_and, isRegularOn_ofSection s _ _ hU, CommRingCat.hom_ofHom, |
| 548 | algebraMap_eq_inl, TrivSqZeroExt.ext_iff, fst_inl, fst_add, fst_inr, add_zero, snd_inl, |
| 549 | snd_add, snd_inr, zero_add, LinearMap.applyₗ_apply_apply, ContinuousLinearMap.coe_coe] |
| 550 | exact eq_comm |
| 551 | |
| 552 | /-! ### Immersions and tangent vectors of group schemes -/ |
| 553 | |
| 554 | /-- Let `A` be the fibre of `s : X ⟶ S` at the complex point `c` of `S`, with `p : A ⟶ X` the map |
| 555 | of the fibre square `h_pb`. Then the uniformisation of `A` followed by `p` is still a holomorphic |
| 556 | immersion at every `z : V`. -/ |
| 557 | lemma Uniformisation.isHolomorphicImmersionAt_of_isPullback {p : A.left ⟶ X} |
| 558 | {c : Spec (CommRingCat.of ℂ) ⟶ S} (h_pb : IsPullback p A.hom s c) (z : V) : |
| 559 | IsHolomorphicImmersionAt (atGeneric u.expMap · ≫ p) z := by |
| 560 | obtain ⟨h_hol, h_imm⟩ := u.immersive z |
| 561 | refine ⟨h_hol.comp_hom p, fun v h_still ↦ h_imm v ?_⟩ |
| 562 | -- The jet `τ` of `u.expMap` in the direction `v` and the constant jet have the same images under |
| 563 | -- both projections of the fibre product, so they agree. |
| 564 | obtain ⟨τ, hτ⟩ := h_hol.exists_isJet (M := ℂ) (.applyₗ v) |
| 565 | obtain rfl : τ = specMap (algebraMap ℂ (TrivSqZeroExt ℂ ℂ)) ≫ atGeneric u.expMap z := |
| 566 | h_pb.hom_ext ((hτ.comp_hom p).unique h_still) (by simp [hτ.comp_base_eq]) |
| 567 | exact hτ |
| 568 | |
| 569 | /-- Let 𝒜 be a commutative group scheme over X, smooth of relative dimension d, φ a family of |
| 570 | complex points of 𝒜 holomorphic at w₀, and n ≠ 0. If the family w ↦ n • φ(w) is constant to first |
| 571 | order in the direction v, so is φ. -/ |
| 572 | lemma HolomorphicAt.isFirstOrderConst_of_nsmul {v : P} {𝒜 : Over X} [AddObj 𝒜] |
| 573 | {φ : P → (Spec (CommRingCat.of ℂ) ⟶ 𝒜.left)} {d n : ℕ} (h : HolomorphicAt φ w₀) |
| 574 | (hd : SmoothOfRelativeDimension d 𝒜.hom) (hn : n ≠ 0) |
| 575 | (h_still : IsFirstOrderConst (φ · ≫ (n • 𝟙 𝒜).left) w₀ v) : IsFirstOrderConst φ w₀ v := by |
| 576 | -- Compare the jet `y` of `φ` in the direction `v` with the constant jet `y₀`, as points of `𝒜` |
| 577 | -- over the dual numbers: `y - y₀` reduces to `0` and is killed by `n`, a unit of the dual |
| 578 | -- numbers; on a smooth group scheme this forces `y - y₀ = 0`. |
| 579 | obtain ⟨τ, hτ⟩ := h.exists_isJet (M := ℂ) (.applyₗ v) |
| 580 | let τ₀ : Spec (CommRingCat.of (TrivSqZeroExt ℂ ℂ)) ⟶ 𝒜.left := |
| 581 | specMap (algebraMap ℂ (TrivSqZeroExt ℂ ℂ)) ≫ φ w₀ |
| 582 | have h_still_base : IsJet (M := ℂ) (φ · ≫ 𝒜.hom) w₀ (.applyₗ v) (τ₀ ≫ 𝒜.hom) := by |
| 583 | simpa [τ₀] using h_still.comp_hom 𝒜.hom |
| 584 | let y : mk (τ₀ ≫ 𝒜.hom) ⟶ 𝒜 := homMk τ ((hτ.comp_hom 𝒜.hom).unique h_still_base) |
| 585 | let y₀ : mk (τ₀ ≫ 𝒜.hom) ⟶ 𝒜 := homMk τ₀ |
| 586 | -- `y` and `y₀` both reduce to `φ w₀`, so `y - y₀` reduces to `0`. |
| 587 | have tiny : IsInfinitesimal (ofHom (fstHom ℂ ℂ ℂ).toRingHom) (y - y₀) := by |
| 588 | rw [IsInfinitesimal, AddGrpObj.comp_sub, sub_eq_zero] |
| 589 | exact OverMorphism.ext (hτ.fst_comp.trans (by simp [y₀, τ₀, ← map_comp_assoc, ← ofHom_comp])) |
| 590 | have h_comp_eq : y ≫ (n • 𝟙 𝒜) = y₀ ≫ (n • 𝟙 𝒜) := |
| 591 | OverMorphism.ext ((hτ.comp_hom _).unique h_still) |
| 592 | have h_nsmul_sub : n • (y - y₀) = 0 := by |
| 593 | rw [comp_nsmul, Category.comp_id, comp_nsmul, Category.comp_id] at h_comp_eq |
| 594 | rw [smul_sub, sub_eq_zero] |
| 595 | exact h_comp_eq |
| 596 | obtain ⟨h_inj, -⟩ := tiny.eq_zero_of_isUnit_and_nsmul_eq_zero_of_cast_eq_zero hd (𝟙 _) n |
| 597 | have h_unit : IsUnit (n : TrivSqZeroExt ℂ ℂ) := |
| 598 | isUnit_iff_isUnit_fst.mpr (by rw [fst_natCast]; exact (Nat.cast_ne_zero.mpr hn).isUnit) |
| 599 | have y_eq : y = y₀ := sub_eq_zero.mp (h_inj h_unit h_nsmul_sub) |
| 600 | rwa [show τ = τ₀ from congrArg CommaMorphism.left y_eq] at hτ |
| 601 | |
| 602 | /-- Let `u` uniformise a group scheme `A` over `ℂ` with an `O`-module structure by a |
| 603 | finite-dimensional complex vector space `V`, and let `F : O → V →L[ℂ] V` lift the `O`-action along |
| 604 | `u.expMap`, so that `u.expMap (F a w) = a • u.expMap w` for all `a` in `O` and `w` in `V`. If `t₁` |
| 605 | and `t₂` are dual-number points of `A` that are the jets of `u.expMap` at `0` in the directions `v` |
| 606 | and `F a v` respectively, then `t₂ = a • t₁`. -/ |
| 607 | private lemma Uniformisation.isJet_apply_eq_smul {O : Type} [CommRing O] [ModuleObj O A] |
| 608 | {F : O → V →L[ℂ] V} (hF : ∀ (a : O) (w : V), u.expMap (F a w) = a • u.expMap w) {a : O} {v : V} |
| 609 | {t₁ t₂ : specOver ℂ (TrivSqZeroExt ℂ ℂ) ⟶ A} |
| 610 | (ht₁ : IsJet (M := ℂ) (atGeneric u.expMap) 0 (.applyₗ v) t₁.left) |
| 611 | (ht₂ : IsJet (M := ℂ) (atGeneric u.expMap) 0 (.applyₗ (F a v)) t₂.left) : |
| 612 | t₂ = a • t₁ := by |
| 613 | -- Both sides are the jet at `0` of `w ↦ u.expMap (F a w) = a • u.expMap w` in the direction `v`. |
| 614 | have h_jet_F : |
| 615 | IsJet (M := ℂ) (atGeneric u.expMap) (F a 0) (.applyₗ (F a v)) t₂.left := by |
| 616 | simpa using ht₂ |
| 617 | have chain : IsJet (fun w ↦ atGeneric u.expMap (F a w)) 0 (.applyₗ v) t₂.left := |
| 618 | (isJet_comp_iff (F a).hasFDerivAt (u.immersive (F a 0)).1).mpr h_jet_F |
| 619 | refine OverMorphism.ext (chain.unique ?_) |
| 620 | have h_jet_smul := ht₁.comp_hom (τ := t₁.left) (a • 𝟙 A).left |
| 621 | have h_fn : (fun w ↦ atGeneric u.expMap w ≫ (a • 𝟙 A).left) = |
| 622 | fun w ↦ atGeneric u.expMap (F a w) := |
| 623 | funext fun w ↦ by |
| 624 | change (u.expMap w).left ≫ (a • 𝟙 A).left = (u.expMap (F a w)).left |
| 625 | rw [← Over.comp_left, ModuleObj.comp_smul, Category.comp_id, ← hF] |
| 626 | have h_τ : t₁.left ≫ (a • 𝟙 A).left = (a • t₁).left := by |
| 627 | rw [← Over.comp_left, ModuleObj.comp_smul, Category.comp_id] |
| 628 | rw [h_fn, h_τ] at h_jet_smul |
| 629 | exact h_jet_smul |
| 630 | |
| 631 | /-- The derivative linear equivalence `V ≃ₗ[ℂ] Fin d → ℂ` of a uniformisation `u` along a |
| 632 | Lie chart `h_lieChart` on `𝒜`, intertwining `F a` with left-multiplication by `m a` (`m a *ᵥ ·`). -/ |
| 633 | private noncomputable def Uniformisation.chartLinearEquivOfIsLieChart {O : Type} {d : ℕ} |
| 634 | [CommRing O] [ModuleObj O A] {F : O → V →L[ℂ] V} |
| 635 | (hF : ∀ (a : O) (w : V), u.expMap (F a w) = a • u.expMap w) {𝒜 : Over S} |
| 636 | [AddObj 𝒜] [ModuleObj O 𝒜] {s : Spec (CommRingCat.of ℂ) ⟶ S} {U : 𝒜.left.Opens} |
| 637 | {z : Fin d → Γ(𝒜.left, U)} {m : O → Matrix (Fin d) (Fin d) ℂ} |
| 638 | {p : (Over.map s).obj A ⟶ 𝒜} (h_lieChart : IsLieChart (ι := Fin d) 𝒜 s U z m) |
| 639 | (h_bc : IsGroupBaseChange (R := O) s p) (hd : Module.finrank ℂ V = d) : |
| 640 | { D : V ≃ₗ[ℂ] Fin d → ℂ // ∀ (a : O) (v : V), D (F a v) = m a *ᵥ D v } := by |
| 641 | -- `τ v` is the tangent vector at `0` in the direction `v`, a point over the dual numbers. |
| 642 | obtain ⟨h_hol₀, -⟩ := u.immersive 0 |
| 643 | obtain ⟨h_etale, h_chart⟩ := h_lieChart |
| 644 | have h_jets : ∀ v : V, ∃ τ : Spec (CommRingCat.of (TrivSqZeroExt ℂ ℂ)) ⟶ A.left, |
| 645 | IsJet (M := ℂ) (atGeneric u.expMap) 0 (.applyₗ v) τ := |
| 646 | fun v ↦ h_hol₀.exists_isJet (M := ℂ) (.applyₗ v) |
| 647 | choose τ₀ jet using h_jets |
| 648 | have τ₀_over (v : V) : τ₀ v ≫ A.hom = (specOver ℂ (TrivSqZeroExt ℂ ℂ)).hom := by |
| 649 | simpa using (jet v).comp_base_eq fun w ↦ (u.expMap w).w |
| 650 | let τ (v : V) : specOver ℂ (TrivSqZeroExt ℂ ℂ) ⟶ A := homMk (τ₀ v) (τ₀_over v) |
| 651 | have zero_p : (AddMonObj.zero (X := A)).left ≫ p.left = s ≫ (AddMonObj.zero (X := 𝒜)).left := by |
| 652 | have h_comp_zero := h_bc.pullSection_comp 0 |
| 653 | rw [map_zero] at h_comp_zero |
| 654 | simpa [Hom.zero_def] using h_comp_zero |
| 655 | have zero_mem : LandsIn (s ≫ (AddMonObj.zero (X := 𝒜)).left) U := by |
| 656 | simpa [Hom.zero_def] using (h_chart (map_id _ =≫ s)).left |
| 657 | have h_infinitesimal (v : V) : |
| 658 | IsInfinitesimal (ofHom (fstHom ℂ ℂ ℂ).toRingHom) (h_bc.pointEquiv (τ v)) := by |
| 659 | refine OverMorphism.ext (((jet v).fst_comp =≫ _).trans ?_) |
| 660 | have h_sec : specMap (fstHom ℂ ℂ ℂ).toRingHom ≫ specMap (algebraMap ℂ (TrivSqZeroExt ℂ ℂ)) = |
| 661 | 𝟙 (Spec (CommRingCat.of ℂ)) := by |
| 662 | rw [specMap, specMap, ← Spec.map_comp, ← ofHom_comp] |
| 663 | exact (congrArg (fun φ ↦ Spec.map (ofHom φ)) (RingHom.ext fun _ ↦ rfl)).trans (Spec.map_id _) |
| 664 | rw [Hom.zero_def] |
| 665 | change (u.expMap 0).left ≫ p.left = |
| 666 | (specMap (fstHom ℂ ℂ ℂ).toRingHom ≫ specMap (algebraMap ℂ (TrivSqZeroExt ℂ ℂ)) ≫ s) ≫ |
| 667 | (AddMonObj.zero (X := 𝒜)).left |
| 668 | rw [map_zero, Hom.zero_def] |
| 669 | change (𝟙 _ ≫ (AddMonObj.zero (X := A)).left) ≫ p.left = _ |
| 670 | rw [Category.id_comp, zero_p, ← Category.assoc, h_sec, Category.id_comp] |
| 671 | let D₀ : V →ₗ[ℂ] Fin d → ℂ := LinearMap.pi fun j ↦ |
| 672 | (fderiv ℂ (fun w ↦ PointFn.ofSection (z j) _ (atGeneric u.expMap w ≫ p.left)) 0).toLinearMap |
| 673 | -- The coordinates of `τ v` differ from those of `0` by `ε • D₀ v`, by the definition of a jet. |
| 674 | have dv_eq (v : V) : tangentCoords z (h_bc.pointEquiv (τ v)) = inr ∘ D₀ v := by |
| 675 | simp [isRegularOn_ofSection _ _, tangentCoords, τ, zero_p, D₀, (jet v).comp_hom _ U, |
| 676 | IsGroupBaseChange.pointEquiv, zero_mem, funext_iff, Hom.zero_def, algebraMap_eq_inl] |
| 677 | -- If `D₀ v = 0`, the image of `τ v` in `𝒜` is `0` as `z` is a chart; and `u` is an immersion. |
| 678 | have D₀_inj : Function.Injective D₀ := by |
| 679 | obtain ⟨-, h_imm_p⟩ := u.isHolomorphicImmersionAt_of_isPullback h_bc.isPullback 0 |
| 680 | refine (injective_iff_map_eq_zero _).mpr fun v hv ↦ h_imm_p v ?_ |
| 681 | have h_coords_zero : tangentCoords z (h_bc.pointEquiv (τ v)) = 0 := by simp [dv_eq, hv] |
| 682 | have τ_zero : h_bc.pointEquiv (τ v) = 0 := |
| 683 | h_etale.eq_zero_of_tangentCoords_eq_zero (h_chart rfl).left (h_infinitesimal v) h_coords_zero |
| 684 | have const : τ₀ v ≫ p.left = |
| 685 | specMap (algebraMap ℂ (TrivSqZeroExt ℂ ℂ)) ≫ atGeneric u.expMap 0 ≫ p.left := by |
| 686 | refine (congrArg CommaMorphism.left τ_zero).trans ?_ |
| 687 | simp [zero_p, Hom.zero_def] |
| 688 | have h_jet_p : IsJet (M := ℂ) (atGeneric u.expMap · ≫ p.left) 0 (.applyₗ v) (τ₀ v ≫ p.left) := |
| 689 | (jet v).comp_hom p.left |
| 690 | rwa [const] at h_jet_p |
| 691 | let D : V ≃ₗ[ℂ] Fin d → ℂ := D₀.linearEquivOfInjective D₀_inj (by simpa using hd) |
| 692 | have τ_F (a : O) (v : V) : τ (F a v) = a • τ v := |
| 693 | u.isJet_apply_eq_smul hF (jet v) (jet (F a v)) |
| 694 | -- Take the `ε`-part of the equation `tangentCoords z (a • y) = m a *ᵥ tangentCoords z y` of the |
| 695 | -- chart, for the image `y` of `τ v` in `𝒜`. |
| 696 | refine ⟨D, fun a v ↦ ?_⟩ |
| 697 | obtain ⟨h_act, -⟩ := (h_chart rfl).right (h_infinitesimal v) |
| 698 | have hD_apply (w : V) : D w = D₀ w := rfl |
| 699 | simpa [dv_eq, mulVec_eq_sum, snd_sum, ← map_smul, ← τ_F, funext_iff, hD_apply, |
| 700 | algebraMap_eq_inl] using congrArg (fun c ↦ snd ∘ c) (h_act a) |
| 701 | |
| 702 | /-- Transport `HasSignature ρ b c m` across a linear equivalence `D : V ≃ₗ[ℂ] Fin d → ℂ` that |
| 703 | intertwines `F a` with `m a *ᵥ ·`. -/ |
| 704 | private lemma hasSignature_iff_of_linearEquiv {O : Type} {d : ℕ} [CommRing O] |
| 705 | {F : O → V →L[ℂ] V} {m : O → Matrix (Fin d) (Fin d) ℂ} (D : V ≃ₗ[ℂ] Fin d → ℂ) |
| 706 | (hD_F : ∀ (a : O) (v : V), D (F a v) = m a *ᵥ D v) {ρ : O →+* ℂ} {b c : O} : |
| 707 | HasSignature ρ b c m ↔ |
| 708 | ∃ Y ≠ (0 : V), (∀ a : O, F a Y = ρ a • Y) ∧ |
| 709 | ∃ ξ : V →ₗ[ℂ] ℂ, ∀ w : V, F b w - ρ c • w = ξ w • Y := by |
| 710 | -- Transport vectors along `D` and linear forms along its dual. |
| 711 | constructor |
| 712 | · rintro ⟨X, ξ, k, hXk, h_eig, h_mat⟩ |
| 713 | refine ⟨D.symm X, |
| 714 | fun hY ↦ hXk.ne_zero (congrFun (show X = 0 by rw [← D.apply_symm_apply X, hY, map_zero]) k), |
| 715 | fun a ↦ D.injective ?_, |
| 716 | { toFun w := ξ ⬝ᵥ D w |
| 717 | map_add' u v := by rw [map_add, dotProduct_add] |
| 718 | map_smul' r v := by rw [map_smul, dotProduct_smul, RingHom.id_apply] }, |
| 719 | fun w ↦ D.injective ?_⟩ |
| 720 | · rw [hD_F, map_smul, D.apply_symm_apply, h_eig a] |
| 721 | · rw [map_sub, hD_F, map_smul, map_smul, D.apply_symm_apply] |
| 722 | have h_app := congrArg (· *ᵥ D w) h_mat |
| 723 | rw [sub_mulVec, smul_mulVec, one_mulVec, vecMulVec_mulVec, op_smul_eq_smul] at h_app |
| 724 | exact h_app |
| 725 | · rintro ⟨Y, hY, h_eig, ξ, h_mat⟩ |
| 726 | have hDY_ne : D Y ≠ 0 := fun h0 ↦ hY (D.injective (h0.trans (map_zero D).symm)) |
| 727 | obtain ⟨k, hk⟩ := Function.ne_iff.mp hDY_ne |
| 728 | refine ⟨D Y, fun j ↦ ξ (D.symm (Pi.single j 1)), k, hk.isUnit, fun a ↦ ?_, ?_⟩ |
| 729 | · rw [← hD_F, h_eig a, map_smul] |
| 730 | · ext i j |
| 731 | have h_col := congrFun (congrArg D (h_mat (D.symm (Pi.single j 1)))) i |
| 732 | rw [map_sub, hD_F, map_smul, map_smul, D.apply_symm_apply, mulVec_single_one] at h_col |
| 733 | simp only [Pi.sub_apply, Pi.smul_apply, Matrix.col_apply, smul_eq_mul, Matrix.sub_apply, |
| 734 | Matrix.smul_apply, Matrix.one_apply, vecMulVec_apply, Pi.single_apply] at h_col ⊢ |
| 735 | exact h_col.trans (mul_comm _ _) |
| 736 | |
| 737 | /-- The signature condition read on a uniformisation. Let `u` uniformise `A`, a group scheme over |
| 738 | `ℂ` on which `O` acts, by a space `V` of dimension `d`, and let `A` be the fibre at the complex |
| 739 | point `s` of the group scheme `𝒜`, with `p` the map of the fibre square, compatible with the action |
| 740 | of `O` (`h_bc`). Let `a : O` act on `V` by `F a`, compatibly with `u.expMap` (`hF`), and let `z` be |
| 741 | a Lie chart of `𝒜` over `s` (`h_lieChart`): étale coordinates on an open set `U` around the zero |
| 742 | section, in which `a` acts on tangent vectors by the matrix `m a`. Then `HasSignature ρ b c m` (the |
| 743 | `m a` have a common eigenvector with eigenvalues `ρ a` and a unit coordinate, and `m b - ρ c` maps |
| 744 | into its line) holds iff some `Y ≠ 0` in `V` has `F a Y = ρ a • Y` for all `a`, and `F b - ρ c` maps |
| 745 | `V` into the line of `Y`. -/ |
| 746 | lemma Uniformisation.hasSignature_iff {O : Type} {d : ℕ} [CommRing O] [ModuleObj O A] |
| 747 | {F : O → V →L[ℂ] V} (hF : ∀ (a : O) (w : V), u.expMap (F a w) = a • u.expMap w) {𝒜 : Over S} |
| 748 | [AddObj 𝒜] [ModuleObj O 𝒜] {s : Spec (CommRingCat.of ℂ) ⟶ S} {U : 𝒜.left.Opens} |
| 749 | {z : Fin d → Γ(𝒜.left, U)} {m : O → Matrix (Fin d) (Fin d) ℂ} |
| 750 | {p : (Over.map s).obj A ⟶ 𝒜} (h_lieChart : IsLieChart (ι := Fin d) 𝒜 s U z m) |
| 751 | (h_bc : IsGroupBaseChange (R := O) s p) (hd : Module.finrank ℂ V = d) {ρ : O →+* ℂ} {b c : O} : |
| 752 | HasSignature ρ b c m ↔ |
| 753 | ∃ Y ≠ (0 : V), (∀ a : O, F a Y = ρ a • Y) ∧ |
| 754 | ∃ ξ : V →ₗ[ℂ] ℂ, ∀ w : V, F b w - ρ c • w = ξ w • Y := by |
| 755 | -- The derivative `D` at `0` of the coordinates `z` along the uniformisation is an isomorphism |
| 756 | -- `V ≃ ℂ ^ d` that carries `F a` to the matrix `m a`; both sides then say the same. |
| 757 | obtain ⟨D, hD_F⟩ := u.chartLinearEquivOfIsLieChart hF h_lieChart h_bc hd |
| 758 | exact hasSignature_iff_of_linearEquiv D hD_F |
| 759 | |
| 760 | end HolomorphicFamily |
| 761 | |
| 762 | end New |
| 763 | |
| 764 | /-! |
| 765 | ## Linear lifts, lattice indices and counting torsion points |
| 766 | |
| 767 | A uniformisation (`New.Uniformisation`) identifies the sections of A with V modulo its period |
| 768 | lattice `lattice`, the kernel of `expMap`. |
| 769 | |
| 770 | * `New.Uniformisation.linear_ext`: a continuous ℂ-linear map into V is determined by its composite |
| 771 | with the uniformising map. |
| 772 | * `New.relIndex_comap_eq_det_mul_conj_det`: for an injective ℂ-linear F preserving a lattice L, the |
| 773 | index of L in F⁻¹(L) is |det F|². |
| 774 | * `New.Uniformisation.card_torsion`: A(O) has m^(2 dim V) points killed by m ≠ 0. |
| 775 | -/ |
| 776 | |
| 777 | section TorsionOfTorus |
| 778 | |
| 779 | open Int Complex AddSubgroup LinearMap ComplexConjugate CategoryTheory MonoidalCategory Module |
| 780 | |
| 781 | namespace New |
| 782 | |
| 783 | variable {O : Type} [CommRing O] [ValuativeArc O] |
| 784 | {A : Over (AlgebraicGeometry.Spec (CommRingCat.of O))} [AddObj A] {V : Type} {V' : Type*} |
| 785 | [FinComplexSpace V] [FinComplexSpace V'] (u : Uniformisation (O := O) A V) |
| 786 | |
| 787 | /-- Two continuous ℂ-linear maps into the uniformising space are equal if they agree after the |
| 788 | uniformisation `u.expMap`. -/ |
| 789 | lemma Uniformisation.linear_ext {F G : V' →L[ℂ] V} (h : ∀ z : V', u.expMap (F z) = u.expMap (G z)) : |
| 790 | F = G := by |
| 791 | -- `F - G` is a continuous map from the connected space `V'` to the discrete lattice `u.lattice`, |
| 792 | -- so it is constant, with value `(F - G) 0 = 0`. |
| 793 | have h_mem (z : V') : (F - G) z ∈ u.lattice := by simp [h] |
| 794 | ext z |
| 795 | have h_const : (⟨(F - G) z, h_mem z⟩ : u.lattice) = ⟨(F - G) 0, h_mem 0⟩ := |
| 796 | TotallyDisconnectedSpace.eq_of_continuous _ ((F - G).continuous.subtype_mk h_mem) z 0 |
| 797 | simpa [sub_eq_zero] using h_const |
| 798 | |
| 799 | /-- Let L be a lattice in a finite-dimensional complex space V and F an injective ℂ-linear |
| 800 | endomorphism of V with F(L) ⊂ L. Then the index of L in F⁻¹(L) equals det F times its |
| 801 | complex conjugate, that is |det F|². -/ |
| 802 | lemma relIndex_comap_eq_det_mul_conj_det {L : Submodule ℤ V} [IsFullRankLattice L] {F : V →ₗ[ℂ] V} |
| 803 | (hF_mem : ∀ z ∈ L, F z ∈ L) (hF_inj : Function.Injective F) : |
| 804 | relIndex L.toAddSubgroup (L.toAddSubgroup.comap F) = F.det * conj F.det := by |
| 805 | -- Take a `ℤ`-basis `b` of `L`. Its preimage `b'` under `F` is a basis of `F⁻¹ L`, and the matrix |
| 806 | -- of `b` in `b'` is the matrix of `F` in `b`. So the index is the absolute value of the real |
| 807 | -- determinant of `F`, which is `|det F|²`. |
| 808 | let b : Basis (Fin (finrank ℤ L)) ℤ L := finBasis ℤ L |
| 809 | let Φ : V ≃ₗ[ℤ] V := (LinearEquiv.ofInjectiveEndo F hF_inj).restrictScalars ℤ |
| 810 | let b' : Basis (Fin (finrank ℤ L)) ℤ (L.comap Φ.toLinearMap) := b.map (Φ.ofSubmodule' L).symm |
| 811 | let M : Matrix (Fin (finrank ℤ L)) (Fin (finrank ℤ L)) ℤ := |
| 812 | b'.toMatrix fun i ↦ ⟨b i, hF_mem (b i) (b i).prop⟩ |
| 813 | -- `b` is read as a basis of `L.toAddSubgroup.toIntSubmodule`. |
| 814 | have h_index : relIndex L.toAddSubgroup (L.toAddSubgroup.comap F) = M.det.natAbs := by |
| 815 | rw [relIndex_eq_natAbs_det _ _ hF_mem b b'] |
| 816 | rfl |
| 817 | let bℝ : Basis (Fin (finrank ℤ L)) ℝ V := b.ofZLatticeBasis ℝ |
| 818 | have h_matrix : M.map (↑) = toMatrix bℝ bℝ (F.restrictScalars ℝ) := by |
| 819 | ext i j |
| 820 | have h_image : Φ.ofSubmodule' L ⟨(b j : V), hF_mem (b j) (b j).prop⟩ = |
| 821 | ⟨F (b j), hF_mem (b j) (b j).prop⟩ := rfl |
| 822 | simpa [bℝ, M, b', Basis.toMatrix_apply, toMatrix_apply, h_image] using |
| 823 | (b.ofZLatticeBasis_repr_apply ℝ L ⟨F (b j), hF_mem (b j) (b j).prop⟩ i).symm |
| 824 | have h_det : (M.det : ℝ) = normSq F.det := by |
| 825 | rw [cast_det, h_matrix, det_toMatrix, det_restrictScalars, Algebra.norm_complex_apply] |
| 826 | rw [h_index, mul_conj, ← abs_of_nonneg (normSq_nonneg _), ← h_det] |
| 827 | simp [← cast_abs] |
| 828 | |
| 829 | /-- Let O be a valuation ring with fraction field ℂ, A a commutative group scheme over O, and u a |
| 830 | uniformisation, with V / u.lattice ≅ A(O) and dim V = d. For m ≠ 0, exactly m^{2d} points of A(O) |
| 831 | are killed by m. -/ |
| 832 | lemma Uniformisation.card_torsion (u : Uniformisation A V) {m : ℕ} (hm : m ≠ 0) : |
| 833 | Nat.card {y : 𝟙_ (Over (AlgebraicGeometry.Spec (CommRingCat.of O))) ⟶ A // m • y = 0} = |
| 834 | m ^ (finrank ℂ V * 2) := by |
| 835 | -- The `m`-torsion is the image under `u.expMap` of `F⁻¹ L`, for `F` the multiplication by `m` on |
| 836 | -- `V` and `L = u.lattice` the kernel of `u.expMap`. So its order is the index of `L` in `F⁻¹ L`, |
| 837 | -- `|det F|²`. |
| 838 | let F : V →ₗ[ℂ] V := (m : ℂ) • 1 |
| 839 | have hF (z : V) : F z = m • z := Nat.cast_smul_eq_nsmul ℂ m z |
| 840 | have h_ker : u.expMap.ker = u.lattice.toAddSubgroup := (AddSubgroup.ext u.eq_zero_iff).symm |
| 841 | have h_comap : (nsmulAddMonoidHom m).ker.comap u.expMap = u.lattice.toAddSubgroup.comap F := |
| 842 | AddSubgroup.ext fun z ↦ by |
| 843 | change m • u.expMap z = 0 ↔ F z ∈ u.lattice |
| 844 | rw [← map_nsmul, ← hF z, u.eq_zero_iff] |
| 845 | have h_card : Nat.card {y : 𝟙_ _ ⟶ A // m • y = 0} = |
| 846 | relIndex u.lattice.toAddSubgroup (u.lattice.toAddSubgroup.comap F) := by |
| 847 | rw [← h_comap, ← h_ker, relIndex_ker, map_comap_eq_self_of_surjective u.surjective] |
| 848 | rfl |
| 849 | have h_index : relIndex u.lattice.toAddSubgroup (u.lattice.toAddSubgroup.comap F) = F.det * conj |
| 850 | F.det := |
| 851 | relIndex_comap_eq_det_mul_conj_det (fun z hz ↦ by simpa only [hF] using nsmul_mem hz m) |
| 852 | (lsmul_injective (Nat.cast_ne_zero.mpr hm)) |
| 853 | have h_det : F.det = (m : ℂ) ^ finrank ℂ V := by simp [F] |
| 854 | rw [h_card, ← Nat.cast_inj (R := ℂ), h_index, h_det] |
| 855 | simp [pow_mul, sq] |
| 856 | |
| 857 | end New |
| 858 | |
| 859 | end TorsionOfTorus |
| 860 | |
| 861 | /-! |
| 862 | ## Theta coordinates under operations on line bundles |
| 863 | |
| 864 | Line bundles `New.LineBundle` are given by a cover and a cocycle; a section `w` is a family of |
| 865 | functions on points, one for each chart, and a frame is a section that vanishes nowhere. |
| 866 | |
| 867 | * `New.Uniformisation.atGeneric_add`, `New.Uniformisation.atGeneric_add_of_mem`: on complex |
| 868 | points the uniformising map turns addition into translation and is periodic for its lattice. |
| 869 | * `New.HasThetaCoords.pull`, `New.HasThetaCoords.pow`, `New.HasThetaCoords.pull_translate`, |
| 870 | `New.HasThetaCoords.mul`: theta coordinates under pull-back, powers, translation and tensor |
| 871 | product. |
| 872 | * `New.HasThetaCoords.exists_theta_of_isSection`: a section of `N ⊗ M⁻¹` is given by a theta |
| 873 | function of the quotient type. |
| 874 | -/ |
| 875 | |
| 876 | namespace New |
| 877 | |
| 878 | open CategoryTheory Complex Finset LineBundle Submodule |
| 879 | |
| 880 | variable {O : Type} [CommRing O] [ValuativeArc O] |
| 881 | {X : Over (AlgebraicGeometry.Spec (CommRingCat.of O))} {ι κ V : Type} {V' : Type} |
| 882 | [FinComplexSpace V] [FinComplexSpace V'] {L : Submodule ℤ V} |
| 883 | {B B' : ThetaTori.LatticeForm L} {χ χ' : V → ℂ} {θ : V → ι → ℂ} {θ' : V → κ → ℂ} |
| 884 | {S : AlgebraicGeometry.Scheme} {e : V → (AlgebraicGeometry.Spec (CommRingCat.of ℂ) ⟶ S)} |
| 885 | {N : LineBundle S ι} {M : LineBundle S κ} [AddObj X] (u : Uniformisation (O := O) X V) |
| 886 | |
| 887 | /-- On complex points, the uniformising map at `z + a` is its value at `z` followed by the |
| 888 | translation by the section `u.expMap a`. -/ |
| 889 | lemma Uniformisation.atGeneric_add (a z : V) : |
| 890 | atGeneric u.expMap (z + a) = atGeneric u.expMap z ≫ (translation (u.expMap a)).1 := by |
| 891 | simp [← Over.comp_left, atGeneric, comp_add] |
| 892 | |
| 893 | open MonoidalCategory in |
| 894 | /-- If the additive map `s` from `V` to the sections of `X` kills `l`, then on complex points |
| 895 | `s` takes the same value at `z + l` and at `z`. -/ |
| 896 | lemma atGeneric_add_of_map_eq_zero |
| 897 | (s : V →+ (𝟙_ (Over (AlgebraicGeometry.Spec (CommRingCat.of O))) ⟶ X)) {l : V} (hl : s l = 0) |
| 898 | (z : V) : atGeneric s (z + l) = atGeneric s z := by simp [hl, atGeneric] |
| 899 | |
| 900 | /-- On complex points the uniformising map is periodic for its lattice `u.lattice`. -/ |
| 901 | lemma Uniformisation.atGeneric_add_of_mem (l : V) (hl : l ∈ u.lattice) (z : V) : |
| 902 | atGeneric u.expMap (z + l) = atGeneric u.expMap z := |
| 903 | atGeneric_add_of_map_eq_zero u.expMap ((u.eq_zero_iff l).mp hl) z |
| 904 | |
| 905 | lemma Uniformisation.holomorphicAt (z : V) : HolomorphicAt (atGeneric u.expMap) z := |
| 906 | (u.immersive z).1 |
| 907 | |
| 908 | namespace HasThetaCoords |
| 909 | |
| 910 | /-- Let `N` have theta coordinates `θ` along `e`, let `F` be a complex linear map that sends `L'` |
| 911 | into `L`, and let `f` send the point `e' z` to `e (F z)`. Then the pull-back of `N` along `f` has |
| 912 | theta coordinates `θ ∘ F` along `e'`, of the type pulled back along `F`. -/ |
| 913 | lemma pull (h : HasThetaCoords L e N B χ θ) {S' : AlgebraicGeometry.Scheme} {L' : Submodule ℤ V'} |
| 914 | {e' : V' → (AlgebraicGeometry.Spec (CommRingCat.of ℂ) ⟶ S')} {f : S' ⟶ S} (F : V' →L[ℂ] V) |
| 915 | (he : ∀ z : V', e (F z) = e' z ≫ f) (hF : ∀ l ∈ L', F l ∈ L) : |
| 916 | HasThetaCoords L' e' (N.pull f) (B.pullForm F) (χ ∘ F) (θ ∘ F) where |
| 917 | isLinearSystem := h.isLinearSystem.pull f |
| 918 | isAppellHumbert := |
| 919 | { re_symm v w := by simpa using h.isAppellHumbert.re_symm (F v) (F w) |
| 920 | norm_eq_one l hl := h.isAppellHumbert.norm_eq_one (F l) (hF l hl) |
| 921 | semicharacter l hl m hm := by |
| 922 | simpa [riemannForm_def] using h.isAppellHumbert.semicharacter _ (hF l hl) _ (hF m hm) } |
| 923 | mem_thetaSpace i := |
| 924 | ⟨(h.mem_thetaSpace i).1.comp F.differentiable, |
| 925 | fun l hl z ↦ by simpa using (h.mem_thetaSpace i).2 _ (hF l hl) (F z)⟩ |
| 926 | hasFieldCoords z := show N.IsHomogeneousCoords (e' z ≫ f) (θ (F z)) by |
| 927 | simpa only [he z] using h.hasFieldCoords (F z) |
| 928 | |
| 929 | /-- If θ gives theta coordinates of type (B, χ) for N along e, then the monomials of degree m in |
| 930 | θ give theta coordinates of type (mB, χ^m) for the m-th power of N. -/ |
| 931 | lemma pow (h : HasThetaCoords L e N B χ θ) (m : ℕ) : |
| 932 | HasThetaCoords L e (N.pow m) (m • B) (χ ^ m) fun (z : V) (i : Fin m → ι) ↦ |
| 933 | ∏ a : Fin m, θ z (i a) := by |
| 934 | have θ_diff (i : ι) : Differentiable ℂ fun z : V ↦ θ z i := (h.mem_thetaSpace i).1 |
| 935 | have θ_add (i : ι) (l : V) (hl : l ∈ L) (z : V) : |
| 936 | θ (z + l) i = χ l * exp (B l z + B l l / 2) * θ z i := (h.mem_thetaSpace i).2 l hl z |
| 937 | refine |
| 938 | { isLinearSystem := by simp [IsLinearSystem.pi, LineBundle.pow, h.isLinearSystem] |
| 939 | isAppellHumbert := h.isAppellHumbert.nsmul m |
| 940 | mem_thetaSpace := fun i ↦ ⟨by fun_prop, ?_⟩ |
| 941 | hasFieldCoords := ?_ } |
| 942 | · -- The rule under `L` of a product of `m` coordinates is the `m`-th power of the rule. |
| 943 | simp +contextual [θ_add, prod_mul_distrib, ← exp_nsmul, mul_div, mul_pow] |
| 944 | · -- The monomials are homogeneous coordinates of the point in the power of `N`. |
| 945 | simp +contextual [landsIn_iInf, LineBundle.pow, prod_eq_zero_iff, h.hasFieldCoords .., |
| 946 | IsHomogeneousCoords, prod_mul_distrib] |
| 947 | |
| 948 | /-- Let `f : S ⟶ S` act along `e` as translation by `a`. Then the twisted translates |
| 949 | `thetaShift B a` of the coordinates `θ`, z ↦ exp(−(B(a, z) + B(a, a)/2))·θ(z + a), are theta |
| 950 | coordinates for the pull-back of `N` along `f`; the form `B` stays, and `χ l` is multiplied by |
| 951 | `exp (2 π i E(l, a))`, with `E` the Riemann form of `B`. -/ |
| 952 | lemma pull_translate (h : HasThetaCoords L e N B χ θ) {f : S ⟶ S} {a : V} |
| 953 | (he : ∀ z : V, e (z + a) = e z ≫ f) : |
| 954 | HasThetaCoords L e (N.pull f) B (fun l : V ↦ χ l * B.riemannPhase l a) |
| 955 | fun (z : V) (i : ι) ↦ B.thetaShift a (fun x : V ↦ θ x i) z where |
| 956 | isLinearSystem := h.isLinearSystem.pull f |
| 957 | isAppellHumbert := h.isAppellHumbert.mul_riemannPhase a |
| 958 | mem_thetaSpace i := h.isAppellHumbert.thetaShift_mem (h.mem_thetaSpace i) a |
| 959 | hasFieldCoords z := by |
| 960 | -- The new coordinates at `z` are those at `z + a` times a nonzero exponential. |
| 961 | change N.IsHomogeneousCoords (e z ≫ f) (exp (-(B a z + B a a / 2)) • θ (z + a)) |
| 962 | rw [← he z] |
| 963 | exact (h.hasFieldCoords (z + a)).smul (exp_ne_zero _).isUnit |
| 964 | |
| 965 | /-- Let θ and θ' give theta coordinates of types (B, χ) for N and (B', χ') for M along e. Then the |
| 966 | products θ_i·θ'_a give theta coordinates for the tensor product N ⊗ M, of type (B + B', χχ'). -/ |
| 967 | lemma mul (h : HasThetaCoords L e N B χ θ) (h' : HasThetaCoords L e M B' χ' θ') : |
| 968 | HasThetaCoords L e (N.mul M) (B + B') (χ * χ') fun (z : V) (p : ι × κ) ↦ θ z p.1 * θ' z p.2 |
| 969 | where |
| 970 | isLinearSystem := h.isLinearSystem.mul h'.isLinearSystem |
| 971 | isAppellHumbert := h.isAppellHumbert.add h'.isAppellHumbert |
| 972 | mem_thetaSpace p := thetaSpace.mul (h.mem_thetaSpace p.1) (h'.mem_thetaSpace p.2) |
| 973 | hasFieldCoords z := (h.hasFieldCoords z).mul (h'.hasFieldCoords z) |
| 974 | |
| 975 | /-- Let `N` and `M` have theta coordinates `θ` and `θ'` along a family `e` of complex points, |
| 976 | holomorphic everywhere, for the lattice `L`, with Appell–Humbert data `(B, χ)` and `(B', χ')` |
| 977 | respectively. Let `w` be a section of `N ⊗ M⁻¹` whose values along `e` are unchanged by translation |
| 978 | by `L`. Then there is a theta function `G` of type `(B - B', χ * χ'⁻¹)` such that `w (i, a)` at |
| 979 | `e z` equals `G z * θ' z a / θ z i` whenever `θ z i` and `θ' z a` are both nonzero. -/ |
| 980 | lemma exists_theta_of_isSection (h : HasThetaCoords L e N B χ θ) |
| 981 | (h' : HasThetaCoords L e M B' χ' θ') {w : ι × κ → PointFn S} |
| 982 | (hw : (N.mul M.inv).IsSection w) (he : ∀ z : V, HolomorphicAt e z) |
| 983 | (hL : ∀ l ∈ L, ∀ (z : V) (q : ι × κ), |
| 984 | w q (CommRingCat.of ℂ) (e (z + l)) = w q (CommRingCat.of ℂ) (e z)) : |
| 985 | ∃ G ∈ (B + -B').thetaSpace (χ * χ'⁻¹), ∀ (i : ι) (a : κ) (z : V), θ z i ≠ 0 → θ' z a ≠ 0 → |
| 986 | w (i, a) (CommRingCat.of ℂ) (e z) = G z * θ' z a / θ z i := by |
| 987 | -- Put `G z = w q (e z) * θ z q.1 / θ' z q.2` for a chart `q` that contains `e z`. The cocycle |
| 988 | -- rule for `w` makes this independent of `q`, so `G` is holomorphic; its transformation rule |
| 989 | -- under `L` is the quotient of the rules for `θ` and `θ'`. |
| 990 | have h_landsIn_iff (q : ι × κ) (z : V) : |
| 991 | LandsIn (e z) ((N.mul M.inv).opens q) ↔ θ z q.1 ≠ 0 ∧ θ' z q.2 ≠ 0 := by |
| 992 | simp [(h.hasFieldCoords z q.1).left, (h'.hasFieldCoords z q.2).left] |
| 993 | obtain ⟨hw_regular, hw_cocycle⟩ := hw |
| 994 | choose p hp using fun z : V ↦ (N.mul M.inv).exists_landsIn (e z) |
| 995 | let G (z : V) : ℂ := w (p z) (CommRingCat.of ℂ) (e z) * θ z (p z).1 / θ' z (p z).2 |
| 996 | have G_eq (q : ι × κ) (z : V) (hq : LandsIn (e z) ((N.mul M.inv).opens q)) : |
| 997 | G z = w q (CommRingCat.of ℂ) (e z) * θ z q.1 / θ' z q.2 := by |
| 998 | obtain ⟨θp_ne, θ'p_ne⟩ := (h_landsIn_iff (p z) z).mp (hp z) |
| 999 | obtain ⟨-, θ'q_ne⟩ := (h_landsIn_iff q z).mp hq |
| 1000 | -- The transition function is `θ z q.1 / θ z (p z).1 * (θ' z (p z).2 / θ' z q.2)`. |
| 1001 | simp [G, hw_cocycle (p z) q _ (e z) (hp z) hq, |
| 1002 | (h.hasFieldCoords z (p z).1).right q.1 θp_ne.isUnit, |
| 1003 | (h'.hasFieldCoords z q.2).right (p z).2 θ'q_ne.isUnit, field] |
| 1004 | have θ_add (i : ι) (l : V) (hl : l ∈ L) (z : V) : |
| 1005 | θ (z + l) i = χ l * exp (B l z + B l l / 2) * θ z i := (h.mem_thetaSpace i).2 l hl z |
| 1006 | have θ'_add (a : κ) (l : V) (hl : l ∈ L) (z : V) : |
| 1007 | θ' (z + l) a = χ' l * exp (B' l z + B' l l / 2) * θ' z a := (h'.mem_thetaSpace a).2 l hl z |
| 1008 | refine ⟨G, ⟨fun z ↦ ?_, fun l hl z ↦ ?_⟩, fun i a z hi ha ↦ ?_⟩ |
| 1009 | · -- Near `z` the chart `p z` serves for all points. |
| 1010 | obtain ⟨h_near, h_analytic⟩ := he z (hw_regular (p z)) (hp z) |
| 1011 | obtain ⟨-, θ'p_ne⟩ := (h_landsIn_iff (p z) z).mp (hp z) |
| 1012 | have h_diff : DifferentiableAt ℂ |
| 1013 | (fun x : V ↦ w (p z) (CommRingCat.of ℂ) (e x) * θ x (p z).1 / θ' x (p z).2) z := |
| 1014 | (h_analytic.differentiableAt.mul ((h.mem_thetaSpace (p z).1).1 z)).mul |
| 1015 | (((h'.mem_thetaSpace (p z).2).1 z).inv θ'p_ne) |
| 1016 | exact h_diff.congr_of_eventuallyEq (h_near.mono (G_eq (p z))) |
| 1017 | · -- The chart `p (z + l)` also contains `e z`, as `θ (z + l)` is a multiple of `θ z`. |
| 1018 | have h_chart : LandsIn (e z) ((N.mul M.inv).opens (p (z + l))) := by |
| 1019 | have h_ne : θ (z + l) (p (z + l)).1 ≠ 0 ∧ θ' (z + l) (p (z + l)).2 ≠ 0 := |
| 1020 | (h_landsIn_iff _ _).mp (hp (z + l)) |
| 1021 | rw [θ_add _ l hl, θ'_add _ l hl] at h_ne |
| 1022 | exact (h_landsIn_iff _ z).mpr (h_ne.imp right_ne_zero_of_mul right_ne_zero_of_mul) |
| 1023 | have h_factor : exp ((B + -B') l z + (B + -B') l l / 2) = |
| 1024 | exp (B l z + B l l / 2) / exp (B' l z + B' l l / 2) := by |
| 1025 | simp only [← exp_sub, _root_.add_apply, _root_.neg_apply] |
| 1026 | ring_nf |
| 1027 | rw [G_eq _ _ (hp (z + l)), G_eq _ z h_chart, hL l hl, θ_add _ l hl, θ'_add _ l hl, h_factor, |
| 1028 | Pi.mul_apply, Pi.inv_apply] |
| 1029 | ring |
| 1030 | · simp [G_eq (i, a) z ((h_landsIn_iff (i, a) z).mpr ⟨hi, ha⟩), hi, ha] |
| 1031 | |
| 1032 | /-- Let `N` and `M` have theta coordinates `θ` and `θ'` along a holomorphic family of points `e` |
| 1033 | that is periodic for `L`, and let `w` be a frame of `N ⊗ M⁻¹`. Then the two Riemann forms agree, |
| 1034 | the two multipliers agree on `L`, and along `e` the frame is `c * exp ((B - B') z z / 2) * θ' / θ` |
| 1035 | for a constant `c`. -/ |
| 1036 | lemma riemannForm_eq_of_isFrame (h : HasThetaCoords L e N B χ θ) |
| 1037 | (h' : HasThetaCoords L e M B' χ' θ') [IsFullRankLattice L] {w : ι × κ → PointFn S} |
| 1038 | (hw : (N.mul M.inv).IsFrame w) (he : ∀ z : V, HolomorphicAt e z) |
| 1039 | (hL : ∀ l ∈ L, ∀ z : V, e (z + l) = e z) : |
| 1040 | B.riemannForm = B'.riemannForm ∧ (∀ l ∈ L, χ l = χ' l) ∧ |
| 1041 | ∃ c : ℂ, ∀ (i : ι) (a : κ) (z : V), θ z i ≠ 0 → θ' z a ≠ 0 → |
| 1042 | w (i, a) (CommRingCat.of ℂ) (e z) = c * exp ((B z z - B' z z) / 2) * θ' z a / θ z i := by |
| 1043 | -- `w` is `G * θ' / θ` for a theta function `G` of type `(B - B', χ / χ')`. As `w` is a frame, |
| 1044 | -- `G` has no zero, so by `IsAppellHumbert.eq_exp_of_ne_zero` its Riemann form vanishes, |
| 1045 | -- `χ / χ' = 1` on `L`, and `G z = G 0 * exp ((B - B') z z / 2)`. |
| 1046 | obtain ⟨hw_section, hw_unit⟩ := hw |
| 1047 | obtain ⟨G, hG, hwG⟩ := |
| 1048 | h.exists_theta_of_isSection h' hw_section he fun l hl z q ↦ by rw [hL l hl z] |
| 1049 | have hG_ne (z : V) : G z ≠ 0 := by |
| 1050 | -- In a chart containing `e z` both coordinates are nonzero, so the unit `w` would vanish. |
| 1051 | intro hz |
| 1052 | obtain ⟨⟨i, a⟩, hp⟩ := exists_landsIn (N.mul M.inv) (e z) |
| 1053 | obtain ⟨hi, ha⟩ : θ z i ≠ 0 ∧ θ' z a ≠ 0 := by |
| 1054 | simpa [(h.hasFieldCoords z i).left, (h'.hasFieldCoords z a).left] using hp |
| 1055 | exact (hw_unit (i, a) (CommRingCat.of ℂ) (e z) hp).ne_zero (by simp [hwG i a z hi ha, hz]) |
| 1056 | obtain ⟨h_riem, h_χ, h_exp⟩ := |
| 1057 | (h.isAppellHumbert.add h'.isAppellHumbert.neg).eq_exp_of_ne_zero hG hG_ne |
| 1058 | refine ⟨?_, fun l hl ↦ eq_of_div_eq_one ?_, G 0, fun i a z hi ha ↦ ?_⟩ |
| 1059 | · simpa [add_neg_eq_zero] using h_riem |
| 1060 | · simpa [div_eq_mul_inv] using h_χ l hl |
| 1061 | · simp [hwG i a z hi ha, h_exp z, sub_eq_add_neg, mul_comm (G 0)] |
| 1062 | |
| 1063 | end HasThetaCoords |
| 1064 | |
| 1065 | end New |
| 1066 | |
| 1067 | end |