import OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor.GlobalSections import OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor.SchemeBaseChange /-! # Constant Trivialization -/ namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor noncomputable section /-! Actual global trivializations of the finite etale torsor when its cohomology class vanishes. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry set_option backward.defeqAttrib.useBackward true set_option backward.isDefEq.respectTransparency false universe u variable {X : Scheme.{u}} {โ„“ n : โ„•} [NeZero (โ„“ ^ n)] (E : App.Construction.FiniteCoefficientExtension โ„“ n X) /-- An actual global torsor lift trivializes its actual scheme as the finite constant cover. -/ def App.Construction.FiniteCoefficientExtension.gluedConstantIso (s : E.Fiber (Scheme.ProEt.mk (๐Ÿ™ X))) : Over.mk E.gluedSchemeToBase โ‰… AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme X (ULift.{u} (ZMod (โ„“ ^ n))) := by let U := Scheme.ProEt.mk (๐Ÿ™ X) let eโ‚€ : E.gluedProEt โ‰… E.gluedProEt โจฏ U := { hom := prod.lift (๐Ÿ™ _) ((GlobalSections.Construction.proEtaleIdentityIsTerminal X).from E.gluedProEt) inv := prod.fst hom_inv_id := by simp inv_hom_id := by apply prod.hom_ext ยท simp ยท exact (GlobalSections.Construction.proEtaleIdentityIsTerminal X).hom_ext _ _ } let e := eโ‚€ โ‰ชโ‰ซ (Over.forget U).mapIso (E.gluedTrivialization U s) let e' := (Scheme.ProEt.forget X โ‹™ Over.forget X).mapIso e refine Over.isoMk e' ?_ change e.hom.left โ‰ซ (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme X (ULift.{u} (ZMod (โ„“ ^ n)))).hom = E.gluedSchemeToBase have he : e.hom.left โ‰ซ ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme X (ULift.{u} (ZMod (โ„“ ^ n)))).hom โ‰ซ ๐Ÿ™ X) = E.gluedSchemeToBase := MorphismProperty.Over.w e.hom simpa only [Category.comp_id] using he /-- Vanishing of the actual cohomology class supplies this actual constant-cover isomorphism. -/ def App.Construction.FiniteCoefficientExtension.gluedConstantIsoOfClassEqZero (h : E.extClass = 0) : Over.mk E.gluedSchemeToBase โ‰… AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme X (ULift.{u} (ZMod (โ„“ ^ n))) := by let s := (E.class_eq_zero_iff_scheme_section.mp h).choose have hs : s โ‰ซ E.gluedSchemeToBase = ๐Ÿ™ X := (E.class_eq_zero_iff_scheme_section.mp h).choose_spec let a : Scheme.ProEt.mk (๐Ÿ™ X) โŸถ E.gluedProEt := MorphismProperty.Over.homMk s hs exact E.gluedConstantIso (E.gluedRepresentative.homEquiv a) /-- Vanishing after the actual cohomological pullback trivializes the original scheme's literal geometric base change. -/ def App.Construction.FiniteCoefficientExtension.baseChangeConstantIso {Y : Scheme.{u}} (f : Y โŸถ X) (h : Finite.CoefficientPullback.Construction.finiteEllAdicPullback โ„“ n f 1 E.extClass = 0) : Over.mk (pullback.snd E.gluedSchemeToBase f) โ‰… AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme Y (ULift.{u} (ZMod (โ„“ ^ n))) := (Scheme.ProEt.forget Y).mapIso (E.baseChangeGluedIso f) โ‰ชโ‰ซ (E.pullbackExtension f).gluedConstantIsoOfClassEqZero ((E.pullbackExtension_extClass f).trans h) end end OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor