  
  [1X10 Functors[0X
  
  
  [1X10.1 Functors: Category and Representations[0X
  
  
  [1X10.2 Functors: Constructors[0X
  
  
  [1X10.3 Functors: Attributes[0X
  
  
  [1X10.4 Basic Functors[0X
  
  [1X10.4-1 functor_Cokernel[0m
  
  [2X> functor_Cokernel___________________________________________[0Xglobal variable
  
  The functor that associates to a map its cokernel.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallValue( functor_Cokernel_for_fp_modules,[0X
    [4X        CreateHomalgFunctor([0X
    [4X                [ "name", "Cokernel" ],[0X
    [4X                [ "category", HOMALG_MODULES.category ],[0X
    [4X                [ "operation", "Cokernel" ],[0X
    [4X                [ "natural_transformation", "CokernelEpi" ],[0X
    [4X                [ "special", true ],[0X
    [4X                [ "number_of_arguments", 1 ],[0X
    [4X                [ "1", [ [ "covariant" ],[0X
    [4X                        [ IsMapOfFinitelyGeneratedModulesRep,[0X
    [4X                          [ IsHomalgChainMorphism, IsImageSquare ] ] ] ],[0X
    [4X                [ "OnObjects", _Functor_Cokernel_OnModules ][0X
    [4X                )[0X
    [4X        );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-2 Cokernel[0m
  
  [2X> Cokernel( [0X[3Xphi[0X[2X ) _________________________________________________[0Xoperation
  
  The   following  example  also  makes  use  of  the  natural  transformation
  [10XCokernelEpi[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := HomalgMatrix( "[ 2, 3, 4, 5,   6, 7, 8, 9 ]", 2, 4, ZZ );;[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> mat := HomalgMatrix( "[ \[0X
    [4X> 1, 0, -3, -6, \[0X
    [4X> 0, 1,  6, 11, \[0X
    [4X> 1, 0, -3, -6  \[0X
    [4X> ]", 3, 4, ZZ );;[0X
    [4Xgap> phi := HomalgMap( mat, M, N );;[0X
    [4Xgap> IsMorphism( phi );[0X
    [4Xtrue[0X
    [4Xgap> phi;[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> coker := Cokernel( phi );[0X
    [4X<A left module presented by 5 relations for 4 generators>[0X
    [4Xgap> ByASmallerPresentation( coker );[0X
    [4X<A rank 1 left module presented by 1 relation for 2 generators>[0X
    [4Xgap> Display( coker );[0X
    [4XZ/< 8 > + Z^(1 x 1)[0X
    [4Xgap> nu := CokernelEpi( phi );[0X
    [4X<An epimorphism of left modules>[0X
    [4Xgap> Display( nu );[0X
    [4X[ [  -5,   0 ],[0X
    [4X  [  -6,   1 ],[0X
    [4X  [   1,  -2 ],[0X
    [4X  [   0,   1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 4 x 2 matrix[0X
    [4Xgap> DefectOfExactness( phi, nu );[0X
    [4X<A zero left module>[0X
    [4Xgap> ByASmallerPresentation( nu );[0X
    [4X<A non-zero epimorphism of left modules>[0X
    [4Xgap> Display( nu );[0X
    [4X[ [   2,   0 ],[0X
    [4X  [   1,  -2 ],[0X
    [4X  [   0,   1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 2 matrix[0X
    [4Xgap> PreInverse( nu );[0X
    [4Xfalse[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-3 functor_ImageObject[0m
  
  [2X> functor_ImageObject________________________________________[0Xglobal variable
  
  The functor that associates to a map its image.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallValue( functor_ImageObject_for_fp_modules,[0X
    [4X        CreateHomalgFunctor([0X
    [4X                [ "name", "ImageObject for modules" ],[0X
    [4X                [ "category", HOMALG_MODULES.category ],[0X
    [4X                [ "operation", "ImageObject" ],[0X
    [4X                [ "natural_transformation", "ImageObjectEmb" ],[0X
    [4X                [ "number_of_arguments", 1 ],[0X
    [4X                [ "1", [ [ "covariant" ],[0X
    [4X                        [ IsMapOfFinitelyGeneratedModulesRep ] ] ],[0X
    [4X                [ "OnObjects", _Functor_ImageObject_OnModules ][0X
    [4X                )[0X
    [4X        );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-4 ImageObject[0m
  
  [2X> ImageObject( [0X[3Xphi[0X[2X ) ______________________________________________[0Xoperation
  
  The  following  example  also  makes  use  of  the  natural  transformations
  [10XImageObjectEpi[0m and [10XImageObjectEmb[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := HomalgMatrix( "[ 2, 3, 4, 5,   6, 7, 8, 9 ]", 2, 4, ZZ );;[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> mat := HomalgMatrix( "[ \[0X
    [4X> 1, 0, -3, -6, \[0X
    [4X> 0, 1,  6, 11, \[0X
    [4X> 1, 0, -3, -6  \[0X
    [4X> ]", 3, 4, ZZ );;[0X
    [4Xgap> phi := HomalgMap( mat, M, N );;[0X
    [4Xgap> IsMorphism( phi );[0X
    [4Xtrue[0X
    [4Xgap> phi;[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> im := ImageObject( phi );[0X
    [4X<A left module presented by yet unknown relations for 3 generators>[0X
    [4Xgap> ByASmallerPresentation( im );[0X
    [4X<A free left module of rank 1 on a free generator>[0X
    [4Xgap> pi := ImageObjectEpi( phi );[0X
    [4X<A non-zero split epimorphism of left modules>[0X
    [4Xgap> epsilon := ImageObjectEmb( phi );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> phi = pi * epsilon;[0X
    [4Xtrue[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-5 Kernel[0m
  
  [2X> Kernel( [0X[3Xphi[0X[2X ) ___________________________________________________[0Xoperation
  
  The   following  example  also  makes  use  of  the  natural  transformation
  [10XKernelEmb[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := HomalgMatrix( "[ 2, 3, 4, 5,   6, 7, 8, 9 ]", 2, 4, ZZ );;[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> mat := HomalgMatrix( "[ \[0X
    [4X> 1, 0, -3, -6, \[0X
    [4X> 0, 1,  6, 11, \[0X
    [4X> 1, 0, -3, -6  \[0X
    [4X> ]", 3, 4, ZZ );;[0X
    [4Xgap> phi := HomalgMap( mat, M, N );;[0X
    [4Xgap> IsMorphism( phi );[0X
    [4Xtrue[0X
    [4Xgap> phi;[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> ker := Kernel( phi );[0X
    [4X<A cyclic left module presented by yet unknown relations for a cyclic generato\[0X
    [4Xr>[0X
    [4Xgap> Display( ker );[0X
    [4XZ/< -3 >[0X
    [4Xgap> ByASmallerPresentation( last );[0X
    [4X<A cyclic torsion left module presented by 1 relation for a cyclic generator>[0X
    [4Xgap> Display( ker );[0X
    [4XZ/< 3 >[0X
    [4Xgap> iota := KernelEmb( phi );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> Display( iota );[0X
    [4X[ [  0,  2,  4 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 3 matrix[0X
    [4Xgap> DefectOfExactness( iota, phi );[0X
    [4X<A zero left module>[0X
    [4Xgap> ByASmallerPresentation( iota );[0X
    [4X<A non-zero monomorphism of left modules>[0X
    [4Xgap> Display( iota );[0X
    [4X[ [  2,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4Xgap> PostInverse( iota );[0X
    [4Xfail[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-6 DefectOfExactness[0m
  
  [2X> DefectOfExactness( [0X[3Xphi, psi[0X[2X ) ___________________________________[0Xoperation
  
  We follow the associative convention for applying maps. For left modules [3Xphi[0m
  is  applied first and from the right. For right modules [3Xpsi[0m is applied first
  and from the left.
  
  The   following  example  also  makes  use  of  the  natural  transformation
  [10XKernelEmb[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4, 0,   5, 6, 7, 0 ]", 2, 4, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> N := HomalgMatrix( "[ 2, 3, 4, 5,   6, 7, 8, 9 ]", 2, 4, ZZ );;[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> mat := HomalgMatrix( "[ \[0X
    [4X> 1, 3,  3,  3, \[0X
    [4X> 0, 3, 10, 17, \[0X
    [4X> 1, 3,  3,  3, \[0X
    [4X> 0, 0,  0,  0  \[0X
    [4X> ]", 4, 4, ZZ );;[0X
    [4Xgap> phi := HomalgMap( mat, M, N );;[0X
    [4Xgap> IsMorphism( phi );[0X
    [4Xtrue[0X
    [4Xgap> phi;[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> iota := KernelEmb( phi );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> DefectOfExactness( iota, phi );[0X
    [4X<A zero left module>[0X
    [4Xgap> hom_iota := Hom( iota );	## a shorthand for Hom( iota, ZZ );[0X
    [4X<A homomorphism of right modules>[0X
    [4Xgap> hom_phi := Hom( phi );	## a shorthand for Hom( phi, ZZ );[0X
    [4X<A homomorphism of right modules>[0X
    [4Xgap> DefectOfExactness( hom_iota, hom_phi );[0X
    [4X<A cyclic right module on a cyclic generator satisfying yet unknown relations>[0X
    [4Xgap> ByASmallerPresentation( last );[0X
    [4X<A cyclic torsion right module on a cyclic generator satisfying 1 relation>[0X
    [4Xgap> Display( last );[0X
    [4XZ/< 2 >[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-7 Functor_Hom[0m
  
  [2X> Functor_Hom________________________________________________[0Xglobal variable
  
  The bifunctor [10XHom[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallValue( Functor_Hom_for_fp_modules,[0X
    [4X        CreateHomalgFunctor([0X
    [4X                [ "name", "Hom" ],[0X
    [4X                [ "category", HOMALG_MODULES.category ],[0X
    [4X                [ "operation", "Hom" ],[0X
    [4X                [ "number_of_arguments", 2 ],[0X
    [4X                [ "1", [ [ "contravariant", "right adjoint", "distinguished" ] ] ],[0X
    [4X                [ "2", [ [ "covariant", "left exact" ] ] ],[0X
    [4X                [ "OnObjects", _Functor_Hom_OnModules ],[0X
    [4X                [ "OnMorphisms", _Functor_Hom_OnMaps ],[0X
    [4X                [ "MorphismConstructor", HOMALG_MODULES.category.MorphismConstructor ][0X
    [4X                )[0X
    [4X        );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-8 Hom[0m
  
  [2X> Hom( [0X[3Xo1, o2[0X[2X ) ___________________________________________________[0Xoperation
  
  [3Xo1[0m  resp.  [3Xo2[0m could be a module, a map, a complex (of modules or of again of
  complexes), or a chain morphism.
  
  Each  generator  of  a  module  of homomorphisms is displayed as a matrix of
  appropriate dimensions.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := HomalgMatrix( "[ 2, 3, 4, 5,   6, 7, 8, 9 ]", 2, 4, ZZ );;[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> mat := HomalgMatrix( "[ \[0X
    [4X> 1, 0, -3, -6, \[0X
    [4X> 0, 1,  6, 11, \[0X
    [4X> 1, 0, -3, -6  \[0X
    [4X> ]", 3, 4, ZZ );;[0X
    [4Xgap> phi := HomalgMap( mat, M, N );;[0X
    [4Xgap> IsMorphism( phi );[0X
    [4Xtrue[0X
    [4Xgap> phi;[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> psi := Hom( phi, M );[0X
    [4X<A homomorphism of right modules>[0X
    [4Xgap> ByASmallerPresentation( psi );[0X
    [4X<A non-zero homomorphism of right modules>[0X
    [4Xgap> Display( psi );[0X
    [4X[ [   1,   1,   0,   1 ],[0X
    [4X  [   2,   2,   0,   0 ],[0X
    [4X  [   0,   0,   6,  10 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 4 matrix[0X
    [4Xgap> homNM := Source( psi );[0X
    [4X<A non-torsion right module on 4 generators satisfying 2 relations>[0X
    [4Xgap> IsIdenticalObj( homNM, Hom( N, M ) );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> homMM := Range( psi );[0X
    [4X<A non-torsion right module on 3 generators satisfying 2 relations>[0X
    [4Xgap> IsIdenticalObj( homMM, Hom( M, M ) );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> Display( homNM );[0X
    [4XZ/< 3 > + Z/< 3 > + Z^(2 x 1)[0X
    [4Xgap> Display( homMM );[0X
    [4XZ/< 3 > + Z/< 3 > + Z^(1 x 1)[0X
    [4Xgap> IsMonomorphism( psi );[0X
    [4Xfalse[0X
    [4Xgap> IsEpimorphism( psi );[0X
    [4Xfalse[0X
    [4Xgap> GeneratorsOfModule( homMM );[0X
    [4X<A set of 3 generators of a homalg right module>[0X
    [4Xgap> Display( last );[0X
    [4X[ [  0,  0,  0 ],[0X
    [4X  [  0,  1,  2 ],[0X
    [4X  [  0,  0,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4X[ [  0,  2,  4 ],[0X
    [4X  [  0,  0,  0 ],[0X
    [4X  [  0,  2,  4 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4X[ [   0,   1,   3 ],[0X
    [4X  [   0,   0,  -2 ],[0X
    [4X  [   0,   1,   3 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4Xa set of 3 generators given by the the above matrices[0X
    [4Xgap> GeneratorsOfModule( homNM );[0X
    [4X<A set of 4 generators of a homalg right module>[0X
    [4Xgap> Display( last );[0X
    [4X[ [  0,  1,  2 ],[0X
    [4X  [  0,  1,  2 ],[0X
    [4X  [  0,  1,  2 ],[0X
    [4X  [  0,  0,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 4 x 3 matrix[0X
    [4X[0X
    [4X[ [  0,  1,  2 ],[0X
    [4X  [  0,  0,  0 ],[0X
    [4X  [  0,  0,  0 ],[0X
    [4X  [  0,  2,  4 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 4 x 3 matrix[0X
    [4X[0X
    [4X[ [   0,   0,  -3 ],[0X
    [4X  [   0,   0,   7 ],[0X
    [4X  [   0,   0,  -5 ],[0X
    [4X  [   0,   0,   1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 4 x 3 matrix[0X
    [4X[0X
    [4X[ [   0,   1,  -3 ],[0X
    [4X  [   0,   0,  12 ],[0X
    [4X  [   0,   0,  -9 ],[0X
    [4X  [   0,   2,   6 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 4 x 3 matrix[0X
    [4X[0X
    [4Xa set of 4 generators given by the the above matrices[0X
  [4X------------------------------------------------------------------[0X
  
  If for example the source N gets a new presentation, you will see the effect
  on the generators:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ByASmallerPresentation( N );[0X
    [4X<A rank 2 left module presented by 1 relation for 3 generators>[0X
    [4Xgap> GeneratorsOfModule( homNM );[0X
    [4X<A set of 4 generators of a homalg right module>[0X
    [4Xgap> Display( last );[0X
    [4X[ [  0,  3,  6 ],[0X
    [4X  [  0,  1,  2 ],[0X
    [4X  [  0,  0,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4X[ [   0,   9,  18 ],[0X
    [4X  [   0,   0,   0 ],[0X
    [4X  [   0,   2,   4 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4X[ [   0,   0,   0 ],[0X
    [4X  [   0,   0,  -5 ],[0X
    [4X  [   0,   0,   1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4X[ [   0,   9,  18 ],[0X
    [4X  [   0,   0,  -9 ],[0X
    [4X  [   0,   2,   6 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 3 x 3 matrix[0X
    [4X[0X
    [4Xa set of 4 generators given by the the above matrices[0X
  [4X------------------------------------------------------------------[0X
  
  Now we compute a certain natural filtration on [10XHom[0m(M,M):
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> dM := Resolution( M );[0X
    [4X<A non-zero right acyclic complex containing a single morphism of left modules\[0X
    [4X at degrees [ 0 .. 1 ]>[0X
    [4Xgap> hMM := Hom( dM, dM );[0X
    [4X<A non-zero acyclic cocomplex containing a single morphism of right complexes \[0X
    [4Xat degrees [ 0 .. 1 ]>[0X
    [4Xgap> BMM := HomalgBicomplex( hMM );[0X
    [4X<A non-zero bicocomplex containing right modules at bidegrees [ 0 .. 1 ]x[0X
    [4X[ -1 .. 0 ]>[0X
    [4Xgap> II_E := SecondSpectralSequenceWithFiltration( BMM );[0X
    [4X<A stable cohomological spectral sequence with sheets at levels [0X
    [4X[ 0 .. 2 ] each consisting of right modules at bidegrees [ -1 .. 0 ]x[0X
    [4X[ 0 .. 1 ]>[0X
    [4Xgap> Display( II_E );[0X
    [4XThe associated transposed spectral sequence:[0X
    [4X[0X
    [4Xa cohomological spectral sequence at bidegrees[0X
    [4X[ [ 0 .. 1 ], [ -1 .. 0 ] ][0X
    [4X---------[0X
    [4XLevel 0:[0X
    [4X[0X
    [4X * *[0X
    [4X * *[0X
    [4X---------[0X
    [4XLevel 1:[0X
    [4X[0X
    [4X * *[0X
    [4X . .[0X
    [4X---------[0X
    [4XLevel 2:[0X
    [4X[0X
    [4X s s[0X
    [4X . .[0X
    [4X[0X
    [4XNow the spectral sequence of the bicomplex:[0X
    [4X[0X
    [4Xa cohomological spectral sequence at bidegrees[0X
    [4X[ [ -1 .. 0 ], [ 0 .. 1 ] ][0X
    [4X---------[0X
    [4XLevel 0:[0X
    [4X[0X
    [4X * *[0X
    [4X * *[0X
    [4X---------[0X
    [4XLevel 1:[0X
    [4X[0X
    [4X * *[0X
    [4X * *[0X
    [4X---------[0X
    [4XLevel 2:[0X
    [4X[0X
    [4X s s[0X
    [4X . s[0X
    [4Xgap> filt := FiltrationBySpectralSequence( II_E );[0X
    [4X<A descending filtration with degrees [ -1 .. 0 ] and graded parts:[0X
    [4X  [0X
    [4X-1:	<A non-zero cyclic right module on a cyclic generator satisfying yet unkno\[0X
    [4Xwn relations>[0X
    [4X   0:	<A rank 1 right module on 3 generators satisfying 2 relations>[0X
    [4Xof[0X
    [4X<A right module on 4 generators satisfying yet unknown relations>>[0X
    [4Xgap> ByASmallerPresentation( filt );[0X
    [4X<A descending filtration with degrees [ -1 .. 0 ] and graded parts:[0X
    [4X  [0X
    [4X-1:	<A non-zero cyclic torsion right module on a cyclic generator satisfying 1\[0X
    [4X relation>[0X
    [4X   0:	<A rank 1 right module on 2 generators satisfying 1 relation>[0X
    [4Xof[0X
    [4X<A non-torsion right module on 3 generators satisfying 2 relations>>[0X
    [4Xgap> Display( filt );[0X
    [4XDegree -1:[0X
    [4X[0X
    [4XZ/< 3 >[0X
    [4X----------[0X
    [4XDegree 0:[0X
    [4X[0X
    [4XZ/< 3 > + Z^(1 x 1)[0X
    [4Xgap> Display( homMM );[0X
    [4XZ/< 3 > + Z/< 3 > + Z^(1 x 1)[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-9 Functor_TensorProduct[0m
  
  [2X> Functor_TensorProduct______________________________________[0Xglobal variable
  
  The tensor product bifunctor.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallValue( Functor_TensorProduct_for_fp_modules,[0X
    [4X        CreateHomalgFunctor([0X
    [4X                [ "name", "TensorProduct" ],[0X
    [4X                [ "category", HOMALG_MODULES.category ],[0X
    [4X                [ "operation", "TensorProductOp" ],[0X
    [4X                [ "number_of_arguments", 2 ],[0X
    [4X                [ "1", [ [ "covariant", "left adjoint", "distinguished" ] ] ],[0X
    [4X                [ "2", [ [ "covariant", "left adjoint" ] ] ],[0X
    [4X                [ "OnObjects", _Functor_TensorProduct_OnModules ],[0X
    [4X                [ "OnMorphisms", _Functor_TensorProduct_OnMaps ],[0X
    [4X                [ "MorphismConstructor", HOMALG_MODULES.category.MorphismConstructor ][0X
    [4X                )[0X
    [4X        );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-10 TensorProduct[0m
  
  [2X> TensorProduct( [0X[3Xo1, o2[0X[2X ) _________________________________________[0Xoperation
  [2X> \*( [0X[3Xo1, o2[0X[2X ) ____________________________________________________[0Xoperation
  
  [3Xo1[0m  resp.  [3Xo2[0m could be a module, a map, a complex (of modules or of again of
  complexes), or a chain morphism.
  
  The  symbol  [10X*[0m  is  a  shorthand  for several operations associated with the
  functor   [10XFunctor_TensorProduct_for_fp_modules[0m   installed  under  the  name
  [10XTensorProduct[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );[0X
    [4X<A 2 x 3 matrix over an internal ring>[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := HomalgMatrix( "[ 2, 3, 4, 5,   6, 7, 8, 9 ]", 2, 4, ZZ );[0X
    [4X<A 2 x 4 matrix over an internal ring>[0X
    [4Xgap> N := LeftPresentation( N );[0X
    [4X<A non-torsion left module presented by 2 relations for 4 generators>[0X
    [4Xgap> mat := HomalgMatrix( "[ \[0X
    [4X> 1, 0, -3, -6, \[0X
    [4X> 0, 1,  6, 11, \[0X
    [4X> 1, 0, -3, -6  \[0X
    [4X> ]", 3, 4, ZZ );[0X
    [4X<A 3 x 4 matrix over an internal ring>[0X
    [4Xgap> phi := HomalgMap( mat, M, N );[0X
    [4X<A "homomorphism" of left modules>[0X
    [4Xgap> IsMorphism( phi );[0X
    [4Xtrue[0X
    [4Xgap> phi;[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> L := Hom( ZZ, M );[0X
    [4X<A rank 1 right module on 3 generators satisfying yet unknown relations>[0X
    [4Xgap> ByASmallerPresentation( L );[0X
    [4X<A rank 1 right module on 2 generators satisfying 1 relation>[0X
    [4Xgap> Display( L );[0X
    [4XZ/< 3 > + Z^(1 x 1)[0X
    [4Xgap> L;	## the display method found out further information about the module L[0X
    [4X<A rank 1 right module on 2 generators satisfying 1 relation>[0X
    [4Xgap> psi := phi * L;[0X
    [4X<A homomorphism of right modules>[0X
    [4Xgap> ByASmallerPresentation( psi );[0X
    [4X<A non-zero homomorphism of right modules>[0X
    [4Xgap> Display( psi );[0X
    [4X[ [   0,   0,   1,   1 ],[0X
    [4X  [   0,   0,   8,   1 ],[0X
    [4X  [   0,   0,   0,  -2 ],[0X
    [4X  [   0,   0,   0,   2 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 4 x 4 matrix[0X
    [4Xgap> ML := Source( psi );[0X
    [4X<A non-torsion right module on 4 generators satisfying 3 relations>[0X
    [4Xgap> IsIdenticalObj( ML, M * L );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> NL := Range( psi );[0X
    [4X<A non-torsion right module on 4 generators satisfying 2 relations>[0X
    [4Xgap> IsIdenticalObj( NL, N * L );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> Display( ML );[0X
    [4XZ/< 3 > + Z/< 3 > + Z/< 3 > + Z^(1 x 1)[0X
    [4Xgap> Display( NL );[0X
    [4XZ/< 3 > + Z/< 12 > + Z^(2 x 1)[0X
  [4X------------------------------------------------------------------[0X
  
  Now we compute a certain natural filtration on the tensor product M[10X*[0mL:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> P := Resolution( M );[0X
    [4X<A non-zero right acyclic complex containing a single morphism of left modules\[0X
    [4X at degrees [ 0 .. 1 ]>[0X
    [4Xgap> GP := Hom( P );[0X
    [4X<A non-zero acyclic cocomplex containing a single morphism of right modules at\[0X
    [4X degrees [ 0 .. 1 ]>[0X
    [4Xgap> CE := Resolution( GP );[0X
    [4X<An acyclic cocomplex containing a single morphism of right complexes at degre\[0X
    [4Xes [ 0 .. 1 ]>[0X
    [4Xgap> FCE := Hom( CE, L );[0X
    [4X<A non-zero acyclic complex containing a single morphism of left cocomplexes a\[0X
    [4Xt degrees [ 0 .. 1 ]>[0X
    [4Xgap> BC := HomalgBicomplex( FCE );[0X
    [4X<A non-zero bicomplex containing left modules at bidegrees [ 0 .. 1 ]x[0X
    [4X[ -1 .. 0 ]>[0X
    [4Xgap> II_E := SecondSpectralSequenceWithFiltration( BC );[0X
    [4X<A stable homological spectral sequence with sheets at levels [0X
    [4X[ 0 .. 2 ] each consisting of left modules at bidegrees [ -1 .. 0 ]x[0X
    [4X[ 0 .. 1 ]>[0X
    [4Xgap> Display( II_E );[0X
    [4XThe associated transposed spectral sequence:[0X
    [4X[0X
    [4Xa homological spectral sequence at bidegrees[0X
    [4X[ [ 0 .. 1 ], [ -1 .. 0 ] ][0X
    [4X---------[0X
    [4XLevel 0:[0X
    [4X[0X
    [4X * *[0X
    [4X * *[0X
    [4X---------[0X
    [4XLevel 1:[0X
    [4X[0X
    [4X * *[0X
    [4X . .[0X
    [4X---------[0X
    [4XLevel 2:[0X
    [4X[0X
    [4X s s[0X
    [4X . .[0X
    [4X[0X
    [4XNow the spectral sequence of the bicomplex:[0X
    [4X[0X
    [4Xa homological spectral sequence at bidegrees[0X
    [4X[ [ -1 .. 0 ], [ 0 .. 1 ] ][0X
    [4X---------[0X
    [4XLevel 0:[0X
    [4X[0X
    [4X * *[0X
    [4X * *[0X
    [4X---------[0X
    [4XLevel 1:[0X
    [4X[0X
    [4X * *[0X
    [4X . s[0X
    [4X---------[0X
    [4XLevel 2:[0X
    [4X[0X
    [4X s s[0X
    [4X . s[0X
    [4Xgap> filt := FiltrationBySpectralSequence( II_E );[0X
    [4X<An ascending filtration with degrees [ -1 .. 0 ] and graded parts:[0X
    [4X   0:	<A non-torsion left module presented by 1 relation for 2 generators>[0X
    [4X  -1:	<A non-zero left module presented by 2 relations for 2 generators>[0X
    [4Xof[0X
    [4X<A non-zero left module presented by 10 relations for 6 generators>>[0X
    [4Xgap> ByASmallerPresentation( filt );[0X
    [4X<An ascending filtration with degrees [ -1 .. 0 ] and graded parts:[0X
    [4X   0:	<A rank 1 left module presented by 1 relation for 2 generators>[0X
    [4X  -1:	<A non-zero left module presented by 2 relations for 2 generators>[0X
    [4Xof[0X
    [4X<A non-torsion left module presented by 3 relations for 4 generators>>[0X
    [4Xgap> Display( filt );[0X
    [4XDegree 0:[0X
    [4X[0X
    [4XZ/< 3 > + Z^(1 x 1)[0X
    [4X----------[0X
    [4XDegree -1:[0X
    [4X[0X
    [4XZ/< 3 > + Z/< 3 >[0X
    [4Xgap> Display( ML );[0X
    [4XZ/< 3 > + Z/< 3 > + Z/< 3 > + Z^(1 x 1)[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-11 Functor_Ext[0m
  
  [2X> Functor_Ext________________________________________________[0Xglobal variable
  
  The bifunctor [10XExt[0m.
  
  Below    is    the   only   [13Xspecific[0m   line   of   code   used   to   define
  [10XFunctor_Ext_for_fp_modules[0m and all the different operations [10XExt[0m in [5Xhomalg[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XRightSatelliteOfCofunctor( Functor_Hom_for_fp_modules, "Ext" );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-12 Ext[0m
  
  [2X> Ext( [0X[3X[c, ]o1, o2[, str][0X[2X ) _______________________________________[0Xoperation
  
  Compute  the  [3Xc[0m-th  extension  object of [3Xo1[0m with [3Xo2[0m where [3Xc[0m is a nonnegative
  integer  and  [3Xo1[0m resp. [3Xo2[0m could be a module, a map, a complex (of modules or
  of   again  of  complexes),  or  a  chain  morphism.  If  [3Xstr[0m="a"  then  the
  (cohomologically)  graded object Ext^i([3Xo1[0m,[3Xo2[0m) for 0 <= i <=[3Xc[0m is computed. If
  neither  [3Xc[0m  nor  [3Xstr[0m  is  specified  then  the cohomologically graded object
  Ext^i([3Xo1[0m,[3Xo2[0m)  for  0  <=  i  <=  d is computed, where d is the length of the
  internally computed free resolution of [3Xo1[0m.
  
  Each  generator  of  a  module  of  extensions  is  displayed as a matrix of
  appropriate dimensions.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := TorsionObject( M );[0X
    [4X<A cyclic torsion left module presented by yet unknown relations for a cyclic \[0X
    [4Xgenerator>[0X
    [4Xgap> iota := TorsionObjectEmb( M );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> psi := Ext( 1, iota, N );[0X
    [4X<A homomorphism of right modules>[0X
    [4Xgap> ByASmallerPresentation( psi );[0X
    [4X<A non-zero homomorphism of right modules>[0X
    [4Xgap> Display( psi );[0X
    [4X[ [  2 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 1 matrix[0X
    [4Xgap> extNN := Range( psi );[0X
    [4X<A non-zero cyclic torsion right module on a cyclic generator satisfying 1 rel\[0X
    [4Xation>[0X
    [4Xgap> IsIdenticalObj( extNN, Ext( 1, N, N ) );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> extMN := Source( psi );[0X
    [4X<A non-zero cyclic torsion right module on a cyclic generator satisfying 1 rel\[0X
    [4Xation>[0X
    [4Xgap> IsIdenticalObj( extMN, Ext( 1, M, N ) );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> Display( extNN );[0X
    [4XZ/< 3 >[0X
    [4Xgap> Display( extMN );[0X
    [4XZ/< 3 >[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-13 Functor_Tor[0m
  
  [2X> Functor_Tor________________________________________________[0Xglobal variable
  
  The bifunctor [10XTor[0m.
  
  Below    is    the   only   [13Xspecific[0m   line   of   code   used   to   define
  [10XFunctor_Tor_for_fp_modules[0m and all the different operations [10XTor[0m in [5Xhomalg[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XLeftSatelliteOfFunctor( Functor_TensorProduct_for_fp_modules, "Tor" );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-14 Tor[0m
  
  [2X> Tor( [0X[3X[c, ]o1, o2[, str][0X[2X ) _______________________________________[0Xoperation
  
  Compute  the  [3Xc[0m-th  torsion  object  of  [3Xo1[0m with [3Xo2[0m where [3Xc[0m is a nonnegative
  integer  and  [3Xo1[0m resp. [3Xo2[0m could be a module, a map, a complex (of modules or
  of   again  of  complexes),  or  a  chain  morphism.  If  [3Xstr[0m="a"  then  the
  (cohomologically)  graded object Tor_i([3Xo1[0m,[3Xo2[0m) for 0 <= i <=[3Xc[0m is computed. If
  neither  [3Xc[0m  nor  [3Xstr[0m  is  specified  then  the cohomologically graded object
  Tor_i([3Xo1[0m,[3Xo2[0m)  for  0  <=  i  <=  d is computed, where d is the length of the
  internally computed free resolution of [3Xo1[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> M := HomalgMatrix( "[ 2, 3, 4,   5, 6, 7 ]", 2, 3, ZZ );;[0X
    [4Xgap> M := LeftPresentation( M );[0X
    [4X<A non-torsion left module presented by 2 relations for 3 generators>[0X
    [4Xgap> N := TorsionObject( M );[0X
    [4X<A cyclic torsion left module presented by yet unknown relations for a cyclic \[0X
    [4Xgenerator>[0X
    [4Xgap> iota := TorsionObjectEmb( M );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> psi := Tor( 1, iota, N );[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> ByASmallerPresentation( psi );[0X
    [4X<A non-zero homomorphism of left modules>[0X
    [4Xgap> Display( psi );[0X
    [4X[ [  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 1 matrix[0X
    [4Xgap> torNN := Source( psi );[0X
    [4X<A non-zero cyclic torsion left module presented by 1 relation for a cyclic ge\[0X
    [4Xnerator>[0X
    [4Xgap> IsIdenticalObj( torNN, Tor( 1, N, N ) );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> torMN := Range( psi );[0X
    [4X<A non-zero cyclic torsion left module presented by 1 relation for a cyclic ge\[0X
    [4Xnerator>[0X
    [4Xgap> IsIdenticalObj( torMN, Tor( 1, M, N ) );	## the caching at work[0X
    [4Xtrue[0X
    [4Xgap> Display( torNN );[0X
    [4XZ/< 3 >[0X
    [4Xgap> Display( torMN );[0X
    [4XZ/< 3 >[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-15 Functor_RHom[0m
  
  [2X> Functor_RHom_______________________________________________[0Xglobal variable
  
  The bifunctor [10XRHom[0m.
  
  Below    is    the   only   [13Xspecific[0m   line   of   code   used   to   define
  [10XFunctor_RHom_for_fp_modules[0m and all the different operations [10XRHom[0m in [5Xhomalg[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XRightDerivedCofunctor( Functor_Hom_for_fp_modules );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-16 RHom[0m
  
  [2X> RHom( [0X[3X[c, ]o1, o2[, str][0X[2X ) ______________________________________[0Xoperation
  
  Compute  the  [3Xc[0m-th  extension  object of [3Xo1[0m with [3Xo2[0m where [3Xc[0m is a nonnegative
  integer  and  [3Xo1[0m resp. [3Xo2[0m could be a module, a map, a complex (of modules or
  of  again  of  complexes),  or  a  chain  morphism.  The string [3Xstr[0m may take
  different values:
  
  --    If [3Xstr[0m="a" then R^i Hom([3Xo1[0m,[3Xo2[0m) for 0 <= i <=[3Xc[0m is computed.
  
  --    If  [3Xstr[0m="c"  then the [3Xc[0m-th connecting homomorphism with respect to the
        short exact sequence [3Xo1[0m is computed.
  
  --    If  [3Xstr[0m="t"  then  the exact triangle upto cohomological degree [3Xc[0m with
        respect to the short exact sequence [3Xo1[0m is computed.
  
  If neither [3Xc[0m nor [3Xstr[0m is specified then the cohomologically graded object R^i
  Hom([3Xo1[0m,[3Xo2[0m)  for  0  <=  i  <=  d  is  computed, where d is the length of the
  internally computed free resolution of [3Xo1[0m.
  
  Each generator of a module of derived homomorphisms is displayed as a matrix
  of appropriate dimensions.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> m := HomalgMatrix( [ [ 8, 0 ], [ 0, 2 ] ], ZZ );;[0X
    [4Xgap> M := LeftPresentation( m );[0X
    [4X<A left module presented by 2 relations for 2 generators>[0X
    [4Xgap> Display( M );[0X
    [4XZ/< 8 > + Z/< 2 >[0X
    [4Xgap> M;[0X
    [4X<A torsion left module presented by 2 relations for 2 generators>[0X
    [4Xgap> a := HomalgMatrix( [ [ 2, 0 ] ], ZZ );;[0X
    [4Xgap> alpha := HomalgMap( a, "free", M );[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> pi := CokernelEpi( alpha );[0X
    [4X<An epimorphism of left modules>[0X
    [4Xgap> Display( pi );[0X
    [4X[ [  1,  0 ],[0X
    [4X  [  0,  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4Xgap> iota := KernelEmb( pi );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> Display( iota );[0X
    [4X[ [  2,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4Xgap> N := Kernel( pi );[0X
    [4X<A cyclic torsion left module presented by yet unknown relations for a cyclic \[0X
    [4Xgenerator>[0X
    [4Xgap> Display( N );[0X
    [4XZ/< 4 >[0X
    [4Xgap> C := HomalgComplex( pi );[0X
    [4X<A left acyclic complex containing a single morphism of left modules at degree\[0X
    [4Xs [ 0 .. 1 ]>[0X
    [4Xgap> Add( C, iota );[0X
    [4Xgap> ByASmallerPresentation( C );[0X
    [4X<A non-zero short exact sequence containing[0X
    [4X2 morphisms of left modules at degrees [ 0 .. 2 ]>[0X
    [4Xgap> Display( C );[0X
    [4X-------------------------[0X
    [4Xat homology degree: 2[0X
    [4XZ/< 4 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  6 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 1[0X
    [4XZ/< 2 > + Z/< 8 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  1 ],[0X
    [4X  [  1,  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 0[0X
    [4XZ/< 2 > + Z/< 2 >[0X
    [4X-------------------------[0X
    [4Xgap> T := RHom( C, N );[0X
    [4X<An exact cotriangle containing 3 morphisms of right cocomplexes at degrees[0X
    [4X[ 0, 1, 2, 0 ]>[0X
    [4Xgap> ByASmallerPresentation( T );[0X
    [4X<A non-zero exact cotriangle containing[0X
    [4X3 morphisms of right cocomplexes at degrees [ 0, 1, 2, 0 ]>[0X
    [4Xgap> L := LongSequence( T );[0X
    [4X<A cosequence containing 5 morphisms of right modules at degrees [ 0 .. 5 ]>[0X
    [4Xgap> Display( L );[0X
    [4X-------------------------[0X
    [4Xat cohomology degree: 5[0X
    [4XZ/< 4 >[0X
    [4X------------^------------[0X
    [4X[ [  0,  3 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4X-------------------------[0X
    [4Xat cohomology degree: 4[0X
    [4XZ/< 2 > + Z/< 4 >[0X
    [4X------------^------------[0X
    [4X[ [  0,  1 ],[0X
    [4X  [  0,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4X-------------------------[0X
    [4Xat cohomology degree: 3[0X
    [4XZ/< 2 > + Z/< 2 >[0X
    [4X------------^------------[0X
    [4X[ [  1 ],[0X
    [4X  [  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 1 matrix[0X
    [4X-------------------------[0X
    [4Xat cohomology degree: 2[0X
    [4XZ/< 4 >[0X
    [4X------------^------------[0X
    [4X[ [  0,  2 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4X-------------------------[0X
    [4Xat cohomology degree: 1[0X
    [4XZ/< 2 > + Z/< 4 >[0X
    [4X------------^------------[0X
    [4X[ [  0,  1 ],[0X
    [4X  [  2,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4X-------------------------[0X
    [4Xat cohomology degree: 0[0X
    [4XZ/< 2 > + Z/< 2 >[0X
    [4X-------------------------[0X
    [4Xgap> IsExactSequence( L );[0X
    [4Xtrue[0X
    [4Xgap> L;[0X
    [4X<An exact cosequence containing 5 morphisms of right modules at degrees[0X
    [4X[ 0 .. 5 ]>[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-17 Functor_LTensorProduct[0m
  
  [2X> Functor_LTensorProduct_____________________________________[0Xglobal variable
  
  The bifunctor [10XLTensorProduct[0m.
  
  Below    is    the   only   [13Xspecific[0m   line   of   code   used   to   define
  [10XFunctor_LTensorProduct_for_fp_modules[0m   and  all  the  different  operations
  [10XLTensorProduct[0m in [5Xhomalg[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XLeftDerivedFunctor( Functor_TensorProduct_for_fp_modules );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-18 LTensorProduct[0m
  
  [2X> LTensorProduct( [0X[3X[c, ]o1, o2[, str][0X[2X ) ____________________________[0Xoperation
  
  Compute  the  [3Xc[0m-th  torsion  object  of  [3Xo1[0m with [3Xo2[0m where [3Xc[0m is a nonnegative
  integer  and  [3Xo1[0m resp. [3Xo2[0m could be a module, a map, a complex (of modules or
  of  again  of  complexes),  or  a  chain  morphism.  The string [3Xstr[0m may take
  different values:
  
  --    If [3Xstr[0m="a" then L_i TensorProduct([3Xo1[0m,[3Xo2[0m) for 0 <= i <=[3Xc[0m is computed.
  
  --    If  [3Xstr[0m="c"  then the [3Xc[0m-th connecting homomorphism with respect to the
        short exact sequence [3Xo1[0m is computed.
  
  --    If  [3Xstr[0m="t"  then  the exact triangle upto cohomological degree [3Xc[0m with
        respect to the short exact sequence [3Xo1[0m is computed.
  
  If neither [3Xc[0m nor [3Xstr[0m is specified then the cohomologically graded object L_i
  TensorProduct([3Xo1[0m,[3Xo2[0m)  for  0 <= i <= d is computed, where d is the length of
  the internally computed free resolution of [3Xo1[0m.
  
  Each generator of a module of derived homomorphisms is displayed as a matrix
  of appropriate dimensions.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );[0X
    [4XZ[0X
    [4Xgap> m := HomalgMatrix( [ [ 8, 0 ], [ 0, 2 ] ], ZZ );;[0X
    [4Xgap> M := LeftPresentation( m );[0X
    [4X<A left module presented by 2 relations for 2 generators>[0X
    [4Xgap> Display( M );[0X
    [4XZ/< 8 > + Z/< 2 >[0X
    [4Xgap> M;[0X
    [4X<A torsion left module presented by 2 relations for 2 generators>[0X
    [4Xgap> a := HomalgMatrix( [ [ 2, 0 ] ], ZZ );;[0X
    [4Xgap> alpha := HomalgMap( a, "free", M );[0X
    [4X<A homomorphism of left modules>[0X
    [4Xgap> pi := CokernelEpi( alpha );[0X
    [4X<An epimorphism of left modules>[0X
    [4Xgap> Display( pi );[0X
    [4X[ [  1,  0 ],[0X
    [4X  [  0,  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4Xgap> iota := KernelEmb( pi );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> Display( iota );[0X
    [4X[ [  2,  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4Xgap> N := Kernel( pi );[0X
    [4X<A cyclic torsion left module presented by yet unknown relations for a cyclic \[0X
    [4Xgenerator>[0X
    [4Xgap> Display( N );[0X
    [4XZ/< 4 >[0X
    [4Xgap> C := HomalgComplex( pi );[0X
    [4X<A left acyclic complex containing a single morphism of left modules at degree\[0X
    [4Xs [ 0 .. 1 ]>[0X
    [4Xgap> Add( C, iota );[0X
    [4Xgap> ByASmallerPresentation( C );[0X
    [4X<A non-zero short exact sequence containing[0X
    [4X2 morphisms of left modules at degrees [ 0 .. 2 ]>[0X
    [4Xgap> Display( C );[0X
    [4X-------------------------[0X
    [4Xat homology degree: 2[0X
    [4XZ/< 4 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  6 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 1[0X
    [4XZ/< 2 > + Z/< 8 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  1 ],[0X
    [4X  [  1,  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 0[0X
    [4XZ/< 2 > + Z/< 2 >[0X
    [4X-------------------------[0X
    [4Xgap> T := LTensorProduct( C, N );[0X
    [4X<An exact triangle containing 3 morphisms of left complexes at degrees[0X
    [4X[ 1, 2, 3, 1 ]>[0X
    [4Xgap> ByASmallerPresentation( T );[0X
    [4X<A non-zero exact triangle containing[0X
    [4X3 morphisms of left complexes at degrees [ 1, 2, 3, 1 ]>[0X
    [4Xgap> L := LongSequence( T );[0X
    [4X<A sequence containing 5 morphisms of left modules at degrees [ 0 .. 5 ]>[0X
    [4Xgap> Display( L );[0X
    [4X-------------------------[0X
    [4Xat homology degree: 5[0X
    [4XZ/< 4 >[0X
    [4X-------------------------[0X
    [4X[ [  1,  3 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 4[0X
    [4XZ/< 2 > + Z/< 4 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  1 ],[0X
    [4X  [  0,  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 3[0X
    [4XZ/< 2 > + Z/< 2 >[0X
    [4X-------------------------[0X
    [4X[ [  2 ],[0X
    [4X  [  0 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 1 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 2[0X
    [4XZ/< 4 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  2 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 1[0X
    [4XZ/< 2 > + Z/< 4 >[0X
    [4X-------------------------[0X
    [4X[ [  0,  1 ],[0X
    [4X  [  1,  1 ] ][0X
    [4X[0X
    [4Xthe map is currently represented by the above 2 x 2 matrix[0X
    [4X------------v------------[0X
    [4Xat homology degree: 0[0X
    [4XZ/< 2 > + Z/< 2 >[0X
    [4X-------------------------[0X
    [4Xgap> IsExactSequence( L );[0X
    [4Xtrue[0X
    [4Xgap> L;[0X
    [4X<An exact sequence containing 5 morphisms of left modules at degrees[0X
    [4X[ 0 .. 5 ]>[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-19 Functor_HomHom[0m
  
  [2X> Functor_HomHom_____________________________________________[0Xglobal variable
  
  The bifunctor [10XHomHom[0m.
  
  Below    is    the   only   [13Xspecific[0m   line   of   code   used   to   define
  [10XFunctor_HomHom_for_fp_modules[0m  and  all  the  different operations [10XHomHom[0m in
  [5Xhomalg[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XFunctor_Hom_for_fp_modules * Functor_Hom_for_fp_modules;[0X
  [4X------------------------------------------------------------------[0X
  
  [1X10.4-20 Functor_LHomHom[0m
  
  [2X> Functor_LHomHom____________________________________________[0Xglobal variable
  
  The bifunctor [10XLHomHom[0m.
  
  Below    is    the   only   [13Xspecific[0m   line   of   code   used   to   define
  [10XFunctor_LHomHom_for_fp_modules[0m  and  all the different operations [10XLHomHom[0m in
  [5Xhomalg[0m.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XLeftDerivedFunctor( Functor_HomHom_for_fp_modules );[0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X10.5 Tool Functors[0X
  
  
  [1X10.6 Other Functors[0X
  
  
  [1X10.7 Functors: Operations and Functions[0X
  
