The R-linear Hom complex of two cochain complexes #
Let C be an R-linear preadditive category and let F and G be cochain complexes in C.
Mathlib's CochainComplex.HomComplex.Cochain F G n is the R-module of degree-n cochains from
F to G, and CochainComplex.HomComplex.δ is the signed differential
δ z = d_G ∘ z + (-1)^{n+1} z ∘ d_F, already known to be R-linear and square-zero. Mathlib
assembles this data into CochainComplex.HomComplex F G, a cochain complex of abelian groups,
which forgets the R-module structure. This file assembles the same data into a cochain complex
of R-modules.
That complex is the object a differential graded category is enriched in: a DG category over R
is a category enriched in CochainComplex (ModuleCat R) ℤ, and CochainComplex C ℤ is the
motivating example. The AddCommGrpCat-valued complex retains only the underlying
ℤ-linearity, whereas a DG category over R requires the R-module structure on its Hom
complexes.
Main definitions #
TauCeti.linearHomComplex R F G: theR-linear Hom complex, a cochain complex ofR-modules whose degree-nterm isCochain F G nand whose differential isδ.TauCeti.linearHomComplexPrecompandTauCeti.linearHomComplexPostcomp: precomposition and postcomposition by a morphism of cochain complexes, as morphisms ofR-linear Hom complexes.TauCeti.linearHomComplexFunctor: the two variances bundled into a bifunctor, contravariant in the source and covariant in the target.
Main results #
TauCeti.forget₂LinearHomComplexIso: forgetting theR-module structure degreewise recovers Mathlib'sCochainComplex.HomComplex.
This advances TauCetiRoadmap/DGAInfinity/README.md, Layer 0, item "signed graded multilinear and
tensor-coalgebra infrastructure", specifically its request to "construct the k-linear Hom
complex, its signed differential d(f) = d_Y f - (-1)^{|f|} f d_X, closed composition map, and
the enrichment, and compare its underlying additive-group complex with Mathlib's
CochainComplex.HomComplex". No formalization is vendored: the cochain modules, the differential
δ, its R-linearity and the Leibniz rule for composition are all Mathlib's.
Implementation notes #
linearHomComplex and linearHomComplexFunctor carry @[expose], while every operation built
from them is sealed and used only through its characteristic lemmas. The exposures permit the
dependent component types (linearHomComplex R F G).X n and
((linearHomComplexFunctor R).obj F).obj G to elaborate against their advertised values. The
element-level API itself is normalized to ModuleCat.of R (Cochain F G n) and explicit .hom
application, so ordinary simp and rw use it without unfolding either construction.
References #
- B. Keller, Deriving DG categories, Section 1.
- Joël Riou's Mathlib construction
CochainComplex.HomComplexand its cochain/δAPI inMathlib/Algebra/Homology/HomotopyCategory/HomComplex.lean. The construction here adapts it by retainingModuleCat Rin place ofAddCommGrpCat, with the same sign convention.
The R-linear Hom complex of two cochain complexes: in degree n it is the R-module
CochainComplex.HomComplex.Cochain F G n of degree-n cochains, and its differential is the
signed differential δ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Forgetting the R-module structure of the R-linear Hom complex recovers Mathlib's
CochainComplex.HomComplex.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The forward component of the comparison isomorphism is the identity.
The inverse component of the comparison isomorphism is the identity.
Precomposition by a morphism φ : F₁ ⟶ F₂ of cochain complexes, as a morphism of R-linear
Hom complexes. It commutes with the differentials because φ is a cocycle, so that the second
term of the Leibniz rule for δ vanishes.
Equations
- TauCeti.linearHomComplexPrecomp R φ G = { f := fun (n : ℤ) => ModuleCat.ofHom (TauCeti.cochainPrecomp✝ R φ G n), comm' := ⋯ }
Instances For
Postcomposition by a morphism ψ : G₁ ⟶ G₂ of cochain complexes, as a morphism of R-linear
Hom complexes.
Equations
- TauCeti.linearHomComplexPostcomp R F ψ = { f := fun (n : ℤ) => ModuleCat.ofHom (TauCeti.cochainPostcomp✝ R F ψ n), comm' := ⋯ }
Instances For
Precomposition and postcomposition commute.
The R-linear Hom complex as a bifunctor: contravariant in the source cochain complex and
covariant in the target one.
Equations
- One or more equations did not get rendered due to their size.