The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V26. Homological algebra

Mathlib.Algebra.Category.ModuleCat.Differentials.Presheaf

43 declarations. Mathlib docs · Source

The presheaf of differentials of a presheaf of modules

In this file, we define the type M.Derivation φ of derivations with values in a presheaf of R-modules M relative to a morphism of φ : S ⟶ F.op ⋙ R of presheaves of commutative rings over categories C and D that are related by a functor F : C ⥤ D. We formalize the notion of universal derivation.

Geometrically, if f : X ⟶ S is a morphism of schemes (or more generally a morphism of commutative ringed spaces), we would like to apply these definitions in the case where F is the pullback functor from open subsets of S to open subsets of X and φ is the morphism $O_S ⟶ f_* O_X$.

In order to prove that there exists a universal derivation, the target of which shall be called the presheaf of relative differentials of φ, we first study the case where F is the identity functor. In this case where we have a morphism of presheaves of commutative rings φ' : S' ⟶ R, we construct a derivation DifferentialsConstruction.derivation' which is universal. Then, the general case (TODO) shall be obtained by observing that derivations for S ⟶ F.op ⋙ R identify to derivations for S' ⟶ R where S' is the pullback by F of the presheaf of commutative rings S (the data is the same: it suffices to show that the two vanishing conditions d_app are equivalent).

theorem PresheafOfModulesOfCommRing.Derivation.Universal.mk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d : M.Derivation φ} (desc desc_1 : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M'))
  (e_desc : desc = desc_1)
  (fac : ∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ), d.postcomp (desc d') = d')
  (postcomp_injective :
    ∀ {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'), d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ'),
  { desc := desc, fac := fac, postcomp_injective := postcomp_injective } =
    { desc := desc_1, fac := ⋯, postcomp_injective := postcomp_injective }

def PresheafOfModulesOfCommRing.Derivation.Universal.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} → {φ : S ⟶ F.op.comp R} → {d : M.Derivation φ} → d.Universal → ℕ

theorem CommRingCat.KaehlerDifferential.map.congr_simp E1 #

∀ {A B A' B' : CommRingCat} {f : A ⟶ B} {f' : A' ⟶ B'} {g g_1 : A ⟶ A'} (e_g : g = g_1) {g' : B ⟶ B'}
  (fac : CategoryTheory.CategoryStruct.comp g f' = CategoryTheory.CategoryStruct.comp f g'),
  CommRingCat.KaehlerDifferential.map fac = CommRingCat.KaehlerDifferential.map ⋯

theorem PresheafOfModulesOfCommRing.Derivation.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (d : {X : Dᵒᵖ} → ↑(R.obj X) →+ ↑(M.obj X))
  (d_mul :
    autoParam (∀ {X : Dᵒᵖ} (a b : ↑(R.obj X)), d (a * b) = a • d b + b • d a)
      PresheafOfModulesOfCommRing.Derivation.d_mul._autoParam)
  (d_map :
    autoParam
      (∀ {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
        d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) = (CategoryTheory.ConcreteCategory.hom (M.map f)) (d x))
      PresheafOfModulesOfCommRing.Derivation.d_map._autoParam)
  (d_app :
    autoParam (∀ {X : Cᵒᵖ} (a : ↑(S.obj X)), d ((CategoryTheory.ConcreteCategory.hom (φ.app X)) a) = 0)
      PresheafOfModulesOfCommRing.Derivation.d_app._autoParam)
  (d_1 : {X : Dᵒᵖ} → ↑(R.obj X) →+ ↑(M.obj X))
  (d_mul_1 :
    autoParam (∀ {X : Dᵒᵖ} (a b : ↑(R.obj X)), d_1 (a * b) = a • d_1 b + b • d_1 a)
      PresheafOfModulesOfCommRing.Derivation.d_mul._autoParam)
  (d_map_1 :
    autoParam
      (∀ {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
        d_1 ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) =
          (CategoryTheory.ConcreteCategory.hom (M.map f)) (d_1 x))
      PresheafOfModulesOfCommRing.Derivation.d_map._autoParam)
  (d_app_1 :
    autoParam (∀ {X : Cᵒᵖ} (a : ↑(S.obj X)), d_1 ((CategoryTheory.ConcreteCategory.hom (φ.app X)) a) = 0)
      PresheafOfModulesOfCommRing.Derivation.d_app._autoParam),
  ({ d := d, d_mul := d_mul, d_map := d_map, d_app := d_app } =
      { d := d_1, d_mul := d_mul_1, d_map := d_map_1, d_app := d_app_1 }) =
    (d = d_1)

theorem PresheafOfModulesOfCommRing.Derivation.Universal.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d : M.Derivation φ} (desc : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M'))
  (fac :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ), d.postcomp (desc d') = d')
      PresheafOfModulesOfCommRing.Derivation.Universal.fac._autoParam)
  (postcomp_injective :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'), d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ')
      PresheafOfModulesOfCommRing.Derivation.Universal.postcomp_injective._autoParam)
  (desc_1 : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M'))
  (fac_1 :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ), d.postcomp (desc_1 d') = d')
      PresheafOfModulesOfCommRing.Derivation.Universal.fac._autoParam)
  (postcomp_injective_1 :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'), d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ')
      PresheafOfModulesOfCommRing.Derivation.Universal.postcomp_injective._autoParam),
  ({ desc := desc, fac := fac, postcomp_injective := postcomp_injective } =
      { desc := desc_1, fac := fac_1, postcomp_injective := postcomp_injective_1 }) =
    (desc = desc_1)

