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 | public import Mathlib.Algebra.DualNumber |
| 4 | import Mathlib.Algebra.Azumaya.Basic |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 6 | import Mathlib.AlgebraicGeometry.Morphisms.WeaklyEtale |
| 7 | import Mathlib.CategoryTheory.EffectiveEpi.Comp |
| 8 | import Mathlib.RingTheory.DualNumber |
| 9 | import Mathlib.Tactic.Linter.Style |
| 10 | import TauCeti.RingTheory.Derivation.MinimalPrime |
| 11 | import TauCeti.RingTheory.Derivation.TrivSqZeroExt |
| 12 | public import Lib.General.Geometry.PointsOfProperSchemes |
| 13 | public import Lib.Shimura.ThetaModuli.ThetaFamilyRigidity |
| 14 | public import Lib.Shimura.Uniformisation.HolomorphicFamilies |
| 15 | import Lib.General.Algebra.MultivariatePolynomials |
| 16 | import Lib.PadicComparison.Descent.TestCategory |
| 17 | import Lib.Shimura.HeckeTower.Model |
| 18 | |
| 19 | /-! |
| 20 | # Reduction of isogeny kernels: Cartier density, the tangent line and torsion sections |
| 21 | |
| 22 | The file studies how kernels of isogenies of abelian schemes in a family `X : New.ThetaFamily D Z τ` |
| 23 | reduce from a valuation subring of `ℂ` to a field. The file records what goodness of the PEL data |
| 24 | gives at the kernel of a map to a field. It also finds the line of tangent vectors on which `𝓞 E` |
| 25 | acts through `x.baseHom`. From this line it gets a function that detects tangent vectors, and from |
| 26 | that function a parameter `t` whose powers are local equations for the torsion sections. |
| 27 | |
| 28 | ## Main definitions and results |
| 29 | |
| 30 | * `New.Variety.cartier`: a function on a finite flat subgroup scheme (or coset) of a commutative |
| 31 | group scheme that vanishes at all `K`-points is zero, for `K` an algebraically closed field of |
| 32 | characteristic zero containing the base ring. |
| 33 | * `New.Variety.ker_factors_of_points`: over a valuation ring with fraction field `ℂ`, a closed |
| 34 | condition that holds for the torsion complex points of the kernel of a finite flat homomorphism |
| 35 | holds for all points of the kernel. |
| 36 | * `New.Variety.placeTorsion`: the points of `x.groupScheme` with values in a `k`-algebra `C` that |
| 37 | are killed by the kernel of `x.baseHom`. |
| 38 | * `New.Variety.ker_factors_of_torsionPoint`: the torsion sections are dense in the kernel of an |
| 39 | isogeny. |
| 40 | * `New.Variety.exists_isLieLine`: the line of tangent vectors on which `𝓞 E` acts through |
| 41 | `x.baseHom`. |
| 42 | * `New.Variety.exists_isLocalEquation_pow_sectionCount`: at a local point `z` of the special fibre |
| 43 | killed by a power of `β - b`, the power `t ^ N` of a parameter `t` is a local equation for a |
| 44 | family of torsion sections, `N` of which pass through the closed point of `z`. |
| 45 | * `New.Variety.exists_param_pow_card_eq_zero`: the resulting parameter at a point killed by |
| 46 | `ker x.baseHom`, and a nonzero torsion section that reduces to zero. |
| 47 | |
| 48 | Notions from other files: |
| 49 | * `New.ThetaObject`: An object of the family X over a scheme T: a morphism x from T to the base of |
| 50 | X; `x.groupScheme` is the pull-back of the abelian scheme along it. |
| 51 | * `New.ThetaObject.baseHom`: For an object x over Spec R, the ring homomorphism O_E → R induced by x |
| 52 | and the structure morphism of the base of the family to Spec O_E. |
| 53 | * `New.AddObj`: A commutative group object. |
| 54 | * `New.specOver`: The spectrum of an R-algebra B, as a scheme over Spec R. |
| 55 | * `New.ValuativeArc`: A valuation ring O with fraction field ℂ, with its generic point Spec ℂ → Spec |
| 56 | O. |
| 57 | |
| 58 | ## Relation to the literature |
| 59 | |
| 60 | Known; see `Lib.Shimura.AbelianScheme.IsogenyFlatness`, |
| 61 | `Lib.Shimura.CongruenceRelation.HeckeNeighbours`, `Lib.Shimura.Deformation.TangentBound` and |
| 62 | `Lib.Shimura.ThetaModuli.UniversalFamily` for sources. |
| 63 | -/ |
| 64 | |
| 65 | @[expose] public section |
| 66 | |
| 67 | /-! |
| 68 | ## Cartier's theorem on density of characteristic zero points |
| 69 | |
| 70 | Over a subring `V` of an algebraically closed field `K` of characteristic `0`, the `K`-points of a |
| 71 | finite flat subgroup scheme of a fixed commutative group scheme are schematically dense in it. |
| 72 | -/ |
| 73 | |
| 74 | namespace New.Variety |
| 75 | |
| 76 | open CategoryTheory AlgebraicGeometry TrivSqZeroExt DualNumber Algebra TensorProduct specOver Over |
| 77 | Module |
| 78 | |
| 79 | variable {V : Type} [CommRing V] {A B : Over (Spec ⟨V⟩)} [AddObj A] [AddObj B] |
| 80 | |
| 81 | /-- In characteristic `0`, a derivation of a finite `K`-algebra (given as a section `ρ` of |
| 82 | `R[ε] → R`) takes values in the kernel of every `K`-point `c`. -/ |
| 83 | lemma point_snd_eq_zero_of_section {K R : Type*} [Field K] [CharZero K] [CommRing R] [Algebra K R] |
| 84 | [Module.Finite K R] (c : R →ₐ[K] K) (ρ : R →ₐ[K] R[ε]) (hρ : ∀ r : R, (ρ r).fst = r) (f : R) : |
| 85 | c (ρ f).snd = 0 := by |
| 86 | -- Sections of the dual numbers over the identity correspond to derivations. |
| 87 | let D : Derivation K R R := (TauCeti.derivationToTrivSqZeroExtEquivLift K R R).symm |
| 88 | ⟨ρ, AlgHom.ext hρ⟩ |
| 89 | -- Over an Artinian algebra the kernel of a field point is a minimal prime. |
| 90 | have : IsArtinianRing R := IsArtinianRing.of_finite K R |
| 91 | have : Nontrivial K := GroupWithZero.toNontrivial |
| 92 | have : (RingHom.ker c).IsPrime := RingHom.ker_isPrime c |
| 93 | have hm : RingHom.ker c ∈ (⊥ : Ideal R).minimalPrimes := |
| 94 | IsArtinianRing.mem_minimalPrimes bot_le |
| 95 | -- The derivation preserves this prime, so the derivative of f vanishes at c. |
| 96 | have h := D.apply_mem_of_mem_minimalPrimes (I := ⊥) (by simp) hm |
| 97 | (fun n hn ↦ by simpa [RingHom.mem_ker] using hn) |
| 98 | (x := f - algebraMap K R (c f)) (by simp [RingHom.mem_ker]) |
| 99 | change c (D (f - algebraMap K R (c f))) = 0 at h |
| 100 | rw [map_sub D, D.map_algebraMap, sub_zero] at h |
| 101 | simpa only [D, TauCeti.derivationToTrivSqZeroExtEquivLift_symm_apply] using h |
| 102 | |
| 103 | /-- **Cartier's theorem.** Let `V` embed in an algebraically closed field `K` of characteristic |
| 104 | `0`, let `S` be a finite flat `V`-algebra and `ι : Spec S ⟶ A` a monomorphism to a commutative |
| 105 | group scheme whose points are stable under `(x, y, z) ↦ x - y + z` (a subgroup or a coset). |
| 106 | Then every nonzero `s : S` is nonzero at some `V`-algebra map `S → K`. -/ |
| 107 | lemma cartier (K : Type) [Field.{0} K] [IsAlgClosed K] [CharZero K] [Algebra V K] [FaithfulSMul V K] |
| 108 | {S : Type} [CommRing S] [Algebra V S] [Module.Finite V S] [Flat V S] {ι : specOver V S ⟶ A} |
| 109 | (hι_mono : Mono ι) |
| 110 | (h_coset : ∀ {T : Over (Spec (CommRingCat.of V))} (x y z : T ⟶ specOver V S), |
| 111 | ∃ w : T ⟶ specOver V S, w ≫ ι = x ≫ ι - y ≫ ι + z ≫ ι) |
| 112 | {s : S} (hs : s ≠ 0) : |
| 113 | ∃ o : S →ₐ[V] K, o s ≠ 0 := by |
| 114 | -- Work on `R = K ⊗[V] S`, where `1 ⊗ s ≠ 0` by flatness. Choose a `K`-point `c` that kills the |
| 115 | -- annihilator of `1 ⊗ s`. Translation extends a tangent vector at `c` to a derivation of `R`, |
| 116 | -- which must vanish at `c`; by Nakayama `ker c` is then killed by some `b` with `c b ≠ 0`, so |
| 117 | -- `1 ⊗ s ∉ ker c`. |
| 118 | have h_ann : Ideal.torsionOf (K ⊗[V] S) (K ⊗[V] S) (includeRight s) ≠ ⊤ := by |
| 119 | simpa using (includeRight_injective (FaithfulSMul.algebraMap_injective V K)).ne hs |
| 120 | obtain ⟨c, hc⟩ : ∃ c : K ⊗[V] S →ₐ[K] K, |
| 121 | Ideal.torsionOf (K ⊗[V] S) (K ⊗[V] S) (includeRight s) ≤ RingHom.ker c := |
| 122 | nullstellensatz_exists_le_ker h_ann |
| 123 | have no_tangent (v : K ⊗[V] S →ₐ[K] K[ε]) (hv : ∀ r : K ⊗[V] S, (v r).fst = c r) |
| 124 | (f : K ⊗[V] S) : (v f).snd = 0 := by |
| 125 | -- `K`-algebra maps `R → R[ε]` are the `R[ε]`-points of `Spec S`. |
| 126 | let pt : (K ⊗[V] S →ₐ[K] (K ⊗[V] S)[ε]) ≃ (specOver V (K ⊗[V] S)[ε] ⟶ specOver V S) := |
| 127 | (AlgHom.liftEquiv ..).symm.trans (.ofBijective _ map_bijective) |
| 128 | -- `μ` is evaluation at `c` and `ν` the structure map, both extended by `ε ↦ ε`. |
| 129 | let μ : (K ⊗[V] S)[ε] →ₐ[K] K[ε] := DualNumber.lift ⟨((ofId K K[ε]).comp c, ε), by |
| 130 | simp [Commute.all]⟩ |
| 131 | let ν : K[ε] →ₐ[K] (K ⊗[V] S)[ε] := DualNumber.lift ⟨(ofId .., ε), by simp [Commute.all]⟩ |
| 132 | -- `ρ` is the universal point minus `c` plus `v`. |
| 133 | obtain ⟨ρ, hρ⟩ : ∃ ρ : K ⊗[V] S →ₐ[K] (K ⊗[V] S)[ε], |
| 134 | pt ρ ≫ ι = pt (inlAlgHom ..) ≫ ι - pt ((ofId ..).comp c) ≫ ι + pt (ν.comp v) ≫ ι := |
| 135 | pt.surjective.exists.mp (h_coset ..) |
| 136 | -- Modulo `ε`, `c` and `v` cancel; at `c` (that is, along `μ`) the first two terms cancel. |
| 137 | have h_mod_ε := specOver.map (fstHom V (K ⊗[V] S) (K ⊗[V] S)) ≫= hρ.trans (sub_add ..) |
| 138 | have h_along_μ := specOver.map (μ.restrictScalars V) ≫= hρ |
| 139 | have h_fst : ∀ x : S, (ρ (1 ⊗ₜ[V] x)).fst = 1 ⊗ₜ[V] x := by |
| 140 | simpa +zetaDelta [sub_eq_zero_of_eq, cancel_mono, map_bijective.injective.eq_iff, |
| 141 | AlgHom.ext_iff, hv, map_comp_assoc, algebraMap_eq_inl', lift_apply_apply, |
| 142 | AddGrpObj.comp_sub] using h_mod_ε |
| 143 | -- `TensorProduct.algebraMap_apply` stays out: with it the call no longer reduces `h_along_μ`. |
| 144 | have h_at_c : ∀ x : S, inl (c (ρ (1 ⊗ₜ[V] x)).fst) + inl (c (ρ (1 ⊗ₜ[V] x)).snd) * ε = |
| 145 | inl (c (1 ⊗ₜ[V] x)) + inl (v (1 ⊗ₜ[V] x)).snd * ε := by |
| 146 | simpa +zetaDelta [sub_eq_zero_of_eq, cancel_mono, map_bijective.injective.eq_iff, |
| 147 | AlgHom.ext_iff, hv, -TensorProduct.algebraMap_apply, map_comp_assoc, algebraMap_eq_inl', |
| 148 | lift_apply_apply, AddGrpObj.comp_sub, comp_add] using h_along_μ |
| 149 | -- `ι` is a monomorphism, so these are identities on the elements `1 ⊗ x`: `ρ` is a section of |
| 150 | -- `R[ε] → R`, and its value at `c` is `v`. |
| 151 | have h_section : (fstHom ..).comp ρ = 1 := ext_ring (AlgHom.ext h_fst) |
| 152 | have hv_eq : v = μ.comp ρ := ext_ring (AlgHom.ext fun x ↦ by |
| 153 | simp [μ, h_at_c, hv, TrivSqZeroExt.ext_iff, lift_apply_apply, algebraMap_eq_inl']) |
| 154 | -- `(v f).snd = c (ρ f).snd`, as `v = μ ∘ ρ` |
| 155 | simpa [hv_eq, μ, lift_apply_apply, algebraMap_eq_inl'] using |
| 156 | point_snd_eq_zero_of_section c ρ (AlgHom.congr_fun h_section) f |
| 157 | refine ⟨(AlgHom.liftEquiv ..).symm c, fun hcs ↦ ?_⟩ |
| 158 | obtain ⟨b, hb, hcb⟩ : ∃ b ∈ (⊥ : Ideal (K ⊗[V] S)).colon (RingHom.ker c), c b ≠ 0 := |
| 159 | exists_mem_colon_of_tangent (x := c) rfl bot_le fun v hv _ ↦ no_tangent v hv |
| 160 | -- If `1 ⊗ s ∈ ker c`, then `b` kills it, so `b` lies in its annihilator and `c b = 0`. |
| 161 | exact hcb (hc ((Ideal.mem_torsionOf_iff _ _).mpr |
| 162 | ((Submodule.mem_bot _).mp (Submodule.mem_colon.mp hb (includeRight s) hcs)))) |
| 163 | |
| 164 | /-- Let `V` be a valuation ring with fraction field `ℂ` (a `ValuativeArc`) and `ψ : A ⟶ B` a finite |
| 165 | flat homomorphism of commutative group schemes over `V`, with `B` separated. Let `r : A.left ⟶ Y` |
| 166 | be a morphism of schemes and `j : Z ⟶ Y` a closed immersion. If `r` maps every torsion `ℂ`-point of |
| 167 | the kernel of `ψ` into `Z`, then it maps every point `z : T ⟶ A` of the kernel into `Z`. -/ |
| 168 | lemma ker_factors_of_points [ValuativeArc V] [IsSeparated B.hom] (ψ : A ⟶ B) [IsAdditive ψ] |
| 169 | [IsFinite ψ.left] [Flat ψ.left] {Y Z : Scheme} {j : Z ⟶ Y} |
| 170 | [IsClosedImmersion (X := Z) (Y := Y) j] |
| 171 | (r : A.left ⟶ Y) (hr : ∀ s : specOver V ℂ ⟶ A, |
| 172 | IsOfFinAddOrder s → s ≫ ψ = 0 → ∃ l : (specOver V ℂ).left ⟶ Z, l ≫ j = s.left ≫ r) |
| 173 | ⦃T : Over (Spec (CommRingCat.of V))⦄ (z : T ⟶ A) (hz : z ≫ ψ = 0) : |
| 174 | ∃ l : T.left ⟶ Z, l ≫ j = z.left ≫ r := by |
| 175 | -- The kernel of `ψ` is `Spec S` with `S` finite flat. The ideal `I` of the locus where `r` maps |
| 176 | -- into `Z` vanishes at all `ℂ`-points, so is zero by Cartier's theorem. |
| 177 | obtain ⟨S, ι, hS_finite, hS_flat, hι_closed, hι, h_ker⟩ := |
| 178 | exists_finite_kernel_ring (f := ψ) inferInstance |
| 179 | obtain ⟨z', hz'⟩ := h_ker z hz |
| 180 | -- `hI`: a ring map `γ` out of `S` kills `I` iff `ι ≫ r` maps the point `Spec γ` into `Z`. |
| 181 | obtain ⟨I, -, hI⟩ := exists_ideal_le_ker_iff_factors j (ι.left ≫ r) |
| 182 | have h_coset {T : Over (Spec (CommRingCat.of V))} (x y w : T ⟶ specOver V S) : |
| 183 | ∃ u : T ⟶ specOver V S, u ≫ ι = x ≫ ι - y ≫ ι + w ≫ ι := |
| 184 | h_ker _ (by simp [hι, add_comp, AddGrpObj.sub_comp]) |
| 185 | have h_pts (o : S →ₐ[V] ℂ) : I ≤ RingHom.ker o := by |
| 186 | -- The multiples of the point `o` are among the finitely many `ℂ`-points of the kernel. |
| 187 | have h_fin : IsOfFinAddOrder (specOver.map o ≫ ι) := by |
| 188 | refine finite_multiples.mp |
| 189 | ((Set.finite_range fun o' : S →ₐ[V] ℂ ↦ specOver.map o' ≫ ι).subset ?_) |
| 190 | rintro _ ⟨m, rfl⟩ |
| 191 | obtain ⟨u, hu⟩ := h_ker (m • (specOver.map o ≫ ι)) (by simp [hι, nsmul_comp]) |
| 192 | -- every `ℂ`-point of `Spec S` comes from a `V`-algebra map `S → ℂ` |
| 193 | obtain ⟨o', rfl⟩ := map_bijective.surjective u |
| 194 | exact ⟨o', hu⟩ |
| 195 | exact (hI o.toRingHom).mpr (hr _ h_fin (by simp [hι])) |
| 196 | have hI_zero : I ≤ RingHom.ker (RingHom.id S) := fun s hs ↦ by |
| 197 | by_contra hs_ne |
| 198 | obtain ⟨o, ho⟩ := cartier ℂ (mono_of_mono_left ι) h_coset hs_ne |
| 199 | exact ho (h_pts o hs) |
| 200 | obtain ⟨l, hl⟩ := (hI _).mp hI_zero |
| 201 | exact ⟨z'.left ≫ l, by simp [hl, ← hz']⟩ |
| 202 | |
| 203 | end New.Variety |
| 204 | |
| 205 | /-! |
| 206 | ## Goodness of the PEL data at the kernel of a map to a field |
| 207 | |
| 208 | `New.Variety.ringChar_prime_and_exists_isCoprime_of_isGoodAt_ker` states what `New.PEL.IsGoodAt` |
| 209 | gives when the ideal is the kernel of a map `ρ` from `𝓞 E` to a field, in the form used by the |
| 210 | deformation arguments. `D.β` is an element with `star D.β = 1 - D.β`, and `D.level` is the level of |
| 211 | the PEL data `D`. |
| 212 | -/ |
| 213 | |
| 214 | section GoodPrimeArithmetic |
| 215 | |
| 216 | open Ideal CharP RingHom Pointwise |
| 217 | |
| 218 | /-- Let `D` be PEL data over the CM field `E` with distinguished element `D.β` and level `D.level`, |
| 219 | and let `ρ : 𝓞 E → k` be a map to a field whose kernel `𝔭` is good for `D` in the sense of |
| 220 | `PEL.IsGoodAt`. Then (a) the characteristic `p` of `k` is a prime; (b) `𝔭 ≠ 0`, and there are |
| 221 | `c ≠ 0` in `𝔭` and `t ≡ 1` modulo `𝔭` with `t 𝔭 ⊆ (c)`; (c) for some integer `b`, `β - b` lies in |
| 222 | `𝔭`, the elements `β - b` and `star β - b` are coprime, and the ideal `(D.level)` together with |
| 223 | `𝔭 · (p, star β - b)` generates the unit ideal. -/ |
| 224 | lemma New.Variety.ringChar_prime_and_exists_isCoprime_of_isGoodAt_ker {E : Type} [Field E] |
| 225 | [CMBase E] {D : PEL E} {k : Type*} |
| 226 | [Field k] {ρ : NumberField.RingOfIntegers E →+* k} (h_good : D.IsGoodAt (ker ρ)) : |
| 227 | -- (a) |
| 228 | Fact (ringChar k).Prime ∧ |
| 229 | -- (b) |
| 230 | (ker ρ ≠ ⊥ ∧ |
| 231 | ∃ c : NumberField.RingOfIntegers E, |
| 232 | ρ c = 0 ∧ c ≠ 0 ∧ ∃ t : NumberField.RingOfIntegers E, t - 1 ∈ ker ρ ∧ t • ker ρ ≤ span {c}) ∧ |
| 233 | -- (c) |
| 234 | ∃ b : ℤ, |
| 235 | ρ (D.β - b) = 0 ∧ |
| 236 | IsCoprime (D.β - b) (star D.β - b) ∧ |
| 237 | span {D.level} ⊔ ker ρ * span {↑(ringChar k), star D.β - b} = ⊤ := by |
| 238 | -- `D.IsGoodAt (ker ρ)` gives a prime `p` and an integer `b` with `p` and `β - b` in `ker ρ`. |
| 239 | obtain ⟨-, p, b, hp, hp_mem, hβ_mem, h_coprime, h_level, -⟩ := h_good |
| 240 | have char_eq : ringChar k = p := ringChar_of_prime_eq_zero hp (by simpa using hp_mem) |
| 241 | subst char_eq |
| 242 | have ker_ne_bot : ker ρ ≠ ⊥ := fun h_bot ↦ hp.ne_zero (by simpa [h_bot] using hp_mem) |
| 243 | refine ⟨⟨hp⟩, ⟨ker_ne_bot, ?_⟩, b, hβ_mem, h_coprime, h_level⟩ |
| 244 | -- `c` is a uniformiser: it generates `ker ρ` modulo its square. |
| 245 | obtain ⟨c, hc⟩ : ∃ c : NumberField.RingOfIntegers E, ker ρ • ker ρ ⊔ span {c} = ker ρ := |
| 246 | IsDedekindDomain.exists_sup_span_eq (ker ρ).smul_le_right (by simpa using ker_ne_bot) |
| 247 | have hc_ne_zero : c ≠ 0 := by |
| 248 | rintro rfl |
| 249 | simp_all [ker_ne_top] |
| 250 | refine ⟨c, hc.le (mem_sup_right (mem_span_singleton_self c)), hc_ne_zero, ?_⟩ |
| 251 | -- Nakayama: some `t ≡ 1` modulo `ker ρ` multiplies `ker ρ` into `(c)`. |
| 252 | exact Submodule.exists_sub_one_mem_and_smul_le_of_fg_of_le_sup .of_finite le_rfl (by order) |
| 253 | |
| 254 | end GoodPrimeArithmetic |
| 255 | |
| 256 | /-! |
| 257 | ## Torsion sections, the tangent line and local equations |
| 258 | |
| 259 | This section studies how kernels of isogenies of the abelian schemes of a family |
| 260 | `X : New.ThetaFamily D Z τ` reduce. In the statements about torsion sections, `y` is an object over |
| 261 | a valuation subring `V` of `ℂ` with a full structure `e : y.FullLevelStructure`, which gives |
| 262 | sections `e.torsionPoint s` of `y.groupScheme` over `V`. These are injective and `𝓞 E`-linear in |
| 263 | `s : AdelicTorsion E D.Index`, and over `ℂ` every torsion point is one of them. In the statements |
| 264 | about reduction, the object `x` over the field `k` is the pull-back of `y` along `φ : V →+* k`, and |
| 265 | `w` in the docstrings, except that of `torsionReduction_eq_iff`, stands for the ideal |
| 266 | `ker x.baseHom` of `𝓞 E`. The lemmas on tangent vectors allow a local base ring `R` with a map to |
| 267 | `k`. |
| 268 | |
| 269 | The idea: the tangent vectors at a point of the kernel of an element `d` of `𝓞 E` that is coprime to |
| 270 | `star β - b` and zero in `k` lie on one line, so a single function detects them. For |
| 271 | `d = (β - b) ^ (M + 1)` this function gives a local equation for the torsion sections through the |
| 272 | point. |
| 273 | -/ |
| 274 | |
| 275 | namespace New.Variety |
| 276 | |
| 277 | open CategoryTheory AlgebraicGeometry CartesianMonoidalCategory NumberField Over Category Submodule |
| 278 | CommRingCat RingHom Finset TrivSqZeroExt DualNumber AddMonObj Module specOver |
| 279 | Matrix |
| 280 | |
| 281 | attribute [local instance low] Fintype.ofFinite |
| 282 | |
| 283 | variable {E : Type} [Field E] [CMBase E] |
| 284 | {D : PEL E} {V : ValuationSubring ℂ} {k : Type} [Field k] |
| 285 | {φ : V →+* k} {Z : Scheme} {τ : Z ⟶ Spec (CommRingCat.of (𝓞 E))} {X : ThetaFamily D Z τ} |
| 286 | {x : ThetaObject X (Spec (CommRingCat.of k))} |
| 287 | {y : ThetaObject X (Spec (CommRingCat.of V))} (e : y.FullLevelStructure) |
| 288 | {C C' : Type} [CommRing C] [Algebra k C] [CommRing C'] [Algebra k C'] (G : C →ₐ[k] C') |
| 289 | |
| 290 | variable (x C) in |
| 291 | /-- For an object `x` over a field `k` and a `k`-algebra `C`, the `𝓞 E`-module of `C`-points of |
| 292 | `x.groupScheme` killed by the kernel of `x.baseHom`. -/ |
| 293 | noncomputable abbrev placeTorsion : Submodule (𝓞 E) (specOver k C ⟶ x.groupScheme) := |
| 294 | torsionBySet (𝓞 E) (specOver k C ⟶ x.groupScheme) (ker x.baseHom) |
| 295 | |
| 296 | /-- The map from `placeTorsion x C` to `placeTorsion x C'` induced by a homomorphism `G : C → C'` of |
| 297 | `k`-algebras: a point `Spec C ⟶ x.groupScheme` is composed with `Spec G : Spec C' ⟶ Spec C`. -/ |
| 298 | noncomputable def placeTorsionMap : placeTorsion x C →ₗ[𝓞 E] placeTorsion x C' where |
| 299 | toFun := fun ⟨y, hy⟩ ↦ ⟨specOver.map G ≫ y, by simp_all [← ModuleObj.comp_smul]⟩ |
| 300 | map_add' := by simp [comp_add] |
| 301 | map_smul' := by simp |
| 302 | |
| 303 | @[simp] |
| 304 | lemma placeTorsionMap_comp {C'' : Type} [CommRing C''] [Algebra k C''] (ψ : C'' →ₐ[k] C) |
| 305 | (y : placeTorsion x C'') : |
| 306 | placeTorsionMap (G.comp ψ) y = placeTorsionMap G (placeTorsionMap ψ y) := |
| 307 | Subtype.ext (map_comp_assoc ..).symm |
| 308 | |
| 309 | /-- The torsion sections `e.torsionPoint s` of the object `y` over the valuation subring `V` of `ℂ` |
| 310 | (with full structure `e`) are dense in the kernel of an isogeny `ψ`: if `r` maps each of them that |
| 311 | lies in the kernel into the closed subscheme `j : W ⟶ Y.left`, then it maps every point `z` of the |
| 312 | kernel into it. -/ |
| 313 | lemma ker_factors_of_torsionPoint {A : Over (Spec (.of V))} [IsAbelianScheme A] |
| 314 | (ψ : y.groupScheme ⟶ A) [IsIsogeny ψ] {Y : Over (Spec (.of V))} {W : Scheme} {j : W ⟶ Y.left} |
| 315 | (r : y.groupScheme ⟶ Y) [IsClosedImmersion j] |
| 316 | (hr : ∀ s : AdelicTorsion E D.Index, e.torsionPoint s ≫ ψ = 0 → |
| 317 | ∃ l : Spec (.of V) ⟶ W, l ≫ j = (e.torsionPoint s ≫ r).left) |
| 318 | ⦃T : Over (Spec (.of V))⦄ (z : T ⟶ y.groupScheme) (hz : z ≫ ψ = 0) : |
| 319 | ∃ l : T.left ⟶ W, l ≫ j = (z ≫ r).left := by |
| 320 | -- It suffices to treat torsion points over `ℂ`; by counting, they come from the sections |
| 321 | -- `e.torsionPoint t`. |
| 322 | refine ker_factors_of_points ψ r.left (fun s hs_tors hs ↦ ?_) z hz |
| 323 | -- `x_gen` is the object over `ℂ` obtained from `y` along the generic point of `Spec V`. |
| 324 | obtain ⟨x_gen, hx_gen⟩ := y.exists_isPullbackAlong ValuativeArc.genericPt |
| 325 | -- `p` identifies `ℂ`-points of `x_gen.groupScheme` with points of `y.groupScheme` over `ℂ` |
| 326 | let p : (Over.mk (𝟙 (Spec (CommRingCat.of ℂ))) ⟶ x_gen.groupScheme) ≃ₗ[𝓞 E] |
| 327 | ((Over.map ValuativeArc.genericPt).obj (Over.mk (𝟙 _)) ⟶ y.groupScheme) := |
| 328 | hx_gen.isGroupBaseChange.pointEquiv (T := Over.mk (𝟙 _)) |
| 329 | have h_inj : Function.Injective (hx_gen.isGroupBaseChange.pullSection ∘ₗ e.torsionPoint) := |
| 330 | p.symm.injective.comp (bijective_restrict_genericPt.injective.comp e.injective) |
| 331 | obtain ⟨m, hm, h_tors⟩ := |
| 332 | (p.symm.toAddEquiv.toAddMonoidHom.isOfFinAddOrder hs_tors).exists_nsmul_eq_zero |
| 333 | obtain ⟨t, ht⟩ := x_gen.exists_apply_eq_of_torsion h_inj (p.symm s) ⟨m, hm.ne', h_tors⟩ |
| 334 | -- `p.symm` is injective, so `s` is the section `e.torsionPoint t` read over `ℂ` |
| 335 | obtain rfl : toUnit _ ≫ e.torsionPoint t = s := p.symm.injective ht |
| 336 | obtain ⟨l, hl⟩ := hr t (bijective_restrict_genericPt.injective hs) |
| 337 | exact ⟨ValuativeArc.genericPt ≫ l, by simp [hl, ValuativeArc.genericPt_eq]⟩ |
| 338 | |
| 339 | /-- Let `x` be an object over `R` and `k` an `R`-algebra. A tangent vector at `0` is a point of |
| 340 | `x.groupScheme` over `k[ε]` that reduces to `0` over `k`. The map `L` is a line of tangent vectors |
| 341 | on which `𝓞 E` acts through `ρ`, and into which `star β - b` maps all tangent vectors. Here `β` is |
| 342 | `D.β` and `b` is an integer; in `exists_isLieLine`, `ρ` is `x.baseHom` followed by `R → k`, with |
| 343 | `ρ (D.β - b) = 0`. -/ |
| 344 | structure IsLieLine {R : Type} [CommRing R] [Algebra R k] (x : ThetaObject X (Spec (.of R))) |
| 345 | (ρ : 𝓞 E →+* k) (b : ℤ) (L : k →+ (specOver R k[ε] ⟶ x.groupScheme)) : Prop where |
| 346 | /-- The generator `L 1` is not zero. -/ |
| 347 | apply_one_ne_zero : L 1 ≠ 0 |
| 348 | /-- Each `L m` is a tangent vector at `0`. -/ |
| 349 | fstHom_comp (m : k) : specOver.map (fstHom R k k) ≫ L m = 0 |
| 350 | /-- The ring `𝓞 E` acts on the line through `ρ`. -/ |
| 351 | smul_apply (a : 𝓞 E) (m : k) : a • L m = L (ρ a * m) |
| 352 | /-- The substitution `ε ↦ m ε` takes `L 1` to `L m`. -/ |
| 353 | scale_comp (m : k) : |
| 354 | specOver.map ((TrivSqZeroExt.map (m • LinearMap.id)).restrictScalars R) ≫ L 1 = L m |
| 355 | /-- The element `star β - b` maps every tangent vector at `0` into the line. -/ |
| 356 | exists_smul_eq (v : specOver R k[ε] ⟶ x.groupScheme) |
| 357 | (hv : specOver.map (fstHom R k k) ≫ v = 0) : ∃ m : k, (star D.β - b) • v = L m |
| 358 | |
| 359 | /-- Let `x` be a theta object of the family `X` over a local ring `R`, that is, a point of the base |
| 360 | of `X`. Its group scheme `x.groupScheme` is the pulled-back abelian scheme with its `𝓞 E`-action, |
| 361 | and `k` is an `R`-algebra that is a field. Let `ρ : 𝓞 E → k` be the composite of `x.baseHom` with |
| 362 | `R → k`, and let `b` be an integer with `ρ (D.β - b) = 0`, where `D.β` is the element `β` of the PEL |
| 363 | datum `D`. Then there is an additive map `L` from `k` to the tangent vectors at `0` of |
| 364 | `x.groupScheme` over `k` (points over `k[ε]` reducing to `0`) that is a line on which `𝓞 E` acts |
| 365 | through `ρ` and into which `star β - b` maps all tangent vectors. -/ |
| 366 | lemma exists_isLieLine {R : Type} [CommRing R] [IsLocalRing R] [Algebra R k] |
| 367 | (x : ThetaObject X (Spec (.of R))) {ρ : 𝓞 E →+* k} (hρ : ρ = (algebraMap R k).comp x.baseHom) |
| 368 | {b : ℤ} (hb : ρ (D.β - b) = 0) : |
| 369 | ∃ L : k →+ (specOver R k[ε] ⟶ x.groupScheme), IsLieLine x ρ b L := by |
| 370 | -- By the signature condition of the family there are coordinates `z` at `0` in which `a` acts on |
| 371 | -- tangent vectors by the matrix `m a`. The vector `Y` is a common eigenvector with a unit |
| 372 | -- coordinate `Y l`, and `m (star β - b) - (β - b) = Y ⊗ ξ` has its image on the line spanned by |
| 373 | -- `Y`, which is the line asked for. |
| 374 | obtain ⟨V, z, m, ⟨h_chart, h_jac⟩, Y, ξ, l, hY_unit, hY_eigen, h_rank⟩ := X.signature b x |
| 375 | let r : specOver R k ⟶ specOver R k[ε] := specOver.map (fstHom R k k) |
| 376 | let p := x.isGroupBaseChange.pointEquiv (T := specOver R k[ε]) |
| 377 | have h_tiny {v : specOver R k[ε] ⟶ x.groupScheme} : |
| 378 | IsInfinitesimal (ofHom (fstHom k k k).toRingHom) (p v) ↔ r ≫ v = 0 := |
| 379 | .trans (x.isGroupBaseChange.pointEquiv.map_eq_zero_iff : _ ↔ IsInfinitesimal _ v) |
| 380 | (eq_zero_iff_factors_zero_section.trans (.symm eq_zero_iff_factors_zero_section)) |
| 381 | -- `h_lin`: on tangent vectors the coordinates are additive and turn `a • ·` into `m a` |
| 382 | obtain ⟨h_zero, h_lin⟩ := h_jac (φ := ofHom (algebraMap R k[ε])) rfl |
| 383 | have : IsSqZeroExt (ofHom (fstHom k k k).toRingHom) := isSqZeroExt_fstHom |
| 384 | replace h_lin := h_lin (ψ := ofHom (fstHom k k k).toRingHom) |
| 385 | -- `Z a` is the unique tangent vector with coordinates `a Y ε` |
| 386 | have h_exu (a : k) : ∃! v, r ≫ v = 0 ∧ tangentCoords z (p v) = (Y · • inr a) := by |
| 387 | simpa only [h_tiny] using p.bijective.existsUnique_iff.1 |
| 388 | (h_chart.existsUnique_tangentCoords_eq h_zero isSqZeroExt_fstHom (Y · • inr a) (by simp)) |
| 389 | choose Z hZ_tan hZ_dv hZ_uniq using by simpa only [ExistsUnique, and_assoc, and_imp] using h_exu |
| 390 | have hZ_add (a c : k) : Z a + Z c = Z (a + c) := by |
| 391 | refine hZ_uniq _ _ (by simp [hZ_tan, comp_add]) (funext fun i ↦ ?_) |
| 392 | simp [(h_lin (h_tiny.2 (hZ_tan a))).2 _ (h_tiny.2 (hZ_tan c)), hZ_dv, TrivSqZeroExt.ext_iff] |
| 393 | refine ⟨.mk' Z fun a c ↦ (hZ_add a c).symm, ?_, hZ_tan, fun c a ↦ ?_, fun a ↦ ?_, fun v hv ↦ ?_⟩ |
| 394 | · -- the `l`-th coordinate of `Z 1` is a unit times `ε` |
| 395 | exact ne_of_apply_ne (fun v ↦ tangentCoords z (p v) l) (by simp [hZ_dv, hY_unit, |
| 396 | TrivSqZeroExt.ext_iff]) |
| 397 | · -- `Y` is an eigenvector of `m c` with eigenvalue `x.baseHom c` |
| 398 | refine hZ_uniq _ _ (by simp [hZ_tan]) (funext fun i ↦ ?_) |
| 399 | simpa [h_lin (h_tiny.2 (hZ_tan a)), hZ_dv, hρ, smul_smul, sum_smul, map_smul, mul_comm (Y _), |
| 400 | mul_comm a, dotProduct, mulVec, ← Algebra.smul_def, TrivSqZeroExt.ext_iff, fst_sum, |
| 401 | snd_sum] using! congrArg (· • a) (congrFun (hY_eigen c) i) |
| 402 | · -- the substitution `ε ↦ a ε` fixes the point over `k` and multiplies the coordinates by `a` |
| 403 | refine hZ_uniq _ _ (.trans ?_ (hZ_tan 1)) (funext fun i ↦ ?_) |
| 404 | · exact (assoc ..).symm.trans (eq_whisker (by simp [r, OverMorphism.ext_iff, specOver.map, |
| 405 | ← Spec.map_comp, Spec.map_inj, CommRingCat.hom_ext_iff, RingHom.ext_iff]) _) |
| 406 | · refine (congrFun (IsEtaleChart.tangentCoords_comp (z := z) h_zero (h_tiny.2 (hZ_tan 1)) |
| 407 | ((map x).map (specOver.map _)) rfl) i).trans ?_ |
| 408 | simp [hZ_dv, TrivSqZeroExt.ext_iff] |
| 409 | · -- `β - b` vanishes in `k`, so `star β - b` acts on coordinates as `u ↦ ⟨ξ, u⟩ Y` |
| 410 | refine ⟨∑ j, ξ j • snd (tangentCoords z (p v) j), |
| 411 | hZ_uniq _ _ (by simp [r, hv]) (funext fun i ↦ ?_)⟩ |
| 412 | have h_fst : ∀ j, fst (tangentCoords z (p v) j) = 0 := |
| 413 | IsEtaleChart.map_tangentCoords_eq_zero h_zero (h_tiny.2 hv) |
| 414 | have hb_zero : algebraMap R k ((Spec.preimage (x ≫ τ)).hom (D.β - b)) = 0 := by |
| 415 | simpa only [hρ, ThetaObject.baseHom] using! hb |
| 416 | simp [h_lin (h_tiny.2 hv), map_smul, smul_sum, h_fst, eq_add_of_sub_eq h_rank, |
| 417 | -map_sub, hb_zero, vecMulVec, dotProduct, mulVec, algebraMap_eq_inl', ← Algebra.smul_def, |
| 418 | TrivSqZeroExt.ext_iff, fst_sum, snd_sum] |
| 419 | |
| 420 | /-- Let `x` be a theta object over a ring `R`, let `k` be an `R`-algebra that is a field, and let |
| 421 | `ρ : 𝓞 E → k` and an integer `b` be such that `L` is a line of tangent vectors at `0` of |
| 422 | `x.groupScheme` over `k` on which `𝓞 E` acts through `ρ` and into which `star D.β - b` maps all |
| 423 | tangent vectors. Let `d` in `𝓞 E` satisfy `ρ d = 0` and be coprime to `star D.β - b`, and let |
| 424 | `ι : Spec S ⟶ x.groupScheme` be the kernel of `d`: a monomorphism over `Spec R` that is killed by |
| 425 | `d` and through which every point killed by `d` factors. Then at each `k`-point `o` of `Spec S` |
| 426 | there is a function `T` in `S` such that every tangent vector at `o` (a `k[ε]`-point reducing to |
| 427 | `o`) along which `T` has zero derivative is itself zero. -/ |
| 428 | lemma IsLieLine.exists_detects_tangent {R : Type} [CommRing R] [Algebra R k] |
| 429 | {x : ThetaObject X (Spec (.of R))} {ρ : 𝓞 E →+* k} {b : ℤ} |
| 430 | {L : k →+ (specOver R k[ε] ⟶ x.groupScheme)} (hL : IsLieLine x ρ b L) {d : 𝓞 E} (hd : ρ d = 0) |
| 431 | (h_coprime : IsCoprime d (star D.β - b)) {S : Type} [CommRing S] [Algebra R S] |
| 432 | (ι : specOver R S ⟶ x.groupScheme) [Mono ι.left] (h_ker : d • ι = 0) |
| 433 | (h_lift : ∀ ⦃W : Over (Spec (.of R))⦄ (w : W ⟶ x.groupScheme), d • w = 0 → |
| 434 | ∃ u : W ⟶ specOver R S, u ≫ ι = w) |
| 435 | (o : S →ₐ[R] k) : |
| 436 | ∃ T : S, ∀ v : S →ₐ[R] k[ε], |
| 437 | (∀ a : S, (v a).fst = o a) → (v T).snd = 0 → ∀ a : S, (v a).snd = 0 := by |
| 438 | -- Every tangent vector of `Spec S` at `o` is a multiple of one vector `v₀`. |
| 439 | obtain ⟨r, c, hc⟩ : ∃ r c : 𝓞 E, r * d + c * (star D.β - b) = 1 := h_coprime |
| 440 | have h_tors (W : Over (Spec (.of R))) (w : W ⟶ specOver R S) : d • w ≫ ι = 0 := by |
| 441 | simpa using w ≫= h_ker |
| 442 | -- `p` is the zero tangent vector at `o`, and `v₀` its translate by the generator `L 1`. |
| 443 | let p : specOver R k[ε] ⟶ x.groupScheme := specOver.map ((inlAlgHom R k k).comp o) ≫ ι |
| 444 | obtain ⟨v₀, hv₀⟩ : ∃ v₀ : S →ₐ[R] k[ε], specOver.map v₀ ≫ ι = L 1 + p := |
| 445 | specOver.map_bijective.surjective.exists.mp |
| 446 | (h_lift (L 1 + p) (by simp [p, hL.smul_apply, hd, h_tors])) |
| 447 | -- `T` is any function with nonzero derivative along `v₀`, if there is one |
| 448 | obtain ⟨T, hT⟩ : ∃ T : S, (v₀ T).snd = 0 → ∀ a : S, (v₀ a).snd = 0 := |
| 449 | forall_imp_iff_exists_imp.mp id |
| 450 | refine ⟨T, fun v hv hvT a ↦ ?_⟩ |
| 451 | -- As `c * (star β - b) = 1` on points of `Spec S`, `v - p = L m` for some `m`: `v = m • v₀`. |
| 452 | have : Mono ι := Over.mono_of_mono_left ι |
| 453 | have h_tangent : specOver.map (fstHom R k k) ≫ (c • (specOver.map v ≫ ι - p)) = 0 := by |
| 454 | simp [p, hv, AddGrpObj.comp_sub, specOver.map_comp_assoc, sub_eq_zero_of_eq, cancel_mono, |
| 455 | map_bijective.injective.eq_iff, AlgHom.ext_iff] |
| 456 | obtain ⟨m, hm⟩ := hL.exists_smul_eq (c • (specOver.map v ≫ ι - p)) h_tangent |
| 457 | -- With `σ` the substitution `ε ↦ m ε`, `hm` says `(1 - r d) • (v - p) + σ ≫ p = σ ≫ v₀` on `ι`. |
| 458 | have h_v_eq : (1 - r * d) • (specOver.map v ≫ ι - p) + |
| 459 | specOver.map ((TrivSqZeroExt.map (m • LinearMap.id)).restrictScalars R) ≫ p = |
| 460 | specOver.map ((TrivSqZeroExt.map (m • LinearMap.id)).restrictScalars R) ≫ |
| 461 | specOver.map v₀ ≫ ι := by |
| 462 | rw [← hL.scale_comp, smul_smul, mul_comm, eq_sub_of_add_eq' hc, ← add_left_inj, ← comp_add, |
| 463 | ← hv₀] at hm |
| 464 | exact hm |
| 465 | have h_scale : ∀ a : S, (v a).fst = (v₀ a).fst ∧ (v a).snd = m * (v₀ a).snd := by |
| 466 | simpa [sub_smul, mul_smul, smul_sub, h_tors, p, sub_add, specOver.map_comp_assoc, |
| 467 | cancel_mono, map_bijective.injective.eq_iff, AlgHom.ext_iff, TrivSqZeroExt.ext_iff, |
| 468 | sub_eq_zero_of_eq] using h_v_eq |
| 469 | -- `m * (v₀ T).snd = 0`, so either `m = 0` or `v₀` is the zero tangent vector |
| 470 | obtain ⟨-, hT_snd⟩ := h_scale T |
| 471 | obtain ⟨-, ha_snd⟩ := h_scale a |
| 472 | rw [hT_snd, mul_eq_zero] at hvT |
| 473 | rw [ha_snd, mul_eq_zero] |
| 474 | exact hvT.imp_right fun h ↦ hT h a |
| 475 | |
| 476 | /-- Let `y` be an object over a local ring `R`, and let `ρ : 𝓞 E → k` be `y.baseHom` followed by |
| 477 | `R → k`. Let `ρ` send `β` to the integer `b`, with `β - b` coprime to `star β - b`. Let |
| 478 | `ι : Spec S → y.groupScheme` be the kernel of `(β - b) ^ (M + 1)`: a closed immersion killed by it, |
| 479 | through which every point that it kills factors. Let `o` be a `k`-point of `Spec S`. Some function |
| 480 | `T` on `Spec S` has nonzero derivative along every nonzero tangent vector at `o`. -/ |
| 481 | lemma exists_detecting_tangent_vectors {R S : Type} [CommRing R] [IsLocalRing R] [Algebra R k] |
| 482 | [CommRing S] [Algebra R S] (y : ThetaObject X (Spec (.of R))) {ρ : 𝓞 E →+* k} |
| 483 | (hρ : ρ = (algebraMap R k).comp y.baseHom) {b : ℤ} (hb : ρ (D.β - b) = 0) |
| 484 | (h_coprime : IsCoprime (D.β - b) (star D.β - b)) {M : ℕ} {ι : specOver R S ⟶ y.groupScheme} |
| 485 | [IsClosedImmersion ι.left] (ι_ker : ι ≫ ((D.β - b) ^ (M + 1) • 𝟙 y.groupScheme) = 0) |
| 486 | (ι_lift : ∀ ⦃W : Over (Spec (.of R))⦄ (w : W ⟶ y.groupScheme), |
| 487 | w ≫ ((D.β - b) ^ (M + 1) • 𝟙 y.groupScheme) = 0 → ∃ u : W ⟶ specOver R S, u ≫ ι = w) |
| 488 | (o : S →ₐ[R] k) : |
| 489 | ∃ T : S, ∀ v : S →ₐ[R] k[ε], |
| 490 | (∀ a : S, (v a).fst = o a) → (v T).snd = 0 → ∀ a : S, (v a).snd = 0 := by |
| 491 | obtain ⟨L, hL⟩ := exists_isLieLine y hρ hb |
| 492 | have h_pow : ρ ((D.β - b) ^ (M + 1)) = 0 := by simp [pow_succ, hb] |
| 493 | exact hL.exists_detects_tangent h_pow h_coprime.pow_left ι (by simpa using ι_ker) |
| 494 | (fun W w hw ↦ ι_lift w (by simp [hw])) o |
| 495 | |
| 496 | /-- A point `p` of a group scheme `A` over `R`, with values in a ring `B`, vanishes along the ring |
| 497 | map `G : B →+* B'`: the point of `A` with values in `B'` induced by `G` is zero. -/ |
| 498 | def VanishesAlong {R B B' : Type} [CommRing R] [CommRing B] [CommRing B'] |
| 499 | {A : Over (Spec (.of R))} [AddObj A] {s : Spec (.of B) ⟶ Spec (.of R)} (p : Over.mk s ⟶ A) |
| 500 | (G : B →+* B') : Prop := |
| 501 | (homMk (specMap G) : Over.mk (specMap G ≫ s) ⟶ Over.mk s) ≫ p = 0 |
| 502 | |
| 503 | /-- Vanishing along `G` may be tested on any morphism `a` over `R` given by `G`. -/ |
| 504 | lemma vanishesAlong_iff {R B B' : Type} [CommRing R] [CommRing B] [CommRing B'] |
| 505 | {A : Over (Spec (.of R))} [AddObj A] {s : Spec (.of B) ⟶ Spec (.of R)} |
| 506 | {s' : Spec (.of B') ⟶ Spec (.of R)} {p : Over.mk s ⟶ A} {G : B →+* B'} |
| 507 | (a : Over.mk s' ⟶ Over.mk s) (ha : a.left = specMap G) : |
| 508 | VanishesAlong p G ↔ a ≫ p = 0 := by |
| 509 | simp [VanishesAlong, eq_zero_iff_factors_zero_section, ha] |
| 510 | |
| 511 | /-- For a full structure `e` on the object `y` over `V`, a family `c` of torsion vectors and a |
| 512 | point `p` of `y.groupScheme`, the number of indices `i` for which the torsion section |
| 513 | `e.torsionPoint (c i)` passes through `p`. -/ |
| 514 | noncomputable def sectionCount {J : Type} (c : J → AdelicTorsion E D.Index) |
| 515 | {T : Over (Spec (.of V))} (p : T ⟶ y.groupScheme) : ℕ := |
| 516 | Nat.card {i : J // toUnit T ≫ e.torsionPoint (c i) = p} |
| 517 | |
| 518 | /-- Let `e` be a full structure on the object `y` over `V` and `z` a point of `y.groupScheme` with |
| 519 | values in a ring `B`. The element `f` of `B` is a local equation at `z` for the closure of the |
| 520 | torsion sections `e.torsionPoint (c i)`, as seen by isogenies `ψ` out of `y.groupScheme` and ring |
| 521 | maps `G` out of `B`. -/ |
| 522 | structure IsLocalEquation {J : Type} (c : J → AdelicTorsion E D.Index) {B : Type} [CommRing B] |
| 523 | {s : Spec (.of B) ⟶ Spec (.of V)} (z : Over.mk s ⟶ y.groupScheme) (f : B) : Prop where |
| 524 | /-- If `υ` maps `u` to `z` and the torsion of `ker ψ` into the family `c`, and `ψ u` vanishes |
| 525 | along `G`, then `G f = 0`. -/ |
| 526 | map_eq_zero {A : Over (Spec (.of V))} [IsAbelianScheme A] (ψ : y.groupScheme ⟶ A) [IsIsogeny ψ] |
| 527 | {υ : 𝓞 E} {u : Over.mk s ⟶ y.groupScheme} (hu : υ • u = z) |
| 528 | (hυ : ∀ t : AdelicTorsion E D.Index, e.torsionPoint t ≫ ψ = 0 → υ • t ∈ Set.range c) |
| 529 | {B' : Type} [CommRing B'] {G : B →+* B'} (hG : VanishesAlong (u ≫ ψ) G) : G f = 0 |
| 530 | /-- If `ψ` kills the sections `e.torsionPoint (c i)` and `G f = 0`, then `ψ z` vanishes along |
| 531 | `G`. -/ |
| 532 | vanishesAlong {A : Over (Spec (.of V))} [IsAbelianScheme A] (ψ : y.groupScheme ⟶ A) |
| 533 | [IsIsogeny ψ] (hψ : ∀ i : J, e.torsionPoint (c i) ≫ ψ = 0) {B' : Type} [CommRing B'] |
| 534 | {G : B →+* B'} (hG : G f = 0) : VanishesAlong (z ≫ ψ) G |
| 535 | |
| 536 | /-- Let `O` be a domain and `θ j` distinct sections of a finite type `O`-algebra `S` through a point |
| 537 | `o`, and let `T` have nonzero derivative along every nonzero tangent vector at `o`. Let `χ` send the |
| 538 | elements not vanishing at `o` to units, and let `g` divide each `χ (θ j T - T)`. If `a` vanishes |
| 539 | along the `θ j`, `j ∈ s`, then `g ^ #s` divides `χ a`. -/ |
| 540 | lemma pow_card_dvd_of_sections {O S B J : Type*} [CommRing O] [IsDomain O] [CommRing S] |
| 541 | [Algebra O S] [Algebra.FiniteType O S] [Algebra O k] [CommRing B] {o : S →ₐ[O] k} {T : S} |
| 542 | (hT : ∀ v : S →ₐ[O] k[ε], (∀ a : S, (v a).fst = o a) → (v T).snd = 0 → ∀ a : S, (v a).snd = 0) |
| 543 | {θ : J → S →ₐ[O] O} (hθ : θ.Injective) (hθo : ∀ (j : J) (a : S), algebraMap O k (θ j a) = o a) |
| 544 | {χ : S →+* B} (hχ : ∀ a : S, o a ≠ 0 → IsUnit (χ a)) {g : B} |
| 545 | (hg : ∀ j : J, g ∣ χ (algebraMap O S (θ j T) - T)) (s : Finset J) (a : S) |
| 546 | (ha : ∀ j ∈ s, θ j a = 0) : |
| 547 | g ^ #s ∣ χ a := by |
| 548 | classical |
| 549 | induction s using Finset.induction_on generalizing a with |
| 550 | | empty => simp |
| 551 | | insert j s hj ih => |
| 552 | -- By Nakayama, `ϖ` generates `ker (θ j)` near `o`: some `ρ` with `o ρ ≠ 0` multiplies |
| 553 | -- `ker (θ j)` into `(ϖ)`. |
| 554 | set ϖ : S := algebraMap O S (θ j T) - T with hϖ |
| 555 | obtain ⟨ρ, hρ, hρo⟩ : ∃ ρ ∈ (Ideal.span {ϖ}).colon (ker (θ j)), o ρ ≠ 0 := by |
| 556 | refine exists_mem_colon_of_tangent (AlgHom.ext (hθo j)) ?_ fun v hv h_ker ↦ hT v hv ?_ |
| 557 | · show Ideal.span {ϖ} ≤ ker (θ j) |
| 558 | simp [hϖ] |
| 559 | · show TrivSqZeroExt.snd (v T) = 0 |
| 560 | have hv_zero : v ϖ = 0 := h_ker (Ideal.mem_span_singleton_self ϖ) |
| 561 | simpa [hϖ, algebraMap_eq_inl'] using congrArg TrivSqZeroExt.snd hv_zero |
| 562 | replace hρ : ∀ c : S, θ j c = 0 → ϖ ∣ ρ * c := by |
| 563 | simpa [mem_colon, Ideal.mem_span_singleton] using hρ |
| 564 | obtain ⟨b, hb⟩ : ϖ ∣ ρ * a := hρ a (ha j (mem_insert_self j s)) |
| 565 | -- The other sections do not kill `ϖ`: else they would kill `ker (θ j)` and equal `θ j`. |
| 566 | have hρ_ne (i : J) : θ i ρ ≠ 0 := fun h_zero ↦ hρo (by rw [← hθo i, h_zero, map_zero]) |
| 567 | have hϖ_ne (i : J) (hi : i ∈ s) : θ i ϖ ≠ 0 := by |
| 568 | intro hϖ_zero |
| 569 | suffices h_eq : θ j = θ i from hj (by rwa [hθ h_eq]) |
| 570 | ext c |
| 571 | have h_dvd : θ i ϖ ∣ θ i (ρ * (algebraMap O S (θ j c) - c)) := |
| 572 | map_dvd (θ i) (hρ _ (by simp)) |
| 573 | simpa [hϖ_zero, hρ_ne, sub_eq_zero] using h_dvd |
| 574 | have hb_zero (i : J) (hi : i ∈ s) : θ i b = 0 := by |
| 575 | simpa [ha i (mem_insert_of_mem hi), hϖ_ne i hi] using congrArg (θ i) hb |
| 576 | -- `χ ρ` is a unit, and `χ (ρ a) = χ ϖ * χ b` with `g ∣ χ ϖ` and `g ^ #s ∣ χ b`. |
| 577 | have h_ρa : χ ρ * χ a = χ ϖ * χ b := by rw [← map_mul, hb, map_mul] |
| 578 | rw [card_insert_of_notMem hj, pow_succ', ← (hχ ρ hρo).dvd_mul_left, h_ρa] |
| 579 | exact mul_dvd_mul (hg j) (ih b hb_zero) |
| 580 | |
| 581 | /-- Let `θ j` be finitely many sections of an `O`-algebra `S`, `o` a `k`-point of `S` and `T` an |
| 582 | element of `S`. Let `χ` send the elements not vanishing at `o` to units, and let `χ (θ j T - T)` |
| 583 | divide `g` for each `θ j` through `o`. Some `F` vanishes along all `θ j`, and `χ F` divides |
| 584 | `g ^ N`, where `N` is the number of sections through `o`. -/ |
| 585 | lemma exists_dvd_pow_card_of_sections {O S B J : Type*} [CommRing O] [CommRing S] |
| 586 | [Algebra O S] [Algebra O k] [CommRing B] [Finite J] {o : S →ₐ[O] k} {T : S} |
| 587 | (θ : J → S →ₐ[O] O) {χ : S →+* B} (hχ : ∀ a : S, o a ≠ 0 → IsUnit (χ a)) {g : B} |
| 588 | (hg : ∀ j : J, (∀ a : S, algebraMap O k (θ j a) = o a) → |
| 589 | χ (algebraMap O S (θ j T) - T) ∣ g) : |
| 590 | ∃ F : S, (∀ j : J, θ j F = 0) ∧ |
| 591 | χ F ∣ g ^ Nat.card {j : J // ∀ a : S, algebraMap O k (θ j a) = o a} := by |
| 592 | classical |
| 593 | -- `F` is a product of `f j` vanishing along `θ j`, whose image divides `g`, or `1` if `θ j` |
| 594 | -- misses `o`. |
| 595 | have h_factor (j : J) : ∃ f : S, θ j f = 0 ∧ |
| 596 | χ f ∣ if ∀ a : S, algebraMap O k (θ j a) = o a then g else 1 := by |
| 597 | split_ifs with hj |
| 598 | · exact ⟨algebraMap O S (θ j T) - T, by simp, hg j hj⟩ |
| 599 | · obtain ⟨a, ha⟩ := not_forall.mp hj |
| 600 | exact ⟨algebraMap O S (θ j a) - a, by simp, (hχ _ (by simpa [sub_eq_zero] using ha)).dvd⟩ |
| 601 | choose f hf_zero hf_dvd using h_factor |
| 602 | refine ⟨∏ j, f j, fun j ↦ ?_, ?_⟩ |
| 603 | · exact (map_prod (θ j) f univ).trans (prod_eq_zero (mem_univ j) (hf_zero j)) |
| 604 | · calc χ (∏ j, f j) = ∏ j, χ (f j) := map_prod χ f univ |
| 605 | _ ∣ ∏ j, if ∀ a : S, algebraMap O k (θ j a) = o a then g else 1 := |
| 606 | univ.prod_dvd_prod_of_dvd _ _ fun j _ ↦ hf_dvd j |
| 607 | _ = _ := by simp [prod_ite, Fintype.card_subtype] |
| 608 | |
| 609 | /-- Density of the torsion sections, read on functions on `Spec S`. Let each section |
| 610 | `e.torsionPoint (κ i)` factor through the closed immersion `ι : Spec S ⟶ y.groupScheme` as the point |
| 611 | `θ i`, and let `υ` carry each torsion vector whose section the isogeny `ψ` kills into `κ`. If |
| 612 | `υ • u` is the point `z'` given by `γ : S → B`, `ψ u` vanishes along `G`, and `F` vanishes at every |
| 613 | `θ i`, then `G (γ F) = 0`. -/ |
| 614 | private lemma map_eq_zero_of_vanishesAlong_of_sections {J : Type} {κ : J → AdelicTorsion E D.Index} |
| 615 | {S : CommAlgCat V} {ι : specOver V S ⟶ y.groupScheme} [IsClosedImmersion ι.left] |
| 616 | {θ : J → S →ₐ[V] V} |
| 617 | (hθ : ∀ i : J, Spec.map (ofHom (θ i)) ≫ ι.left = (e.torsionPoint (κ i)).left) |
| 618 | {A : Over (Spec (.of V))} [IsAbelianScheme A] (ψ : y.groupScheme ⟶ A) [IsIsogeny ψ] {υ : 𝓞 E} |
| 619 | (h_sec : ∀ s : AdelicTorsion E D.Index, e.torsionPoint s ≫ ψ = 0 → υ • s ∈ Set.range κ) |
| 620 | {B : Type} [CommRing B] {s : Spec (.of B) ⟶ Spec (.of V)} {u : Over.mk s ⟶ y.groupScheme} |
| 621 | {z' : Over.mk s ⟶ specOver V S} {γ : of S ⟶ of B} (hz' : z'.left = Spec.map γ) |
| 622 | (hu : υ • u = z' ≫ ι) {B' : Type} [CommRing B'] {G : B →+* B'} |
| 623 | (h_zero : VanishesAlong (u ≫ ψ) G) {F : S} (hF_zero : ∀ i : J, θ i F = 0) : |
| 624 | G (γ.hom F) = 0 := by |
| 625 | -- Each torsion section killed by `ψ`, moved by `υ`, lies in the zero set of `F`; by density |
| 626 | -- (`ker_factors_of_torsionPoint`) so does the point `υ • u` along `G`. |
| 627 | let I : Ideal S := .span {F} |
| 628 | have hI_closed : IsClosedImmersion (Spec.map (ofHom (Ideal.Quotient.mk I))) := |
| 629 | IsClosedImmersion.spec_of_quotient_mk (R := .of S) I |
| 630 | have h_fac (s : AdelicTorsion E D.Index) (hs : e.torsionPoint s ≫ ψ = 0) : |
| 631 | ∃ l : Spec (.of V) ⟶ Spec (.of (S ⧸ I)), |
| 632 | l ≫ Spec.map (ofHom (Ideal.Quotient.mk I)) ≫ ι.left = |
| 633 | (e.torsionPoint s ≫ (υ • 𝟙 y.groupScheme)).left := by |
| 634 | obtain ⟨i, hi⟩ := h_sec s hs |
| 635 | have h_le : I ≤ ker (θ i : S →+* V) := by simpa [I] using hF_zero i |
| 636 | obtain ⟨l, hl⟩ := le_ker_iff_factors.mp h_le |
| 637 | exact ⟨l, by simp [← assoc, map_smul, hl, hθ, hi]⟩ |
| 638 | have h_ker : ((homMk (specMap G) : Over.mk (specMap G ≫ s) ⟶ Over.mk s) ≫ u) ≫ ψ = 0 := |
| 639 | (Category.assoc ..).trans h_zero |
| 640 | have h_kill : I ≤ ker (G.comp γ.hom) := by |
| 641 | obtain ⟨l, hl⟩ := ker_factors_of_torsionPoint e ψ (υ • 𝟙 y.groupScheme) h_fac _ h_ker |
| 642 | refine le_ker_iff_factors.mpr ⟨l, (cancel_mono ι.left).mp ?_⟩ |
| 643 | -- `Spec.map_comp` is left out: with `← Spec.map_comp_assoc` it loops. |
| 644 | simpa [hz', hu, specMap, ← Spec.map_comp_assoc, -Spec.map_comp] using hl |
| 645 | exact h_kill (mem_span_singleton_self F) |
| 646 | |
| 647 | /-- A torsion section of `y.groupScheme` that `d` kills factors through any |
| 648 | `ι : Spec S → y.groupScheme` through which every point killed by `d` factors: it is given by a |
| 649 | `V`-point `θ` of `Spec S`. -/ |
| 650 | private lemma exists_spec_map_comp_eq_torsionPoint_of_smul_eq_zero {S : CommAlgCat V} |
| 651 | {ι : specOver V S ⟶ y.groupScheme} {d : 𝓞 E} |
| 652 | (ι_lift : ∀ ⦃W : Over (Spec (.of V))⦄ (w : W ⟶ y.groupScheme), |
| 653 | w ≫ (d • 𝟙 y.groupScheme) = 0 → ∃ u : W ⟶ specOver V S, u ≫ ι = w) |
| 654 | {s : AdelicTorsion E D.Index} (hs : d • s = 0) : |
| 655 | ∃ θ : S →ₐ[V] V, Spec.map (ofHom θ) ≫ ι.left = (e.torsionPoint s).left := by |
| 656 | obtain ⟨θ, hθ⟩ : ∃ θ : S →ₐ[V] V, |
| 657 | specOver.map θ ≫ ι = toUnit (specOver V V) ≫ e.torsionPoint s := |
| 658 | specOver.map_bijective.surjective.exists.mp (ι_lift _ (by simp [hs, ← map_smul])) |
| 659 | exact ⟨θ, by simpa [specOver.map, OverMorphism.ext_iff] using hθ⟩ |
| 660 | |
| 661 | /-- Let the sections `e.torsionPoint (κ i)` factor through the closed immersion `ι` as distinct |
| 662 | points `θ i` of `Spec S`, `S` finite over `V`, let `T` have nonzero derivative along each nonzero |
| 663 | tangent vector at the `k`-point `o`, and let `γ : S → B` give `z'`, invert the elements nonzero at |
| 664 | `o` and send `θ i T - T` to `t` for each `θ i` through `o`. If `ψ` kills each `e.torsionPoint (κ i)` |
| 665 | and `G` kills `t ^ N`, `N` the number of `θ i` through `o`, then `ψ (ι z')` vanishes along `G`. -/ |
| 666 | private lemma vanishesAlong_of_map_pow_card_eq_zero [Algebra V k] {J : Type} [Finite J] |
| 667 | {κ : J → AdelicTorsion E D.Index} {S : CommAlgCat V} [Module.Finite V S] |
| 668 | {ι : specOver V S ⟶ y.groupScheme} {θ : J → S →ₐ[V] V} |
| 669 | (hθ : ∀ i : J, Spec.map (ofHom (θ i)) ≫ ι.left = (e.torsionPoint (κ i)).left) |
| 670 | (θ_inj : θ.Injective) {o : S →ₐ[V] k} {T : S} |
| 671 | (hT : ∀ v : S →ₐ[V] k[ε], (∀ a : S, (v a).fst = o a) → (v T).snd = 0 → ∀ a : S, (v a).snd = 0) |
| 672 | {B : Type} [CommRing B] {s : Spec (.of B) ⟶ Spec (.of V)} {z' : Over.mk s ⟶ specOver V S} |
| 673 | {γ : of S ⟶ of B} (hz' : z'.left = Spec.map γ) |
| 674 | (γ_unit : ∀ a : S, o a ≠ 0 → IsUnit (γ.hom a)) {t : B} |
| 675 | (γ_t : ∀ i : J, (∀ a : S, algebraMap V k (θ i a) = o a) → |
| 676 | γ.hom (algebraMap V S (θ i T) - T) = t) |
| 677 | {A : Over (Spec (.of V))} [IsAbelianScheme A] (ψ : y.groupScheme ⟶ A) |
| 678 | (h_ker : ∀ i : J, e.torsionPoint (κ i) ≫ ψ = 0) {B' : Type} [CommRing B'] {G : B →+* B'} |
| 679 | (h_pow : G (t ^ Nat.card {i : J // ∀ a : S, algebraMap V k (θ i a) = o a}) = 0) : |
| 680 | VanishesAlong ((z' ≫ ι) ≫ ψ) G := by |
| 681 | -- The ideal `I` of `ker ψ` in `Spec S` vanishes at every `θ i`, so `t ^ N` divides its image |
| 682 | -- under `γ`, and `G ∘ γ` kills it. |
| 683 | obtain ⟨I, -, hI⟩ := exists_ideal_le_ker_iff_factors ζ[A].left (ι ≫ ψ).left |
| 684 | have h_le (i : J) : I ≤ ker (θ i : S →+* V) := by |
| 685 | simpa [hI, ← hθ, eq_zero_iff_factors_zero_section] using h_ker i |
| 686 | have h_kill : I ≤ ker (G.comp γ.hom) := by |
| 687 | intro a ha |
| 688 | have h_dvd : t ^ Nat.card {i : J // ∀ a : S, algebraMap V k (θ i a) = o a} ∣ γ.hom a := by |
| 689 | rw [Nat.card_eq_fintype_card] |
| 690 | exact pow_card_dvd_of_sections hT (θ_inj.comp Subtype.val_injective) Subtype.prop γ_unit |
| 691 | (fun i ↦ (γ_t i.val i.property).symm.dvd) univ a fun i _ ↦ h_le i.val ha |
| 692 | exact zero_dvd_iff.mp (h_pow.symm.dvd.trans (map_dvd G h_dvd)) |
| 693 | simpa [VanishesAlong, eq_zero_iff_factors_zero_section, hz'] using (hI _).mp h_kill |
| 694 | |
| 695 | /-- A local equation for the closure of torsion sections. Let `x` over `k` be the pull-back of `y` |
| 696 | (`ho`), let `β - b ∈ w = ker x.baseHom` be coprime to `star β - b`, and let `z` be a point of |
| 697 | `y.groupScheme` killed by `(β - b) ^ M` over a local `k`-algebra `B` with `k`-point `π`. Some |
| 698 | `t ∈ ker π` makes `t ^ N` a local equation at `z` for the sections of any injective family `c` of |
| 699 | `w`-torsion vectors, `N` the number of them through the closed point of `z`. -/ |
| 700 | lemma exists_isLocalEquation_pow_sectionCount (e : y.FullLevelStructure) |
| 701 | (ho : x.IsPullbackAlong (specMap φ) y) {b : ℤ} (hb : x.baseHom (D.β - b) = 0) |
| 702 | (h_coprime : IsCoprime (D.β - b) (star D.β - b)) (M : ℕ) {B : Type} [CommRing B] |
| 703 | [IsLocalRing B] [Algebra k B] (z : (Over.map (specMap φ)).obj (specOver k B) ⟶ y.groupScheme) |
| 704 | (hz : (D.β - b) ^ M • z = 0) (π : B →ₐ[k] k) : |
| 705 | ∃ t : B, π t = 0 ∧ ∀ ⦃J : Type⦄ (c : J → AdelicTorsion E D.Index), c.Injective → |
| 706 | (∀ i : J, c i ∈ torsionBySet (𝓞 E) (AdelicTorsion E D.Index) (ker x.baseHom)) → |
| 707 | IsLocalEquation e c z |
| 708 | (t ^ sectionCount e c ((Over.map (specMap φ)).map (specOver.map π) ≫ z)) := by |
| 709 | -- Let `Spec S` be the kernel of `(β - b) ^ (M + 1)` and `o` the closed point of `z` on it. Its |
| 710 | -- tangent space at `o` is at most a line, so one function `T` detects tangent vectors; `t` is |
| 711 | -- `o T - T` read on `z`. |
| 712 | algebraize [φ] |
| 713 | -- if `β = b` then `star β = b` too, against coprimality |
| 714 | have h_ne : D.β - b ≠ 0 := by |
| 715 | intro h_eq |
| 716 | have h_star : star D.β - b = 0 := by simp [sub_eq_zero.mp h_eq] |
| 717 | exact not_isCoprime_zero_zero (by rwa [h_eq, h_star] at h_coprime) |
| 718 | have h_isog : IsIsogeny ((D.β - b) ^ (M + 1) • 𝟙 y.groupScheme) := |
| 719 | y.isIsogeny_smul_id (pow_ne_zero (M + 1) h_ne) |
| 720 | obtain ⟨S, ι, hS_finite, hS_flat, hι_closed, ι_ker, ι_lift⟩ := |
| 721 | exists_finite_kernel_ring (f := (D.β - b) ^ (M + 1) • 𝟙 y.groupScheme) inferInstance |
| 722 | obtain ⟨z', rfl⟩ := ι_lift z (by simp [mul_smul, hz, pow_succ']) |
| 723 | -- The point `z'` is `Spec` of a ring map `γ` compatible with `φ`, as is every point of `Spec S`. |
| 724 | obtain ⟨γ, hγ, hz'⟩ : ∃ γ : of S ⟶ of B, |
| 725 | (∀ a : V, γ.hom (algebraMap V S a) = algebraMap k B (φ a)) ∧ z'.left = Spec.map γ := by |
| 726 | simpa [Spec.map_surjective.exists, OverMorphism.ext_iff, ← Spec.map_comp, Spec.map_inj, |
| 727 | CommRingCat.hom_ext_iff, RingHom.ext_iff] using homMk_surjective z' |
| 728 | -- Now `z` is given by a ring map `γ : S → B`, and `o = π ∘ γ`. |
| 729 | let o : S →ₐ[V] k := ⟨.comp π γ.hom, by simp [hγ, algebraMap_toAlgebra]⟩ |
| 730 | obtain ⟨T, hT⟩ := |
| 731 | exists_detecting_tangent_vectors y ho.baseHom_eq_comp hb h_coprime ι_ker ι_lift o |
| 732 | let t : B := algebraMap k B (o T) - γ T |
| 733 | refine ⟨t, by simp [t, o], fun J c c_inj c_mem ↦ ?_⟩ |
| 734 | -- The sections `e.torsionPoint (c i)` lie in `Spec S`; they are the distinct algebra maps `θ i`. |
| 735 | have h_sections (i : J) : |
| 736 | ∃ θ : S →ₐ[V] V, Spec.map (ofHom θ) ≫ ι.left = (e.torsionPoint (c i)).left := by |
| 737 | have h_killed : (D.β - b) ^ (M + 1) • c i = 0 := by |
| 738 | rw [pow_succ, mul_smul, (mem_torsionBySet_iff _ _).mp (c_mem i) ⟨_, hb⟩, smul_zero] |
| 739 | exact exists_spec_map_comp_eq_torsionPoint_of_smul_eq_zero e ι_lift h_killed |
| 740 | choose θ hθ using h_sections |
| 741 | have θ_inj : θ.Injective := fun i j h_eq ↦ |
| 742 | c_inj (e.injective (by simp [← hθ, h_eq, OverMorphism.ext_iff])) |
| 743 | -- there are finitely many, as `S` is finite and flat, so free, over the local ring `V` |
| 744 | have hS_free : Module.Free V S := free_of_flat_of_isLocalRing |
| 745 | have hJ_finite : Finite J := .of_injective θ θ_inj |
| 746 | have h_count : sectionCount e c ((Over.map (specMap φ)).map (specOver.map π) ≫ z' ≫ ι) = |
| 747 | Nat.card {i : J // ∀ a : S, φ (θ i a) = o a} := by |
| 748 | -- `Spec.map_comp` is left out: with `← Spec.map_comp_assoc` it loops. |
| 749 | simp [sectionCount, o, ← hθ, hz', specOver.map, OverMorphism.ext_iff, ← Spec.map_comp_assoc, |
| 750 | cancel_mono, Spec.map_inj, CommRingCat.hom_ext_iff, RingHom.ext_iff, -Spec.map_comp] |
| 751 | rw [h_count] |
| 752 | have hπ_local : IsLocalHom (π : B →+* k) := |
| 753 | .of_surjective π fun r : k ↦ ⟨algebraMap k B r, π.commutes r⟩ |
| 754 | have γ_unit (a : S) (ha : o a ≠ 0) : IsUnit (γ.hom a) := hπ_local.map_nonunit (γ a) ha.isUnit |
| 755 | have γ_t (i : J) (hi : ∀ a : S, φ (θ i a) = o a) : γ.hom (algebraMap V S (θ i T) - T) = t := by |
| 756 | simp [t, hγ, hi] |
| 757 | constructor |
| 758 | · -- `map_eq_zero`: some `F` vanishes at all `θ i` and divides `t ^ N` on `z`; by density of |
| 759 | -- the torsion sections in `ker ψ`, `G` kills it. |
| 760 | intro A hA ψ hψ υ u hu h_sec B' hB' G h_van |
| 761 | obtain ⟨F, hF_zero, hF_dvd⟩ := |
| 762 | exists_dvd_pow_card_of_sections θ γ_unit fun i hi ↦ (γ_t i hi).dvd |
| 763 | have hF_kill : G (γ.hom F) = 0 := |
| 764 | map_eq_zero_of_vanishesAlong_of_sections e hθ ψ h_sec hz' hu h_van hF_zero |
| 765 | exact zero_dvd_iff.mp (hF_kill.symm.dvd.trans (map_dvd G hF_dvd)) |
| 766 | · -- `vanishesAlong`: the equations of `ker ψ` are multiples of `t ^ N` on `z`. |
| 767 | intro A hA ψ hψ h_ker B' hB' G h_pow |
| 768 | exact vanishesAlong_of_map_pow_card_eq_zero e hθ θ_inj hT hz' γ_unit γ_t ψ h_ker h_pow |
| 769 | |
| 770 | /-- Reduction of torsion sections. Let `x` over `k` be the pull-back of `y` over `V` along `φ` |
| 771 | (`ho`), and let `e` be a full structure on `y`. A `w`-torsion vector `s`, for `w = ker x.baseHom`, |
| 772 | goes to the `w`-torsion `k`-point of `x` that corresponds to the section `e.torsionPoint s`. -/ |
| 773 | private noncomputable def torsionReduction (e : y.FullLevelStructure) |
| 774 | (ho : x.IsPullbackAlong (specMap φ) y) : |
| 775 | torsionBySet (𝓞 E) (AdelicTorsion E D.Index) (ker x.baseHom) →+ placeTorsion x k := |
| 776 | .mk' (fun s ↦ ⟨ho.isGroupBaseChange.pointEquiv.symm |
| 777 | (toUnit ((Over.map (specMap φ)).obj (specOver k k)) ≫ e.torsionPoint s), by |
| 778 | refine (mem_torsionBySet_iff _ _).2 fun a ↦ ?_ |
| 779 | simp [← ModuleObj.comp_smul, (mem_torsionBySet_iff _ _).1 s.property a, ← map_smul]⟩) |
| 780 | (by simp [comp_add]) |
| 781 | |
| 782 | /-- The reduction of the torsion vector `s` is the point `w` exactly when the section |
| 783 | `e.torsionPoint s` is, read over `k` via `φ`, the point of `y.groupScheme` that |
| 784 | `ho.isGroupBaseChange.pointEquiv` matches with the `k`-point `w` of `x.groupScheme`. -/ |
| 785 | private lemma torsionReduction_eq_iff (e : y.FullLevelStructure) |
| 786 | (ho : x.IsPullbackAlong (specMap φ) y) |
| 787 | (s : torsionBySet (𝓞 E) (AdelicTorsion E D.Index) (ker x.baseHom)) (w : placeTorsion x k) : |
| 788 | torsionReduction e ho s = w ↔ |
| 789 | toUnit ((Over.map (specMap φ)).obj (specOver k k)) ≫ e.torsionPoint s = |
| 790 | ho.isGroupBaseChange.pointEquiv w.val := by |
| 791 | simp [torsionReduction, Subtype.ext_iff, LinearEquiv.symm_apply_eq] |
| 792 | |
| 793 | open Pointwise in |
| 794 | /-- Let `c` and `t` be elements of `𝓞 E` with `t w ⊆ (c)`, for `w = ker x.baseHom`. If the full |
| 795 | structure `e` sends the torsion vector `s` to a section that `c` kills, then `t • s` is |
| 796 | `w`-torsion. -/ |
| 797 | private lemma smul_mem_torsionBySet_of_comp_smul_eq_zero (e : y.FullLevelStructure) {c t : 𝓞 E} |
| 798 | (h_dvd : t • ker x.baseHom ≤ Ideal.span {c}) {s : AdelicTorsion E D.Index} |
| 799 | (hs : e.torsionPoint s ≫ (c • 𝟙 y.groupScheme) = 0) : |
| 800 | t • s ∈ torsionBySet (𝓞 E) (AdelicTorsion E D.Index) (ker x.baseHom) := by |
| 801 | have hc_tors : c • s = 0 := e.injective (by simpa [map_smul] using hs) |
| 802 | -- `a * t` lies in `t w ⊆ (c)`, and `c` kills `s`. |
| 803 | have h_mem (a : 𝓞 E) (ha : a ∈ ker x.baseHom) : |
| 804 | a * t ∈ Ideal.torsionOf (𝓞 E) (AdelicTorsion E D.Index) s := |
| 805 | (Ideal.span_singleton_le_iff_mem _).mpr hc_tors (h_dvd ⟨a, ha, mul_comm t a⟩) |
| 806 | simpa [mul_smul] using h_mem |
| 807 | |
| 808 | open Pointwise in |
| 809 | /-- Let `x` over `k` be the reduction of `y` (`ho`) and `w = ker x.baseHom` good for `D` (`hw`). |
| 810 | Some nonzero `w`-torsion vector `s` has section `e.torsionPoint s` equal to `0` read over `k` via |
| 811 | `φ`; some additive map `ν` from `w`-torsion vectors to `w`-torsion `k`-points of `x` is such that, |
| 812 | for a `w`-torsion point `z` over a local `k`-algebra `B` with `k`-point `π`, some `t ∈ ker π` has |
| 813 | `t ^ N = 0`, `N` the size of the fibre of `ν` over the closed point `placeTorsionMap π z` of `z`; if |
| 814 | that point is `0`, `z` vanishes along every algebra map that kills `t`. -/ |
| 815 | lemma exists_param_pow_card_eq_zero (hw : D.IsGoodAt (ker x.baseHom)) |
| 816 | {y : ThetaObject X (Spec (CommRingCat.of V))} (e : y.FullLevelStructure) |
| 817 | (ho : x.IsPullbackAlong (specMap φ) y) : |
| 818 | let T : Submodule (𝓞 E) (AdelicTorsion E D.Index) := |
| 819 | torsionBySet (𝓞 E) (AdelicTorsion E D.Index) (ker x.baseHom) |
| 820 | ∃ ν : T →+ placeTorsion x k, |
| 821 | (∃ s ∈ T, s ≠ 0 ∧ |
| 822 | toUnit ((Over.map (specMap φ)).obj (specOver k k)) ≫ e.torsionPoint s = 0) ∧ |
| 823 | ∀ (B : Type) [CommRing B] [IsLocalRing B] [Algebra k B] (z : placeTorsion x B) |
| 824 | (π : B →ₐ[k] k), ∃ t : B, |
| 825 | π t = 0 ∧ |
| 826 | t ^ Nat.card {s : T // ν s = placeTorsionMap π z} = 0 ∧ |
| 827 | (placeTorsionMap π z = 0 → ∀ (C : Type) [CommRing C] [Algebra k C] (G : B →ₐ[k] C), |
| 828 | G t = 0 → placeTorsionMap G z = 0) := by |
| 829 | -- `ν` is reduction of torsion sections. The claims on the parameter `u` are those of |
| 830 | -- `exists_isLocalEquation_pow_sectionCount` with `M = 1`; applied to the tangent vector `L 1`, |
| 831 | -- they give the section that reduces to `0`. Goodness of `w = ker x.baseHom` gives `c ≠ 0` in |
| 832 | -- `w`, `t ≡ 1` modulo `w` with `t w ⊆ (c)`, and `b` with `β - b ∈ w`. |
| 833 | intro T |
| 834 | obtain ⟨-, ⟨-, c, hc, hc₀, t, ht, h_dvd⟩, b, hb, h_coprime, -⟩ := |
| 835 | ringChar_prime_and_exists_isCoprime_of_isGoodAt_ker hw |
| 836 | have h_isog : IsIsogeny (c • 𝟙 y.groupScheme) := y.isIsogeny_smul_id hc₀ |
| 837 | have hq : IsGroupBaseChange (specMap φ) ho.schemeMap := ho.isGroupBaseChange |
| 838 | let ν : T →+ placeTorsion x k := torsionReduction e ho |
| 839 | have ν_eq (s : T) (w : placeTorsion x k) : ν s = w ↔ |
| 840 | toUnit ((Over.map (specMap φ)).obj (specOver k k)) ≫ e.torsionPoint s = hq.pointEquiv w.val := |
| 841 | torsionReduction_eq_iff e ho s w |
| 842 | -- The claim on points over every `B`, proved second below, implies the first claim: a nonzero |
| 843 | -- section that reduces to `0`. |
| 844 | refine ⟨ν, (and_iff_right_of_imp fun h_main ↦ ?_).mpr ?_⟩ |
| 845 | · -- If only the section `0` reduced to `0`, then `u = u ^ 1 = 0` for `z = L 1`, so `L 1 = 0`. |
| 846 | obtain ⟨L, hL⟩ := exists_isLieLine x rfl hb |
| 847 | let z : placeTorsion x k[ε] := ⟨L 1, by simp +contextual [hL.smul_apply]⟩ |
| 848 | obtain ⟨u, -, h_pow, h_zero⟩ := h_main k[ε] z (fstHom k k k) |
| 849 | by_contra h_none |
| 850 | have h_card : Nat.card {s // ν s = 0} = 1 := |
| 851 | Nat.card_eq_one_iff_exists.mpr |
| 852 | ⟨⟨0, map_zero ν⟩, by simpa [ν_eq, not_imp_not] using h_none⟩ |
| 853 | have h_fst : placeTorsionMap (fstHom k k k) z = 0 := Subtype.ext (hL.fstHom_comp 1) |
| 854 | rw [h_fst, h_card, pow_one] at h_pow |
| 855 | have h_L : L 1 = 0 := by |
| 856 | simpa [placeTorsionMap, z] using h_zero h_fst k[ε] (.id k k[ε]) h_pow |
| 857 | exact hL.apply_one_ne_zero h_L |
| 858 | · rintro B hB_ring hB_local hB_alg ⟨z, hz⟩ π |
| 859 | replace hz : ∀ a : 𝓞 E, x.baseHom a = 0 → a • z = 0 := by simpa using hz |
| 860 | have hz_ker : (D.β - b) ^ 1 • hq.pointEquiv z = 0 := by simp [← map_smul, hz _ hb] |
| 861 | obtain ⟨u, hu, h_ker⟩ := exists_isLocalEquation_pow_sectionCount e ho hb h_coprime 1 |
| 862 | (hq.pointEquiv z) hz_ker π |
| 863 | refine ⟨u, hu, ?_, ?_⟩ |
| 864 | · -- `map_eq_zero` for `ψ = c`, the family of all `w`-torsion vectors, and `υ = t`: as |
| 865 | -- `c ∣ t * a` for `a ∈ w`, multiplying by `t` carries `c`-torsion into `w`-torsion; it fixes |
| 866 | -- `z` because `t - 1 ∈ w`. |
| 867 | have h_fix : t • hq.pointEquiv z = hq.pointEquiv z := by |
| 868 | simpa [sub_smul, ← map_smul, sub_eq_zero] using hz _ ht |
| 869 | have h_van : VanishesAlong (hq.pointEquiv z ≫ (c • 𝟙 y.groupScheme)) (.id B) := |
| 870 | (vanishesAlong_iff (𝟙 _) (by simp [specMap])).mpr (by simp [← map_smul, hz c hc]) |
| 871 | have h_zero := |
| 872 | (h_ker (J := T) Subtype.val Subtype.val_injective Subtype.prop).map_eq_zero |
| 873 | (c • 𝟙 y.groupScheme) h_fix |
| 874 | (fun s hs ↦ ⟨⟨t • s, smul_mem_torsionBySet_of_comp_smul_eq_zero e h_dvd hs⟩, rfl⟩) h_van |
| 875 | have h_point : hq.pointEquiv (specOver.map π ≫ z) = |
| 876 | (Over.map (specMap φ)).map (specOver.map π) ≫ hq.pointEquiv z := |
| 877 | hq.pointEquiv_precomp (specOver.map π) z |
| 878 | simpa [sectionCount, ν_eq, placeTorsionMap, h_point] using h_zero |
| 879 | · -- `vanishesAlong` for `ψ = 𝟙` and the single section `0`, which passes through the closed |
| 880 | -- point of `z`. |
| 881 | intro h_pt C hC_ring hC_alg G hG |
| 882 | replace h_pt : specOver.map π ≫ z = 0 := congrArg Subtype.val h_pt |
| 883 | have h_count : G ((u ^ sectionCount e (fun _ : Unit ↦ 0) |
| 884 | ((Over.map (specMap φ)).map (specOver.map π) ≫ hq.pointEquiv z))) = 0 := by |
| 885 | simp [sectionCount, ← hq.pointEquiv_precomp, h_pt, hG] |
| 886 | have h_van : VanishesAlong (hq.pointEquiv z ≫ 𝟙 y.groupScheme) (G : B →+* C) := |
| 887 | (h_ker (fun _ : Unit ↦ 0) (Function.injective_of_subsingleton _) |
| 888 | fun _ ↦ zero_mem _).vanishesAlong (𝟙 _) (by simp) h_count |
| 889 | rw [vanishesAlong_iff ((Over.map (specMap φ)).map (specOver.map G)) rfl] at h_van |
| 890 | exact Subtype.ext (hq.pointEquiv.map_eq_zero_iff.mp h_van) |
| 891 | |
| 892 | end New.Variety |