Source context 7 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
universe u v w
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open NeronModelInfra GoodReductionJacobian
open scoped CategoryTheory.MonObj BigOperators TensorProduct
namespace JacobianVarieties.Albanese
Lean source · full declarationtheorem formal_boundary_block_tuple_and_sum
{K E L : Type u} [Field K] [Field E] [Field L]
[Algebra K L] [Algebra E L]
{C : Scheme.{u}} [IsIntegral C]
(c : C ⟶ Spec (.of K)) [IsSeparated c] [SmoothOfRelativeDimension 1 c]
(U : C.Opens) (hU : (U : Set C).Nonempty)
{m : ℕ}
(r : Spec (.of E) ⟶ Spec (.of K)) (D : RelEffCartierDiv c m r)
{I : Type u} [Finite I] (F : I → Type u)
[∀ i, Field (F i)] [∀ i, Algebra E (F i)]
[∀ i, FiniteDimensional E (F i)] [∀ i, Algebra.IsSeparable E (F i)]
(n : I → ℕ) (hn : ∀ i, Module.finrank E (F i) = n i)
(embeddings : ∀ i, Fin (n i) → F i →ₐ[E] L) (hι : ∀ i, Function.Injective (embeddings i))
(j : ∀ i, C.functionField →+* F i)
(e : (∐ fun i : I => Spec (.of (F i))) ≅ D.I.subscheme)
(hbase : e.hom ≫ D.I.subschemeι ≫
pullback.snd c r =
Sigma.desc (fun i : I => Spec.map (CommRingCat.ofHom (algebraMap E (F i)))))
(hsource : ∀ i : I,
Sigma.ι (fun i : I => Spec (.of (F i))) i ≫ e.hom ≫ D.I.subschemeι ≫
pullback.fst c r =
Spec.map (CommRingCat.ofHom (j i)) ≫ C.fromSpecStalk (genericPoint C))
(G : CommGrp (Over (Spec (.of K))))
(q : SchemeHomOver (U.ι ≫ c) G.X.hom)
(s : OpenCurveSum c U (commGroupRelativeLaw G) q m)
(τ : E →+* PowerSeries L)
(hτ : PowerSeries.constantCoeff.comp τ = algebraMap E L)
(hstructure : Spec.map (CommRingCat.ofHom τ) ≫ r =
Spec.map (CommRingCat.ofHom (algebraMap K (PowerSeries L)))) :
let t := Spec.map (CommRingCat.ofHom (algebraMap K (PowerSeries L)))
let f := Spec.map (CommRingCat.ofHom τ)
let hf : f ≫ r = t := hstructure
let A := D.pullbackAlong f hf
∃ (index : Fin m ≃ (Σ i, Fin (n i)))
(xs : Fin m → SchemeHomOver t (U.ι ≫ c)) (hA : A.SupportedIn U),
(∀ a, (xs a).val ≫ U.ι =
Spec.map (CommRingCat.ofHom
((PowerSeries.formalEmbeddingLift τ hτ
(embeddings (index a).1 (index a).2)).comp (j (index a).1))) ≫
C.fromSpecStalk (genericPoint C)) ∧
(A.restrictToOpen c U hA).I =
prodKerGraph (U.ι ≫ c) (fun a => (xs a).val) (fun a => (xs a).property) ∧
supportedDivisorSum c U s.universal s.sum A hA =
(commGroupRelativeLaw G).sumList t
(List.ofFn fun a => NeronModelInfra.schemeHomOverComp (xs a) q) := by
classical
let _ : Fintype I := Fintype.ofFinite I
intro t f hf A
let fields : I → CommRingCat := fun i => .of (F i)
let productIso : Spec (.of (∀ i, F i)) ≅ D.I.subscheme :=
(asIso (sigmaSpec fields)).symm ≪≫ e
have hσProduct : sigmaSpec fields ≫ productIso.hom = e.hom := by
change (asIso (sigmaSpec fields)).hom ≫
(asIso (sigmaSpec fields)).inv ≫ e.hom = e.hom
exact (asIso (sigmaSpec fields)).hom_inv_id_assoc _
have hproductBase : productIso.hom ≫ D.I.subschemeι ≫
pullback.snd c r =
Spec.map (CommRingCat.ofHom (algebraMap E (∀ i, F i))) := by
apply (cancel_epi (sigmaSpec fields)).mp
calc
sigmaSpec fields ≫ productIso.hom ≫ D.I.subschemeι ≫ pullback.snd c r =
e.hom ≫ D.I.subschemeι ≫ pullback.snd c r := by
rw [← Category.assoc, hσProduct]
_ = Sigma.desc (fun i : I =>
Spec.map (CommRingCat.ofHom (algebraMap E (F i)))) := hbase
_ = sigmaSpec fields ≫
Spec.map (CommRingCat.ofHom (algebraMap E (∀ i, F i))) := by
apply Sigma.hom_ext
intro i
rw [Sigma.ι_comp_desc, ι_sigmaSpec_assoc, ← Spec.map_comp]
rfl
have hproductSource (i : I) :
Spec.map (CommRingCat.ofHom (Pi.evalRingHom F i)) ≫
productIso.hom ≫ D.I.subschemeι ≫
pullback.fst c r =
Spec.map (CommRingCat.ofHom (j i)) ≫ C.fromSpecStalk (genericPoint C) := by
calc
Spec.map (CommRingCat.ofHom (Pi.evalRingHom F i)) ≫
productIso.hom ≫ D.I.subschemeι ≫ pullback.fst c r =
Sigma.ι (fun i : I => Spec (.of (F i))) i ≫ sigmaSpec fields ≫
productIso.hom ≫ D.I.subschemeι ≫ pullback.fst c r := by
rw [← ι_sigmaSpec fields i, Category.assoc]
_ = Sigma.ι (fun i : I => Spec (.of (F i))) i ≫
e.hom ≫ D.I.subschemeι ≫ pullback.fst c r := by
rw [← Category.assoc (sigmaSpec fields) productIso.hom
(D.I.subschemeι ≫ pullback.fst c r), hσProduct]
_ = Spec.map (CommRingCat.ofHom (j i)) ≫
C.fromSpecStalk (genericPoint C) := hsource i
let mA : A.I.subscheme ⟶ D.I.subscheme := comapSubschemeMapOver D.I f hf
have hraw : IsPullback mA (A.I.subschemeι ≫ pullback.snd c t)
(D.I.subschemeι ≫ pullback.snd c r) f :=
isPullback_comap_snd_over D.I f hf
have hp : IsPullback (mA ≫ productIso.inv)
(A.I.subschemeι ≫ pullback.snd c t)
(Spec.map (CommRingCat.ofHom (algebraMap E (∀ i, F i)))) f := by
apply hraw.of_iso (Iso.refl _) productIso.symm (Iso.refl _) (Iso.refl _)
· simp only [Iso.refl_hom, Iso.symm_hom, Category.id_comp]
· simp only [Iso.refl_hom, Category.comp_id, Category.id_comp]
· simp only [Iso.refl_hom, Iso.symm_hom, Category.comp_id]
exact (productIso.inv_hom_id_assoc _).symm.trans
(congrArg (fun z => productIso.inv ≫ z) hproductBase)
· simp only [Iso.refl_hom, Category.comp_id, Category.id_comp]
obtain ⟨d, hdBase, hdSource⟩ :=
Scheme.exists_formal_product_field_fiber_coprod_iso F n hn embeddings hι τ hτ
let total : (∐ fun _ : Σ i, Fin (n i) => Spec (.of (PowerSeries L))) ≅
A.I.subscheme := d ≪≫ hp.isoPullback.symm
have htotalBase : total.hom ≫ A.I.subschemeι ≫ pullback.snd c t =
Sigma.desc (fun _ : Σ i, Fin (n i) => 𝟙 (Spec (.of (PowerSeries L)))) := by
rw [← hp.isoPullback_hom_snd]
simp only [total, Iso.trans_hom, Iso.symm_hom, Category.assoc,
Iso.inv_hom_id_assoc]
exact hdBase
have hmSource : mA ≫ D.I.subschemeι ≫
pullback.fst c r =
A.I.subschemeι ≫ pullback.fst c t := by
change comapSubschemeMapOver D.I f hf ≫ D.I.subschemeι ≫ pullback.fst c r =
(D.I.comap (mapOnProdOver c f hf)).subschemeι ≫ pullback.fst c t
rw [(isPullback_comapSubschemeMapOver D.I f hf).w_assoc, mapOnProdOver_fst]
have htotalSource (i : I) (a : Fin (n i)) :
Sigma.ι (fun _ : Σ i, Fin (n i) => Spec (.of (PowerSeries L))) ⟨i, a⟩ ≫
total.hom ≫ A.I.subschemeι ≫ pullback.fst c t =
Spec.map (CommRingCat.ofHom
((PowerSeries.formalEmbeddingLift τ hτ (embeddings i a)).comp (j i))) ≫
C.fromSpecStalk (genericPoint C) := by
rw [← hmSource]
have hm : mA = hp.isoPullback.hom ≫
pullback.fst (Spec.map (CommRingCat.ofHom (algebraMap E (∀ i, F i)))) f ≫
productIso.hom := by
rw [hp.isoPullback_hom_fst_assoc, Category.assoc, Iso.inv_hom_id, Category.comp_id]
rw [hm]
simp only [total, Iso.trans_hom, Iso.symm_hom, Category.assoc,
Iso.inv_hom_id_assoc]
rw [reassoc_of% hdSource i a]
simp only [CommRingCat.ofHom_comp, Spec.map_comp, Category.assoc, hproductSource]
have hcard : Fintype.card (Σ i, Fin (n i)) = m :=
card_eq_degree_of_constant_coprod A total htotalBase
let index : Fin m ≃ (Σ i, Fin (n i)) := (Fintype.equivFinOfCardEq hcard).symm
let reindex := reindexConstantCoprod (Spec (.of (PowerSeries L))) index
let labelled := reindex ≪≫ total
have hlabelled : labelled.hom ≫ A.I.subschemeι ≫ pullback.snd c t =
Sigma.desc (fun _ : Fin m => 𝟙 (Spec (.of (PowerSeries L)))) := by
simp only [labelled, Iso.trans_hom, Category.assoc]
rw [htotalBase]
apply Sigma.hom_ext
intro a
simp only [reindex, reindexConstantCoprod, Sigma.ι_comp_desc_assoc,
Sigma.ι_comp_desc]
obtain ⟨ys, hys, hI⟩ := A.exists_tuple_of_coprod_iso labelled hlabelled
have hηU : genericPoint C ∈ U :=
((genericPoint_spec C).mem_open_set_iff U.isOpen).mpr
(by simpa only [Set.univ_inter] using hU)
let xu (a : Fin m) : Spec (.of (PowerSeries L)) ⟶ U :=
Spec.map (CommRingCat.ofHom
((PowerSeries.formalEmbeddingLift τ hτ
(embeddings (index a).1 (index a).2)).comp (j (index a).1))) ≫
U.fromSpecStalkOfMem (genericPoint C) hηU
have hxu (a : Fin m) : xu a ≫ U.ι = (ys a).val := by
rw [hys]
simp only [labelled, Iso.trans_hom, reindex, reindexConstantCoprod,
Category.assoc, Sigma.ι_comp_desc_assoc]
rw [htotalSource]
simp only [xu, Category.assoc, Scheme.Opens.fromSpecStalkOfMem_ι]
let xs : Fin m → SchemeHomOver t (U.ι ≫ c) :=
fun a => ⟨xu a, by rw [← Category.assoc, hxu]; exact (ys a).property⟩
have : SmoothOfRelativeDimension 1 (U.ι ≫ c) :=
inferInstanceAs (SmoothOfRelativeDimension (0 + 1) (U.ι ≫ c))
obtain ⟨A', hA'I, hA'U⟩ := RelEffCartierDiv.exists_I_eq_prodKerGraph_and_supportedIn U
(fun a => (ys a).val) (fun a => (ys a).property) (by
intro a z hz
obtain ⟨y, rfl⟩ := hz
rw [← hxu a]
exact (xu a y).property)
have hA : A.SupportedIn U := by
change (A.I.support : Set ↥(pullback c t : Scheme.{u})) ⊆ (pullback.fst c t) ⁻¹' (U : Set C)
rw [hI, ← hA'I]
exact hA'U
have hIopen : (A.restrictToOpen c U hA).I =
prodKerGraph (U.ι ≫ c) (fun a => (xs a).val) (fun a => (xs a).property) := by
rw [RelEffCartierDiv.restrictToOpen_I]
have hIfull : A.I = prodKerGraph c (fun a => (xs a).val ≫ U.ι)
(fun a => by rw [Category.assoc, (xs a).property]) := by
simpa only [xs, hxu] using hI
rw [hIfull]
exact RelEffCartierDiv.prodKerGraph_comap_openProdMap c U xs
refine ⟨index, xs, hA, ?_, hIopen, ?_⟩
· intro a
simp only [xs, xu, Category.assoc, Scheme.Opens.fromSpecStalkOfMem_ι]
· exact supportedDivisorSum_evaluate_tuple c U s.universal s.tupleMap
s.tupleMap_toBase s.tuple_ideal (commGroupRelativeLaw G) q s.sum s.tuple_sum
t xs A hA hIopen