k-linear dg categories #
DGCategory is stated over abelian groups so that its Hom-complexes are
exactly the complexes CochainComplex.HomComplex produces. Linearity over a
commutative ring is layered on top, the way CategoryTheory.Linear layers over
Preadditive in Mathlib.
DGLinear.homComplex exposes those same graded groups and differentials as a
ModuleCat k-valued cochain complex. It is an abbreviation rather than a
second Hom-complex: only the already supplied module structures and
DGLinear.d_smul are added.
ADR-0011 records why this is a refinement rather than part of the definition:
a first draft that baked ModuleCat k into dgHom collided with the
AddCommGrpCat-valued HomComplex three separate times.
A k-linear structure on a dg category: given k-module structures on the
graded pieces of the Hom-complexes, both the differential and the composition
are k-linear.
The module structures are a parameter rather than a field. A field cannot be
used as an instance inside the same class's later field types, and the version
that tried produced a stuck HSMul metavariable on the first axiom.
- d_smul {X Y : C} (p q : ℤ) (c : k) (f : ↑((DGCategoryStruct.dgHom X Y).X p)) : (AddCommGrpCat.Hom.hom ((DGCategoryStruct.dgHom X Y).d p q)) (c • f) = c • (AddCommGrpCat.Hom.hom ((DGCategoryStruct.dgHom X Y).d p q)) f
The differential is
k-linear. - comp_smul_left {X Y Z : C} (p q r : ℤ) (h : p + q = r) (c : k) (f : ↑((DGCategoryStruct.dgHom X Y).X p)) (g : ↑((DGCategoryStruct.dgHom Y Z).X q)) : ((DGCategoryStruct.dgComp p q r h) (c • f)) g = c • ((DGCategoryStruct.dgComp p q r h) f) g
Composition is
k-linear in its first argument. - comp_smul_right {X Y Z : C} (p q r : ℤ) (h : p + q = r) (c : k) (f : ↑((DGCategoryStruct.dgHom X Y).X p)) (g : ↑((DGCategoryStruct.dgHom Y Z).X q)) : ((DGCategoryStruct.dgComp p q r h) f) (c • g) = c • ((DGCategoryStruct.dgComp p q r h) f) g
Composition is
k-linear in its second argument.
Instances
The Hom-complex of a k-linear dg category, regarded as a complex of
k-modules. Its underlying graded groups and differentials are unchanged.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Right composition by a degree-p dg morphism, as a degree-p linear
cochain between Hom-complexes with a fixed source.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Right composition intertwines the Hom-complex differential with the dg differential. The two Koszul terms cancel because Mathlib's Hom differential uses the successor sign.
A scalar-preserving dg functor between k-linear dg categories. This is a
refinement of DGFunctor, parallel to Mathlib's Functor.Linear; it records
only linearity of the maps on Hom-complexes.
- map_smul {X Y : C} (p : ℤ) (c : k) (f : ↑((DGCategoryStruct.dgHom X Y).X p)) : (F.map p) (c • f) = c • (F.map p) f
A linear dg functor preserves scalar multiplication in every degree.
Instances
A linear dg functor preserves scalar multiplication in every degree.
The identity dg functor is linear.
A composite of linear dg functors is linear.