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.CategoryTheory.ExtremalEpi |
| 4 | import Mathlib.Combinatorics.Enumerative.IncidenceAlgebra |
| 5 | import Mathlib.RingTheory.Etale.Weakly |
| 6 | import TauCeti.NumberTheory.NumberField.Countable |
| 7 | public import Lib.General.Combinatorics |
| 8 | public import Lib.Shimura.IntegralModel.UniversalFamily |
| 9 | import Lib.ClassField.Places.ValuationSubrings |
| 10 | import Lib.PadicComparison.Descent.TestCategory |
| 11 | import Lib.Shimura.CongruenceRelation.HeckeNeighbours |
| 12 | import Lib.Shimura.IntegralModel.BallImmersion |
| 13 | |
| 14 | /-! |
| 15 | # Existence of the model: the tower of Kuga–Sato covers with its congruence relation |
| 16 | |
| 17 | The end of the construction of the moduli tower. It goes from a universal family of PEL type |
| 18 | (`New.Variety.UniversalFamily`) to the structure `New.Variety.Model`, which is all that the point |
| 19 | counts use. |
| 20 | |
| 21 | * `New.Variety.exists_model`: the model exists. |
| 22 | * `New.Variety.UniversalFamily.GraphClosure.congruenceRelation`, |
| 23 | `New.Variety.UniversalFamily.GraphClosure.isTangentPoly_localTerm_of_translate`: the congruence |
| 24 | relation and the tangent map at a fixed point, for the legs of a cover. |
| 25 | |
| 26 | Notions from other files: |
| 27 | * `New.Variety.UniversalFamily`: a universal family of PEL type over `R`: a base scheme with an |
| 28 | abelian scheme over it and its standing hypotheses. `New.Variety.UniversalFamily.GraphClosure` is |
| 29 | the reduced closure of the graph of finitely many translations `a ↦ a·(g_j, 1)` of complex points; |
| 30 | `C.proj j` projects it to the factor `j`, sending `C.point a` to `U.datumPoint 𝔪 (a.act g)`, the |
| 31 | complex point of level `𝔪`, when `γ j = (𝔪, g)`. |
| 32 | * `New.Variety.Model`: the tower of Kuga–Sato varieties over `R`, given by a list of properties. |
| 33 | * `New.Variety.Cancels`: The integers `m i` add up to zero on every fibre of `v`, that is, |
| 34 | `∑ m i • [v i] = 0` in the free abelian group on `V`. |
| 35 | * `New.Variety.IsSafe`: Safe places w of E: the place u of ℚ(√−d₀) below w satisfies |
| 36 | `New.GaloisRep.IsSplitPrimeToDisc`, and 𝔑 lies neither in w nor in any place above ū. |
| 37 | * `New.Variety.IsNeat`: The level 𝔑 is neat: 𝔑 ≠ 0 and, whenever `x` is a signed frame with `ℓ` for |
| 38 | some form (`New.Variety.IsSignedFrame`), every y in GL_n(E) with x⁻¹yx in `levelGU n 𝔑` (the |
| 39 | subgroup of level 𝔑 of GL_n(𝔸f E), inside `GUPlus E n`, whose elements translate moduli points by |
| 40 | `a.act`) that fixes ℓ under `New.Variety.ratConj` equals 1. |
| 41 | |
| 42 | ## Relation to the literature |
| 43 | |
| 44 | Known result: Integral Kuga–Sato models for GU(1,n−1) with level covers and the congruence relation. |
| 45 | Here the smooth proper base is a closure of theta values with no moduli property. The covers are |
| 46 | reduced projective closures of tuples of isogenous points. The model asks for smoothness of the base |
| 47 | only, and of the covers that they are Galois on points in characteristic zero. The congruence |
| 48 | relation at good split places is part of the statement. |
| 49 | Source: Harris, Taylor, The geometry and cohomology of some simple Shimura varieties, 2001, III.4; |
| 50 | Kottwitz, Points on some Shimura varieties over finite fields, JAMS 5 (1992), §5. |
| 51 | -/ |
| 52 | |
| 53 | @[expose] public section |
| 54 | |
| 55 | open NumberField CategoryTheory AlgebraicGeometry IsLocalRing CommRingCat New.Variety Spec |
| 56 | ULift QuotientGroup Category Function ReducedClosure Finset IncidenceAlgebra Filter Algebra |
| 57 | RingHom Over Finsupp ModuliPoint UniversalFamily |
| 58 | |
| 59 | /-- The Möbius coefficients `(-1) ^ r * q ^ (r.choose 2)`, with `r = Module.finrank (ResField w) A` |
| 60 | the dimension of `A`, of the subspaces `A` of `k ^ n`, `k` the residue field of `w`, cancel along |
| 61 | every map that depends only on `A ⊔ W` for some `W ≠ ⊥`. -/ |
| 62 | lemma New.Variety.cancels_moebius_of_factorsThrough_sup {E n : Type} {X : Type*} [Field E] |
| 63 | [NumberField E] [Fintype n] {w : FinPlace E} {W : Submodule (ResField w) (n → ResField w)} |
| 64 | (hW : W ≠ ⊥) {v : Submodule (ResField w) (n → ResField w) → X} (hv : v.FactorsThrough (· ⊔ W)) : |
| 65 | Cancels |
| 66 | (fun A : Submodule (ResField w) (n → ResField w) ↦ |
| 67 | (-1) ^ Module.finrank (ResField w) A * w.q ^ (Module.finrank (ResField w) A).choose 2) |
| 68 | v := by |
| 69 | classical |
| 70 | let μ (A : Submodule (ResField w) (n → ResField w)) : ℤ := |
| 71 | (-1) ^ Module.finrank (ResField w) A * w.q ^ (Module.finrank (ResField w) A).choose 2 |
| 72 | let F (B : Submodule (ResField w) (n → ResField w)) : ℤ := ∑ A with A ⊔ W = B, μ A |
| 73 | -- Summing `F` below `B` sums `μ` over the `A` with `A ⊔ W ≤ B`. This is empty unless `W ≤ B`; |
| 74 | -- then it is the product in `q_binomial_submodule` at `X = 1`, whose first factor `1 - q ^ 0` is |
| 75 | -- zero. |
| 76 | let : LocallyFiniteOrder (Submodule (ResField w) (n → ResField w)) := Fintype.toLocallyFiniteOrder |
| 77 | have sum_F (B : Submodule (ResField w) (n → ResField w)) : 0 = ∑ B' ∈ Finset.Iic B, F B' := by |
| 78 | refine .trans ?_ (sum_fiberwise_eq_sum_filter ..).symm |
| 79 | by_cases h : W ≤ B |
| 80 | · have hfilt : (Finset.univ.filter fun A : Submodule (ResField w) (n → ResField w) ↦ |
| 81 | A ⊔ W ∈ Finset.Iic B) = Finset.univ.filter (· ≤ B) := by |
| 82 | ext A |
| 83 | simp only [Finset.mem_filter, Finset.mem_univ, true_and, Finset.mem_Iic, sup_le_iff, h, |
| 84 | and_true] |
| 85 | rw [hfilt, ← Int.cast_inj (α := ℂ), Int.cast_zero, Int.cast_sum] |
| 86 | have hcast : (∑ A ∈ Finset.univ.filter (· ≤ B), (μ A : ℂ)) = |
| 87 | ∑ A ∈ Finset.univ.filter (· ≤ B), heckePolyCoeff 1 A := |
| 88 | Finset.sum_congr rfl fun A _ ↦ by |
| 89 | simp only [μ, heckePolyCoeff, Int.cast_mul, Int.cast_pow, Int.cast_neg, Int.cast_one, |
| 90 | Int.cast_natCast, card_ResField] |
| 91 | rw [hcast, q_binomial_submodule, SiegelWeil.qPochhammer] |
| 92 | have hpos : 0 < Module.finrank (ResField w) B := |
| 93 | pos_iff_ne_zero.mpr (mt Submodule.finrank_eq_zero.mp (ne_bot_of_le_ne_bot hW h)) |
| 94 | exact (Finset.prod_eq_zero (i := 0) (Finset.mem_range.mpr hpos) |
| 95 | (by simp only [pow_zero, mul_one, sub_self])).symm |
| 96 | · have hfilt : (Finset.univ.filter fun A : Submodule (ResField w) (n → ResField w) ↦ |
| 97 | A ⊔ W ∈ Finset.Iic B) = ∅ := by |
| 98 | rw [Finset.filter_eq_empty_iff] |
| 99 | intro A _ hle |
| 100 | exact h (le_sup_right.trans (Finset.mem_Iic.mp hle)) |
| 101 | rw [hfilt, Finset.sum_empty] |
| 102 | have F_eq_zero (B : Submodule (ResField w) (n → ResField w)) : F B = 0 := by |
| 103 | simpa only [Pi.zero_apply, mul_zero, sum_const_zero] using moebius_inversion_bot F 0 sum_F B |
| 104 | -- Group by the common image and use the vanishing coefficient on each fibre. |
| 105 | refine Cancels.mono (v := fun A ↦ A ⊔ W) ?_ hv |
| 106 | change ∑ A, μ A • FreeAddCommGroup.of (A ⊔ W) = 0 |
| 107 | rw [← Finset.sum_fiberwise univ (fun A ↦ A ⊔ W)] |
| 108 | refine Finset.sum_eq_zero fun B _ ↦ ?_ |
| 109 | calc |
| 110 | _ = F B • FreeAddCommGroup.of B := by |
| 111 | simp only [F, Finset.sum_smul] |
| 112 | exact Finset.sum_congr rfl fun A hA ↦ by rw [(mem_filter.mp hA).2] |
| 113 | _ = 0 := by rw [F_eq_zero, zero_smul] |
| 114 | |
| 115 | /-- Suppose `D.β` is the image of (1 + √−d₀)/2, and `c` sends the complex point of each `a` in the |
| 116 | closure `C` to `U.datumPoint 1 a`. Let `w` be a split finite place that is safe for `D.level` and at |
| 117 | which `D` is good, with residue field `k` of order `q = l ^ f`, and let `𝔭 ⊆ R` contain the image of |
| 118 | `w`. Let `u A`, for each subspace `A` of `k ^ n`, be maps from `C` to the base that translate the |
| 119 | complex points by the Hecke element `invHeckeIsogeny w A`. Then `u` satisfies the congruence |
| 120 | relation modulo `𝔭` (`New.Variety.CongruenceRelation`) with coefficients |
| 121 | `(-1) ^ r * q ^ (r.choose 2)` and `l`-power Frobenius exponents `(n - r) * f`, where `r` is the |
| 122 | dimension of `A`. -/ |
| 123 | lemma New.Variety.UniversalFamily.GraphClosure.congruenceRelation {E : Type} [Field E] [CMBase E] |
| 124 | {d₀ : ℕ} [HasQuadSubfield d₀ E] {R : Subalgebra (𝓞 E) E} {D : PEL E} |
| 125 | {U : UniversalFamily D R} (hβ : D.β = algebraMap (𝓞 (QuadField d₀)) (𝓞 E) (QuadField.betaK d₀)) |
| 126 | {ν : ℕ} [NeZero ν] {J : Type} [Finite J] {γ : J → nonZeroDivisors (𝓞 E) × GUPlus E D.Index} |
| 127 | (C : U.GraphClosure γ ν) |
| 128 | {c : C.scheme ⟶ (Over.map U.base.hom).obj |
| 129 | (ThetaFamily.fibrePower (NonzeroTorsion 1 D.Index ⊕ Fin ν))} |
| 130 | (hc : ∀ a : ModuliPoint E D.Index ν, C.point a ≫ c = U.datumPoint 1 a) {w : SplitFinPlace E} |
| 131 | (hw : IsSafe D.level w.val) (hD : D.IsGoodAt w.val.asIdeal) {𝔭 : Set R} |
| 132 | (h𝔭 : ∀ a ∈ w.val.asIdeal, algebraMap (𝓞 E) R a ∈ 𝔭) |
| 133 | {u : Submodule (ResField (E := E) w) (D.Index → ResField (E := E) w) → |
| 134 | (C.scheme ⟶ (Over.map U.base.hom).obj |
| 135 | (ThetaFamily.fibrePower (NonzeroTorsion 1 D.Index ⊕ Fin ν)))} |
| 136 | (hu : ∀ (A : Submodule (ResField (E := E) w) (D.Index → ResField (E := E) w)) |
| 137 | (a : ModuliPoint E D.Index ν), |
| 138 | C.point a ≫ u A = U.datumPoint 1 (a.act |
| 139 | ⟨invHeckeIsogeny w A, invHeckeIsogeny_mem_GUPlus w A⟩)) |
| 140 | {l f : ℕ} [Fact l.Prime] (hq : w.val.q = l ^ f) : |
| 141 | let r (A : Submodule (ResField w.val) (D.Index → ResField w.val)) : ℕ := |
| 142 | Module.finrank (ResField w.val) A |
| 143 | CongruenceRelation (fun A ↦ (-1) ^ r A * w.val.q ^ (r A).choose 2) 𝔭 l |
| 144 | (fun A ↦ (Fintype.card D.Index - r A) * f) u := by |
| 145 | intro r k h_field h_charP x hx |
| 146 | -- `x` comes from the residue field of a point `z`, and `z` is the centre of an arc `α` over a |
| 147 | -- valuation ring `V` of `ℂ`. By `along`, a map that sends the complex point of `b` to that of |
| 148 | -- `a` sends `α` to the `V`-point of `a`. |
| 149 | obtain ⟨z, ρ, rfl, -⟩ := exists_countable_residue_point C.scheme.hom x |
| 150 | obtain ⟨V, α, b, ρ', centre, along⟩ := C.exists_arc z |
| 151 | have hz_charP : CharP (C.scheme.left.residueField z) l := ρ.charP ρ.injective l |
| 152 | have hV_charP : CharP (ResidueField V) l := charP_of_injective_ringHom ρ'.injective l |
| 153 | -- the Frobenius twists of the reduced Hecke neighbours depend only on `A ⊔ W`, for some `W ≠ ⊥` |
| 154 | let twist (A : Submodule (ResField w.val) (D.Index → ResField w.val)) := |
| 155 | specMap ((iterateFrobenius (ResidueField V) l ((Fintype.card D.Index - r A) * f)).comp |
| 156 | (residue V)) ≫ α ≫ (u A).left |
| 157 | obtain ⟨W, hW, reduction⟩ : ∃ W ≠ ⊥, FactorsThrough twist (· ⊔ W) := by |
| 158 | -- the Frobenius exponents: `l ^ ((n - r A) * f) = q ^ (n - r A)` |
| 159 | refine U.exists_ne_bot_factorsThrough_sup hβ (along (hc b)) residue_surjective rfl ?_ hD hw |
| 160 | (fun A ↦ by dsimp only [r]; rw [pow_mul', ← hq, Fintype.card_fin]) fun A ↦ along (hu A b) |
| 161 | -- the centre of the arc lies above `w` |
| 162 | refine w.val.isMaximal.eq_of_le (ker_ne_top _) fun a ha ↦ ?_ |
| 163 | have hcw : c.left ≫ (U.family.fibrePower (NonzeroTorsion 1 D.Index ⊕ Fin ν)).hom ≫ |
| 164 | U.base.hom = C.scheme.hom := c.w |
| 165 | have hmap : (specMap (residue V) ≫ (α ≫ c.left) ≫ |
| 166 | (U.family.fibrePower (NonzeroTorsion 1 D.Index ⊕ Fin ν)).hom) ≫ |
| 167 | U.base.hom ≫ specMap (algebraMap (𝓞 E) R) = |
| 168 | (specMap ρ' ≫ C.scheme.left.fromSpecResidueField z ≫ C.scheme.hom) ≫ |
| 169 | specMap (algebraMap (𝓞 E) R) := by |
| 170 | rw [assoc, assoc, assoc, ← assoc (specMap (residue V)), ← centre, assoc, assoc, |
| 171 | ← assoc (U.family.fibrePower _).hom, ← assoc c.left, hcw, assoc] |
| 172 | rw [RingHom.mem_ker, ThetaObject.baseHom, hmap, preimage_comp, preimage_comp] |
| 173 | have h0 := hx _ (h𝔭 a ha) |
| 174 | rw [assoc, preimage_comp] at h0 |
| 175 | simp only [specMap, CommRingCat.hom_comp, RingHom.coe_comp, Function.comp_apply, |
| 176 | Spec.preimage_map, CommRingCat.hom_ofHom, map_eq_zero] at h0 ⊢ |
| 177 | exact h0 |
| 178 | refine (cancels_moebius_of_factorsThrough_sup hW reduction).mono fun A B hAB ↦ ?_ |
| 179 | -- Frobenius commutes with `ρ` and `ρ'`, and `Spec` of a field embedding is an epimorphism: the |
| 180 | -- equation descends from the residue field of `V` to that of `z` and goes up to `k`. |
| 181 | simp only [twist, specMap, ofHom_comp, Spec.map_comp, assoc] at hAB ⊢ |
| 182 | simp only [← reassoc_of% centre] at hAB |
| 183 | simp only [← Spec.map_comp_assoc, ← ofHom_comp, ← iterateFrobenius_comm] at hAB ⊢ |
| 184 | simp only [ofHom_comp, Spec.map_comp, assoc] at hAB ⊢ |
| 185 | exact congrArg (Spec.map (ofHom ρ) ≫ ·) ((cancel_epi (Spec.map (ofHom ρ'))).mp hAB) |
| 186 | |
| 187 | |
| 188 | /-- The tangent map at a fixed point. Let `c` send the complex point of `a` in the closure `C` to |
| 189 | that of `a` in the base (`U.datumPoint 1 a`), and let `v` send it to that of the translate |
| 190 | `a.act g α`. Suppose `z` in GL_n(E) relates this translate to `a` at level `D.level` (`IsLevelIso`), |
| 191 | the characteristic polynomial of `z` is separable, and `a.reflection` is the marked reflection |
| 192 | `markedReflection z μ` for the index `μ`. Then `localTerm α z.val.charpoly μ` is |
| 193 | `det (1 - X (dc)⁻¹ dv)` on the tangent space at the point of `a`, which has dimension |
| 194 | `card D.Index - 1 + ν * abelianDim E D.Index`, up to a constant factor |
| 195 | (`New.Variety.IsTangentPoly`). -/ |
| 196 | lemma New.Variety.UniversalFamily.GraphClosure.isTangentPoly_localTerm_of_translate |
| 197 | {E : Type} [Field E] [CMBase E] {R : Subalgebra (𝓞 E) E} |
| 198 | {D : PEL E} {U : UniversalFamily D R} {ν : ℕ} [NeZero ν] {J : Type} [Finite J] |
| 199 | {γ : J → nonZeroDivisors (𝓞 E) × GUPlus E D.Index} (C : U.GraphClosure γ ν) |
| 200 | {c v : C.scheme ⟶ (Over.map U.base.hom).obj |
| 201 | (ThetaFamily.fibrePower (NonzeroTorsion 1 D.Index ⊕ Fin ν))} |
| 202 | (hc : ∀ a : ModuliPoint E D.Index ν, C.point a ≫ c = U.datumPoint 1 a) {g : GUPlus E D.Index} |
| 203 | {α : Fin ν → 𝓞 E} (hv : ∀ a : ModuliPoint E D.Index ν, |
| 204 | C.point a ≫ v = U.datumPoint 1 (a.act g α)) |
| 205 | {a : ModuliPoint E D.Index ν} {z : GL D.Index E} {μ : D.Index} |
| 206 | (hz : z.val.charpoly.Separable) (h_reflection : a.reflection = markedReflection z μ) |
| 207 | (hrel : (a.act g α).IsLevelIso (levelGU D.Index D.level) z a) : |
| 208 | IsTangentPoly (Fintype.card D.Index - 1 + ν * abelianDim E D.Index) |
| 209 | ((algPoints (ℂ) (of R)).map c) ((algPoints (ℂ) (of R)).map v) ⟨C.point a⟩ |
| 210 | (localTerm α z.val.charpoly μ) := by |
| 211 | -- An analytic family `q ↦ f.ballPoint a.markedPoint q` passes through `a` at `q = 0`, and `z` |
| 212 | -- acts on it near `0` by a linear map `K`. The tangent space is the parameter space, by the |
| 213 | -- universal jet `σ`. |
| 214 | obtain ⟨f, hf⟩ := exists_isBallFamily a |
| 215 | obtain ⟨K, hK, hdet⟩ := hf.exists_linear_isLevelIso hz h_reflection hrel |
| 216 | obtain ⟨σ, hσ⟩ := (C.holomorphicAt_point a.markedPoint 0 hf.zero_mem).exists_isJet .id |
| 217 | -- `τ x` is the jet `σ` in the direction `x` |
| 218 | let τ (x : BallBase D.Index × (Fin ν → BallFibre E D.Index)) : |
| 219 | Spec (of (TrivSqZeroExt ℂ ℂ)) ⟶ C.scheme.left := |
| 220 | specMap (TrivSqZeroExt.map (.applyₗ x)).toRingHom ≫ σ |
| 221 | have jet (x : BallBase D.Index × (Fin ν → BallFibre E D.Index)) : |
| 222 | IsJet (fun q ↦ (C.point (f.ballPoint a.markedPoint q)).left) 0 (LinearMap.applyₗ x) (τ x) := |
| 223 | fun V s hV ↦ by |
| 224 | obtain ⟨hland, hval⟩ := hσ V s hV |
| 225 | refine ⟨hland.comp _, ?_⟩ |
| 226 | dsimp only [τ] |
| 227 | rw [PointFn.isRegularOn_ofSection s _ _ hland, hval] |
| 228 | change (TrivSqZeroExt.map (.applyₗ x)) (_ + _) = _ |
| 229 | simp only [map_add, TrivSqZeroExt.map_inl, TrivSqZeroExt.map_inr, LinearMap.id_apply, |
| 230 | LinearMap.applyₗ_apply_apply] |
| 231 | -- followed by `c`, it is the jet of the family in the base (`hc`) |
| 232 | have jet_c (x : BallBase D.Index × (Fin ν → BallFibre E D.Index)) : |
| 233 | IsJet (fun q ↦ (U.datumPoint 1 (f.ballPoint a.markedPoint q)).left) 0 (LinearMap.applyₗ x) |
| 234 | (τ x ≫ c.left) := |
| 235 | ((jet x).comp_hom c.left).congr |
| 236 | (.of_forall fun q ↦ congrArg Hom.left (hc (f.ballPoint a.markedPoint q))) |
| 237 | -- followed by `v`, it is the jet of the family moved by `K` (`hv`, and `z` near `0` by `hK`) |
| 238 | have jet_v (x : BallBase D.Index × (Fin ν → BallFibre E D.Index)) : |
| 239 | IsJet (fun q ↦ (U.datumPoint 1 (f.ballPoint a.markedPoint (K q))).left) 0 (LinearMap.applyₗ x) |
| 240 | (τ x ≫ v.left) := |
| 241 | ((jet x).comp_hom v.left).congr <| hK.mono fun q hq ↦ by |
| 242 | have h_pt : C.point (f.ballPoint a.markedPoint q) ≫ v = U.datumPoint 1 |
| 243 | (f.ballPoint a.markedPoint (K q)) := |
| 244 | (hv _).trans (datumPoint_eq_iff.mpr ⟨z, by simpa using hq⟩) |
| 245 | exact congrArg Hom.left h_pt |
| 246 | -- the tangent space at the point of `a` is the parameter space of the family, embedded by `σ`; |
| 247 | -- it remains to check its dimension and its base point, that `dc` is injective, and `dv = dc K` |
| 248 | refine ⟨.of ℂ _, ⟨homMk σ ((hσ.comp_base_eq fun _ ↦ w _).trans (map_comp ..).symm)⟩, K, ?_, ?_, |
| 249 | fun x y hxy ↦ ?_, fun x ↦ up_inj.mpr (OverMorphism.ext ?_), hdet⟩ |
| 250 | · simp [finrank_eq_abelianDim (f.torus 0).realEquiv, Module.finrank_pi_fintype] |
| 251 | · -- the jet `σ` lies over the point of `f.ballPoint a.markedPoint 0 = a` |
| 252 | refine congrArg ULift.up (OverMorphism.ext (hσ.fst_comp.trans ?_)) |
| 253 | rw [hf.ballPoint_zero] |
| 254 | · -- Equal jets give equal derivatives, so the family is constant to first order in the |
| 255 | -- direction `x - y`; it is immersed in the base. |
| 256 | have same : τ x ≫ c.left = τ y ≫ c.left := congr($hxy.1.left) |
| 257 | have imm : IsHolomorphicImmersionAt (fun q ↦ |
| 258 | (U.datumPoint 1 (f.ballPoint a.markedPoint q)).left) 0 := |
| 259 | U.isHolomorphicImmersionAt_datumPoint 0 hf.zero_mem |
| 260 | refine sub_eq_zero.mp (imm.2 _ (isFirstOrderConst_iff.mpr fun V s hV ↦ ?_)) |
| 261 | have value_x := (jet_c x V s hV).2 |
| 262 | rw [same, (jet_c y V s hV).2] at value_x |
| 263 | have hsnd := congrArg TrivSqZeroExt.snd value_x.symm |
| 264 | simp only [TrivSqZeroExt.snd_add, TrivSqZeroExt.snd_inl, TrivSqZeroExt.snd_inr, zero_add, |
| 265 | LinearMap.applyₗ_apply_apply] at hsnd |
| 266 | rw [map_sub, sub_eq_zero] |
| 267 | exact hsnd |
| 268 | · -- By the chain rule, both sides are the jet of `q ↦ f.ballPoint a.markedPoint (K q)` in the |
| 269 | -- direction `x`. |
| 270 | let K' := ContinuousLinearMap.mk K |
| 271 | have h0 : K' 0 = 0 := map_zero K' |
| 272 | have chain : IsJet (fun q ↦ (U.datumPoint 1 (f.ballPoint a.markedPoint (K q))).left) 0 |
| 273 | (LinearMap.applyₗ x) (τ (K x) ≫ c.left) := |
| 274 | (isJet_comp_iff K'.hasFDerivAt |
| 275 | (U.isHolomorphicImmersionAt_datumPoint _ (by rw [h0]; exact hf.zero_mem)).1).mpr |
| 276 | (by rw [h0]; exact jet_c (K x)) |
| 277 | exact (jet_v x).unique chain |
| 278 | |
| 279 | /-- Two moduli points `a` and `b` with the same complex point in the base (`hab`) have the same |
| 280 | complex point in the closure `C` after `a` is translated by `κ⁻¹` for some `κ` in |
| 281 | `levelGU D.Index D.level`. -/ |
| 282 | lemma New.Variety.UniversalFamily.GraphClosure.exists_point_act_eq {E : Type} [Field E] [CMBase E] |
| 283 | {R : Subalgebra (𝓞 E) E} {D : PEL E} {U : UniversalFamily D R} {ν : ℕ} |
| 284 | {J : Type} [Finite J] {γ : J → nonZeroDivisors (𝓞 E) × GUPlus E D.Index} |
| 285 | (C : U.GraphClosure γ ν) {a b : ModuliPoint E D.Index ν} |
| 286 | (hab : U.datumPoint 1 a = U.datumPoint 1 b) : |
| 287 | ∃ κ : levelGU D.Index D.level, |
| 288 | C.point (a.act ⟨↑κ⁻¹, mem_GUPlus_of_mem_levelGU κ⁻¹.property⟩) = C.point b := by |
| 289 | -- `z` is an isomorphism of level `D.level` from `a` to `b`. Its level condition gives `κ`; after |
| 290 | -- translating `a` by `κ⁻¹`, `z` is an isomorphism of every level, in particular of the level |
| 291 | -- `𝔫` at which the points of `C` are determined. |
| 292 | obtain ⟨z, hz⟩ := datumPoint_eq_iff.mp hab |
| 293 | obtain ⟨𝔫, h_point_eq⟩ := C.exists_level_point_eq |
| 294 | exact ⟨⟨_, hz.mem_level.1⟩, h_point_eq |
| 295 | { mem_level := by |
| 296 | simp only [act, Subgroup.coe_inv, ← mul_assoc, mul_inv_cancel, one_mem] |
| 297 | reflection_eq := hz.reflection_eq |
| 298 | sub_mem_lattice := fun i ↦ by |
| 299 | simp only [act, Pi.one_apply, map_one, one_smul] |
| 300 | exact hz.sub_mem_lattice i }⟩ |
| 301 | |
| 302 | /-- Two translates of a moduli point give the same point whenever their frames differ by level. -/ |
| 303 | private lemma New.Variety.datumPoint_act_eq_of_level {E : Type} [Field E] [CMBase E] |
| 304 | {R : Subalgebra (𝓞 E) E} {D : PEL E} (U : UniversalFamily D R) {ν : ℕ} |
| 305 | (a : ModuliPoint E D.Index ν) (M : nonZeroDivisors (𝓞 E)) (g h : GUPlus E D.Index) |
| 306 | (hg : h.val⁻¹ * g.val ∈ levelGU D.Index D.level ⊓ levelGU D.Index M) : |
| 307 | U.datumPoint M (a.act g) = U.datumPoint M (a.act h) := by |
| 308 | refine datumPoint_eq_iff.2 ⟨1, ?_, by simp only [act, ratConj, map_one, one_smul], fun i ↦ ?_⟩ |
| 309 | · simpa only [act, map_one, mul_one, mul_inv_rev, mul_assoc, inv_mul_cancel_left] using hg |
| 310 | · rw [act, act, realVecAction, Units.val_one, Matrix.map_one _ (map_zero _) (map_one _), |
| 311 | Matrix.mulVecLin_apply, Matrix.one_mulVec, sub_self] |
| 312 | exact zero_mem _ |
| 313 | |
| 314 | /-- A map `f` from the closure `C` to the base that translates the complex points by `g` is |
| 315 | determined by the coset of `g` modulo `levelGU D.Index D.level`: there is one map `u` on all cosets |
| 316 | with `f = u ⟦g⟧` for every such `f`. The map `c` witnesses that maps to the base exist. -/ |
| 317 | lemma New.Variety.UniversalFamily.GraphClosure.exists_forall_eq_apply_mk_of_translate {E : Type} |
| 318 | [Field E] [CMBase E] {R : Subalgebra (𝓞 E) E} {D : PEL E} {U : UniversalFamily D R} {ν : ℕ} |
| 319 | {J : Type} [Finite J] {γ : J → nonZeroDivisors (𝓞 E) × GUPlus E D.Index} |
| 320 | (C : U.GraphClosure γ ν) |
| 321 | (c : C.scheme ⟶ (Over.map U.base.hom).obj |
| 322 | (ThetaFamily.fibrePower (X := U.family) (NonzeroTorsion (E := E) 1 D.Index ⊕ Fin ν))) : |
| 323 | ∃ u : (GL D.Index (𝔸f E) ⧸ levelGU D.Index D.level) → |
| 324 | (C.scheme ⟶ (Over.map U.base.hom).obj |
| 325 | (ThetaFamily.fibrePower (X := U.family) (NonzeroTorsion (E := E) 1 D.Index ⊕ Fin ν))), |
| 326 | ∀ {g : GL D.Index (𝔸f E)} |
| 327 | {f : C.scheme ⟶ (Over.map U.base.hom).obj |
| 328 | (ThetaFamily.fibrePower (X := U.family) (NonzeroTorsion (E := E) 1 D.Index ⊕ Fin ν))} |
| 329 | (hg : g ∈ GUPlus E D.Index), |
| 330 | (∀ a : ModuliPoint E D.Index ν, C.point a ≫ f = U.datumPoint 1 (a.act ⟨g, hg⟩)) → |
| 331 | f = u ⟦g⟧ := by |
| 332 | -- the legs: maps `f` that translate complex points by some `g` |
| 333 | let Leg := Σ' (g : GUPlus E D.Index) |
| 334 | (f : C.scheme ⟶ (Over.map U.base.hom).obj |
| 335 | (ThetaFamily.fibrePower (X := U.family) (NonzeroTorsion (E := E) 1 D.Index ⊕ Fin ν))), |
| 336 | ∀ a : ModuliPoint E D.Index ν, C.point a ≫ f = U.datumPoint 1 (a.act g) |
| 337 | -- two legs whose `g` have the same coset agree on all complex points, hence are equal |
| 338 | have factors : |
| 339 | FactorsThrough (fun p : Leg ↦ p.snd.fst) fun p : Leg ↦ |
| 340 | (p.fst.val : GL D.Index (𝔸f E) ⧸ levelGU D.Index D.level) := by |
| 341 | rintro ⟨⟨g, hg⟩, f, hf⟩ ⟨⟨g', hg'⟩, f', hf'⟩ hpq |
| 342 | refine C.isSeparatingFamily.hom_ext fun a ↦ ?_ |
| 343 | rw [hf, hf'] |
| 344 | apply datumPoint_act_eq_of_level |
| 345 | rw [OneMemClass.coe_one, levelGU_inf_one] |
| 346 | exact QuotientGroup.eq.mp hpq.symm |
| 347 | have h_nonempty : Nonempty (C.scheme ⟶ (Over.map U.base.hom).obj |
| 348 | (ThetaFamily.fibrePower (X := U.family) (NonzeroTorsion (E := E) 1 D.Index ⊕ Fin ν))) := ⟨c⟩ |
| 349 | obtain ⟨u, hu⟩ := (factorsThrough_iff _).mp factors |
| 350 | exact ⟨u, fun hg h ↦ congrFun hu ⟨⟨_, hg⟩, _, h⟩⟩ |
| 351 | |
| 352 | /-- Maps from a subring `R` of a number field that contains the integers to fields of |
| 353 | characteristic zero are injective, as `R` is algebraic over `ℤ`. -/ |
| 354 | lemma New.Variety.injective_of_subalgebra_of_charZero {E : Type*} [Field E] [NumberField E] |
| 355 | (R : Subalgebra (𝓞 E) E) (k : Type*) [Field k] [CharZero k] (f : R →+* k) : |
| 356 | Function.Injective f := by |
| 357 | -- `E` is algebraic over `ℤ` through `𝓞 E`, hence so is its subring `R`; a map from an algebraic |
| 358 | -- `ℤ`-algebra to a field of characteristic zero is injective |
| 359 | let algebra_R_k : Algebra R k := f.toAlgebra |
| 360 | have h_alg_E : Algebra.IsAlgebraic ℤ E := IsAlgebraic.trans ℤ (𝓞 E) E |
| 361 | have h_alg_R : Algebra.IsAlgebraic ℤ R := h_alg_E.tower_bot_of_injective Subtype.val_injective |
| 362 | exact h_alg_R.injective_tower_top R Int.cast_injective |
| 363 | |
| 364 | namespace New.Variety |
| 365 | |
| 366 | section TowerHelpers |
| 367 | |
| 368 | variable {E : Type} [Field E] [CMBase E] {R : Subalgebra (𝓞 E) E} |
| 369 | {D : PEL E} {U : UniversalFamily D R} {ν : ℕ} |
| 370 | |
| 371 | private lemma ModuliPoint.act_eq_self {n : Type} [Fintype n] [DecidableEq n] |
| 372 | (a : ModuliPoint E n ν) {g : GUPlus E n} (hg : g.val = 1) : a.act g = a := by |
| 373 | cases a |
| 374 | simp only [act, hg, mul_one, Pi.one_apply, map_one, one_smul] |
| 375 | |
| 376 | private lemma ModuliPoint.act_mul {n : Type} [Fintype n] [DecidableEq n] |
| 377 | (a : ModuliPoint E n ν) (g h : GUPlus E n) : (a.act g).act h = a.act (g * h) := by |
| 378 | simp only [act, Submonoid.coe_mul, mul_assoc, Pi.one_apply, map_one, one_smul] |
| 379 | |
| 380 | /-- The finite quotient of `levelGU D.Index D.level` by the normal core of its subgroup of level |
| 381 | `M`: the deck group of a cover of the tower in `New.Variety.exists_model`. -/ |
| 382 | private abbrev TowerQuot (D : PEL E) (M : nonZeroDivisors (𝓞 E)) : Type := |
| 383 | levelGU D.Index D.level ⧸ ((levelGU D.Index (M : 𝓞 E)).subgroupOf |
| 384 | (levelGU D.Index D.level)).normalCore |
| 385 | |
| 386 | open scoped Classical in |
| 387 | /-- The pairs `(𝔪, κ * g)` that define the cover of level `i` in `New.Variety.exists_model`: `κ` |
| 388 | runs over `New.Variety.TowerQuot D M` (through the chosen representative `out`) and `(𝔪, g)` over |
| 389 | `i`, `(1, 1)` and `(M, 1)`. -/ |
| 390 | private noncomputable abbrev towerPairs (D : PEL E) (M : nonZeroDivisors (𝓞 E)) |
| 391 | (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E D.Index)) |
| 392 | (j : TowerQuot D M × ↥(insert (M, 1) (insert 1 i))) : |
| 393 | nonZeroDivisors (𝓞 E) × GUPlus E D.Index := |
| 394 | (j.2.val.1, ⟨_, mem_GUPlus_of_mem_levelGU j.1.out.property⟩ * j.2.val.2) |
| 395 | |
| 396 | open scoped Classical in |
| 397 | /-- On the cover `C` of level `i` with pairs `New.Variety.towerPairs D M i`, the factor `(⟦κ⟧, x)` |
| 398 | of the point of `a` may be computed with the representative `κ` instead of the chosen one: the two |
| 399 | differ by an element of level `M`, which `hM` conjugates into the level of every pair. -/ |
| 400 | private lemma UniversalFamily.GraphClosure.point_comp_proj_towerPairs |
| 401 | {M : nonZeroDivisors (𝓞 E)} {i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E D.Index)} |
| 402 | (hM : ∀ x ∈ insert (M, 1) (insert 1 i), ∀ k ∈ levelGU D.Index (M : 𝓞 E), |
| 403 | (x.2 : GL D.Index (𝔸f E))⁻¹ * k * x.2 ∈ levelGU D.Index D.level ⊓ levelGU D.Index x.1) |
| 404 | (C : U.GraphClosure (towerPairs D M i) ν) {a : ModuliPoint E D.Index ν} |
| 405 | (x : ↥(insert (M, 1) (insert 1 i))) (κ : levelGU D.Index D.level) : |
| 406 | C.point a ≫ C.proj (⟦κ⟧, x) = |
| 407 | U.datumPoint x.val.1 (a.act (⟨κ, mem_GUPlus_of_mem_levelGU κ.property⟩ * x.val.2)) := by |
| 408 | -- `κ⁻¹` times the chosen representative of `⟦κ⟧` has level `M` |
| 409 | have h_deep : (κ.val⁻¹ * (κ : TowerQuot D M).out) ∈ levelGU D.Index (M : 𝓞 E) := by |
| 410 | have h := Subgroup.normalCore_le _ (QuotientGroup.eq.1 (κ : TowerQuot D M).out_eq.symm) |
| 411 | rw [Subgroup.mem_subgroupOf, Subgroup.coe_mul, Subgroup.coe_inv] at h |
| 412 | exact h |
| 413 | rw [point_comp_proj] |
| 414 | apply datumPoint_act_eq_of_level |
| 415 | simpa only [towerPairs, Submonoid.coe_mul, mul_inv_rev, mul_assoc] using hM _ x.property _ h_deep |
| 416 | |
| 417 | open scoped Classical in |
| 418 | /-- The element `κ` of `levelGU D.Index D.level` acts on the cover `C` of level `i` by a map `p` |
| 419 | that permutes the factors, `(q, x) ↦ (κ⁻¹ q, x)`, and translates complex points by `κ⁻¹`. -/ |
| 420 | private lemma UniversalFamily.GraphClosure.exists_deck_towerPairs |
| 421 | {M : nonZeroDivisors (𝓞 E)} {i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E D.Index)} |
| 422 | (hM : ∀ x ∈ insert (M, 1) (insert 1 i), ∀ k ∈ levelGU D.Index (M : 𝓞 E), |
| 423 | (x.2 : GL D.Index (𝔸f E))⁻¹ * k * x.2 ∈ levelGU D.Index D.level ⊓ levelGU D.Index x.1) |
| 424 | (C : U.GraphClosure (towerPairs D M i) ν) (κ : levelGU D.Index D.level) : |
| 425 | ∃ p : C.scheme ⟶ C.scheme, |
| 426 | (∀ j : TowerQuot D M × ↥(insert (M, 1) (insert 1 i)), |
| 427 | p ≫ C.proj j = C.proj (κ⁻¹ * j.1, j.2)) ∧ |
| 428 | ∀ a : ModuliPoint E D.Index ν, |
| 429 | C.point a ≫ p = C.point (a.act ⟨↑κ⁻¹, mem_GUPlus_of_mem_levelGU κ⁻¹.property⟩) := |
| 430 | C.exists_lift _ _ fun a j ↦ by |
| 431 | rw [← j.1.out_eq, ← QuotientGroup.mk_mul, C.point_comp_proj_towerPairs hM] |
| 432 | refine congrArg (U.datumPoint j.2.val.1) ?_ |
| 433 | rw [act_mul, ← mul_assoc] |
| 434 | rfl |
| 435 | |
| 436 | open scoped Classical in |
| 437 | /-- The deck maps `p κ` act freely on complex points: if `p κ` and `p κ'` agree at the point of `x`, |
| 438 | then `κ` and `κ'` have the same class in `New.Variety.TowerQuot D M`. Compare the factors |
| 439 | `(⟦κ * q⁻¹⟧, (M, 1))`: the isomorphism between the two translates is an automorphism of level |
| 440 | `D.level`, hence trivial as the level is neat. -/ |
| 441 | private lemma UniversalFamily.GraphClosure.eq_of_point_comp_deck_eq |
| 442 | (hN : IsNeat D.Index D.level) {M : nonZeroDivisors (𝓞 E)} |
| 443 | {i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E D.Index)} |
| 444 | (hM : ∀ x ∈ insert (M, 1) (insert 1 i), ∀ k ∈ levelGU D.Index (M : 𝓞 E), |
| 445 | (x.2 : GL D.Index (𝔸f E))⁻¹ * k * x.2 ∈ levelGU D.Index D.level ⊓ levelGU D.Index x.1) |
| 446 | (C : U.GraphClosure (towerPairs D M i) ν) {p : levelGU D.Index D.level → (C.scheme ⟶ C.scheme)} |
| 447 | (hp : ∀ (κ : levelGU D.Index D.level) (a : ModuliPoint E D.Index ν), |
| 448 | C.point a ≫ p κ = C.point (a.act ⟨↑κ⁻¹, mem_GUPlus_of_mem_levelGU κ⁻¹.property⟩)) |
| 449 | {x : ModuliPoint E D.Index ν} {κ κ' : levelGU D.Index D.level} |
| 450 | (h_eq : C.point x ≫ p κ = C.point x ≫ p κ') : |
| 451 | (κ : TowerQuot D M) = κ' := by |
| 452 | refine QuotientGroup.eq.2 fun q ↦ ?_ |
| 453 | rw [hp, hp] at h_eq |
| 454 | obtain ⟨z, hz⟩ := datumPoint_eq_iff.1 |
| 455 | (by simpa only [C.point_comp_proj_towerPairs hM] using |
| 456 | h_eq =≫ C.proj ⟨⟦κ * q⁻¹⟧, _, mem_insert_self ..⟩) |
| 457 | obtain ⟨h_level_𝔑, h_level_M⟩ := Subgroup.mem_inf.mp hz.mem_level |
| 458 | simp only [act, mul_one, Subgroup.coe_mul, Subgroup.coe_inv, mul_inv_rev, inv_inv, mul_assoc, |
| 459 | inv_mul_cancel_left] at h_level_𝔑 h_level_M |
| 460 | have h_aut : x.frame⁻¹ * toFinGL z * x.frame ∈ levelGU D.Index D.level := by |
| 461 | have h1 : q.val * (κ.val⁻¹ * (κ'.val * (x.frame⁻¹ * (toFinGL z * x.frame)))) ∈ |
| 462 | levelGU D.Index D.level := by |
| 463 | simpa only [mul_assoc, inv_mul_cancel, mul_one] using mul_mem h_level_𝔑 q.property |
| 464 | have h2 := (mul_mem_cancel_left q.property).mp h1 |
| 465 | have h3 := (mul_mem_cancel_left (inv_mem κ.property)).mp h2 |
| 466 | have h4 := (mul_mem_cancel_left κ'.property).mp h3 |
| 467 | rwa [mul_assoc] |
| 468 | obtain rfl : z = 1 := hN.eq_one_of_mem_levelGU x.isSignedFrame h_aut hz.reflection_eq |
| 469 | simp only [map_one, one_mul, inv_mul_cancel_left] at h_level_M |
| 470 | rw [Subgroup.mem_subgroupOf] |
| 471 | simpa only [Subgroup.coe_mul, Subgroup.coe_inv, mul_assoc] using h_level_M |
| 472 | |
| 473 | open scoped Classical in |
| 474 | /-- Let `deck` be an action of `New.Variety.TowerQuot D M` on `C` such that `deck ⟦κ⟧` translates |
| 475 | `C.point a` by `κ⁻¹`. Let `leg` be a `deck`-invariant map from `C` to the base that sends |
| 476 | `C.point a` to `U.datumPoint 1 a`. Then `leg` is a Galois covering (`New.Variety.IsGaloisCovering`) |
| 477 | for `deck`: its image is closed and contains the dense points `U.datumPoint 1 a`, and `deck` acts |
| 478 | simply transitively on complex fibers. -/ |
| 479 | private lemma UniversalFamily.GraphClosure.isGaloisCovering_towerCover [NeZero ν] |
| 480 | (hN : IsNeat D.Index D.level) {M : nonZeroDivisors (𝓞 E)} |
| 481 | {i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E D.Index)} |
| 482 | (hM : ∀ x ∈ insert (M, 1) (insert 1 i), ∀ k ∈ levelGU D.Index (M : 𝓞 E), |
| 483 | (x.2 : GL D.Index (𝔸f E))⁻¹ * k * x.2 ∈ levelGU D.Index D.level ⊓ levelGU D.Index x.1) |
| 484 | (C : U.GraphClosure (towerPairs D M i) ν) |
| 485 | {deck : TowerQuot D M →* End C.scheme} |
| 486 | (pt_deck : ∀ (κ : levelGU D.Index D.level) (a : ModuliPoint E D.Index ν), |
| 487 | C.point a ≫ (deck ⟦κ⟧).asHom = |
| 488 | C.point (a.act ⟨↑κ⁻¹, mem_GUPlus_of_mem_levelGU κ⁻¹.property⟩)) |
| 489 | (dense : IsDenseFamily fun a : ModuliPoint E D.Index ν ↦ (U.datumPoint 1 a).left) |
| 490 | {leg : C.scheme ⟶ (Over.map U.base.hom).obj |
| 491 | (ThetaFamily.fibrePower (NonzeroTorsion 1 D.Index ⊕ Fin ν))} |
| 492 | (h_pt : ∀ a : ModuliPoint E D.Index ν, C.point a ≫ leg = U.datumPoint 1 a) |
| 493 | (h_inv : ∀ κ : levelGU D.Index D.level, (deck ⟦κ⟧).asHom ≫ leg = leg) : |
| 494 | IsGaloisCovering (Δ := FiniteGrp.of (TowerQuot D M)) leg deck := by |
| 495 | refine isGaloisCovering_of_complex_points (injective_of_subalgebra_of_charZero R) |
| 496 | (Quot.ind h_inv) ?_ ?_ |
| 497 | · -- Its image is closed and contains the dense points `U.datumPoint 1 a`. |
| 498 | exact dense.surjective _ _ fun a ↦ congr($(h_pt a).1) |
| 499 | · -- The deck group acts simply transitively on fibers; every complex point is some `C.point x`. |
| 500 | refine (C.point_surjective h_pt).forall₂.2 fun x y h ↦ ?_ |
| 501 | rw [h_pt, h_pt] at h |
| 502 | obtain ⟨κ, hκ⟩ := C.exists_point_act_eq h |
| 503 | rw [← pt_deck] at hκ |
| 504 | exact ⟨⟦κ⟧, hκ, Quot.ind fun κ' hκ' ↦ |
| 505 | C.eq_of_point_comp_deck_eq hN hM pt_deck (hκ'.trans hκ.symm)⟩ |
| 506 | |
| 507 | end TowerHelpers |
| 508 | |
| 509 | end New.Variety |
| 510 | |
| 511 | /-- Let `U` be a universal family over `R` for the PEL data `D` (`New.Variety.UniversalFamily`), |
| 512 | where `E` contains ℚ(√−d₀) with d₀ ≡ 3 mod 4. Suppose that `D.level` is neat and that `D.β` is the |
| 513 | image of (1 + √−d₀)/2. Suppose also that `D` is good (`New.PEL.IsGoodAt`) at every finite place `w` |
| 514 | that is safe for `D.level`, meaning that the place of ℚ(√−d₀) below `w` is split and prime to the |
| 515 | discriminant, and that `D.level` lies neither in `w` nor in any place above its conjugate. Then for |
| 516 | every ν ≠ 0 there is a model `New.Variety.Model D.Index d₀ D.level ν R`, that is, a tower of |
| 517 | Kuga–Sato varieties over `R` with base `base`, schemes `cover i` and legs `leg` to the base, finite |
| 518 | deck groups `deckGroup i`, maps `mulMap` and complex points, satisfying the listed properties. -/ |
| 519 | lemma New.Variety.exists_model {E : Type} [Field E] [CMBase E] |
| 520 | {d₀ : ℕ} [HasQuadSubfield d₀ E] {R : Subalgebra (𝓞 E) E} {D : PEL E} (U : UniversalFamily D R) |
| 521 | (hN : IsNeat D.Index D.level) (hβ : D.β = algebraMap (𝓞 (QuadField d₀)) (𝓞 E) |
| 522 | (QuadField.betaK d₀)) |
| 523 | (hG : ∀ w : FinPlace E, IsSafe D.level w → D.IsGoodAt w.asIdeal) (ν : ℕ) [NeZero ν] : |
| 524 | Nonempty (Model D.Index d₀ D.level ν R) := by |
| 525 | classical |
| 526 | -- The cover of level `i` is the closure `C i` of the tuples of complex points translated by |
| 527 | -- `κ * g`, with `κ` in the finite quotient `New.Variety.TowerQuot D (M i)` of |
| 528 | -- `levelGU D.Index D.level` and `(𝔪, g)` in `i` or equal to `(1, 1)` or `(M i, 1)` |
| 529 | -- (`New.Variety.towerPairs`). All maps between covers are lifts of translations of points, and |
| 530 | -- are determined by them. `M i` is chosen so that `g⁻¹ K(M i) g ⊆ K(𝔑) ∩ K(𝔪)` for all these |
| 531 | -- `(𝔪, g)`. |
| 532 | choose M hM using exists_level_conj_mem (n := D.Index) hN.ne_zero |
| 533 | -- The base is the fibre power at level `1`: smooth, with dense complex points, and `m α` |
| 534 | -- multiplies the marked points by `α`. |
| 535 | obtain ⟨smooth, dense, m, hm⟩ := U.smooth_and_isDenseFamily_and_exists_comp_eq_act ν |
| 536 | obtain ⟨C⟩ : Nonempty (∀ i, U.GraphClosure (towerPairs D (M i) i) ν) := inferInstance |
| 537 | -- `κ` acts on `C i` by permuting the factors: this is the deck transformation `p κ` |
| 538 | choose p p_proj pt_p using fun {i} ↦ (C i).exists_deck_towerPairs (hM i) |
| 539 | -- the legs `u i`, and the set `s i` of the `g` for which `u i ⟦g⟧` translates points by `g` |
| 540 | have pt_base (i) (a : ModuliPoint E D.Index ν) : |
| 541 | (C i).point a ≫ (C i).proj ⟨⟦1⟧, 1, by simp⟩ = U.datumPoint 1 a := by |
| 542 | rw [(C i).point_comp_proj_towerPairs (hM i)] |
| 543 | exact congrArg (U.datumPoint 1) (act_eq_self a (by simp only [Subgroup.coe_one, Prod.snd_one, |
| 544 | mul_one])) |
| 545 | choose u eq_u using fun i ↦ |
| 546 | (C i).exists_forall_eq_apply_mk_of_translate ((C i).proj ⟨⟦1⟧, 1, by simp⟩) |
| 547 | let s i := {g | ∃ hg, ∀ a, (C i).point a ≫ u i ⟦g⟧ = U.datumPoint 1 (a.act ⟨g, hg⟩)} |
| 548 | have mem_s {i g f} (hg : g ∈ GUPlus E D.Index) |
| 549 | (h : ∀ a, (C i).point a ≫ f = U.datumPoint 1 (a.act ⟨g, hg⟩)) : g ∈ s i := |
| 550 | ⟨hg, by rwa [← eq_u i hg h]⟩ |
| 551 | have one_mem_s i : 1 ∈ s i := |
| 552 | mem_s (one_mem _) fun a ↦ |
| 553 | (pt_base i a).trans (congrArg (U.datumPoint 1) (act_eq_self a rfl).symm) |
| 554 | have pt_u_one {i} a : (C i).point a ≫ u i ⟦1⟧ = U.datumPoint 1 a := |
| 555 | ((one_mem_s i).2 a).trans (congrArg (U.datumPoint 1) (act_eq_self a rfl)) |
| 556 | have comp_u {g hg i j f} (h : ∀ a, (C i).point a ≫ f = (C j).point (a.act ⟨g, hg⟩)) q |
| 557 | (hq : q ∈ s j) : f ≫ u j ⟦q⟧ = u i ⟦g * q⟧ := |
| 558 | eq_u i (mul_mem hg hq.1) fun a ↦ by |
| 559 | rw [← assoc, h, hq.2, act_mul] |
| 560 | rfl |
| 561 | -- `p` is a homomorphism, trivial on the normal core, so the finite group `TowerQuot D (M i)` acts |
| 562 | let deck i : TowerQuot D (M i) →* End (C i).scheme := QuotientGroup.lift _ |
| 563 | ⟨⟨fun κ ↦ .of (p κ), End.ext <| (C i).isSeparatingFamily.hom_ext fun a ↦ by |
| 564 | change (C i).point a ≫ p 1 = (C i).point a ≫ 𝟙 _ |
| 565 | rw [Category.comp_id, pt_p] |
| 566 | exact congrArg (C i).point (act_eq_self a (by simp only [inv_one, Subgroup.coe_one]))⟩, |
| 567 | fun κ₁ κ₂ ↦ |
| 568 | have hg : (⟨↑(κ₁ * κ₂)⁻¹, mem_GUPlus_of_mem_levelGU (κ₁ * κ₂)⁻¹.2⟩ : GUPlus E D.Index) = |
| 569 | ⟨↑κ₂⁻¹, mem_GUPlus_of_mem_levelGU κ₂⁻¹.property⟩ * |
| 570 | ⟨↑κ₁⁻¹, mem_GUPlus_of_mem_levelGU κ₁⁻¹.property⟩ := |
| 571 | Subtype.ext (by simp only [Submonoid.coe_mul, Subgroup.coe_inv, Subgroup.coe_mul, |
| 572 | mul_inv_rev]) |
| 573 | End.ext <| (C i).isSeparatingFamily.hom_ext fun a ↦ by |
| 574 | change (C i).point a ≫ p (κ₁ * κ₂) = (C i).point a ≫ (p κ₂ ≫ p κ₁) |
| 575 | rw [pt_p, ← assoc, pt_p, pt_p, act_mul, hg]⟩ |
| 576 | fun κ hκ ↦ End.ext <| (C i).hom_ext fun j ↦ by |
| 577 | change p κ ≫ (C i).proj j = 𝟙 _ ≫ (C i).proj j |
| 578 | rw [p_proj, Category.id_comp, (QuotientGroup.eq_one_iff κ⁻¹).2 (inv_mem hκ), one_mul] |
| 579 | exact ⟨{ base := _ |
| 580 | cover i := (C i).scheme |
| 581 | legIndices := s |
| 582 | leg := u |
| 583 | one_mem := one_mem_s |
| 584 | eventually_translate {g} j hg := by |
| 585 | -- translation by `g` lifts once `i` contains the `g`-translates of all pairs |
| 586 | refine (eventually_all.2 fun x ↦ eventually_finset_mem_atTop |
| 587 | ((towerPairs D (M j) j x).1, (⟨g, hg⟩ * (towerPairs D (M j) j x).2 :))).mono |
| 588 | fun i hi ↦ ?_ |
| 589 | obtain ⟨f, -, hf⟩ := |
| 590 | (C j).exists_lift (C' := C i) (·.act ⟨g, hg⟩) |
| 591 | (fun x ↦ (C i).proj ⟨⟦1⟧, _, mem_insert_of_mem (mem_insert_of_mem (hi x))⟩) |
| 592 | fun a x ↦ by |
| 593 | rw [(C i).point_comp_proj_towerPairs (hM i), act_mul] |
| 594 | exact congrArg (U.datumPoint _) (congrArg a.act (one_mul _)) |
| 595 | exact ⟨mem_s (f := f ≫ u j ⟦1⟧) hg fun a ↦ by rw [← assoc, hf, pt_u_one], f, |
| 596 | comp_u hf⟩ |
| 597 | deckGroup i := .of (TowerQuot D (M i)) |
| 598 | deck := deck |
| 599 | deck_comp_leg i := Quot.ind fun κ ↦ ⟨κ⁻¹, comp_u (pt_p κ)⟩ |
| 600 | mulMap := m |
| 601 | point i := (C i).point |
| 602 | point_surjective i := (C i).point_surjective pt_u_one |
| 603 | point_eq_iff i a b := by |
| 604 | rw [pt_u_one, pt_u_one, datumPoint_eq_iff, OneMemClass.coe_one, levelGU_inf_one] |
| 605 | point_leg g α a h := by rw [← assoc, h.2, hm, pt_u_one] |
| 606 | dimension := _ |
| 607 | smooth := smooth |
| 608 | covering i := (C i).isGaloisCovering_towerCover hN (hM i) pt_p dense pt_u_one |
| 609 | fun κ ↦ |
| 610 | -- `u i ⟦1⟧` is invariant under the deck group. |
| 611 | (comp_u (pt_p κ) 1 (one_mem_s i)).trans (congrArg (u i) (QuotientGroup.eq.mpr |
| 612 | (by rw [mul_one, mul_one, Subgroup.coe_inv, inv_inv]; exact κ.property))) |
| 613 | tangent i g α a z μ h := |
| 614 | (C i).isTangentPoly_localTerm_of_translate pt_u_one fun a ↦ by |
| 615 | rw [← assoc, h.2, hm] |
| 616 | congruence w hw i 𝔭 h𝔭 hs l f _ hq := |
| 617 | (C i).congruenceRelation hβ pt_u_one hw (hG _ hw) h𝔭 (fun A ↦ (hs A).2) hq }⟩ |