module import TauCeti.Algebra.Group.AffineSequence public import Mathlib.AlgebraicGeometry.Morphisms.QuasiFinite import Mathlib.AlgebraicGeometry.AffineSpace import Mathlib.AlgebraicGeometry.Modules.Sheaf import Mathlib.AlgebraicGeometry.ZariskisMainTheorem import Mathlib.RingTheory.Henselian import TauCeti.LinearAlgebra.QuadraticForm.OfParallelogram public import Lib.Cohomology.Etale.Basic public import Lib.General.Geometry.ProjectiveSpace public import Lib.Shimura.AbelianScheme.Basic /-! # Pairings of line bundle classes on abelian schemes and their fpqc descent This file studies classes of line bundles on commutative group schemes and abelian schemes. Line bundles are cocycles (`New.LineBundle`), and `New.Pic` is written additively. For a class `c` and points `x`, `y`, the pairing `New.Pic.pairing c x y` is the class (x + y)^*c − x^*c − y^*c + 0^*c. The file proves rules for the pairing, a quasi-finiteness criterion, and stability of abelian schemes under base change. It also treats the descent of identities between pairings along an fpqc cover. ## Main definitions and results * `New.Variety.locallyQuasiFinite_of_pull_picClass`: a map that pulls a class back to a nonzero multiple of an embedding class is locally quasi-finite. * `New.Pic.ParallelogramLaw.pairing_nsmul_left`, `New.Variety.pairing_comm`, `New.Variety.pairing_comp`: rules for the pairing. * `New.Variety.pull_nsmul_eq_sq_smul`: over a local ring, multiplication by `m` pulls `c` back to `m² c` if `c` satisfies the parallelogram law. Notions from other files: * `New.Pic.atPoint`: For c in Pic A and a T-point x of A, the pull-back x^*c in Pic T. * `New.Pic.ParallelogramLaw`: (x + y)^*c + (x − y)^*c + 2·0^*c = 2(x^*c + y^*c) for all points. * `New.IsAbelianScheme`: a commutative group scheme A over S is abelian if it is smooth and proper over S and multiplication by every m ≠ 0 is surjective. * `New.LineBundle.IsProjEmbedding L s`: `L` embeds `X` in projective space over `S`: it is a linear system, `s` is proper, and points of one chart with the same coordinates and the same image in `S` are equal. ## Relation to the literature Known; see `Lib.Shimura.AbelianScheme.IsogenyFlatness` for sources. -/ @[expose] public section /-! ## Quasi-finiteness, rules for the pairing, and multiplication by m -/ namespace New open CategoryTheory Over AlgebraicGeometry MonoidalCategory CartesianMonoidalCategory AffineSpace LineBundle Pic IsFinite MorphismProperty variable {S : Scheme} {A B T : Over S} /-- If `L` is a projective embedding of `X` over `Y` along `s : X ⟶ Y` whose transition functions `L.transition i j` equal `PointFn.ofSection (a j) * u i` on `L.opens i` for global functions `a : κ → Γ(X, ⊤)` and point functions `u : κ → PointFn X`, then `homOfVector s a : X ⟶ 𝔸(κ; Y)` is a closed immersion. -/ private lemma LineBundle.IsProjEmbedding.isClosedImmersion_homOfVector {X Y : Scheme} {κ : Type} {L : LineBundle X κ} {s : X ⟶ Y} (hL : L.IsProjEmbedding s) {u : κ → PointFn X} {a : κ → Γ(X, ⊤)} (ha : ∀ (j i : κ) (R : CommRingCat) (t : Spec R ⟶ X), LandsIn t (L.opens i) → L.transition i j R t = (PointFn.ofSection (a j) * u i) R t) : IsClosedImmersion (homOfVector s a) := by have h_lin : L.IsLinearSystem := hL.isLinearSystem -- Two points with the same image pull back the same system, and `L` separates points. have h_mono : Mono (homOfVector s a) := by refine ⟨fun {Z} x y hxy ↦ ?_⟩ have h_val (l : κ) (R : CommRingCat) (t : Spec R ⟶ Z) : PointFn.ofSection (a l) R (t ≫ x) = PointFn.ofSection (a l) R (t ≫ y) := by rw [← homOfVector_appTop_coord s a l, PointFn.ofSection_appTop, PointFn.ofSection_appTop, Category.assoc, Category.assoc, hxy] have h_base : x ≫ s = y ≫ s := by rw [← homOfVector_over s a, reassoc_of% hxy] suffices h_pull : L.pull x = L.pull y from hL.ext h_pull h_base refine (h_lin.pull _).ext_of_transition_eq_mul (h_lin.pull _) fun i j k R t hi hj ↦ ?_ simp only [pull_opens, landsIn_preimage, pull_transition, PointFn.pull, Pi.mul_apply] at ha hi hj ⊢ have h_one : PointFn.ofSection (a i) R (t ≫ y) * u i R (t ≫ y) = 1 := by rw [← ha i i R (t ≫ y) hi, L.transition_self i R _ hi] change L.transition j k R (t ≫ x) = L.transition j i R (t ≫ x) * L.transition i k R (t ≫ y) rw [ha k j R (t ≫ x) hj, ha i j R (t ≫ x) hj, ha k i R (t ≫ y) hi, h_val k, h_val i] linear_combination -(PointFn.ofSection (a k) R (t ≫ y) * u j R (t ≫ x)) * h_one have hs_proper : IsProper (homOfVector s a ≫ (𝔸(κ; Y) ↘ Y)) := by rw [homOfVector_over] exact hL.isProper have h_proper : IsProper (homOfVector s a) := IsProper.of_comp _ (𝔸(κ; Y) ↘ Y) exact (IsClosedImmersion.iff_isProper_and_mono _).mpr ⟨h_proper, h_mono⟩ /-- If `L` is a projective embedding of `X` over `Y` along `s : X ⟶ Y` and its Picard class vanishes (`L.picClass = 0`), then `s` is finite. -/ private lemma LineBundle.IsProjEmbedding.isFinite_of_picClass_eq_zero {X Y : Scheme} {κ : Type} {L : LineBundle X κ} {s : X ⟶ Y} (hL : L.IsProjEmbedding s) (h_class : L.picClass = 0) : IsFinite s := by have hs_proper : IsProper s := hL.isProper refine iff_isProper_and_isAffineHom.mpr ⟨hs_proper, ?_⟩ obtain ⟨u, hu⟩ : ∃ u : κ → PointFn X, L.IsFrame u := exists_isFrame_of_picClass_eq_zero h_class -- The `j`-th section of the system is a global function `a j` times the frame `u`. have h_coords (j : κ) : ∃ a : Γ(X, ⊤), ∀ (i : κ) (R : CommRingCat) (t : Spec R ⟶ X), LandsIn t (L.opens i) → L.transition i j R t = (PointFn.ofSection a * u i) R t := hu.exists_eq_mul (hL.isLinearSystem.isSection j) choose a ha using h_coords -- `s` factors as `homOfVector s a` followed by the structure map of affine space. rw [← homOfVector_over s a] have h_closed_imm : IsClosedImmersion (homOfVector s a) := hL.isClosedImmersion_homOfVector ha -- A closed immersion followed by the structure map of affine space is affine. infer_instance /-- Let N be a linear system separating the points of A, proper over S, and let B be separated over S. An S-morphism f : A → B with f^*c = m[N] for some c in Pic B and m ≠ 0 is locally quasi-finite. -/ lemma Variety.locallyQuasiFinite_of_pull_picClass [IsSeparated B.hom] {ι : Type} {c : Pic B.left} {m : ℕ} {N : LineBundle A.left ι} (hN : N.IsProjEmbedding A.hom) {f : A ⟶ B} (hm : m ≠ 0) (hf : Pic.pull f.left c = m • N.picClass) : LocallyQuasiFinite f.left := by -- On a fibre `X` of `f` the embedding system `N.pow m` is a trivial bundle, so its sections are -- global functions. They embed `X` as a closed subscheme of affine space, so `X` is affine. have hN_pow : (N.pow m).IsProjEmbedding A.hom := hN.pow hm have hA_proper : IsProper A.hom := hN.isProper have hf_proper : IsProper f.left := by have h_comp : IsProper (f.left ≫ B.hom) := by rwa [f.w] exact IsProper.of_comp f.left B.hom -- Since `B` is separated over `S`, `N.pow m` is also a projective embedding over `B`. have hN_pow_f : (N.pow m).IsProjEmbedding f.left := ⟨hN_pow.isLinearSystem, hf_proper, fun ha hb h_coord h_base ↦ hN_pow.eq_of_transition_eq ha hb h_coord (by rw [← f.w, reassoc_of% h_base])⟩ refine locallyQuasiFinite_iff_isFinite_fiber.mpr fun b ↦ ?_ suffices h_fibre_finite : ∀ {X : Scheme} {p : X ⟶ A.left} {s : X ⟶ Spec (B.left.residueField b)}, IsPullback p s f.left (B.left.fromSpecResidueField b) → IsFinite s from h_fibre_finite (IsPullback.of_hasPullback f.left (B.left.fromSpecResidueField b)) intro X p s h_fibre -- The pullback `(N.pow m).pull p` embeds the fiber `X` projectively over the residue field. have h_fibre_emb : ((N.pow m).pull p).IsProjEmbedding s := hN_pow_f.of_isPullback h_fibre -- The class of `N.pow m` on `X` comes from the spectrum of a field, so it vanishes. have h_class : ((N.pow m).pull p).picClass = 0 := by simpa [c.pull_comp, ← picClass_pow, eq_zero_of_isLocalRing, hf] using congrArg (fun g ↦ Pic.pull g c) h_fibre.w -- The trivial projective embedding `(N.pow m).pull p` over `s` makes the fiber finite. exact h_fibre_emb.isFinite_of_picClass_eq_zero h_class variable [AddObj A] {c : Pic A.left} {S' : Scheme} (b : S' ⟶ S) {O : Type} [CommRing O] [ModuleObj O A] (x y z : T ⟶ A) (m : ℕ) /-! ### The pairing of a class that satisfies the parallelogram law -/ /-- If `c` satisfies the parallelogram law, its pairing `⟨·, ·⟩` (`New.Pic.pairing`) satisfies `⟨x + y, z⟩ + ⟨x - y, z⟩ = 2 ⟨x, z⟩` for `T`-points `x`, `y`, `z` of `A`. -/ lemma Pic.ParallelogramLaw.pairing_add_add_pairing_sub (hc : c.ParallelogramLaw) (x y z : T ⟶ A) : c.pairing (x + y) z + c.pairing (x - y) z = 2 • c.pairing x z := by grind [pairing, ParallelogramLaw, sub_add_eq_add_sub] /-- If c in Pic A satisfies the parallelogram law on a commutative group scheme A over S, then ⟨mx, y⟩ = m⟨x, y⟩ in Pic T for T-points x, y and natural m, where ⟨x, y⟩ = (x+y)^*c − x^*c − y^*c + 0^*c. -/ lemma Pic.ParallelogramLaw.pairing_nsmul_left (hc : c.ParallelogramLaw) (x y : T ⟶ A) (m : ℕ) : c.pairing (m • x) y = m • c.pairing x y := by have h_rec (n : ℕ) (_ : n + 2 < m + 1) : c.pairing (n • x) y + c.pairing ((n + 2) • x) y = 2 • c.pairing ((n + 1) • x) y := by simpa [succ_nsmul, add_comm] using hc.pairing_add_add_pairing_sub ((n + 1) • x) x y have h_zero : c.pairing 0 y = 0 := by simp [pairing] simpa [h_zero] using TauCeti.eq_add_nsmul_sub_of_add_eq_two_nsmul h_rec m (Nat.lt_succ_self m) /-- If `c` satisfies the parallelogram law, the pairing of `m • c` at `(x, y)` is the pairing of `c` at `(m • x, y)`. -/ lemma Pic.ParallelogramLaw.nsmul_pairing_eq_pairing_nsmul (hc : c.ParallelogramLaw) (x y : T ⟶ A) (m : ℕ) : (m • c).pairing x y = c.pairing (m • x) y := by rw [hc.pairing_nsmul_left] simp [pairing, atPoint, smul_sub] namespace Variety /-! ### Base change and products -/ /-- Let `A` be a commutative group scheme over `S` with an action of the ring `O` (`ModuleObj O A`). The pull-back of `A` along `b : S' → S`, with the counit as projection, is a base change in the sense of `New.IsGroupBaseChange`: the square is a pullback, and composing with the counit is `O`-linear on points. -/ lemma isGroupBaseChange_counit : IsGroupBaseChange b (A := A) ((mapPullbackAdj b).counit A) where isPullback := IsPullback.of_hasPullback A.hom b linear {U} := by -- The module structure on the `U`-points of the pullback is transported along the adjunction -- bijection `e`, and `e.symm` is composition with the counit. let e : ((CategoryTheory.Over.map b).obj U ⟶ A) ≃ (U ⟶ (pullback b).obj A) := (mapPullbackAdj b).homEquiv U A have h_add (x y : (CategoryTheory.Over.map b).obj U ⟶ A) : e (x + y) = e x + e y := by unfold pullbackAddObj simp [e, Adjunction.homEquiv, Functor.map_add', comp_add] change IsLinearMap O e.symm exact (AddEquiv.linearEquiv O (AddEquiv.mk e h_add).symm).isLinear /-- The pairing `⟨x, y⟩ = (x + y)^*c − x^*c − y^*c + 0^*c` of a class `c` in `Pic A` is symmetric in the `T`-points `x`, `y` of `A`. -/ lemma pairing_comm : c.pairing x y = c.pairing y x := by grind [pairing] /-- Pairing after pulling `c` back along a homomorphism `f : B → A` is pairing at the images under `f`. -/ lemma pairing_comp [AddObj B] (f : B ⟶ A) [IsAdditive f] (x y : T ⟶ B) : (c.pull f.left).pairing x y = c.pairing (x ≫ f) (y ≫ f) := by simp [pairing, Pic.atPoint, ← c.pull_comp, ← comp_left, add_comp] /-- The product over `S` of two proper schemes over `S` is proper over `S`. -/ instance [IsProper A.hom] [IsProper B.hom] : IsProper (A ⊗ B).hom := by simpa using (inferInstance : IsProper (Limits.pullback.fst A.hom B.hom ≫ A.hom)) /-- The base change of an abelian scheme along `b : S' → S` is an abelian scheme over `S'`. -/ noncomputable instance [i : IsAbelianScheme B] : IsAbelianScheme (pullback b B) := -- `h`: the pull-back of `B` along `b`, with the counit as projection, is a group base change. have h := isGroupBaseChange_counit b -- Smoothness and properness pass to the base change, and multiplication by `m` on the -- pullback is the base change of multiplication by `m` on `B`. IsAbelianScheme.mk (toSmooth := of_isPullback h.isPullback i.toSmooth) (toIsProper := of_isPullback h.isPullback i.toIsProper) fun m hm ↦ of_isPullback (.of_bot (by simp_rw [w, h.isPullback]) (h.nsmul_id_comp m).symm h.isPullback) (i.nsmul_surjective m hm) variable {R : CommRingCat} {A : Over (Spec R)} [IsLocalRing R] [AddObj A] {c : Pic A.left} /-! ### Group schemes over a local ring -/ /-- Let `A` be a commutative group scheme over a local ring and `c` a class in `Pic A` that satisfies the parallelogram law `New.Pic.ParallelogramLaw`. Then the pull-back of `c` under multiplication by a natural number `m` is `m² c`. -/ lemma pull_nsmul_eq_sq_smul (hc : c.ParallelogramLaw) (m : ℕ) : Pic.pull (m • 𝟙 A).left c = m ^ 2 • c := by simpa [Pic.atPoint, pow_two] using TauCeti.QuadraticMap.map_nsmul_of_parallelogram (f := fun x : A ⟶ A ↦ c.atPoint x) (by simp) (fun x y ↦ by simpa [smul_add] using hc x y) m (𝟙 A) end Variety end New /-! ## Descent of pairing identities along an fpqc cover A' is a base change to S of an abelian variety over a field, and f : A → A₁ is flat, surjective and quasi-compact over S. * `New.Variety.eq_pull_zero_section`: a class on A₁ × A' that is trivial on A × A' is pulled back from A₁ × 0. * `New.Variety.pairing_eq_of_fpqc_cover`: an identity between two pairings that holds for points factoring through f holds for all points. The idea: global functions on a base change of A' are constant along A' (`New.Variety.hasConstFunctions_of_isPullback`), so a frame normalised along the zero section descends. -/ section PairingDescent open CategoryTheory AlgebraicGeometry MonoidalCategory CartesianMonoidalCategory Over New LineBundle Pic /-- Let `f : A → A₁` be a morphism over `S`. For `T`-points `x` of `A` and `a` of `A'`, the point `(x, a)` of `A × A'` maps to `(f x, a)` under `f × 1` (as morphisms of underlying schemes). -/ lemma New.Variety.lift_left_comp_whiskerRight_left {S : Scheme.{0}} {A A₁ T A' : Over S} (x : T ⟶ A) (a : T ⟶ A') (f : A ⟶ A₁) : (lift x a).left ≫ (f ▷ A').left = (lift (x ≫ f) a).left := by rw [← comp_left, lift_whiskerRight] /-- Let `f : A → A₁` be a morphism over `S`. Two `Y`-points of `A × A'` with the same image under `f × 1` lie over one point `s` of `S` and have the form `(x, z)` and `(y, z)` with `f x = f y`. -/ lemma New.Variety.exists_eq_lift_of_comp_whiskerRight_eq {S : Scheme.{0}} {A A₁ A' : Over S} (f : A ⟶ A₁) {Y : Scheme} {t t' : Y ⟶ (A ⊗ A').left} (same_image : t ≫ (f ▷ A').left = t' ≫ (f ▷ A').left) : ∃ (s : Y ⟶ S) (x y : Over.mk s ⟶ A) (z : Over.mk s ⟶ A'), x ≫ f = y ≫ f ∧ (lift x z).left = t ∧ (lift y z).left = t' := by let s : Y ⟶ S := t ≫ (A ⊗ A').hom have ht' : t' ≫ (A ⊗ A').hom = s := by rw [← Over.w (f ▷ A'), ← reassoc_of% same_image, Over.w] -- `t` and `t'` underlie points `u` and `u'` over `s`; take their components obtain ⟨u, hu⟩ : ∃ u : Over.mk s ⟶ A ⊗ A', u.left = t := ⟨homMk t, rfl⟩ obtain ⟨u', hu'⟩ : ∃ u' : Over.mk s ⟶ A ⊗ A', u'.left = t' := ⟨homMk t' ht', rfl⟩ have h_image : u ≫ f ▷ A' = u' ≫ f ▷ A' := by apply OverMorphism.ext rw [comp_left, comp_left, hu, hu', same_image] have h_fst : (u ≫ fst A A') ≫ f = (u' ≫ fst A A') ≫ f := by simpa using h_image =≫ fst A₁ A' have h_snd : u ≫ snd A A' = u' ≫ snd A A' := by simpa using h_image =≫ snd A₁ A' refine ⟨s, u ≫ fst A A', u' ≫ fst A A', u ≫ snd A A', h_fst, ?_, ?_⟩ · rw [lift_comp_fst_snd, hu] · rw [h_snd, lift_comp_fst_snd, hu'] variable {k : Type} [Field k] {A₀ : Over (Spec ⟨k⟩)} [IsAbelianScheme A₀] [IsIntegral A₀.left] {S : Scheme} {A A₁ A' B B' : Over S} [AddObj A'] [AddObj B] [AddObj B'] {p : A'.left ⟶ A₀.left} {q : S ⟶ Spec (CommRingCat.of k)} /-- Let A' be the base change of an integral abelian variety over a field (`hp`), and let `u` be a frame of the pull-back of `L` along `f × 1`. For points `x`, `y` of `A` with `f x = f y`, the values of `u` at `(x, a)` and `(y, a)` differ by a factor that does not depend on `a`. -/ lemma New.Variety.exists_apply_lift_eq_mul_of_isFrame (hp : IsPullback p A'.hom A₀.hom q) {f : A ⟶ A₁} {ι : Type} {L : LineBundle (A₁ ⊗ A').left ι} {u : ι → PointFn (A ⊗ A').left} (hu : (L.pull (f ▷ A').left).IsFrame u) {R : CommRingCat} {s : Spec R ⟶ S} {x y : Over.mk s ⟶ A} (hxy : x ≫ f = y ≫ f) : ∃ r : R, ∀ (j : ι) (a : Over.mk s ⟶ A'), LandsIn (lift (y ≫ f) a).left (L.opens j) → u j R (lift x a).left = r * u j R (lift y a).left := by -- The frames pulled back along `x × 1` and `y × 1` differ by a global function `r` on the base -- change of `A'` along `s`, and such a function is constant along `A'`. have frame (w : Over.mk s ⟶ A) (hw : w ≫ f = y ≫ f) : (L.pull ((y ≫ f) ▷ A').left).IsFrame fun j : ι ↦ (u j).pull (w ▷ A').left := by rw [← hw, comp_whiskerRight] exact hu.pull (w ▷ A').left obtain ⟨h_section_x, -⟩ := frame x hxy obtain ⟨r, hr⟩ := (frame y rfl).exists_eq_mul h_section_x have const : HasConstFunctions (X := (Over.mk s ⊗ A').left) (Limits.pullback.fst s A'.hom) := hasConstFunctions_of_isPullback (Over.w (AddMonObj.zero (X := A₀))) (.paste_horiz (.flip (.of_hasPullback ..)) hp) have h_over (a : Over.mk s ⟶ A') : (lift (𝟙 (Over.mk s)) a).left ≫ (fst (Over.mk s) A').left = 𝟙 (Over.mk s).left := by rw [← comp_left, lift_fst, id_left] refine ⟨PointFn.ofSection r R (lift (𝟙 (Over.mk s)) 0).left, fun j a ha ↦ ?_⟩ have h_point {X : Over S} (w : Over.mk s ⟶ X) : (lift (𝟙 (Over.mk s)) a).left ≫ (w ▷ A').left = (lift w a).left := by rw [lift_left_comp_whiskerRight_left, Category.id_comp] have h_value : u j R ((lift (𝟙 (Over.mk s)) a).left ≫ (x ▷ A').left) = PointFn.ofSection r R (lift (𝟙 (Over.mk s)) a).left * u j R ((lift (𝟙 (Over.mk s)) a).left ≫ (y ▷ A').left) := by rw [← h_point (y ≫ f)] at ha exact hr j R (lift (𝟙 (Over.mk s)) a).left ha rw [h_point x, h_point y] at h_value rw [h_value, const r R _ _ ((h_over a).trans (h_over 0).symm)] /-- Let `A'` be the base change along `q` of an integral abelian variety `A₀` over a field `k` (`hp`), and let `u` be a frame of the pullback of a line bundle `L` on `A₁ ⊗ A'` along `f ▷ A'`. For two `Spec R`-points `t` and `t'` of `A ⊗ A'` with the same image under `f ▷ A'`, if this image lands in `L.opens i` and its image under `A₁ ◁ 0` lands in `L.opens j`, then `u i R t * Ring.inverse (u j R (t ≫ (A ◁ 0).left))` equals `u i R t' * Ring.inverse (u j R (t' ≫ (A ◁ 0).left))`. -/ private lemma New.Variety.mul_inverse_zero_section_eq_of_isFrame (hp : IsPullback p A'.hom A₀.hom q) {f : A ⟶ A₁} {ι : Type} {L : LineBundle (A₁ ⊗ A').left ι} {u : ι → PointFn (A ⊗ A').left} (hu : (L.pull (f ▷ A').left).IsFrame u) {i j : ι} {R : CommRingCat} {t t' : Spec R ⟶ (A ⊗ A').left} (same_image : t ≫ (f ▷ A').left = t' ≫ (f ▷ A').left) (h₁ : LandsIn (t ≫ (f ▷ A').left) (L.opens i)) (h₂ : LandsIn ((t ≫ (f ▷ A').left) ≫ (A₁ ◁ (0 : A' ⟶ A')).left) (L.opens j)) : u i R t * Ring.inverse (u j R (t ≫ (A ◁ (0 : A' ⟶ A')).left)) = u i R t' * Ring.inverse (u j R (t' ≫ (A ◁ (0 : A' ⟶ A')).left)) := by -- Write `t = (x, z)` and `t' = (y, z)` as points over `s` with `x ≫ f = y ≫ f`. obtain ⟨s, x, y, z, hxy, rfl, rfl⟩ := exists_eq_lift_of_comp_whiskerRight_eq f same_image obtain ⟨r, ratio⟩ := exists_apply_lift_eq_mul_of_isFrame hp hu hxy have h_zero {X : Over S} (w : Over.mk s ⟶ X) : (lift w z).left ≫ (X ◁ (0 : A' ⟶ A')).left = (lift w 0).left := by rw [← comp_left, lift_whiskerLeft, comp_zero] have h_image : (lift x z).left ≫ (f ▷ A').left = (lift (y ≫ f) z).left := by rw [lift_left_comp_whiskerRight_left, hxy] obtain ⟨-, u_unit⟩ := hu have h_unit : IsUnit (u i R (lift x z).left) := u_unit i R (lift x z).left h₁ rw [h_image] at h₁ rw [h_image, h_zero] at h₂ -- The factor `r` is a unit, so it cancels between `a = z` and `a = 0`. have hr_unit : IsUnit r := by rw [ratio i z h₁] at h_unit exact isUnit_of_mul_isUnit_left h_unit rw [h_zero, h_zero, ratio i z h₁, ratio j 0 h₂, Ring.mul_inverse_rev] linear_combination (u i R (lift y z).left * Ring.inverse (u j R (lift y 0).left)) * Ring.mul_inverse_cancel r hr_unit /-- Let A' be the base change along q : S → Spec k of an integral abelian variety A₀ over a field k (`hp`), and let f : A → A₁ be flat, surjective and quasi-compact over S. A class in Pic(A₁ × A') that is trivial on A × A' equals its pull-back along (x, a) ↦ (x, 0). -/ lemma New.Variety.eq_pull_zero_section (hp : IsPullback p A'.hom A₀.hom q) (f : A ⟶ A₁) [Flat f.left] [Surjective f.left] [QuasiCompact f.left] (c : Pic (A₁ ⊗ A').left) (hc : Pic.pull (f ▷ A').left c = 0) : c = Pic.pull (A₁ ◁ 0).left c := by -- Let `L` represent `c`, and `u` be a frame of the pullback of `L` to `A ⊗ A'`; divide it by its -- value along the zero section. The quotient descends to `A₁ ⊗ A'`, because two lifts of a point -- change `u` by a global function on a base change of `A'`, which is constant along `A'` and -- cancels. obtain ⟨ι, L⟩ := c obtain ⟨u, hu⟩ : ∃ u : ι → PointFn (A ⊗ A').left, (L.pull (f ▷ A').left).IsFrame u := exists_isFrame_of_picClass_eq_zero hc have zero_frame : ((L.pull (A₁ ◁ (0 : A' ⟶ A')).left).pull (f ▷ A').left).IsFrame fun j : ι ↦ (u j).pull (A ◁ (0 : A' ⟶ A')).left := by rw [← LineBundle.pull_comp, ← comp_left, ← whisker_exchange f 0, comp_left, LineBundle.pull_comp] exact hu.pull _ -- `u (x, z) / u (x, 0)` is a frame of the pullback of `L ⊗ ((A₁ ◁ 0)^* L)⁻¹` have normalised := hu.mul zero_frame.inv have h_flat : Flat (f ▷ A').left := MorphismProperty.overPullbackMap A'.hom f inferInstance have h_surj : Surjective (f ▷ A').left := MorphismProperty.overPullbackMap A'.hom f inferInstance have h_qc : QuasiCompact (f ▷ A').left := MorphismProperty.overPullbackMap A'.hom f inferInstance -- by fpqc descent it suffices that its values at `t`, `t'` agree when their images agree refine picClass_eq_iff.mpr (exists_isFrame_of_fpqc _ normalised fun i R t t' same_image hi ↦ ?_) obtain ⟨h₁, h₂⟩ : LandsIn (t ≫ (f ▷ A').left) (L.opens i.1) ∧ LandsIn ((t ≫ (f ▷ A').left) ≫ (A₁ ◁ (0 : A' ⟶ A')).left) (L.opens i.2) := landsIn_inf.1 hi exact mul_inverse_zero_section_eq_of_isFrame hp hu same_image h₁ h₂ /-- Let A' be the base change of an integral abelian variety over a field (`hp`), let f : A → A₁ be flat, surjective and quasi-compact, let a, a' be morphisms from A₁, and let b, b' be homomorphisms on A'. If ⟨a(x), b(y)⟩_c = ⟨a'(x), b'(y)⟩_c' for all points x of A₁ factoring through f and y of A', it holds for all x. -/ lemma New.Variety.pairing_eq_of_fpqc_cover (hp : IsPullback p A'.hom A₀.hom q) (f : A ⟶ A₁) [Flat f.left] [Surjective f.left] [QuasiCompact f.left] {c : Pic B.left} {c' : Pic B'.left} (a : A₁ ⟶ B) (b : A' ⟶ B) [IsAdditive b] (a' : A₁ ⟶ B') (b' : A' ⟶ B') [IsAdditive b'] (h_cover : ∀ ⦃T : Over S⦄ (x : T ⟶ A) (y : T ⟶ A'), Pic.pairing c (x ≫ f ≫ a) (y ≫ b) = Pic.pairing c' (x ≫ f ≫ a') (y ≫ b')) ⦃T : Over S⦄ (x : T ⟶ A₁) (y : T ⟶ A') : c.pairing (x ≫ a) (y ≫ b) = c'.pairing (x ≫ a') (y ≫ b') := by -- the difference `d` of the two pairings at the universal point is trivial on `A ⊗ A'` let d : Pic (A₁ ⊗ A').left := c.pairing (fst A₁ A' ≫ a) (snd A₁ A' ≫ b) - c'.pairing (fst A₁ A' ≫ a') (snd A₁ A' ≫ b') have trivial_on_cover : Pic.pull (f ▷ A').left d = 0 := by simp_all [d, Pic.pairing, Pic.atPoint, ← Pic.pull_comp, ← comp_left, -lift_left, comp_add] -- so its value at `(x, y)` is its value at `(x, 0)`, where both pairings vanish have h_zero_section : d = Pic.pull (A₁ ◁ 0).left d := eq_pull_zero_section hp f d trivial_on_cover simpa [d, Pic.pairing, Pic.atPoint, ← Pic.pull_comp, ← comp_left, sub_eq_zero, -lift_left, comp_add] using congrArg (Pic.pull (lift x y).left) h_zero_section end PairingDescent