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.AlgebraicGeometry.Morphisms.WeaklyEtale |
| 4 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 5 | import Mathlib.CategoryTheory.EffectiveEpi.Comp |
| 6 | import Mathlib.RingTheory.PiTensorProduct |
| 7 | public import Lib.General.Geometry.ProjectiveSpace |
| 8 | public import Lib.Shimura.AbelianScheme.Basic |
| 9 | |
| 10 | /-! |
| 11 | # Lifts of morphisms to sections of line bundles, and theta structures on abelian schemes |
| 12 | |
| 13 | A morphism `f : X' → X` and an isomorphism `f^* L ≅ L'` induce a map on global sections |
| 14 | `Φ : H⁰(L) → H⁰(L')`. Over a local ring `R`, these maps let translations of an abelian scheme act on |
| 15 | sections of a line bundle. For a theta structure on `N` indexed by a group `H`, it also gives a |
| 16 | bound on the exponent of `K([N])`, under further hypotheses. |
| 17 | |
| 18 | ## Main definitions and results |
| 19 | |
| 20 | * `New.Variety.IsSectionLift`: `Φ` comes from some isomorphism `f^* L ≅ L'`; |
| 21 | `New.Variety.IsTranslationLift` is the case of a translation; `New.Variety.coordSection` is the |
| 22 | `j`-th coordinate section of a linear system. |
| 23 | * `New.Variety.exists_isSectionLift`, `New.Variety.IsSectionLift.picClass_eq`: a lift exists when |
| 24 | `[L'] = f^* [L]`, and only then. |
| 25 | * `New.Variety.IsTranslationLift.mul`, `New.Variety.IsTranslationLift.pow`, |
| 26 | `New.Variety.exists_isTranslationLift_iff`: lifts of translations multiply, and the translation by |
| 27 | `z` lifts to `L`, over a local ring `R`, exactly when the pairing `New.Pic.pairing` of `[L]` |
| 28 | vanishes on `z` and the identity, that is, when `z` lies in the kernel `K([L])`. |
| 29 | * `New.Variety.IsThetaStructure`: a linear system with coordinates indexed by a group `H`, permuted |
| 30 | up to a cocycle by lifts of the maps `y ↦ ± y + η s`. |
| 31 | * `New.Variety.IsThetaStructure.pull_eq_of_picClass_eq`: rigidity of theta structures along a |
| 32 | homomorphism. |
| 33 | * `New.Variety.IsThetaStructure.card_nsmul_eq_zero_of_isTranslationLift`: the order of `H` kills |
| 34 | every section whose translation lifts to `N`, when `N` is a projective embedding; over a local |
| 35 | ring these are the sections in `K([N])`. |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.LineBundle.pull`: the pull-back of the line bundle (U_i, g_ij) along p: Y → X, with cover |
| 39 | p⁻¹U_i and transition functions p*g_ij. |
| 40 | * `New.LineBundle.IsLinearSystem`: L is a linear system, the model being g_ij = s_j / s_i on |
| 41 | U_i = {s_i ≠ 0} for sections s_i without common zero. |
| 42 | * `New.HasConstFunctions`: for s : X → S, a function regular on all of X takes equal values at two |
| 43 | ring-valued points with the same image under s. |
| 44 | |
| 45 | ## Relation to the literature |
| 46 | |
| 47 | Known; see `Lib.Shimura.IntegralModel.UniversalFamily` for sources. |
| 48 | -/ |
| 49 | |
| 50 | @[expose] public section |
| 51 | |
| 52 | namespace New.Variety |
| 53 | |
| 54 | /-! |
| 55 | ## Lifts of a morphism to global sections |
| 56 | |
| 57 | A line bundle `New.LineBundle` is a cover `U i` with a cocycle `g i j` of functions on ring-valued |
| 58 | points (`New.PointFn`); a section `s` (`IsSection`) has each `s i` regular on `U i` (`IsRegularOn`), |
| 59 | with `s i = g i j * s j` on `U i ∩ U j`; it lies in `H0` if also `s i = 0` off `U i`; an isomorphism |
| 60 | `M ≅ L` is a frame (`New.LineBundle.IsFrame`) of `L.mul M.inv`. |
| 61 | -/ |
| 62 | |
| 63 | section SectionLifts |
| 64 | |
| 65 | open CategoryTheory AlgebraicGeometry LineBundle PointFn Spec AddMonObj |
| 66 | |
| 67 | variable {R R' R'' : Type} [CommRing R] [CommRing R'] [CommRing R''] |
| 68 | {X : Over (Spec (CommRingCat.of R))} {X' : Over (Spec (CommRingCat.of R'))} {ι κ : Type} |
| 69 | (L' : LineBundle X'.left κ) (L : LineBundle X.left ι) (f : X'.left ⟶ X.left) |
| 70 | (Φ : L.H0 R → L'.H0 R') {Y : Over (Spec (CommRingCat.of R))} (F : Y ⟶ X) (h : L.IsLinearSystem) |
| 71 | {N : LineBundle Y.1 κ} (φ : R →+* R') (hf : f ≫ X.hom = X'.hom ≫ Spec.map (CommRingCat.ofHom φ)) |
| 72 | {M : LineBundle X'.left ι} (e : M = L.pull f) |
| 73 | |
| 74 | /-- The map `Φ` on global sections is pull-back along `f` followed by `u`. Here `u` is a frame of |
| 75 | `L' ⊗ (f^* L)⁻¹`, that is, an isomorphism `f^* L ≅ L'`. At every point that lands in the chart `i` |
| 76 | of `L'` and whose image lands in the chart `a` of `L`, one has `(Φ s)_i = u_(i,a) · f^* s_a`. -/ |
| 77 | @[simp] |
| 78 | def IsPullbackVia (u : κ × ι → PointFn X'.left) : Prop := |
| 79 | -- `u` trivialises `L' ⊗ (f^* L)⁻¹` |
| 80 | (L'.mul (L.pull f).inv).IsFrame u ∧ |
| 81 | -- in local coordinates `Φ s` is `u` times the pull-back of `s` |
| 82 | ∀ (s : L.H0 R) (i : κ) (a : ι) (B : CommRingCat) (t : Spec B ⟶ X'.left), LandsIn t (L'.opens i) → |
| 83 | LandsIn (t ≫ f) (L.opens a) → (Φ s).val i B t = u (i, a) B t * s.val a B (t ≫ f) |
| 84 | |
| 85 | /-- The condition that the map Φ : H⁰(L) → H⁰(L') is pull-back along f : X' → X followed by some |
| 86 | isomorphism f^*L ≅ L'. -/ |
| 87 | def IsSectionLift : Prop := ∃ u : κ × ι → PointFn X'.left, IsPullbackVia L' L f Φ u |
| 88 | |
| 89 | /-- The R-linear endomorphism Φ of H⁰(L) is pull-back along the translation t_z by the section z |
| 90 | followed by some isomorphism t_z^*L ≅ L. -/ |
| 91 | abbrev IsTranslationLift [AddObj X] |
| 92 | (z : MonoidalCategoryStruct.tensorUnit (Over (Spec (CommRingCat.of R))) ⟶ X) |
| 93 | (Φ : Module.End R (L.H0 R)) : Prop := |
| 94 | IsSectionLift L L (translation z).left Φ |
| 95 | |
| 96 | variable {L' L f Φ} |
| 97 | |
| 98 | /-- For a linear system L on an R-scheme and an index j, the j-th coordinate as an element of |
| 99 | the R-module H⁰(L) of global sections. -/ |
| 100 | def coordSection (j : ι) : L.H0 R := |
| 101 | ⟨fun i ↦ L.transition i j, h.isSection j, fun _ _ _ ht ↦ h.transition_eq_zero j ht⟩ |
| 102 | |
| 103 | lemma coordSection_val (i j : ι) : (coordSection h j).val i = L.transition i j := |
| 104 | rfl |
| 105 | |
| 106 | /-- Two sections of `L` are equal if they agree on each chart `L.opens i`. Only charts on which both |
| 107 | `i`-th components are regular need to be checked, and there they must agree at all points that land |
| 108 | in the chart. -/ |
| 109 | lemma H0_ext {r s : L.H0 R} |
| 110 | (h_agree : ∀ {i : ι}, (r.val i).IsRegularOn (L.opens i) → (s.val i).IsRegularOn (L.opens i) → |
| 111 | ∀ (B : CommRingCat) (t : Spec B ⟶ X.left), LandsIn t (L.opens i) → |
| 112 | r.val i B t = s.val i B t) : |
| 113 | r = s := by |
| 114 | obtain ⟨⟨hr_reg, -⟩, hr_zero⟩ := r.prop |
| 115 | obtain ⟨⟨hs_reg, -⟩, hs_zero⟩ := s.prop |
| 116 | ext i B t |
| 117 | -- on `L.opens i` this is `h_agree`; off it the `i`-th components of both sections vanish |
| 118 | by_cases ht : LandsIn t (L.opens i) |
| 119 | · exact h_agree (hr_reg i) (hs_reg i) B t ht |
| 120 | · rw [hr_zero i B t ht, hs_zero i B t ht] |
| 121 | |
| 122 | @[local simp] |
| 123 | lemma H0_smul (a : R) (s : L.H0 R) (i : ι) (B : CommRingCat) (t : Spec B ⟶ X.left) : |
| 124 | (a • s).val i B t = (preimage (t ≫ X.hom)).hom a * s.val i B t := |
| 125 | rfl |
| 126 | |
| 127 | /-- A lift `Φ` along `f` from sections of `L` to sections of `L'` exists only if `[L'] = f^* [L]` in |
| 128 | the Picard group. -/ |
| 129 | lemma IsSectionLift.picClass_eq : IsSectionLift L' L f Φ → L'.picClass = L.picClass.pull f := |
| 130 | fun ⟨u, hu_frame, _⟩ ↦ picClass_eq_iff.mpr ⟨u, hu_frame⟩ |
| 131 | |
| 132 | /-! ### Construction of lifts -/ |
| 133 | |
| 134 | /-- For f : X' → X lying over the ring map φ : R → R' and M = f^*L, the φ-semilinear pull-back |
| 135 | of global sections H⁰(L) → H⁰(M). -/ |
| 136 | @[simps! apply_coe] |
| 137 | noncomputable def pullSections : L.H0 R →ₛₗ[φ] M.H0 R' where |
| 138 | toFun s := |
| 139 | ⟨fun i ↦ PointFn.pull f (s.val i), by |
| 140 | subst e |
| 141 | exact ⟨(H0.isSection_val s).pull f, fun i A t ht ↦ s.property.2 i A (t ≫ f) ht⟩⟩ |
| 142 | map_add' s s' := by |
| 143 | ext |
| 144 | simp |
| 145 | map_smul' a s := by |
| 146 | ext i A t |
| 147 | -- By `hf`, the image of `a` along `t ≫ f ≫ X.hom` is the image of `φ a` along `t ≫ X'.hom`. |
| 148 | rw [H0_smul] |
| 149 | simp [hf] |
| 150 | simp [← Category.assoc] |
| 151 | |
| 152 | /-- A frame `u` of `N ⊗ (F^* L)⁻¹` gives the `R`-linear map `s ↦ u * F^* s` on sections, which is |
| 153 | pull-back along `F` followed by `u`. -/ |
| 154 | lemma exists_isPullbackVia (u : κ × ι → PointFn Y.left) |
| 155 | (hu : (N.mul (L.pull F.left).inv).IsFrame u) : |
| 156 | ∃ Φ : ↥(L.H0 R) →ₗ[R] ↥(N.H0 R), IsPullbackVia N L F.left Φ u := by |
| 157 | obtain ⟨hu_sec, hu_unit⟩ := hu |
| 158 | -- for each `s`: a section `r s` of `N` (`hr`) with `r s = u * F^* s` locally (`h_eq`) |
| 159 | choose r hr h_eq _ using fun s : L.H0 R ↦ |
| 160 | exists_section_mul (𝟙 Y.left) hu_sec ((H0.isSection_val s).pull F.left) |
| 161 | (h_fibre := by simp) |
| 162 | simp only [Category.comp_id] at h_eq |
| 163 | -- it is additive and `R`-linear in `s`, as the local formula `h_eq` is |
| 164 | refine ⟨⟨⟨fun s ↦ ⟨r s, hr s⟩, fun s s' ↦ ?_⟩, fun c s ↦ ?_⟩, ⟨hu_sec, hu_unit⟩, h_eq⟩ |
| 165 | all_goals |
| 166 | refine H0_ext fun h₁ h₂ ↦ h₁.ext_of_dominant (𝟙 _) h₂ (L.pull F.left) fun a ↦ ?_ |
| 167 | simp +contextual [h_eq _ _ a, mul_add, mul_left_comm] |
| 168 | |
| 169 | /-- If `[N] = F^* [L]` in the Picard group, there is an `R`-linear lift `Φ` of `F` from sections |
| 170 | of `L` to sections of `N`. -/ |
| 171 | lemma exists_isSectionLift (h_cls : N.picClass = L.picClass.pull F.left) : |
| 172 | ∃ Φ : L.H0 R →ₗ[R] N.H0 R, IsSectionLift N L F.left Φ := by |
| 173 | -- an isomorphism `F^* L ≅ N` is a frame `u` of `N ⊗ (F^* L)⁻¹` |
| 174 | obtain ⟨u, hu⟩ := picClass_eq_iff.mp h_cls |
| 175 | obtain ⟨Φ, hΦ⟩ := exists_isPullbackVia F u hu |
| 176 | exact ⟨Φ, u, hΦ⟩ |
| 177 | |
| 178 | /-- If a lift `Φ` along `f` sends each coordinate of `L` to `a` times the corresponding coordinate |
| 179 | of `L'`, then `f^* L = L'` as linear systems. -/ |
| 180 | lemma IsSectionLift.pull_eq_of_coordSection {L' : LineBundle X'.left ι} |
| 181 | (h' : L'.IsLinearSystem) {Φ : ↥(L.H0 R) → ↥(L'.H0 R')} {a : R'} |
| 182 | (hΦ_lift : IsSectionLift L' L f Φ) |
| 183 | (h_coord : ∀ j : ι, Φ (coordSection h j) = a • coordSection h' j) : |
| 184 | L.pull f = L' := by |
| 185 | obtain ⟨u, ⟨-, hu_unit⟩, hΦ⟩ := hΦ_lift |
| 186 | -- two linear systems are equal once their coordinates are proportional at each point |
| 187 | refine h'.ext_of_transition_eq_mul (h.pull f) fun i j k A t hi hj ↦ ?_ |
| 188 | -- the value of `Φ (coordSection h k)` at `t`, read on `L'` and on `L.pull f` |
| 189 | let α : A := (preimage (t ≫ X'.hom)).hom a |
| 190 | have h_val (k : ι) : |
| 191 | α * L'.transition i k A t = u (i, j) A t * (L.pull f).transition j k A t := |
| 192 | calc α * L'.transition i k A t = (Φ (coordSection h k)).val i A t := by |
| 193 | rw [h_coord, H0_smul, coordSection_val] |
| 194 | _ = u (i, j) A t * (L.pull f).transition j k A t := hΦ (coordSection h k) i j A t hi hj |
| 195 | -- at `k = i` this says `α = u (i, j) * transition j i`; cancel the unit `u (i, j)` |
| 196 | have h_unit : IsUnit (u (i, j) A t) := hu_unit (i, j) A t (by tauto) |
| 197 | rw [← h_unit.mul_right_inj, ← h_val, ← mul_assoc, ← h_val, L'.transition_self i A t hi, mul_one] |
| 198 | |
| 199 | /-- Let `L` be a linear system on `X`, `F : Y ⟶ X`, and `s j` sections of `N` indexed like the |
| 200 | coordinates of `L`. Suppose that at each point in `N.opens i` whose image lies in `L.opens a`, (a) |
| 201 | some `s j` is a unit and (b) `s j = s a * F^* (L.transition a j)`. Then there is an `R`-linear lift |
| 202 | `Φ` of `F` that sends the `j`-th coordinate of `L` to `s j`. -/ |
| 203 | lemma exists_isSectionLift_coordSection {s : ι → N.H0 R} |
| 204 | (hs : ∀ (i : κ) (a : ι) (B : CommRingCat) (t : Spec B ⟶ Y.left), LandsIn t (N.opens i) → |
| 205 | LandsIn (t ≫ F.left) (L.opens a) → |
| 206 | (∃ j : ι, IsUnit ((s j).val i B t)) ∧ |
| 207 | ∀ j : ι, (s j).val i B t = (s a).val i B t * L.transition a j B (t ≫ F.left)) : |
| 208 | ∃ Φ : L.H0 R →ₗ[R] N.H0 R, |
| 209 | IsSectionLift N L F.left Φ ∧ ∀ j : ι, Φ (coordSection h j) = s j := by |
| 210 | -- the components `(s a).val i` form a frame of `N ⊗ (F^* L)⁻¹`: by `hs` they transform |
| 211 | -- correctly, and `(s a).val i` divides the unit `(s j).val i` |
| 212 | have h_frame : (N.mul (L.pull F.left).inv).IsFrame fun (i, a) ↦ (s a).val i := by |
| 213 | have h_sec (j : ι) : N.IsSection (s j).val := H0.isSection_val (s j) |
| 214 | simp_all [IsSection, IsRegularOn, IsFrame] |
| 215 | grind |
| 216 | obtain ⟨Φ, hΦ_frame, hΦ_eq⟩ := exists_isPullbackVia F (fun (i, a) ↦ (s a).val i) h_frame |
| 217 | refine ⟨Φ, ⟨fun (i, a) ↦ (s a).val i, hΦ_frame, hΦ_eq⟩, fun j ↦ H0_ext fun {i} h₁ h₂ ↦ |
| 218 | h₁.ext_of_dominant (𝟙 _) h₂ (L.pull F.left) ?_⟩ |
| 219 | -- remove the identity and read the charts of `L.pull F.left` on `L`; then compare with `hs` |
| 220 | simp only [Category.comp_id, pull_opens, landsIn_preimage] |
| 221 | intro a B t ht hta |
| 222 | rw [hΦ_eq (coordSection h j) i a B t ht hta, coordSection_val, ((hs i a B t ht hta).2 j).symm] |
| 223 | |
| 224 | /-- The pull-back of sections `pullSections φ hf e` along `f` is a lift of `f` from sections of `L` |
| 225 | to sections of `M = f^* L`. -/ |
| 226 | lemma isSectionLift_pullSections : IsSectionLift M L f (pullSections φ hf e) := by |
| 227 | -- The isomorphism is the identity of `M = L.pull f`, given by the transition functions of `M`; |
| 228 | -- in local coordinates this is the cocycle rule of a section `s` of `L`. |
| 229 | subst e |
| 230 | refine ⟨(L.pull f).transition.uncurry, ?_, fun s i a B t ↦ ?_⟩ |
| 231 | · simp_all [L.regular _ _ _, LineBundle.transition_trans, isUnit_transition, mul_right_comm, |
| 232 | IsFrame, IsSection, IsRegularOn] |
| 233 | · obtain ⟨⟨-, hs_cocycle⟩, -⟩ := s.prop |
| 234 | exact hs_cocycle i a B (t ≫ f) |
| 235 | |
| 236 | /-! ### Composition, uniqueness and injectivity -/ |
| 237 | |
| 238 | /-- The pull-back of the `i`-th coordinate section of `L` is the `i`-th coordinate section of the |
| 239 | pulled-back linear system `M`, where `e : M = L.pull f`. -/ |
| 240 | lemma pullSections_coordSection (i : ι) : |
| 241 | pullSections φ hf e (coordSection h i) = coordSection (e ▸ h.pull f) i := by |
| 242 | aesop |
| 243 | |
| 244 | /-- Here `IsSectionLift L' L f Φ` means that `Φ : H⁰(L) → H⁰(L')` is pull-back of sections along |
| 245 | `f : X' ⟶ X` followed by some isomorphism `f^*L ≅ L'`. If `Θ` lifts `g : X'' ⟶ X'` from sections of |
| 246 | `L'` to sections of `L''` (over `R''`), and `Φ` lifts `f : X' ⟶ X` from sections of `L` to sections |
| 247 | of `L'`, then `Θ ∘ Φ` lifts the composite `g ≫ f` from sections of `L` to sections of `L''`. -/ |
| 248 | lemma IsSectionLift.comp {X'' : Over (Spec (CommRingCat.of R''))} {μ : Type} |
| 249 | {L'' : LineBundle X''.left μ} {g : X''.left ⟶ X'.left} {Θ : ↥(L'.H0 R') → ↥(L''.H0 R'')} |
| 250 | (hΘ : IsSectionLift (R' := R'') (X' := X'') (κ := μ) L'' L' g Θ) |
| 251 | (hΦ : IsSectionLift L' L f Φ) : |
| 252 | IsSectionLift L'' L (g ≫ f) (Θ ∘ Φ) := by |
| 253 | obtain ⟨v, hv⟩ := hΘ |
| 254 | obtain ⟨u, hu⟩ := hΦ |
| 255 | -- Let `T` be the trivial bundle on the cover of `L'.pull g`. The products |
| 256 | -- `v (i, b) * g^* u (b, a)` form a frame of `M ⊗ T⁻¹`, where `M = L'' ⊗ ((g ≫ f)^* L)⁻¹`. |
| 257 | let T : LineBundle X''.left κ := mk _ 1 (L'.pull g).cover |
| 258 | let M := L''.mul (L.pull (g ≫ f)).inv |
| 259 | have h_frame : ((M.mul T.inv).pull (𝟙 _)).IsFrame |
| 260 | fun ((i, a), b) ↦ v (i, b) * pull g (u (b, a)) := by |
| 261 | simp [M, T, IsFrame, IsSection, IsRegularOn] at hu hv ⊢ |
| 262 | grind [L'.transition_trans] |
| 263 | -- Applied to the frame `1` of `T`, they glue to a frame `w` of `M`. |
| 264 | have h_one : T.IsFrame 1 := by simp [T, IsFrame, IsSection, IsRegularOn] |
| 265 | obtain ⟨w, ⟨⟨hw_reg, -⟩, -⟩, hw_eq, hw_frame⟩ := |
| 266 | exists_section_mul (𝟙 X''.left) h_frame.left h_one.left (h_fibre := by simp) |
| 267 | refine ⟨w, hw_frame h_frame h_one, fun s i a ↦ ?_⟩ |
| 268 | -- Both sides are regular on `M.opens (i, a)`, and on the `b`-th member of the cover of |
| 269 | -- `L'.pull g` both are `v (i, b) * g^* u (b, a) * (g ≫ f)^* s`. |
| 270 | obtain ⟨⟨hΘΦ_reg, -⟩, -⟩ := (Θ (Φ s)).prop |
| 271 | obtain ⟨⟨hs_reg, -⟩, -⟩ := s.prop |
| 272 | have h_left : ((Θ (Φ s)).val i).IsRegularOn (M.opens (i, a)) := (hΘΦ_reg i).mono inf_le_left |
| 273 | have h_right : (w (i, a) * pull (g ≫ f) (s.val a)).IsRegularOn (M.opens (i, a)) := |
| 274 | ((hw_reg (i, a)).mul ((hs_reg a).pull (g ≫ f))).mono (le_inf le_rfl inf_le_right) |
| 275 | have h_local (b : κ) (A : CommRingCat) (t : Spec A ⟶ X''.left) |
| 276 | (ht : LandsIn (t ≫ 𝟙 X''.left) (M.opens (i, a))) (htb : LandsIn t ((L'.pull g).opens b)) : |
| 277 | (Θ (Φ s)).val i A (t ≫ 𝟙 X''.left) = |
| 278 | (w (i, a) * pull (g ≫ f) (s.val a)) A (t ≫ 𝟙 X''.left) := by |
| 279 | simp [M, T, IsFrame, IsSection, IsRegularOn] at hu hv hw_eq ht htb ⊢ |
| 280 | grind |
| 281 | simpa [M] using h_left.ext_of_dominant (𝟙 _) h_right (L'.pull g) h_local |
| 282 | |
| 283 | /-- If X' is a commutative group scheme over R' whose global functions are constant, two maps |
| 284 | Φ, Ψ: H⁰(L) → H⁰(L'), each pull-back along f followed by some isomorphism f^*L ≅ L', are |
| 285 | proportional: Φ(s) = cΨ(s) for all s, for some c in R'. -/ |
| 286 | lemma IsSectionLift.exists_eq_smul {Ψ : L.H0 R → L'.H0 R'} [AddObj X'] |
| 287 | (hX : HasConstFunctions X'.hom) (hΦ_lift : IsSectionLift L' L f Φ) |
| 288 | (hΨ_lift : IsSectionLift L' L f Ψ) : |
| 289 | ∃ c : R', ∀ s : L.H0 R, Φ s = c • Ψ s := by |
| 290 | obtain ⟨u, hu, hΦ⟩ := hΦ_lift |
| 291 | obtain ⟨v, hv, hΨ⟩ := hΨ_lift |
| 292 | -- The two frames differ by a global function: `u = c * v`; take its value at the zero section. |
| 293 | obtain ⟨c, hc⟩ := hv.exists_eq_mul hu.left |
| 294 | let zero : Spec (.of R') ⟶ X'.left := (0 : Over.mk (𝟙 _) ⟶ X').left |
| 295 | refine ⟨PointFn.ofSection c _ zero, fun s ↦ H0_ext fun {i} h₁ h₂ ↦ |
| 296 | h₁.ext_of_dominant (𝟙 _) h₂ (L.pull f) fun a B t hi ha ↦ ?_⟩ |
| 297 | -- `c` is constant on fibres, so its value at `t` is the image of its value at zero. |
| 298 | have hconst : |
| 299 | (preimage (t ≫ X'.hom)).hom (PointFn.ofSection c _ zero) = PointFn.ofSection c B t := by |
| 300 | simp [zero, ← isRegularOn_ofSection _ _, hX c _ _ t] |
| 301 | rw [Category.comp_id] at hi ⊢ |
| 302 | have h_lands : LandsIn t ((L'.mul (L.pull f).inv).opens (i, a)) := by tauto |
| 303 | simp [hconst, hΦ s i a B t hi ha, hΨ s i a B t hi ha, hc (i, a) B t h_lands, mul_assoc] |
| 304 | |
| 305 | /-- A lift along a quasi-compact, scheme-theoretically dominant morphism `f` is injective: a section |
| 306 | is determined by its pull-back along `f`. -/ |
| 307 | lemma IsSectionLift.injective [IsSchemeTheoreticallyDominant f] [QuasiCompact f] |
| 308 | (hΦ : IsSectionLift L' L f Φ) : |
| 309 | Φ.Injective := by |
| 310 | obtain ⟨u, ⟨-, hu_unit⟩, hΦ_eq⟩ := hΦ |
| 311 | intro s s' h_eq |
| 312 | -- as `f` is dominant it suffices to compare the pull-backs of `s` and `s'` along `f`; |
| 313 | -- these agree after multiplication by the unit `u` |
| 314 | refine H0_ext fun {i} h₁ h₂ ↦ h₁.ext_of_dominant f h₂ L' fun a A t hti hta ↦ ?_ |
| 315 | have h_pull : u (a, i) A t * s.val i A (t ≫ f) = u (a, i) A t * s'.val i A (t ≫ f) := by |
| 316 | rw [← hΦ_eq s a i A t hta hti, ← hΦ_eq s' a i A t hta hti, h_eq] |
| 317 | exact (hu_unit (a, i) A t (by tauto)).mul_right_inj.mp h_pull |
| 318 | |
| 319 | end SectionLifts |
| 320 | |
| 321 | /-! |
| 322 | ## Lifts of translations and theta structures |
| 323 | |
| 324 | Rigidity and the bound on `K([N])` reduce to `New.Variety.IsThetaStructure.pull_eq_of_intertwines`. |
| 325 | -/ |
| 326 | |
| 327 | section ThetaStructure |
| 328 | |
| 329 | open CategoryTheory AlgebraicGeometry CartesianMonoidalCategory Over Submodule Module Set AddChar |
| 330 | open scoped MonoidalCategory |
| 331 | |
| 332 | attribute [local instance low] Fintype.ofFinite |
| 333 | open Nat (card) |
| 334 | |
| 335 | variable {R : Type} [CommRing R] {A : Over (Spec ⟨R⟩)} {ι : Type} |
| 336 | {L : LineBundle A.1 ι} [AddObj A] {z : 𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A} |
| 337 | {Φ : Module.End R ↥(L.H0 R)} {H : Type} [AddCommGroup H] |
| 338 | |
| 339 | /-- Lifts `Φ` and `Ψ` of the translations by `z` and by `w` compose to the lift `Φ * Ψ` of the |
| 340 | translation by `z + w`. -/ |
| 341 | lemma IsTranslationLift.mul {w : 𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A} |
| 342 | {Ψ : Module.End R ↥(L.H0 R)} (hΦ : IsTranslationLift L z Φ) (hΨ : IsTranslationLift L w Ψ) : |
| 343 | IsTranslationLift L (z + w) (Φ * Ψ) := by |
| 344 | simpa [← comp_left, add_assoc, IsTranslationLift, comp_add, FunLike.coe_mul_eq_comp] using |
| 345 | hΦ.comp hΨ |
| 346 | |
| 347 | lemma IsTranslationLift.pow (hΦ : IsTranslationLift L z Φ) (k : ℕ) : |
| 348 | IsTranslationLift L (k • z) (Φ ^ k) := by |
| 349 | induction k with |
| 350 | | zero => |
| 351 | -- the pull-back of sections along the identity is the identity map `1` |
| 352 | have h_id : ⇑(pullSections (f := 𝟙 A.left) (RingHom.id R) (by simp) (.refl L) : |
| 353 | L.H0 R →ₗ[R] L.H0 R) = ⇑(1 : Module.End R (L.H0 R)) := by |
| 354 | ext s i B t |
| 355 | exact congrArg (s.val i B) (Category.comp_id t) |
| 356 | simpa [IsTranslationLift, ← h_id] using |
| 357 | isSectionLift_pullSections (f := 𝟙 A.left) (RingHom.id R) (by simp) (.refl L) |
| 358 | | succ k ih => simpa [succ_nsmul, pow_succ] using ih.mul hΦ |
| 359 | |
| 360 | /-- Let global functions on `A` be constant on the fibres over `R` (`HasConstFunctions A.hom`). If |
| 361 | `Φ` and `Ψ` are endomorphisms of `L.H0 R` lifting the translations by sections `z` and `w` of `A` |
| 362 | on the line bundle `L`, and `k • w = 0` for a natural number `k`, then `Φ ^ k` commutes with `Ψ`. -/ |
| 363 | private lemma IsTranslationLift.commute_pow_of_nsmul_eq_zero |
| 364 | {w : 𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A} {Ψ : Module.End R ↥(L.H0 R)} {k : ℕ} |
| 365 | (hΦ : IsTranslationLift L z Φ) (h_const : HasConstFunctions A.hom) |
| 366 | (hΨ : IsTranslationLift L w Ψ) (hw : k • w = 0) : |
| 367 | Commute (Φ ^ k) Ψ := by |
| 368 | -- `Φ ^ k` and `(Φ * Ψ) ^ k` lift the same translation, because `k • w = 0`; two lifts of one map |
| 369 | -- are proportional (`IsSectionLift.exists_eq_smul`). |
| 370 | have h_lift : IsTranslationLift L (k • z) ((Φ * Ψ) ^ k) := by |
| 371 | simpa [nsmul_add, hw] using (hΦ.mul hΨ).pow k |
| 372 | obtain ⟨a, ha⟩ := (hΦ.pow k).exists_eq_smul h_const h_lift |
| 373 | -- So `Φ ^ k` commutes with `Φ * Ψ`; cancel `Φ` on the left using `hΦ.injective`. |
| 374 | have h_commute : Commute (Φ ^ k) (Φ * Ψ) := by |
| 375 | rw [show Φ ^ k = a • (Φ * Ψ) ^ k from LinearMap.ext ha] |
| 376 | exact (Commute.pow_self (Φ * Ψ) k).smul_left a |
| 377 | refine LinearMap.ext fun v ↦ ?_ |
| 378 | apply hΦ.injective |
| 379 | simpa [pow_mul_comm', ← mul_assoc] using LinearMap.congr_fun h_commute.eq v |
| 380 | |
| 381 | /-- Relate existence of a translation lift on `L` along `z` to equality of `L.picClass` |
| 382 | with its pullback along `(translation z).left`. -/ |
| 383 | private lemma exists_translationLift_iff_picClass_eq_pull : |
| 384 | (∃ Φ : Module.End R ↥(L.H0 R), IsTranslationLift L z Φ) ↔ |
| 385 | L.picClass = L.picClass.pull (translation z).left := |
| 386 | ⟨fun ⟨_, hΦ⟩ ↦ hΦ.picClass_eq, exists_isSectionLift (translation z)⟩ |
| 387 | |
| 388 | /-- The translation by `z` lifts to `L` if and only if `z ∈ K([L])`, that is, the class |
| 389 | `⟨z, 𝟙 A⟩ = t_z^*[L] - [L]` vanishes in `Pic A`; the terms pulled back from the base are trivial |
| 390 | over the local ring `R`. -/ |
| 391 | lemma exists_isTranslationLift_iff [IsLocalRing R] : |
| 392 | (∃ Φ : Module.End R ↥(L.H0 R), IsTranslationLift L z Φ) ↔ |
| 393 | L.picClass.pairing (toUnit A ≫ z) (𝟙 A) = 0 := by |
| 394 | -- both sides say that the translation by `z` keeps the class of `L` |
| 395 | have h_cls := exists_translationLift_iff_picClass_eq_pull (L := L) (z := z) |
| 396 | -- the pairing is `t_z^*[L] - [L]`: the terms at the section `z` and at `0` vanish |
| 397 | have h_pair : L.picClass.pairing (toUnit A ≫ z) (𝟙 A) = |
| 398 | L.picClass.atPoint (translation z) - L.picClass.atPoint (𝟙 A) := by |
| 399 | simp [Pic.pairing, atPoint_toUnit_comp_eq_zero, atPoint_zero, add_comm] |
| 400 | rw [h_cls, h_pair, Pic.atPoint, Pic.atPoint, Over.id_left, Pic.pull_id, sub_eq_zero, eq_comm] |
| 401 | |
| 402 | /-! ### Theta structures -/ |
| 403 | |
| 404 | /-- A theta structure on a linear system `N` on `A` whose coordinates `X t = coordSection hN t` are |
| 405 | indexed by an abelian group `H` of order invertible in `R`. Each map `y ↦ ± y + η s` has a lift |
| 406 | to `N` that sends `X t` to `c s t • X (±(s + t))`, where `c s` is a character of `H` and |
| 407 | `c s (-t) = c t s`. For the subgroup `Lg`: `X s = X 0` for `s ∈ Lg`, and the sum of `c s l ^ 2` |
| 408 | over `l ∈ Lg` vanishes for `s ∉ Lg`. -/ |
| 409 | structure IsThetaStructure (Lg : AddSubgroup H) |
| 410 | (η : H →+ (𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A)) |
| 411 | {N : LineBundle A.left H} (hN : N.IsLinearSystem) (c : H → AddChar H R) where |
| 412 | /-- The symmetry `c s (-t) = c t s` of the cocycle `c`. -/ |
| 413 | neg_eq_swap (s t : H) : c s (-t) = c t s |
| 414 | /-- The theta law: the map `y ↦ ± y + η s` has a lift to `N` that sends the coordinate `X t` to |
| 415 | `c s t • X (±(s + t))`. -/ |
| 416 | theta_law (m : ℤˣ) (s : H) : ∃ Φ : Module.End R (N.H0 R), |
| 417 | IsSectionLift N N (((m : ℤ) • 𝟙 A) ≫ translation (η s)).left Φ ∧ |
| 418 | ∀ t : H, Φ (coordSection hN t) = c s t • coordSection hN ((m : ℤ) • (s + t)) |
| 419 | /-- The coordinates indexed by `Lg` all equal `X 0`. -/ |
| 420 | coordSection_eq_of_mem : ∀ s ∈ Lg, coordSection hN s = coordSection hN 0 |
| 421 | /-- The order of `H` is a unit of `R`. -/ |
| 422 | isUnit_card : IsUnit (card H : R) |
| 423 | /-- For `s ∉ Lg` the sum of `c s l ^ 2` over `l ∈ Lg` vanishes. -/ |
| 424 | sum_sq_eq_zero [Fintype Lg] : ∀ s ∉ Lg, ∑ l : Lg, c s l ^ 2 = 0 |
| 425 | |
| 426 | variable {Lg : AddSubgroup H} {η : H →+ (𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A)} |
| 427 | {N : LineBundle A.left H} {hN : N.IsLinearSystem} {c : H → AddChar H R} |
| 428 | |
| 429 | /-- For `l ∈ Lg`, the coordinate `coordSection hN (t + l)` equals |
| 430 | `c t (-l) • coordSection hN t`. -/ |
| 431 | private lemma IsThetaStructure.coordSection_add_of_mem |
| 432 | (h : IsThetaStructure Lg η hN c) {U : H → Module.End R (N.H0 R)} |
| 433 | (hU : ∀ s t : H, U s (coordSection hN t) = c s t • coordSection hN (s + t)) |
| 434 | {l : H} (hl : l ∈ Lg) (t : H) : |
| 435 | coordSection hN (t + l) = c t (-l) • coordSection hN t := by |
| 436 | -- `U t` sends `X l = X 0` to `c t l • X (t + l)` and to `c t 0 • X t = X t`. |
| 437 | have h_Ut : c t (-l) • U t (coordSection hN l) = c t (-l) • U t (coordSection hN 0) := by |
| 438 | rw [h.coordSection_eq_of_mem l hl] |
| 439 | simpa [hU, ← map_add_eq_mul, smul_smul] using h_Ut |
| 440 | |
| 441 | /-- Let the coordinates `X t = coordSection hN t` of the theta structure `h` span `H⁰(N)`, and let |
| 442 | `U s` send `X t` to `c s t • X (s + t)`. Then the sum of the `U (-l)`, `l ∈ Lg`, maps every section |
| 443 | into the line through `X 0`. -/ |
| 444 | private lemma IsThetaStructure.sum_apply_mem_span_singleton (h : IsThetaStructure Lg η hN c) |
| 445 | [Finite H] (h_span : span R (range (coordSection hN)) = ⊤) {U : H → Module.End R (N.H0 R)} |
| 446 | (hU : ∀ s t : H, U s (coordSection hN t) = c s t • coordSection hN (s + t)) |
| 447 | (v : ↥(N.H0 R)) : (∑ l : Lg, U (-l)) v ∈ R ∙ coordSection hN 0 := by |
| 448 | -- First apply `U t` to `X l = X 0`. |
| 449 | have h_shift (l : H) (hl : l ∈ Lg) (t : H) : |
| 450 | coordSection hN (t + l) = c t (-l) • coordSection hN t := |
| 451 | h.coordSection_add_of_mem hU hl t |
| 452 | let P : End R (N.H0 R) := ∑ l : Lg, U (-l) |
| 453 | -- by `h_shift`, `P` multiplies `X t` by `∑ l, c t l ^ 2`, which is `0` for `t ∉ Lg` |
| 454 | -- (`h.sum_sq_eq_zero`); for `t ∈ Lg` the coordinate `X t` is `X 0` |
| 455 | have hP_coord (t : H) : P (coordSection hN t) ∈ R ∙ coordSection hN 0 := by |
| 456 | by_cases ht : t ∈ Lg |
| 457 | · simp_all [P, h.coordSection_eq_of_mem, nsmul_mem] |
| 458 | · simp_all [P, ← sq, h.sum_sq_eq_zero, ← h.neg_eq_swap t, add_comm _ t, ← Finset.sum_smul, |
| 459 | smul_smul] |
| 460 | -- the coordinates span, so the image of `P` lies in the line through `X 0` |
| 461 | have h_le : span R (range (coordSection hN)) ≤ (R ∙ coordSection hN 0).comap P := |
| 462 | span_le.mpr (forall_mem_range.mpr hP_coord) |
| 463 | exact h_le (h_span.ge mem_top) |
| 464 | |
| 465 | /-- Write `X t` and `X' t` for the coordinates `coordSection hN t` and `coordSection hN' t` of the |
| 466 | theta structures `h` and `h'`. Assume that the coordinates of `N` span `H⁰(N)` (`h_span`). Let |
| 467 | `U s` send `X t` to `c s t • X (s + t)`, and let `T : H⁰(N') → H⁰(N)` be a lift of `f : A ⟶ A'` with |
| 468 | `T (X' s) = U s (T (X' 0))` for all `s`. Then `f^* N' = N` as linear systems. -/ |
| 469 | lemma IsThetaStructure.pull_eq_of_intertwines (h : IsThetaStructure Lg η hN c) [Finite H] |
| 470 | (h_span : span R (range (coordSection hN)) = ⊤) |
| 471 | {A' : Over (Spec (CommRingCat.of R))} [AddObj A'] |
| 472 | {η' : H →+ (𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A')} |
| 473 | {N' : LineBundle A'.left H} {hN' : N'.IsLinearSystem} {c' : H → AddChar H R} |
| 474 | (h' : IsThetaStructure Lg η' hN' c') {f : A.left ⟶ A'.left} |
| 475 | {T : ↥(N'.H0 R) → ↥(N.H0 R)} {U : H → Module.End R (N.H0 R)} |
| 476 | (hU : ∀ s t : H, U s (coordSection hN t) = c s t • coordSection hN (s + t)) |
| 477 | (hT : IsSectionLift N N' f T) |
| 478 | (h_intertwine : ∀ s : H, T (coordSection hN' s) = U s (T (coordSection hN' 0))) : |
| 479 | N'.pull f = N := by |
| 480 | -- It is enough that `T (X' 0)` is a multiple `a • X 0`: by `h_intertwine` and `hU`, `T` then |
| 481 | -- sends `X' s` to `a • X s`. To find `a`, apply the sum `P` of the `U (-l)`, `l ∈ Lg`, to |
| 482 | -- `T (X' 0)`; `P` maps every section into the line through `X 0`. |
| 483 | let P : End R (N.H0 R) := ∑ l : Lg, U (-l) |
| 484 | have hP : P (T (coordSection hN' 0)) ∈ R ∙ coordSection hN 0 := |
| 485 | h.sum_apply_mem_span_singleton h_span hU _ |
| 486 | -- `U (-l) (T (X' 0)) = T (X' (-l)) = T (X' 0)`, so `P` multiplies `T (X' 0)` by the order of |
| 487 | -- `Lg`, a unit of `R` |
| 488 | have h_unit : IsUnit (card Lg : R) := |
| 489 | isUnit_of_dvd_unit Lg.card_addSubgroup_dvd_card.natCast h.isUnit_card |
| 490 | obtain ⟨a, ha⟩ : ∃ a : R, a • coordSection hN 0 = T (coordSection hN' 0) := by |
| 491 | rw [← mem_span_singleton, ← smul_mem_iff_of_isUnit _ h_unit] |
| 492 | simpa [P, ← h_intertwine, h'.coordSection_eq_of_mem, Nat.cast_smul_eq_nsmul] using hP |
| 493 | -- a lift of `f` that sends each `X' s` to `a • X s` forces `f^* N' = N` |
| 494 | have h_coord (s : H) : T (coordSection hN' s) = a • coordSection hN s := by |
| 495 | simpa [← ha, hU] using h_intertwine s |
| 496 | exact hT.pull_eq_of_coordSection hN' hN h_coord |
| 497 | |
| 498 | /-- Let `f : A ⟶ A'` be an additive homomorphism that sends a section `z` of `A` to `z'` of `A'`, |
| 499 | and let `m : ℤ`. If global functions on `A` are constant on fibers over `R`, `T` lifts `f` from `L'` |
| 500 | to `L`, `Ψ` lifts `y ↦ m • y + z` on `L`, and `Ψ'` lifts `y ↦ m • y + z'` on `L'`, then there exists |
| 501 | `b : R` such that `T (Ψ' v) = b • Ψ (T v)` for all `v : L'.H0 R`. -/ |
| 502 | private lemma IsSectionLift.exists_comp_eq_smul_comp {κ : Type} |
| 503 | {A' : Over (Spec (CommRingCat.of R))} [AddObj A'] {L' : LineBundle A'.left κ} |
| 504 | {f : A ⟶ A'} [IsAdditive f] {z' : 𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A'} {m : ℤ} |
| 505 | {T : ↥(L'.H0 R) → ↥(L.H0 R)} {Ψ : ↥(L.H0 R) → ↥(L.H0 R)} {Ψ' : ↥(L'.H0 R) → ↥(L'.H0 R)} |
| 506 | (hT : IsSectionLift L L' f.left T) (h_const : HasConstFunctions A.hom) (hz : z ≫ f = z') |
| 507 | (hΨ : IsSectionLift L L ((m • 𝟙 A) ≫ translation z).left Ψ) |
| 508 | (hΨ' : IsSectionLift L' L' ((m • 𝟙 A') ≫ translation z').left Ψ') : |
| 509 | ∃ b : R, ∀ v, T (Ψ' v) = b • Ψ (T v) := by |
| 510 | -- `f` is additive and carries `z` to `z'`, so it intertwines `y ↦ m y + z` on `A` and |
| 511 | -- `y ↦ m y + z'` on `A'`. |
| 512 | have h_map : ((m • 𝟙 A) ≫ translation z).left ≫ f.left = |
| 513 | f.left ≫ ((m • 𝟙 A') ≫ translation z').left := by |
| 514 | simp [← comp_left, hz, AddGrpObj.zsmul_comp, comp_add, add_comp] |
| 515 | have h_lift : IsSectionLift L L' (f.left ≫ ((m • 𝟙 A') ≫ translation z').left) (Ψ ∘ T) := by |
| 516 | simpa only [h_map] using hΨ.comp hT |
| 517 | exact (hT.comp hΨ').exists_eq_smul h_const h_lift |
| 518 | |
| 519 | /-- Let `U : ℤˣ → H → Module.End R (N.H0 R)` satisfy the theta-law coordinate formula |
| 520 | `U m s (coordSection hN t) = c s t • coordSection hN ((m : ℤ) • (s + t))` for a theta structure |
| 521 | `h : IsThetaStructure Lg η hN c`. If the coordinate sections `coordSection hN` span `N.H0 R`, then |
| 522 | `U 1 (s + s) * U (-1) 0 * U 1 s = U 1 s * U (-1) 0` for all `s : H`. -/ |
| 523 | private lemma IsThetaStructure.mul_neg_one_zero_mul (h : IsThetaStructure Lg η hN c) |
| 524 | (h_span : span R (range (coordSection hN)) = ⊤) {U : ℤˣ → H → Module.End R (N.H0 R)} |
| 525 | (hU_coord : ∀ (m : ℤˣ) (s t : H), |
| 526 | U m s (coordSection hN t) = c s t • coordSection hN ((m : ℤ) • (s + t))) |
| 527 | (s : H) : |
| 528 | U 1 (s + s) * U (-1) 0 * U 1 s = U 1 s * U (-1) 0 := by |
| 529 | -- Both sides send the coordinate `coordSection hN t` to a multiple of `coordSection hN (s - t)`. |
| 530 | refine LinearMap.ext_on_range h_span ?_ |
| 531 | -- The scalars agree, since each `c s` is a character of `H` and `c s (-t) = c t s`. |
| 532 | have h_coeff (t : H) : |
| 533 | c s t * (c 0 (s + t) * c (s + s) (-s + -t)) = c 0 t * c s (-t) := by |
| 534 | grind only [IsThetaStructure, map_add_eq_mul, add_neg_cancel] |
| 535 | simp [hU_coord, smul_smul, h_coeff] |
| 536 | |
| 537 | /-- Rigidity. Let `N` on `A` and `N'` on `A'` be theta structures over the ring `R` for the same |
| 538 | finite group `H` of odd order and the same subgroup `Lg`. Assume that global functions on `A` are |
| 539 | constant on the fibres over `R` (`h_const`) and that the coordinates of `N` span `H⁰(N)` (`h_span`). |
| 540 | If a homomorphism `f: A ⟶ A'` carries `η` to `η'` and `[N] = f^* [N']` in the Picard group, then |
| 541 | `f^* N' = N` as linear systems: `f` matches the coordinates. -/ |
| 542 | lemma IsThetaStructure.pull_eq_of_picClass_eq (h : IsThetaStructure Lg η hN c) [Finite H] |
| 543 | (h_const : HasConstFunctions A.hom) (h_span : span R (range (coordSection hN)) = ⊤) |
| 544 | {A' : Over (Spec (CommRingCat.of R))} [AddObj A'] |
| 545 | {η' : H →+ (𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A')} |
| 546 | {N' : LineBundle A'.left H} {hN' : N'.IsLinearSystem} {c' : H → AddChar H R} |
| 547 | (h' : IsThetaStructure Lg η' hN' c') (h_odd : Odd (card H)) (f : A ⟶ A') [IsAdditive f] |
| 548 | (hη : ∀ s : H, η s ≫ f = η' s) (h_cls : N.picClass = N'.picClass.pull f.left) : |
| 549 | N'.pull f.left = N := by |
| 550 | -- Take a lift `T` of `f`. It intertwines the lifts `U' m s` and `U m s` up to scalars, which |
| 551 | -- cancel in the relation `mul_neg_one_zero_mul` between `U 1 (s + s)`, `U 1 s`, and `U (-1) 0`. |
| 552 | -- As `card H` is odd, every element of `H` is some `s + s`, and `pull_eq_of_intertwines` |
| 553 | -- applies. |
| 554 | obtain ⟨T, hT⟩ := exists_isSectionLift f h_cls |
| 555 | choose U hU U_coord using h.theta_law |
| 556 | choose U' hU' U'_coord using h'.theta_law |
| 557 | -- By `hη`, `T ∘ U' m s` and `U m s ∘ T` lift the same map `A ⟶ A'`, so they are proportional. |
| 558 | choose b hb using fun m s ↦ |
| 559 | hT.exists_comp_eq_smul_comp h_const (hη s) (hU m s) (hU' m s) |
| 560 | -- Moving `T` to the right gives the scalar `b 1 s * b (-1) 0` on both sides. |
| 561 | have h_transfer (s : H) (v : N'.H0 R) : |
| 562 | T (U' 1 s (U' (-1) 0 v)) = U 1 (s + s) (T (U' (-1) 0 (U' 1 s v))) := by |
| 563 | have h_rel_T : (b 1 s * b (-1) 0) • U 1 s (U (-1) 0 (T v)) = |
| 564 | (b 1 s * b (-1) 0) • U 1 (s + s) (U (-1) 0 (U 1 s (T v))) := by |
| 565 | rw [← mul_apply_eq_comp, ← h.mul_neg_one_zero_mul h_span U_coord s] |
| 566 | rfl |
| 567 | simpa only [hb, map_smul, smul_smul, mul_comm] using h_rel_T |
| 568 | have hU_one (s t : H) : U 1 s (coordSection hN t) = c s t • coordSection hN (s + t) := by |
| 569 | simpa using U_coord 1 s t |
| 570 | -- As `card H` is odd, every element of `H` is `s + s` for some `s`. |
| 571 | have h_two : Function.Surjective fun s : H ↦ 2 • s := |
| 572 | h_odd.coprime_two_right.nsmul_right_bijective.surjective |
| 573 | refine h.pull_eq_of_intertwines h_span h' hU_one hT (h_two.forall.mpr fun s ↦ ?_) |
| 574 | -- At `v = coordSection hN' (-s)` both sides carry the unit `c' s s`. |
| 575 | simpa [U'_coord, h'.neg_eq_swap, two_smul, ((c' s).val_isUnit s).smul_left_cancel] using |
| 576 | h_transfer s (coordSection hN' (-s)) |
| 577 | |
| 578 | /-- Let `N` be a theta structure on `A` over the ring `R`, indexed by the finite group `H`, which is |
| 579 | a projective embedding. Assume that global functions on `A` are constant on the fibres over `R` |
| 580 | (`h_const`), and that the coordinates of `N` span `H⁰(N)` (`h_span`). If the translation by a |
| 581 | section `y` lifts to `N` (when `R` is local, this means `y ∈ K([N])`), then `y` is killed by the |
| 582 | order of `H`. -/ |
| 583 | lemma IsThetaStructure.card_nsmul_eq_zero_of_isTranslationLift (h : IsThetaStructure Lg η hN c) |
| 584 | [Finite H] (h_const : HasConstFunctions A.hom) (h_span : span R (range (coordSection hN)) = ⊤) |
| 585 | (hE : N.IsProjEmbedding A.hom) {y : 𝟙_ (Over (Spec (CommRingCat.of R))) ⟶ A} |
| 586 | {Ψ : Module.End R ↥(N.H0 R)} (hΨ : IsTranslationLift N y Ψ) : |
| 587 | card H • y = 0 := by |
| 588 | -- Put `n = card H`. The lift `Ψ ^ n` of the translation by `n • y` satisfies the hypothesis of |
| 589 | -- `pull_eq_of_intertwines`, so this translation keeps the coordinates; and `N` is an embedding. |
| 590 | -- `U s` lifts the translation by `η s` and acts on coordinates by the theta law. |
| 591 | have h_law : ∀ s : H, ∃ Φ : Module.End R (N.H0 R), IsTranslationLift N (η s) Φ ∧ |
| 592 | ∀ t : H, Φ (coordSection hN t) = c s t • coordSection hN (s + t) := by |
| 593 | simpa using h.theta_law 1 |
| 594 | choose U hU U_coord using h_law |
| 595 | have h_comm (s : H) : |
| 596 | (Ψ ^ card H) (coordSection hN s) = U s ((Ψ ^ card H) (coordSection hN 0)) := by |
| 597 | -- Evaluate the commutation at `coordSection hN 0`. |
| 598 | simpa [U_coord] using LinearMap.congr_fun |
| 599 | (hΨ.commute_pow_of_nsmul_eq_zero h_const (hU s) (by simp [← map_nsmul])).eq |
| 600 | (coordSection hN 0) |
| 601 | have h_pull : N.pull (translation (card H • y)).left = N := |
| 602 | h.pull_eq_of_intertwines h_span h U_coord (hΨ.pow (card H)) h_comm |
| 603 | -- maps into `A` over `R` that pull `N` back to the same linear system are equal (`hE.ext`) |
| 604 | have h_transl : translation (card H • y) = 𝟙 A := OverMorphism.ext (hE.ext h_pull (w _)) |
| 605 | simpa [comp_add] using y ≫= h_transl |
| 606 | |
| 607 | end ThetaStructure |
| 608 | |
| 609 | end New.Variety |