Composition of cochains as a morphism of R-linear Hom complexes #
Composition of cochains is R-bilinear and satisfies the Leibniz rule
δ (z₁.comp z₂) = z₁.comp (δ z₂) + (-1)^{|z₂|} • (δ z₁).comp z₂
(Mathlib's CochainComplex.HomComplex.δ_comp; Cochain.comp is written in diagrammatic order, so
z₁ : Cochain F G n₁ comes first and z₂ : Cochain G K n₂ second). Together these say exactly
that composition is a closed degree-zero map of R-linear Hom complexes, that is, a morphism
linearHomComplex R G K ⊗ linearHomComplex R F G ⟶ linearHomComplex R F K
in CochainComplex (ModuleCat R) ℤ. The order of the two tensor factors is forced by the Koszul
sign rule: a morphism φ out of a tensor product of complexes is a chain map exactly when
d (φ (x ⊗ y)) = φ (d x ⊗ y) + (-1)^{|x|} φ (x ⊗ d y), so the sign is carried by the term whose
differential hits the second factor. In δ_comp the sign is carried by (δ z₁).comp z₂, the
term differentiating z₁; hence z₁ must be the second tensor factor and z₂ the first. This
is Keller's m₂ (g, f) = g ∘ f convention.
Mathlib's CategoryTheory.EnrichedCategory instead asks for
Hom(X, Y) ⊗ Hom(Y, Z) ⟶ Hom(X, Z); converting between the two orders is exactly the Koszul
braiding of CochainComplex (ModuleCat R) ℤ, built in
TauCeti/Algebra/Homology/Monoidal/Braiding.lean and imported here. The EnrichedCategory
instance and its associativity and unit axioms in Mathlib's factor order are constructed in
TauCeti/Algebra/Homology/LinearHomComplex/Enrichment.lean.
The monoidal structure used here is Mathlib's HomologicalComplex.monoidalCategory at
ComplexShape.up ℤ; nothing is re-totalized. The component equations for the whiskerings, the
unitors and the associator, which Mathlib does not state, are taken from
TauCeti/Algebra/Homology/Monoidal/Summand.lean rather than repeated here. Its
colimit-preservation hypotheses are discharged
by Mathlib's instances for a braided monoidal closed category, so
Mathlib.CategoryTheory.Monoidal.Closed.Braided, which that file imports, is what makes the
tensor product of cochain complexes exist at all. Note that ModuleCat.{v} R is monoidal only for
a commutative R : Type v, so this file, unlike
TauCeti/Algebra/Homology/LinearHomComplex/Basic.lean, requires CommRing R and ties the ring to
the morphism universe of C.
Main definitions #
TauCeti.linearHomComplexComp: composition, as a morphism ofR-linear Hom complexes out of the tensor product.TauCeti.linearHomComplexOfHom: a morphism of cochain complexes, as a degree-zero cocycle in the correspondingR-linear Hom complex.TauCeti.linearHomComplexUnit: the identity cochain, as a morphism from the tensor unit.
Main results #
TauCeti.ι_linearHomComplexComp: the degree-jcomponent restricted to a bidegree summand isTauCeti.cochainCompTensor;TauCeti.cochainCompTensor_tmulgives its pure-tensor formula.TauCeti.linearHomComplexComp_naturality_sourceandTauCeti.linearHomComplexComp_naturality_target: composition is natural in the source and in the target cochain complex.TauCeti.linearHomComplexComp_dinaturality_middle: composition is dinatural in the middle cochain complex.TauCeti.linearHomComplexComp_assoc,TauCeti.linearHomComplexOfHom_comp, andTauCeti.linearHomComplexComp_ofHom: composition is associative and composing with a degree-zero cocycle recovers postcomposition or precomposition; the unit laws are their identity specializations.TauCeti.linearHomComplexOfHom_f_zero_apply: a morphism of complexes gives its associated cochain in degree zero.
This advances TauCetiRoadmap/DGAInfinity/README.md, Layer 0, item "signed graded multilinear and
tensor-coalgebra infrastructure", specifically "construct the k-linear Hom complex, its signed
differential ..., closed composition map, and the enrichment". The stage that bullet orders
first, the complex-level Koszul braiding, is
TauCeti/Algebra/Homology/Monoidal/Braiding.lean. No formalization is vendored: the
Leibniz rule δ_comp and the totalized monoidal structure are Mathlib's.
References #
- B. Keller, Introduction to A-infinity algebras and modules, Section 3.1.
- B. Keller, Deriving DG categories, Section 1.
- Joël Riou's Mathlib cochain/
δand totalization API, together with the totalizedHomologicalComplex.monoidalCategoryof Joël Riou and Kim Morrison inMathlib/Algebra/Homology/Monoidal.lean. This file assembles Riou'sδ_compand the totalization API into theModuleCat R-valued composition map, inheriting their sign convention.
Composition of a degree-p cochain from G to K with a degree-q cochain from F to G,
as a map out of the tensor product of the two cochain modules. This is the bidegree-(p, q)
component of TauCeti.linearHomComplexComp.
Equations
- One or more equations did not get rendered due to their size.
Instances For
On a pure tensor, cochainCompTensor sends z₂ ⊗ₜ z₁ to the composite z₁.comp z₂.
Composition of cochains is a closed degree-zero map. It assembles into a morphism of
cochain complexes of R-modules out of the tensor product; the differential of a composite is
computed by the Leibniz rule, which is precisely the condition for this to be a chain map.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The degree-j component of composition restricted to the bidegree-(p, q) summand is
cochainCompTensor; see cochainCompTensor_tmul for its value on pure tensors.
The degree-j component of composition restricted to the bidegree-(p, q) summand is
cochainCompTensor; see cochainCompTensor_tmul for its value on pure tensors.
A morphism of cochain complexes, regarded as a degree-zero cocycle in the corresponding
R-linear Hom complex.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The degree-zero component of linearHomComplexOfHom as a morphism in ModuleCat.
The degree-zero component of linearHomComplexOfHom sends a scalar to that scalar multiple
of the associated cochain.
The identity cochain of F, as a morphism from the tensor unit to the R-linear Hom complex
of F with itself.
Equations
Instances For
The unit is the degree-zero cocycle associated to the identity morphism.
The degree-zero component of the unit sends a scalar to the corresponding scalar multiple of the identity cochain.
Composition is natural in the source: composing after precomposition by φ is the same as
precomposing the composite by φ. This is associativity of Cochain.comp with the degree-zero
cochain Cochain.ofHom φ in the first (diagrammatic) argument.
Composition is natural in the source: composing after precomposition by φ is the same as
precomposing the composite by φ. This is associativity of Cochain.comp with the degree-zero
cochain Cochain.ofHom φ in the first (diagrammatic) argument.
Composition is natural in the target: composing after postcomposition by ψ is the same as
postcomposing the composite by ψ. This is associativity of Cochain.comp with the degree-zero
cochain Cochain.ofHom ψ in the last (diagrammatic) argument.
Composition is natural in the target: composing after postcomposition by ψ is the same as
postcomposing the composite by ψ. This is associativity of Cochain.comp with the degree-zero
cochain Cochain.ofHom ψ in the last (diagrammatic) argument.
Composition is dinatural in the middle object: precomposition in the first Hom complex agrees with postcomposition in the second Hom complex.
Composition is dinatural in the middle object: precomposition in the first Hom complex agrees with postcomposition in the second Hom complex.
Composition of cochains is associative, with the tensor products identified by the monoidal associator.
Composition of cochains is associative, with the tensor products identified by the monoidal associator.
Composing with the degree-zero cocycle associated to ψ is postcomposition by ψ.
Composing with the degree-zero cocycle associated to ψ is postcomposition by ψ.
The identity cochain is a left unit for composition.
The identity cochain is a left unit for composition.
Composing with the degree-zero cocycle associated to φ is precomposition by φ.
Composing with the degree-zero cocycle associated to φ is precomposition by φ.
The identity cochain is a right unit for composition.
The identity cochain is a right unit for composition.