def PresheafOfModulesOfCommRing.Derivation.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} → {φ : S ⟶ F.op.comp R} → M.Derivation φ → ℕ

theorem PresheafOfModulesOfCommRing.Derivation.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d : {X : Dᵒᵖ} → ↑(R.obj X) →+ ↑(M.obj X)}
  {d_mul :
    autoParam (∀ {X : Dᵒᵖ} (a b : ↑(R.obj X)), d (a * b) = a • d b + b • d a)
      PresheafOfModulesOfCommRing.Derivation.d_mul._autoParam}
  {d_map :
    autoParam
      (∀ {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
        d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) = (CategoryTheory.ConcreteCategory.hom (M.map f)) (d x))
      PresheafOfModulesOfCommRing.Derivation.d_map._autoParam}
  {d_app :
    autoParam (∀ {X : Cᵒᵖ} (a : ↑(S.obj X)), d ((CategoryTheory.ConcreteCategory.hom (φ.app X)) a) = 0)
      PresheafOfModulesOfCommRing.Derivation.d_app._autoParam}
  {d_1 : {X : Dᵒᵖ} → ↑(R.obj X) →+ ↑(M.obj X)}
  {d_mul_1 :
    autoParam (∀ {X : Dᵒᵖ} (a b : ↑(R.obj X)), d_1 (a * b) = a • d_1 b + b • d_1 a)
      PresheafOfModulesOfCommRing.Derivation.d_mul._autoParam}
  {d_map_1 :
    autoParam
      (∀ {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
        d_1 ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) =
          (CategoryTheory.ConcreteCategory.hom (M.map f)) (d_1 x))
      PresheafOfModulesOfCommRing.Derivation.d_map._autoParam}
  {d_app_1 :
    autoParam (∀ {X : Cᵒᵖ} (a : ↑(S.obj X)), d_1 ((CategoryTheory.ConcreteCategory.hom (φ.app X)) a) = 0)
      PresheafOfModulesOfCommRing.Derivation.d_app._autoParam},
  { d := d, d_mul := d_mul, d_map := d_map, d_app := d_app } =
      { d := d_1, d_mul := d_mul_1, d_map := d_map_1, d_app := d_app_1 } →
    d = d_1

