import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ClosedFamily.Transport /-! # Family Functor -/ namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Embedded.FamilyFunctor noncomputable section /-! The presheaf of flat locally finitely presented closed families in a fixed ambient scheme over a base. The construction uses actual ideal pullback and does not assert representability or fix a Hilbert polynomial. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry universe u variable {S : Scheme.{u}} (P : Over S) /-- The fixed ambient scheme after passage to a test scheme. -/ def embeddedFamilyAmbient (T : Over S) : Over T.left := Over.mk (prod.fst : T โจฏ P โŸถ T).left /-- The map of ambient schemes induced by a map of test schemes. -/ def embeddedFamilyAmbientMap {T U : Over S} (f : T โŸถ U) : (embeddedFamilyAmbient P T).left โŸถ (embeddedFamilyAmbient P U).left := (prod.map f (๐Ÿ™ P)).left theorem embeddedFamilyAmbient_isPullback {T U : Over S} (f : T โŸถ U) : IsPullback (embeddedFamilyAmbientMap P f) (embeddedFamilyAmbient P T).hom (embeddedFamilyAmbient P U).hom f.left := (IsPullback.of_prod_fst_with_id f P).flip.map (Over.forget S) /-- Embedded flat families form a presheaf by ordinary pullback of ideal sheaves. -/ def embeddedFlatFamilyFunctor : (Over S)แต’แต– โฅค Type u where obj T := Closed.Families.FlatClosedFamily (embeddedFamilyAmbient P T.unop) map f := โ†พfun F => F.pullbackAlong (embeddedFamilyAmbientMap P f.unop) f.unop.left (embeddedFamilyAmbient_isPullback P f.unop) map_id T := by ext1 ext1 funext F apply Closed.Families.FlatClosedFamily.ext change F.ideal.comap (prod.map (๐Ÿ™ T.unop) (๐Ÿ™ P)).left = F.ideal rw [prod.map_id_id] exact F.ideal.comap_id map_comp f g := by ext1 ext1 funext F apply Closed.Families.FlatClosedFamily.ext change F.ideal.comap (prod.map (g.unop โ‰ซ f.unop) (๐Ÿ™ P)).left = (F.ideal.comap (prod.map f.unop (๐Ÿ™ P)).left).comap (prod.map g.unop (๐Ÿ™ P)).left have he : (prod.map (g.unop โ‰ซ f.unop) (๐Ÿ™ P)).left = (prod.map g.unop (๐Ÿ™ P)).left โ‰ซ (prod.map f.unop (๐Ÿ™ P)).left := congrArg Over.Hom.left (by simpa only [Category.id_comp] using (prod.map_map g.unop (๐Ÿ™ P) f.unop (๐Ÿ™ P)).symm) exact (congrArg (fun p => F.ideal.comap p) he).trans (F.ideal.comap_comp (prod.map g.unop (๐Ÿ™ P)).left (prod.map f.unop (๐Ÿ™ P)).left) end end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Embedded.FamilyFunctor