Documentation

TauCeti.CategoryTheory.DG.Basic

Differential graded categories #

A differential graded category over a commutative ring R is a category enriched in cochain complexes of R-modules: every Hom object is a complex Hom(X, Y), and composition is a closed degree-zero map out of the tensor product of two Hom complexes.

This file fixes that definition and unpacks the enriched data into the calculus one actually computes with: the R-module DGHom R n X Y of morphisms of degree n, the differential raising the degree by one, the composition of two homogeneous morphisms, and the identity. The enriched axioms then become the associativity and unit laws for that composition, and the fact that composition is a chain map out of the tensor product becomes the graded Leibniz rule

d (dgComp f g) = dgComp (d f) g + (-1) ^ |f| • dgComp f (d g).

The factor order is Mathlib's: CategoryTheory.eComp composes Hom(X, Y) ⊗ Hom(Y, Z) ⟶ Hom(X, Z), so dgComp f g is f followed by g and the Leibniz sign is carried by the degree of the first argument, exactly as in CochainComplex.HomComplex.δ_comp.

The identity is a degree-zero cycle, so the closed degree-zero morphisms form an ordinary category; that category and its quotient by homotopy are not built here.

Main definitions #

Main results #

References #

@[reducible, inline]
abbrev TauCeti.DGCategory (R : Type v) [CommRing R] (C : Type u) :
Type (max (max u (v + 1)) v)

A differential graded category over a commutative ring R: a category enriched in cochain complexes of R-modules. Its Hom complexes are TauCeti.dgHomComplex, and the morphisms of a fixed degree, their differential, and their composition are TauCeti.DGHom, TauCeti.dgDifferential and TauCeti.dgComp.

Equations
Instances For
    @[reducible, inline]
    abbrev TauCeti.dgHomComplex (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] (X Y : C) :

    The Hom complex of a differential graded category.

    Equations
    Instances For
      @[reducible, inline]
      abbrev TauCeti.DGHom (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] (n : ℤ) (X Y : C) :

      The R-module of morphisms X ⟶ Y of degree n in a differential graded category.

      Equations
      Instances For
        @[reducible, inline]
        noncomputable abbrev TauCeti.dgDifferential (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y : C} (n : ℤ) :
        DGHom R n X Y →ₗ[R] DGHom R (n + 1) X Y

        The differential of a differential graded category, raising the degree of a morphism by one.

        Equations
        Instances For
          @[simp]
          theorem TauCeti.dgDifferential_dgDifferential (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y : C} {n : ℤ} (f : DGHom R n X Y) :
          (dgDifferential R (n + 1)) ((dgDifferential R n) f) = 0

          The differential of a differential graded category squares to zero.

          Composition #

          noncomputable def TauCeti.dgCompMap (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] (X Y Z : C) (p q n : ℤ) (h : p + q = n) :

          The bidegree-(p, q) component of the enriched composition of a differential graded category: it computes TauCeti.dgComp on a pure tensor.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem TauCeti.dgCompMap_def (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] (X Y Z : C) (p q n : ℤ) (h : p + q = n) :

            The bidegree component of enriched composition is the inclusion of that summand of the tensor product of the two Hom complexes, followed by the enriched composition.

            noncomputable def TauCeti.dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
            DGHom R n X Z

            Composition of a morphism of degree p from X to Y with a morphism of degree q from Y to Z, in Mathlib's enriched factor order: dgComp f g is f followed by g.

            Equations
            Instances For
              @[simp]
              theorem TauCeti.dgCompMap_tmul (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (h : p + q = n) (f : DGHom R p X Y) (g : DGHom R q Y Z) :
              (ModuleCat.Hom.hom (dgCompMap R X Y Z p q n h)) (f ⊗ₜ[R] g) = dgComp R f g h
              @[simp]
              theorem TauCeti.zero_dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (g : DGHom R q Y Z) (h : p + q = n) :
              dgComp R 0 g h = 0
              @[simp]
              theorem TauCeti.dgComp_zero (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f : DGHom R p X Y) (h : p + q = n) :
              dgComp R f 0 h = 0
              @[simp]
              theorem TauCeti.add_dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f f' : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
              dgComp R (f + f') g h = dgComp R f g h + dgComp R f' g h
              @[simp]
              theorem TauCeti.dgComp_add (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f : DGHom R p X Y) (g g' : DGHom R q Y Z) (h : p + q = n) :
              dgComp R f (g + g') h = dgComp R f g h + dgComp R f g' h
              @[simp]
              theorem TauCeti.neg_dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
              dgComp R (-f) g h = -dgComp R f g h
              @[simp]
              theorem TauCeti.dgComp_neg (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
              dgComp R f (-g) h = -dgComp R f g h
              @[simp]
              theorem TauCeti.smul_dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (r : R) (f : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
              dgComp R (r • f) g h = r • dgComp R f g h
              @[simp]
              theorem TauCeti.dgComp_smul (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (r : R) (f : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
              dgComp R f (r • g) h = r • dgComp R f g h

              The Leibniz rule #

              theorem TauCeti.dgDifferential_dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y Z : C} {p q n : ℤ} (f : DGHom R p X Y) (g : DGHom R q Y Z) (h : p + q = n) :
              (dgDifferential R n) (dgComp R f g h) = dgComp R ((dgDifferential R p) f) g ⋯ + p.negOnePow • dgComp R f ((dgDifferential R q) g) ⋯

              The graded Leibniz rule in a differential graded category: the differential of a composite differentiates each factor, with the Koszul sign carried by the degree of the first factor.

              Associativity #

              theorem TauCeti.dgComp_assoc (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {W X Y Z : C} {p q r pq qr n : ℤ} (f : DGHom R p W X) (g : DGHom R q X Y) (k : DGHom R r Y Z) (hpq : p + q = pq) (hqr : q + r = qr) (hn : p + q + r = n) :
              dgComp R (dgComp R f g hpq) k ⋯ = dgComp R f (dgComp R g k hqr) ⋯

              Composition of homogeneous morphisms in a differential graded category is associative.

              The identity #

              noncomputable def TauCeti.dgId (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] (X : C) :
              DGHom R 0 X X

              The identity morphism of an object of a differential graded category: the degree-zero morphism named by the enriched identity, that is, the image of 1 under the degree-zero component of CategoryTheory.eId.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                The identity is the image of 1 under the degree-zero component of the enriched identity.

                @[simp]
                theorem TauCeti.dgDifferential_dgId (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] (X : C) :
                (dgDifferential R 0) (dgId R X) = 0

                The identity of a differential graded category is a cycle, so it is a morphism of the underlying category of closed degree-zero morphisms.

                @[simp]
                theorem TauCeti.dgId_dgComp (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y : C} {q : ℤ} (g : DGHom R q X Y) :
                dgComp R (dgId R X) g ⋯ = g

                The identity is a left unit for composition.

                @[simp]
                theorem TauCeti.dgComp_dgId (R : Type v) [CommRing R] {C : Type u} [DGCategory R C] {X Y : C} {p : ℤ} (f : DGHom R p X Y) :
                dgComp R f (dgId R Y) ⋯ = f

                The identity is a right unit for composition.