theorem PresheafOfModulesOfCommRing.Derivation.Universal.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d : M.Derivation φ} {desc : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M')}
  {fac :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ), d.postcomp (desc d') = d')
      PresheafOfModulesOfCommRing.Derivation.Universal.fac._autoParam}
  {postcomp_injective :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'), d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ')
      PresheafOfModulesOfCommRing.Derivation.Universal.postcomp_injective._autoParam}
  {desc_1 : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M')}
  {fac_1 :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ), d.postcomp (desc_1 d') = d')
      PresheafOfModulesOfCommRing.Derivation.Universal.fac._autoParam}
  {postcomp_injective_1 :
    autoParam (∀ {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'), d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ')
      PresheafOfModulesOfCommRing.Derivation.Universal.postcomp_injective._autoParam},
  { desc := desc, fac := fac, postcomp_injective := postcomp_injective } =
      { desc := desc_1, fac := fac_1, postcomp_injective := postcomp_injective_1 } →
    desc = desc_1

structure PresheafOfModulesOfCommRing.Derivation E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              PresheafOfModulesOfCommRing R → (S ⟶ F.op.comp R) → Type (max (max u u₂) v)

Given a morphism of presheaves of commutative rings φ : S ⟶ F.op ⋙ R, this is the type of relative φ-derivation of a presheaf of R-modules M.

theorem PresheafOfModulesOfCommRing.Derivation.ext E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {x y : M.Derivation φ},
  @PresheafOfModulesOfCommRing.Derivation.d C inst D inst_1 S F R M φ x =
      @PresheafOfModulesOfCommRing.Derivation.d C inst D inst_1 S F R M φ y →
    x = y

theorem PresheafOfModulesOfCommRing.Derivation.ext_iff E0 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {x y : M.Derivation φ},
  x = y ↔
    @PresheafOfModulesOfCommRing.Derivation.d C inst D inst_1 S F R M φ x =
      @PresheafOfModulesOfCommRing.Derivation.d C inst D inst_1 S F R M φ y

ctor PresheafOfModulesOfCommRing.Derivation.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} →
                {φ : S ⟶ F.op.comp R} →
                  (d : {X : Dᵒᵖ} → ↑(R.obj X) →+ ↑(M.obj X)) →
                    autoParam (∀ {X : Dᵒᵖ} (a b : ↑(R.obj X)), d (a * b) = a • d b + b • d a)
                        PresheafOfModulesOfCommRing.Derivation.d_mul._autoParam →
                      autoParam
                          (∀ {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
                            d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) =
                              (CategoryTheory.ConcreteCategory.hom (M.map f)) (d x))
                          PresheafOfModulesOfCommRing.Derivation.d_map._autoParam →
                        autoParam
                            (∀ {X : Cᵒᵖ} (a : ↑(S.obj X)), d ((CategoryTheory.ConcreteCategory.hom (φ.app X)) a) = 0)
                            PresheafOfModulesOfCommRing.Derivation.d_app._autoParam →
                          M.Derivation φ

abbrev PresheafOfModulesOfCommRing.Derivation.d E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} →
                {φ : S ⟶ F.op.comp R} → M.Derivation φ → {X : Dᵒᵖ} → ↑(R.obj X) →+ ↑(M.obj X)

the underlying additive map R.obj X →+ M.obj X of a derivation

theorem PresheafOfModulesOfCommRing.Derivation.d_mul E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (self : M.Derivation φ) {X : Dᵒᵖ} (a b : ↑(R.obj X)), self.d (a * b) = a • self.d b + b • self.d a

theorem PresheafOfModulesOfCommRing.Derivation.d_map E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (self : M.Derivation φ) {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
  self.d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) =
    (CategoryTheory.ConcreteCategory.hom (M.map f)) (self.d x)

theorem PresheafOfModulesOfCommRing.Derivation.d_app E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (self : M.Derivation φ) {X : Cᵒᵖ} (a : ↑(S.obj X)), self.d ((CategoryTheory.ConcreteCategory.hom (φ.app X)) a) = 0

theorem PresheafOfModulesOfCommRing.Derivation.congr_d E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d d' : M.Derivation φ}, d = d' → ∀ {X : Dᵒᵖ} (b : ↑(R.obj X)), d.d b = d'.d b

theorem PresheafOfModulesOfCommRing.Derivation.d_one E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (d : M.Derivation φ) (X : Dᵒᵖ), d.d 1 = 0

def PresheafOfModulesOfCommRing.Derivation.postcomp E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M N : PresheafOfModulesOfCommRing R} → {φ : S ⟶ F.op.comp R} → M.Derivation φ → (M ⟶ N) → N.Derivation φ

The postcomposition of a derivation by a morphism of presheaves of modules.

theorem PresheafOfModulesOfCommRing.Derivation.postcomp_d_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M N : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (d : M.Derivation φ) (f : M ⟶ N) {X : Dᵒᵖ} (x : ↑(R.obj X)),
  (d.postcomp f).d x = (ModuleCat.Hom.hom (f.app X)) (d.d x)

structure PresheafOfModulesOfCommRing.Derivation.Universal E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} →
                {φ : S ⟶ F.op.comp R} → M.Derivation φ → Type (max (max (max u u₂) (v + 1)) v₂)

The universal property that a derivation d : M.Derivation φ must satisfy so that the presheaf of modules M can be considered as the presheaf of (relative) differentials of a presheaf of commutative rings φ : S ⟶ F.op ⋙ R.

