import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SliceRepresentabilityIs import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.RelativeRepresentabilityP /-! # Local Representatives -/ namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LocalRepresentatives noncomputable section /-! # CartierDuality: local representatives over open base schemes -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry open _root_.CategoryTheory.CartesianMonoidalCategory open _root_.CategoryTheory.MonoidalCategory attribute [local instance] Over.cartesianMonoidalCategory universe u namespace Construction.Schemes /-- A representative of the restriction of a presheaf to an open base piece defines a relatively representable open immersion into that presheaf. -/ theorem sliceRepresentative_isOpen {S : Scheme.{u}} {U : Over S} [IsOpenImmersion U.hom] {F : (Over S)แต’แต– โฅค Type u} {Y : Over U} (r : ((Over.forget U).op โ‹™ F).RepresentableBy Y) : (RelativeRepresentabilityP.Construction.Schemes.relativeOpenImmersion S).presheaf (SliceRepresentabilityIs.Construction.SliceRepresentability.canonicalMap r) := by apply SliceRepresentabilityIs.Construction.SliceRepresentability.canonicalMap_relative r (RelativeRepresentabilityP.Construction.Schemes.relativeOpenImmersion S) intro X change IsOpenImmersion (Limits.pullback.fst X.hom U.hom) infer_instance /-- A sheaf over a scheme is representable if its restrictions over an open cover of the base are representable. -/ theorem isRepresentable_of_openCover {S : Scheme.{u}} (F : Sheaf (Scheme.zariskiTopology.over S) (Type u)) (๐’ฐ : Scheme.OpenCover.{u} S) (h : โˆ€ i, ((Over.forget (Over.mk (๐’ฐ.f i))).op โ‹™ F.obj).IsRepresentable) : F.obj.IsRepresentable := by let U (i : ๐’ฐ.Iโ‚€) : Over S := Over.mk (๐’ฐ.f i) let (i : ๐’ฐ.Iโ‚€) : IsOpenImmersion (U i).hom := inferInstanceAs (IsOpenImmersion (๐’ฐ.f i)) let (i : ๐’ฐ.Iโ‚€) : ((Over.forget (U i)).op โ‹™ F.obj).IsRepresentable := h i let Y (i : ๐’ฐ.Iโ‚€) := ((Over.forget (U i)).op โ‹™ F.obj).reprX let r (i : ๐’ฐ.Iโ‚€) := ((Over.forget (U i)).op โ‹™ F.obj).representableBy have hcover : Sieve.ofArrows U (fun i => toUnit (U i)) โˆˆ (Scheme.zariskiTopology.over S) (๐Ÿ™_ (Over S)) := by rw [GrothendieckTopology.mem_over_iff, Sieve.overEquiv_ofArrows] exact ๐’ฐ.mem_grothendieckTopology let : Presheaf.IsLocallySurjective (Scheme.zariskiTopology.over S) (Sigma.desc (fun i => SliceRepresentabilityIs.Construction.SliceRepresentability.canonicalMap (r i))) := SliceRepresentabilityIs.Construction.SliceRepresentability.canonicalMaps_locallySurjective (Scheme.zariskiTopology.over S) U Y r hcover exact RelativeRepresentabilityP.Construction.Schemes.RelativeRepresentability.isRepresentable F (fun i => SliceRepresentabilityIs.Construction.SliceRepresentability.canonicalMap (r i)) (fun i => sliceRepresentative_isOpen (r i)) end Construction.Schemes end end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LocalRepresentatives