  
  [1X7 Chain Morphisms[0X
  
  
  [1X7.1 ChainMorphisms: Categories and Representations[0X
  
  [1X7.1-1 IsHomalgChainMorphism[0m
  
  [2X> IsHomalgChainMorphism( [0X[3Xcm[0X[2X ) ______________________________________[0XCategory
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  The [5XGAP[0m category of [5Xhomalg[0m (co)chain morphisms.
  
  (It is a subcategory of the [5XGAP[0m category [10XIsHomalgMorphism[0m.)
  
  [1X7.1-2 IsHomalgChainEndomorphism[0m
  
  [2X> IsHomalgChainEndomorphism( [0X[3Xcm[0X[2X ) __________________________________[0XCategory
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  The [5XGAP[0m category of [5Xhomalg[0m (co)chain endomorphisms.
  
  (It  is  a  subcategory  of  the  [5XGAP[0m  categories  [10XIsHomalgChainMorphism[0m and
  [10XIsHomalgEndomorphism[0m.)
  
  [1X7.1-3 IsChainMorphismOfFinitelyPresentedObjectsRep[0m
  
  [2X> IsChainMorphismOfFinitelyPresentedObjectsRep( [0X[3Xc[0X[2X ) __________[0XRepresentation
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  The  [5XGAP[0m  representation  of  chain  morphisms  of finitely presented [5Xhomalg[0m
  objects.
  
  (It  is  a representation of the [5XGAP[0m category [2XIsHomalgChainMorphism[0m ([14X7.1-1[0m),
  which     is    a    subrepresentation    of    the    [5XGAP[0m    representation
  [10XIsMorphismOfFinitelyGeneratedObjectsRep[0m.)
  
  [1X7.1-4 IsCochainMorphismOfFinitelyPresentedObjectsRep[0m
  
  [2X> IsCochainMorphismOfFinitelyPresentedObjectsRep( [0X[3Xc[0X[2X ) ________[0XRepresentation
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  The  [5XGAP[0m  representation  of  cochain morphisms of finitely presented [5Xhomalg[0m
  objects.
  
  (It  is  a representation of the [5XGAP[0m category [2XIsHomalgChainMorphism[0m ([14X7.1-1[0m),
  which     is    a    subrepresentation    of    the    [5XGAP[0m    representation
  [10XIsMorphismOfFinitelyGeneratedObjectsRep[0m.)
  
  
  [1X7.2 Chain Morphisms: Constructors[0X
  
  [1X7.2-1 HomalgChainMorphism[0m
  
  [2X> HomalgChainMorphism( [0X[3Xphi[, C][, D][, d][0X[2X ) ________________________[0Xfunction
  [6XReturns:[0X  a [5Xhomalg[0m chain morphism
  
  The constructor creates a (co)chain morphism given a source [5Xhomalg[0m (co)chain
  complex [3XC[0m, a target [5Xhomalg[0m (co)chain complex [3XD[0m, and a [5Xhomalg[0m morphism [3Xphi[0m at
  (co)homological degree [3Xd[0m. The returned (co)chain morphism will cautiously be
  indicated  using  parenthesis:  "chain morphism". To verify if the result is
  indeed a (co)chain morphism use [2XIsMorphism[0m ([14X7.3-1[0m). If source and target are
  identical  objects,  and  only  then, the (co)chain morphism is created as a
  (co)chain endomorphism.
  
  The following examples shows a chain morphism that induces the zero morphism
  on homology, but is itself [13Xnot[0m zero in the derived category:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := 1 * ZZ;[0X
    [4X<The free left module of rank 1 on a free generator>[0X
    [4Xgap> Display( M );[0X
    [4XZ^(1 x 1)[0X
    [4Xgap> N := HomalgMatrix( "[3]", 1, 1, ZZ );;[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A cyclic left module presented by 1 relation for a cyclic generator>[0X
    [4Xgap> Display( N );[0X
    [4XZ/< 3 >[0X
    [4Xgap> a := HomalgMap( HomalgMatrix( "[2]", 1, 1, ZZ ), M, M );[0X
    [4X<An endomorphism of a left module>[0X
    [4Xgap> c := HomalgMap( HomalgMatrix( "[2]", 1, 1, ZZ ), M, N );[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> b := HomalgMap( HomalgMatrix( "[1]", 1, 1, ZZ ), M, M );[0X
    [4X<An endomorphism of a left module>[0X
    [4Xgap> d := HomalgMap( HomalgMatrix( "[1]", 1, 1, ZZ ), M, N );[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> C1 := HomalgComplex( a );[0X
    [4X<A non-zero acyclic complex containing a single morphism of left modules at de\[0X
    [4Xgrees [ 0 .. 1 ]>[0X
    [4Xgap> C2 := HomalgComplex( c );[0X
    [4X<A non-zero acyclic complex containing a single morphism of left modules at de\[0X
    [4Xgrees [ 0 .. 1 ]>[0X
    [4Xgap> cm := HomalgChainMorphism( d, C1, C2 );[0X
    [4X<A "chain morphism" containing a single left morphism at degree 0>[0X
    [4Xgap> Add( cm, b );[0X
    [4Xgap> IsMorphism( cm );[0X
    [4Xtrue[0X
    [4Xgap> cm;[0X
    [4X<A chain morphism containing 2 morphisms of left modules at degrees[0X
    [4X[ 0 .. 1 ]>[0X
    [4Xgap> hcm := DefectOfExactness( cm );[0X
    [4X<A chain morphism of graded objects containing[0X
    [4X2 morphisms of left modules at degrees [ 0 .. 1 ]>[0X
    [4Xgap> IsZero( hcm );[0X
    [4Xtrue[0X
    [4Xgap> IsZero( Source( hcm ) );[0X
    [4Xfalse[0X
    [4Xgap> IsZero( Range( hcm ) );[0X
    [4Xfalse[0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X7.3 Chain Morphisms: Properties[0X
  
  [1X7.3-1 IsMorphism[0m
  
  [2X> IsMorphism( [0X[3Xcm[0X[2X ) _________________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check  if  [3Xcm[0m  is  a  well-defined  chain  morphism, i.e. independent of all
  involved presentations.
  
  [1X7.3-2 IsGeneralizedMorphism[0m
  
  [2X> IsGeneralizedMorphism( [0X[3Xcm[0X[2X ) ______________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if [3Xcm[0m is a generalized morphism.
  
  [1X7.3-3 IsGeneralizedEpimorphism[0m
  
  [2X> IsGeneralizedEpimorphism( [0X[3Xcm[0X[2X ) ___________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if [3Xcm[0m is a generalized epimorphism.
  
  [1X7.3-4 IsGeneralizedMonomorphism[0m
  
  [2X> IsGeneralizedMonomorphism( [0X[3Xcm[0X[2X ) __________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if [3Xcm[0m is a generalized monomorphism.
  
  [1X7.3-5 IsGeneralizedIsomorphism[0m
  
  [2X> IsGeneralizedIsomorphism( [0X[3Xcm[0X[2X ) ___________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if [3Xcm[0m is a generalized isomorphism.
  
  [1X7.3-6 IsOne[0m
  
  [2X> IsOne( [0X[3Xcm[0X[2X ) ______________________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is the identity chain morphism.
  
  [1X7.3-7 IsMonomorphism[0m
  
  [2X> IsMonomorphism( [0X[3Xcm[0X[2X ) _____________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is a monomorphism.
  
  [1X7.3-8 IsEpimorphism[0m
  
  [2X> IsEpimorphism( [0X[3Xcm[0X[2X ) ______________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is an epimorphism.
  
  [1X7.3-9 IsSplitMonomorphism[0m
  
  [2X> IsSplitMonomorphism( [0X[3Xcm[0X[2X ) ________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is a split monomorphism.
  
  [1X7.3-10 IsSplitEpimorphism[0m
  
  [2X> IsSplitEpimorphism( [0X[3Xcm[0X[2X ) _________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is a split epimorphism.
  
  [1X7.3-11 IsIsomorphism[0m
  
  [2X> IsIsomorphism( [0X[3Xcm[0X[2X ) ______________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is an isomorphism.
  
  [1X7.3-12 IsAutomorphism[0m
  
  [2X> IsAutomorphism( [0X[3Xcm[0X[2X ) _____________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is an automorphism.
  
  [1X7.3-13 IsGradedMorphism[0m
  
  [2X> IsGradedMorphism( [0X[3Xcm[0X[2X ) ___________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check  if  the source and target complex of the [5Xhomalg[0m chain morphism [3Xcm[0m are
  graded objects, i.e. if all their morphisms vanish.
  
  [1X7.3-14 IsQuasiIsomorphism[0m
  
  [2X> IsQuasiIsomorphism( [0X[3Xcm[0X[2X ) _________________________________________[0Xproperty
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  Check if the [5Xhomalg[0m chain morphism [3Xcm[0m is a quasi-isomorphism.
  
  
  [1X7.4 Chain Morphisms: Attributes[0X
  
  [1X7.4-1 Source[0m
  
  [2X> Source( [0X[3Xcm[0X[2X ) ____________________________________________________[0Xattribute
  [6XReturns:[0X  a [5Xhomalg[0m complex
  
  The source of the [5Xhomalg[0m chain morphism [3Xcm[0m.
  
  [1X7.4-2 Range[0m
  
  [2X> Range( [0X[3Xcm[0X[2X ) _____________________________________________________[0Xattribute
  [6XReturns:[0X  a [5Xhomalg[0m complex
  
  The target (range) of the [5Xhomalg[0m chain morphism [3Xcm[0m.
  
  
  [1X7.5 Chain Morphisms: Operations and Functions[0X
  
  [1X7.5-1 ByASmallerPresentation[0m
  
  [2X> ByASmallerPresentation( [0X[3Xcm[0X[2X ) _______________________________________[0Xmethod
  [6XReturns:[0X  a [5Xhomalg[0m complex
  
  See [2XByASmallerPresentation[0m ([14X6.5-2[0m) on complexes.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallMethod( ByASmallerPresentation,[0X
    [4X        "for homalg chain morphisms",[0X
    [4X        [ IsHomalgChainMorphism ],[0X
    [4X        [0X
    [4X  function( cm )[0X
    [4X    [0X
    [4X    ByASmallerPresentation( Source( cm ) );[0X
    [4X    ByASmallerPresentation( Range( cm ) );[0X
    [4X    [0X
    [4X    List( MorphismsOfChainMorphism( cm ), DecideZero );[0X
    [4X    [0X
    [4X    return cm;[0X
    [4X    [0X
    [4Xend );[0X
  [4X------------------------------------------------------------------[0X
  
  This method performs side effects on its argument [3Xcm[0m and returns it.
  