ctor PresheafOfModulesOfCommRing.Derivation.Universal.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} →
                {φ : S ⟶ F.op.comp R} →
                  {d : M.Derivation φ} →
                    (desc : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M')) →
                      autoParam
                          (∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ), d.postcomp (desc d') = d')
                          PresheafOfModulesOfCommRing.Derivation.Universal.fac._autoParam →
                        autoParam
                            (∀ {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'),
                              d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ')
                            PresheafOfModulesOfCommRing.Derivation.Universal.postcomp_injective._autoParam →
                          d.Universal

abbrev PresheafOfModulesOfCommRing.Derivation.Universal.desc E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} →
            {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
              {M : PresheafOfModulesOfCommRing R} →
                {φ : S ⟶ F.op.comp R} →
                  {d : M.Derivation φ} → d.Universal → {M' : PresheafOfModulesOfCommRing R} → M'.Derivation φ → (M ⟶ M')

An absolute derivation of M' descends as a morphism M ⟶ M'.

theorem PresheafOfModulesOfCommRing.Derivation.Universal.fac E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d : M.Derivation φ} (self : d.Universal) {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation φ),
  d.postcomp (self.desc d') = d'

theorem PresheafOfModulesOfCommRing.Derivation.Universal.postcomp_injective E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  {d : M.Derivation φ} (self : d.Universal) {M' : PresheafOfModulesOfCommRing R} (φ_1 φ' : M ⟶ M'),
  d.postcomp φ_1 = d.postcomp φ' → φ_1 = φ'

instance PresheafOfModulesOfCommRing.Derivation.instSubsingletonUniversal E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {M : PresheafOfModulesOfCommRing R} {φ : S ⟶ F.op.comp R}
  (d : M.Derivation φ), Subsingleton d.Universal

class PresheafOfModulesOfCommRing.HasDifferentials E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} →
          {F : CategoryTheory.Functor C D} → {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} → (S ⟶ F.op.comp R) → Prop

The property that there exists a universal derivation for a morphism of presheaves of commutative rings S ⟶ F.op ⋙ R.

ctor PresheafOfModulesOfCommRing.HasDifferentials.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {φ : S ⟶ F.op.comp R},
  (∃ M d, Nonempty d.Universal) → PresheafOfModulesOfCommRing.HasDifferentials φ

theorem PresheafOfModulesOfCommRing.HasDifferentials.exists_universal_derivation E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {S : CategoryTheory.Functor Cᵒᵖ CommRingCat} {F : CategoryTheory.Functor C D}
  {R : CategoryTheory.Functor Dᵒᵖ CommRingCat} {φ : S ⟶ F.op.comp R}
  [self : PresheafOfModulesOfCommRing.HasDifferentials φ], ∃ M d, Nonempty d.Universal

abbrev PresheafOfModulesOfCommRing.Derivation' E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} → PresheafOfModulesOfCommRing R → (S' ⟶ R) → Type (max (max u₂ u) v)

Given a morphism of presheaves of commutative rings φ : S ⟶ R, this is the type of relative φ-derivation of a presheaf of R-modules M.

theorem PresheafOfModulesOfCommRing.Derivation'.d_app E0 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  {M : PresheafOfModulesOfCommRing R} {φ' : S' ⟶ R} (d : M.Derivation' φ') {X : Dᵒᵖ} (a : ↑(S'.obj X)),
  d.d ((CategoryTheory.ConcreteCategory.hom (φ'.app X)) a) = 0

def PresheafOfModulesOfCommRing.Derivation'.app E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
      {M : PresheafOfModulesOfCommRing R} →
        {φ' : S' ⟶ R} → M.Derivation' φ' → (X : Dᵒᵖ) → (M.obj X).Derivation (φ'.app X)

The derivation relative to the morphism of commutative rings φ'.app X induced by a derivation relative to a morphism of presheaves of commutative rings.

theorem PresheafOfModulesOfCommRing.Derivation'.app_apply E0 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  {M : PresheafOfModulesOfCommRing R} {φ' : S' ⟶ R} (d : M.Derivation' φ') {X : Dᵒᵖ} (b : ↑(R.obj X)),
  (d.app X).d b = d.d b

def PresheafOfModulesOfCommRing.Derivation'.mk E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
      {M : PresheafOfModulesOfCommRing R} →
        {φ' : S' ⟶ R} →
          (d : (X : Dᵒᵖ) → (M.obj X).Derivation (φ'.app X)) →
            (∀ ⦃X Y : Dᵒᵖ⦄ (f : X ⟶ Y) (x : ↑(R.obj X)),
                (d Y).d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) =
                  (CategoryTheory.ConcreteCategory.hom (M.map f)) ((d X).d x)) →
              M.Derivation' φ'

Given a morphism of presheaves of commutative rings φ', this is the in derivation M.Derivation' φ' that is given by a compatible family of derivations with values in the modules M.obj X for all X.

theorem PresheafOfModulesOfCommRing.Derivation'.mk_app E0 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  {M : PresheafOfModulesOfCommRing R} {φ' : S' ⟶ R} (d : (X : Dᵒᵖ) → (M.obj X).Derivation (φ'.app X))
  (d_map :
    ∀ ⦃X Y : Dᵒᵖ⦄ (f : X ⟶ Y) (x : ↑(R.obj X)),
      (d Y).d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x) =
        (CategoryTheory.ConcreteCategory.hom (M.map f)) ((d X).d x))
  (X : Dᵒᵖ), (PresheafOfModulesOfCommRing.Derivation'.mk d d_map).app X = d X

def PresheafOfModulesOfCommRing.Derivation'.Universal.mk E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
      {M : PresheafOfModulesOfCommRing R} →
        {φ' : S' ⟶ R} →
          {d : M.Derivation' φ'} →
            (desc : {M' : PresheafOfModulesOfCommRing R} → M'.Derivation' φ' → (M ⟶ M')) →
              (∀ {M' : PresheafOfModulesOfCommRing R} (d' : M'.Derivation' φ'),
                  PresheafOfModulesOfCommRing.Derivation.postcomp d (desc d') = d') →
                (∀ {M' : PresheafOfModulesOfCommRing R} (α β : M ⟶ M'),
                    PresheafOfModulesOfCommRing.Derivation.postcomp d α =
                        PresheafOfModulesOfCommRing.Derivation.postcomp d β →
                      α = β) →
                  PresheafOfModulesOfCommRing.Derivation.Universal d

Constructor for Derivation.Universal in the case F is the identity functor.

def PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials' E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} → (S' ⟶ R) → PresheafOfModulesOfCommRing R

The presheaf of relative differentials of a morphism of presheaves of commutative rings.

theorem PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials'_obj E0 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  (φ' : S' ⟶ R) (X : Dᵒᵖ),
  (PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials' φ').obj X =
    CommRingCat.KaehlerDifferential (φ'.app X)

theorem PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials'_map E1 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  (φ' : S' ⟶ R) {X Y : Dᵒᵖ} (f : X ⟶ Y),
  (PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials' φ').map f =
    (fun {X Y} f ↦ CommRingCat.KaehlerDifferential.map ⋯) f

theorem PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials'_map_d E0 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  (φ' : S' ⟶ R) {X Y : Dᵒᵖ} (f : X ⟶ Y) (x : ↑(R.obj X)),
  (ModuleCat.Hom.hom ((PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials' φ').map f))
      (CommRingCat.KaehlerDifferential.d x) =
    CommRingCat.KaehlerDifferential.d ((CategoryTheory.ConcreteCategory.hom (R.map f)) x)

def PresheafOfModulesOfCommRing.DifferentialsConstruction.derivation' E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
      (φ' : S' ⟶ R) → (PresheafOfModulesOfCommRing.DifferentialsConstruction.relativeDifferentials' φ').Derivation' φ'

The universal derivation.

def PresheafOfModulesOfCommRing.DifferentialsConstruction.isUniversal' E1 #

{D : Type u₂} →
  [inst : CategoryTheory.Category.{v₂, u₂} D] →
    {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat} →
      (φ' : S' ⟶ R) →
        PresheafOfModulesOfCommRing.Derivation.Universal
          (PresheafOfModulesOfCommRing.DifferentialsConstruction.derivation' φ')

The derivation Derivation' φ' is universal.

instance PresheafOfModulesOfCommRing.DifferentialsConstruction.instHasDifferentials E0 #

∀ {D : Type u₂} [inst : CategoryTheory.Category.{v₂, u₂} D] {S' R : CategoryTheory.Functor Dᵒᵖ CommRingCat}
  (φ' : S' ⟶ R), PresheafOfModulesOfCommRing.HasDifferentials φ'