  
  [1X11 Functors[0X
  
  Functors  and  their  natural  transformations  form the heart of the [5Xhomalg[0m
  package.  Usually,  a  functor  is realized in computer algebra systems as a
  procedure  which  can  be applied to a certain type of objects. In [BR08] it
  was  explained how to implement a functor of Abelian categories -- by itself
  --  as  an object which can be further manipulated (composed, derived, ...).
  So in addition to the constructor [2XCreateHomalgFunctor[0m ([14X11.2-1[0m) which is used
  to  create  functors  from  scratch,  [5Xhomalg[0m  provides  further  easy-to-use
  constructors to create new functors out of existing ones:
  
  --    [2XInsertObjectInMultiFunctor[0m ([14X11.2-2[0m)
  
  --    [2XRightSatelliteOfCofunctor[0m ([14X11.2-3[0m)
  
  --    [2XLeftSatelliteOfFunctor[0m ([14X11.2-4[0m)
  
  --    [2XRightDerivedCofunctor[0m ([14X11.2-5[0m)
  
  --    [2XLeftDerivedFunctor[0m ([14X11.2-6[0m)
  
  --    [2XComposeFunctors[0m ([14X11.2-7[0m)
  
  In [5Xhomalg[0m each functor is implemented as a [5XGAP4[0m object.
  
  So-called  installers  (-->  [2XInstallFunctor[0m ([14X11.7-1[0m) and [2XInstallDeltaFunctor[0m
  ([14X11.7-2[0m)) take such a functor object and create operations in order to apply
  the  functor  on  objects,  morphisms,  complexes  (of  objects  or again of
  complexes),  and  chain  maps.  The  installer  [2XInstallDeltaFunctor[0m ([14X11.7-2[0m)
  creates  additional  operations  for  delta-functors  in  order  to  compute
  connecting   homomorphisms,  exact  triangles,  and  associated  long  exact
  sequences by starting with a short exact sequence.
  
  In  [5Xhomalg[0m  special emphasis is laid on the action of functors on [13Xmorphisms[0m,
  as  an  essential  part  of the very definition of a functor. This is for no
  obvious  reason often neglected in computer algebra systems. Starting from a
  functor  where  the  action  on  morphisms  is  also  defined, all the above
  constructors  again  create  functors  with  actions  both on objects and on
  morphisms (and hence on chain complexes and chain maps).
  
  It  turned  out  that  in  a  variety  of situations a caching mechanism for
  functors  is  not  only  extremely  useful (e.g. to avoid repeated expensive
  computations)  but  also  an  absolute  necessity for the coherence of data.
  Functors in [5Xhomalg[0m are therefore endowed with a caching mechanism.
  
  If  R  is  a [5Xhomalg[0m ring in which the component R!.[10XByASmallerPresentation[0m is
  set to true
  [10XR!.ByASmallerPresentation := true[0m;
  any   functor   which   returns   an   object   over   R  will  first  apply
  [10XByASmallerPresentation[0m to its result before returning it.
  
  One  of  the  highlights  in  [5Xhomalg[0m  is  the  computation of Grothendieck's
  spectral  sequences  connecting  the  composition  of the derivations of two
  functors with the derived functor of their composite.
  
  
  [1X11.1 Functors: Category and Representations[0X
  
  [1X11.1-1 IsHomalgFunctor[0m
  
  [2X> IsHomalgFunctor( [0X[3XF[0X[2X ) _____________________________________________[0XCategory
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  The [5XGAP[0m category of [5Xhomalg[0m (multi-)functors.
  
  [1X11.1-2 IsHomalgFunctorRep[0m
  
  [2X> IsHomalgFunctorRep( [0X[3XE[0X[2X ) ____________________________________[0XRepresentation
  [6XReturns:[0X  [10Xtrue[0m or [10Xfalse[0m
  
  The [5XGAP[0m representation of [5Xhomalg[0m (multi-)functors.
  
  (It is a representation of the [5XGAP[0m category [2XIsHomalgFunctor[0m ([14X11.1-1[0m).)
  
  
  [1X11.2 Functors: Constructors[0X
  
  [1X11.2-1 CreateHomalgFunctor[0m
  
  [2X> CreateHomalgFunctor( [0X[3Xlist1, list2, ...[0X[2X ) _________________________[0Xfunction
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  This  constructor  is used to create functors for [5Xhomalg[0m from scratch. [3XlistN[0m
  is  of  the  form [3XlistN = [ stringN, valueN ][0m. [3XstringN[0m will be the name of a
  component  of  the  created  functor  and  [3XvalueN[0m  will  be  its value. This
  constructor  is  listed here for the sake of completeness. Its documentation
  is  rather  better  placed  in  a  [5Xhomalg[0m  programmers  guide. The remaining
  constructors  create new functors out of existing ones and are probably more
  interesting for end users.
  
  The constructor does [13Xnot[0m invoke [2XInstallFunctor[0m ([14X11.7-1[0m). This has to be done
  manually!
  
  [1X11.2-2 InsertObjectInMultiFunctor[0m
  
  [2X> InsertObjectInMultiFunctor( [0X[3XF, p, obj, H[0X[2X ) ______________________[0Xoperation
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  Given a [5Xhomalg[0m multi-functor [3XF[0m with multiplicity m and a string [3XH[0m return the
  functor  [10XFunctor_[0m[3XH[0m  :=  [3XF[0m(...,[3Xobj[0m,...),  where  [3Xobj[0m  is inserted at the [3Xp[0m-th
  position.  Of course [3Xobj[0m must be an object (e.g. ring, module, ...) that can
  be  inserted  at  this particular position. The string [3XH[0m becomes the name of
  the  returned  functor  (--> [2XNameOfFunctor[0m ([14X11.3-1[0m)). The variable [10XFunctor_[0m[3XH[0m
  will automatically be assigned if free, otherwise a warning is issued.
  
  The constructor automatically invokes [2XInstallFunctor[0m ([14X11.7-1[0m) which installs
  several necessary operations under the name [3XH[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> ZZ := HomalgRingOfIntegers( );;[0X
    [4Xgap> ZZ * 1;[0X
    [4X<The free right module of rank 1 on a free generator>[0X
    [4Xgap> InsertObjectInMultiFunctor( Functor_Hom_for_fp_modules, 2, ZZ * 1, "Hom_ZZ" );[0X
    [4X<The functor Hom_ZZ for f.p. modules and their maps over computable rings>[0X
    [4Xgap> Functor_Hom_ZZ_for_fp_modules;	## got automatically defined[0X
    [4X<The functor Hom_ZZ for f.p. modules and their maps over computable rings>[0X
    [4Xgap> Hom_ZZ;		## got automatically defined[0X
    [4X<Operation "Hom_ZZ">[0X
  [4X------------------------------------------------------------------[0X
  
  [1X11.2-3 RightSatelliteOfCofunctor[0m
  
  [2X> RightSatelliteOfCofunctor( [0X[3XF[, p][, H][0X[2X ) ________________________[0Xoperation
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  Given  a  [5Xhomalg[0m (multi-)functor [3XF[0m and a string [3XH[0m return the right satellite
  of  [3XF[0m  with  respect to its [3Xp[0m-th argument. [3XF[0m is assumed contravariant in its
  [3Xp[0m-th  argument.  The  string [3XH[0m becomes the name of the returned functor (-->
  [2XNameOfFunctor[0m  ([14X11.3-1[0m)).  The  variable  [10XFunctor_[0m[3XH[0m  will  automatically  be
  assigned if free, otherwise a warning is issued.
  
  If  [3Xp[0m is not specified it is assumed 1. If the string [3XH[0m is not specified the
  letter  'S'  is  added  to  the  left  of  the  name of [3XF[0m (--> [2XNameOfFunctor[0m
  ([14X11.3-1[0m)).
  
  The constructor automatically invokes [2XInstallFunctor[0m ([14X11.7-1[0m) which installs
  several necessary operations under the name [3XH[0m.
  
  [1X11.2-4 LeftSatelliteOfFunctor[0m
  
  [2X> LeftSatelliteOfFunctor( [0X[3XF[, p][, H][0X[2X ) ___________________________[0Xoperation
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  Given a [5Xhomalg[0m (multi-)functor [3XF[0m and a string [3XH[0m return the left satellite of
  [3XF[0m  with  respect  to  its  [3Xp[0m-th argument. [3XF[0m is assumed covariant in its [3Xp[0m-th
  argument.  The  string  [3XH[0m  becomes  the  name  of  the returned functor (-->
  [2XNameOfFunctor[0m  ([14X11.3-1[0m)).  The  variable  [10XFunctor_[0m[3XH[0m  will  automatically  be
  assigned if free, otherwise a warning is issued.
  
  If  [3Xp[0m is not specified it is assumed 1. If the string [3XH[0m is not specified the
  string  "S_"  is  added  to  the  left  of  the name of [3XF[0m (--> [2XNameOfFunctor[0m
  ([14X11.3-1[0m)).
  
  The constructor automatically invokes [2XInstallFunctor[0m ([14X11.7-1[0m) which installs
  several necessary operations under the name [3XH[0m.
  
  [1X11.2-5 RightDerivedCofunctor[0m
  
  [2X> RightDerivedCofunctor( [0X[3XF[, p][, H][0X[2X ) ____________________________[0Xoperation
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  Given  a  [5Xhomalg[0m  (multi-)functor  [3XF[0m and a string [3XH[0m return the right derived
  functor  of  [3XF[0m with respect to its [3Xp[0m-th argument. [3XF[0m is assumed contravariant
  in  its [3Xp[0m-th argument. The string [3XH[0m becomes the name of the returned functor
  (-->  [2XNameOfFunctor[0m  ([14X11.3-1[0m)). The variable [10XFunctor_[0m[3XH[0m will automatically be
  assigned if free, otherwise a warning is issued.
  
  If  [3Xp[0m is not specified it is assumed 1. If the string [3XH[0m is not specified the
  letter  'R'  is  added  to  the  left  of  the  name of [3XF[0m (--> [2XNameOfFunctor[0m
  ([14X11.3-1[0m)).
  
  The   constructor   automatically   invokes   [2XInstallFunctor[0m   ([14X11.7-1[0m)  and
  [2XInstallDeltaFunctor[0m  ([14X11.7-2[0m)  which  install  several  necessary operations
  under the name [3XH[0m.
  
  [1X11.2-6 LeftDerivedFunctor[0m
  
  [2X> LeftDerivedFunctor( [0X[3XF[, p][, H][0X[2X ) _______________________________[0Xoperation
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  Given  a  [5Xhomalg[0m  (multi-)functor  [3XF[0m  and a string [3XH[0m return the left derived
  functor  of  [3XF[0m  with respect to its [3Xp[0m-th argument. [3XF[0m is assumed covariant in
  its  [3Xp[0m-th  argument.  The  string [3XH[0m becomes the name of the returned functor
  (-->  [2XNameOfFunctor[0m  ([14X11.3-1[0m)). The variable [10XFunctor_[0m[3XH[0m will automatically be
  assigned if free, otherwise a warning is issued.
  
  If  [3Xp[0m is not specified it is assumed 1. If the string [3XH[0m is not specified the
  letter  "S_"  is  added  to  the  left  of  the name of [3XF[0m (--> [2XNameOfFunctor[0m
  ([14X11.3-1[0m)).
  
  The   constructor   automatically   invokes   [2XInstallFunctor[0m   ([14X11.7-1[0m)  and
  [2XInstallDeltaFunctor[0m  ([14X11.7-2[0m)  which  install  several  necessary operations
  under the name [3XH[0m.
  
  [1X11.2-7 ComposeFunctors[0m
  
  [2X> ComposeFunctors( [0X[3XF[, p], G[, H][0X[2X ) _______________________________[0Xoperation
  [6XReturns:[0X  a [5Xhomalg[0m functor
  
  Given two [5Xhomalg[0m (multi-)functors [3XF[0m and [3XG[0m and a string [3XH[0m return the composed
  functor  [10XFunctor_[0m[3XH[0m  :=  [3XF[0m(...,[3XG[0m(...),...),  where  [3XG[0m is inserted at the [3Xp[0m-th
  position.  Of  course  [3XG[0m  must  be  a  functor  that can be inserted at this
  particular  position.  The string [3XH[0m becomes the name of the returned functor
  (-->  [2XNameOfFunctor[0m  ([14X11.3-1[0m)). The variable [10XFunctor_[0m[3XH[0m will automatically be
  assigned if free, otherwise a warning is issued.
  
  If  [3Xp[0m is not specified it is assumed 1. If the string [3XH[0m is not specified the
  names  of  [3XF[0m  and  [3XG[0m  are  concatenated  in  this  order  (--> [2XNameOfFunctor[0m
  ([14X11.3-1[0m)).
  
  [3XF[0m * [3XG[0m is a shortcut for [10XComposeFunctors[0m([3XF[0m,1,[3XG[0m).
  
  The constructor automatically invokes [2XInstallFunctor[0m ([14X11.7-1[0m) which installs
  several necessary operations under the name [3XH[0m.
  
  Check this:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> Functor_Hom_for_fp_modules * Functor_TensorProduct_for_fp_modules;[0X
    [4X<The functor HomTensorProduct for f.p. modules and their maps over computable \[0X
    [4Xrings>[0X
    [4Xgap> Functor_HomTensorProduct_for_fp_modules;	## got automatically defined[0X
    [4X<The functor HomTensorProduct for f.p. modules and their maps over computable \[0X
    [4Xrings>[0X
    [4Xgap> HomTensorProduct;		## got automatically defined[0X
    [4X<Operation "HomTensorProduct">[0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X11.3 Functors: Attributes[0X
  
  [1X11.3-1 NameOfFunctor[0m
  
  [2X> NameOfFunctor( [0X[3XF[0X[2X ) ______________________________________________[0Xattribute
  [6XReturns:[0X  a string
  
  The name of the [5Xhomalg[0m functor [3XF[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> NameOfFunctor( Functor_Ext_for_fp_modules );[0X
    [4X"Ext"[0X
    [4Xgap> Display( Functor_Ext_for_fp_modules );[0X
    [4XExt[0X
  [4X------------------------------------------------------------------[0X
  
  [1X11.3-2 OperationOfFunctor[0m
  
  [2X> OperationOfFunctor( [0X[3XF[0X[2X ) _________________________________________[0Xattribute
  [6XReturns:[0X  an operation
  
  The operation of the functor [3XF[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> Functor_Ext_for_fp_modules;[0X
    [4X<The functor Ext for f.p. modules and their maps over computable rings>[0X
    [4Xgap> OperationOfFunctor( Functor_Ext_for_fp_modules );[0X
    [4X<Operation "Ext">[0X
  [4X------------------------------------------------------------------[0X
  
  [1X11.3-3 Genesis[0m
  
  [2X> Genesis( [0X[3XF[0X[2X ) ____________________________________________________[0Xattribute
  [6XReturns:[0X  a list
  
  The  first entry of the returned list is the name of the constructor used to
  create  the  functor  [3XF[0m.  The reset of the list contains arguments that were
  passed to this constructor for creating [3XF[0m.
  
  These  are  examples  of  different  functors  created  using  the different
  constructors:
  
  --    [10XCreateHomalgFunctor[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> Functor_Hom_for_fp_modules;[0X
          [4X<The functor Hom for f.p. modules and their maps over computable rings>[0X
          [4Xgap> Genesis( Functor_Hom_for_fp_modules );[0X
          [4X[ "CreateHomalgFunctor", [ "name", "Hom" ],[0X
          [4X  [ "category", rec( description := "f.p. modules and their maps over computab\[0X
          [4Xle rings", short_description := "_for_fp_modules",[0X
          [4X          MorphismConstructor := function( arg ) ... end ) ],[0X
          [4X  [ "operation", "Hom" ], [ "number_of_arguments", 2 ],[0X
          [4X  [ "1", [ [ "contravariant", "right adjoint", "distinguished" ] ] ],[0X
          [4X  [ "2", [ [ "covariant", "left exact" ] ] ],[0X
          [4X  [ "OnObjects", function( M, N ) ... end ],[0X
          [4X  [ "OnMorphisms", function( M_or_mor, N_or_mor ) ... end ],[0X
          [4X  [ "MorphismConstructor", function( arg ) ... end ] ][0X
        [4X------------------------------------------------------------[0X
  
  --    [10XInsertObjectInMultiFunctor[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> ZZ := HomalgRingOfIntegers( );;[0X
          [4Xgap> LeftDualizingFunctor( ZZ, "ZZ_Hom" );[0X
          [4X<The functor ZZ_Hom for f.p. modules and their maps over computable rings>[0X
          [4Xgap> Functor_ZZ_Hom_for_fp_modules;	## got automatically defined[0X
          [4X<The functor ZZ_Hom for f.p. modules and their maps over computable rings>[0X
          [4Xgap> ZZ_Hom;		## got automatically defined[0X
          [4X<Operation "ZZ_Hom">[0X
          [4Xgap> Genesis( Functor_ZZ_Hom_for_fp_modules );[0X
          [4X[ "InsertObjectInMultiFunctor",[0X
          [4X  <The functor Hom for f.p. modules and their maps over computable rings>, 2,[0X
          [4X  <The free left module of rank 1 on a free generator> ][0X
          [4Xgap> 1 * ZZ;[0X
          [4X<The free left module of rank 1 on a free generator>[0X
        [4X------------------------------------------------------------[0X
  
  --    [10XLeftDerivedFunctor[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> Functor_TensorProduct_for_fp_modules;[0X
          [4X<The functor TensorProduct for f.p. modules and their maps over computable rin\[0X
          [4Xgs>[0X
          [4Xgap> Genesis( Functor_LTensorProduct_for_fp_modules );[0X
          [4X[ "LeftDerivedFunctor",[0X
          [4X  <The functor TensorProduct for f.p. modules and their maps over computable r\[0X
          [4Xings>, 1 ][0X
        [4X------------------------------------------------------------[0X
  
  --    [10XRightDerivedCofunctor[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> Genesis( Functor_RHom_for_fp_modules );[0X
          [4X[ "RightDerivedCofunctor",[0X
          [4X  <The functor Hom for f.p. modules and their maps over computable rings>, 1 ][0X
        [4X------------------------------------------------------------[0X
  
  --    [10XLeftSatelliteOfFunctor[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> Genesis( Functor_Tor_for_fp_modules );[0X
          [4X[ "LeftSatelliteOfFunctor",[0X
          [4X  <The functor TensorProduct for f.p. modules and their maps over computable r\[0X
          [4Xings>, 1 ][0X
        [4X------------------------------------------------------------[0X
  
  --    [10XRightSatelliteOfCofunctor[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> Genesis( Functor_Ext_for_fp_modules );[0X
          [4X[ "RightSatelliteOfCofunctor",[0X
          [4X  <The functor Hom for f.p. modules and their maps over computable rings>, 1 ][0X
        [4X------------------------------------------------------------[0X
  
  --    [10XComposeFunctors[0m:
  
        [4X------------------------  Example  ------------------------[0X
          [4Xgap> Genesis( Functor_HomHom_for_fp_modules );[0X
          [4X[ "ComposeFunctors",[0X
          [4X  [ <The functor Hom for f.p. modules and their maps over computable rings>,[0X
          [4X      <The functor Hom for f.p. modules and their maps over computable rings>[0X
          [4X     ], 1 ][0X
          [4Xgap> ValueGlobal( "ComposeFunctors" );[0X
          [4X<Operation "ComposeFunctors">[0X
        [4X------------------------------------------------------------[0X
  
  
  [1X11.4 Basic Functors[0X
  
  [1X11.4-1 functor_Kernel[0m
  
  [2X> functor_Kernel_____________________________________________[0Xglobal variable
  
  The functor that associates to a map its kernel.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallValue( functor_Kernel,[0X
    [4X        CreateHomalgFunctor([0X
    [4X                [ "name", "Kernel" ],[0X
    [4X                [ "category", HOMALG.category ],[0X
    [4X                [ "operation", "Kernel" ],[0X
    [4X                [ "natural_transformation", "KernelEmb" ],[0X
    [4X                [ "special", true ],[0X
    [4X                [ "number_of_arguments", 1 ],[0X
    [4X                [ "1", [ [ "covariant" ],[0X
    [4X                        [ IsStaticMorphismOfFinitelyGeneratedObjectsRep,[0X
    [4X                          [ IsHomalgChainMap, IsKernelSquare ] ] ] ],[0X
    [4X                [ "OnObjects", _Functor_Kernel_OnObjects ][0X
    [4X                )[0X
    [4X        );[0X
  [4X------------------------------------------------------------------[0X
  
  [1X11.4-2 functor_DefectOfExactness[0m
  
  [2X> functor_DefectOfExactness__________________________________[0Xglobal variable
  
  The  functor  that  associates  to  a  pair  of  composable maps with a zero
  compositum  the defect of exactness, i.e. the kernel of the outer map modulo
  the image of the inner map.
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallValue( functor_DefectOfExactness,[0X
    [4X        CreateHomalgFunctor([0X
    [4X                [ "name", "DefectOfExactness" ],[0X
    [4X                [ "category", HOMALG.category ],[0X
    [4X                [ "operation", "DefectOfExactness" ],[0X
    [4X                [ "special", true ],[0X
    [4X                [ "number_of_arguments", 1 ],[0X
    [4X                [ "1", [ [ "covariant" ],[0X
    [4X                        [ IsHomalgComplex and IsATwoSequence,[0X
    [4X                          [ IsHomalgChainMap, IsLambekPairOfSquares ] ] ] ],[0X
    [4X                [ "OnObjects", _Functor_DefectOfExactness_OnObjects ][0X
    [4X                )[0X
    [4X        );[0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X11.5 Tool Functors[0X
  
  
  [1X11.6 Other Functors[0X
  
  
  [1X11.7 Functors: Operations and Functions[0X
  
  [1X11.7-1 InstallFunctor[0m
  
  [2X> InstallFunctor( [0X[3XF[0X[2X ) _____________________________________________[0Xoperation
  
  Install  several methods for [5XGAP[0m operations that get declared under the name
  of  the [5Xhomalg[0m (multi-)functor [3XF[0m (--> [2XNameOfFunctor[0m ([14X11.3-1[0m)). These methods
  are  used  to  apply  the  functor  to  objects, morphisms, (co)complexes of
  objects, and (co)chain maps. The objects in the (co)complexes might again be
  (co)complexes.
  
  (For  purely technical reasons the multiplicity of the functor might at most
  be three. This restriction should disappear in future versions.)
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallMethod( InstallFunctor,[0X
    [4X        "for homalg functors",[0X
    [4X        [ IsHomalgFunctorRep ],[0X
    [4X        [0X
    [4X  function( Functor )[0X
    [4X    [0X
    [4X    InstallFunctorOnObjects( Functor );[0X
    [4X    [0X
    [4X    if IsSpecialFunctor( Functor ) then[0X
    [4X        [0X
    [4X        InstallSpecialFunctorOnMorphisms( Functor );[0X
    [4X        [0X
    [4X    else[0X
    [4X        [0X
    [4X        InstallFunctorOnMorphisms( Functor );[0X
    [4X        [0X
    [4X        InstallFunctorOnComplexes( Functor );[0X
    [4X        [0X
    [4X        InstallFunctorOnChainMaps( Functor );[0X
    [4X        [0X
    [4X    fi;[0X
    [4X    [0X
    [4Xend );[0X
  [4X------------------------------------------------------------------[0X
  
  The method does not return anything.
  
  [1X11.7-2 InstallDeltaFunctor[0m
  
  [2X> InstallDeltaFunctor( [0X[3XF[0X[2X ) ________________________________________[0Xoperation
  
  In  case  [3XF[0m  is  a  delta-functor in the sense of Grothendieck the procedure
  installs  several  operations under the name of the [5Xhomalg[0m (multi-)functor [3XF[0m
  (-->   [2XNameOfFunctor[0m   ([14X11.3-1[0m))   allowing   one   to   compute  connecting
  homomorphisms,  exact  triangles,  and  associated long exact sequences. The
  input of these operations is a short exact sequence.
  
  (For  purely technical reasons the multiplicity of the functor might at most
  be three. This restriction should disappear in future versions.)
  
  [4X-----------------------------  Code  -----------------------------[0X
    [4XInstallMethod( InstallDeltaFunctor,[0X
    [4X        "for homalg functors",[0X
    [4X        [ IsHomalgFunctorRep ],[0X
    [4X        [0X
    [4X  function( Functor )[0X
    [4X    local number_of_arguments;[0X
    [4X    [0X
    [4X    number_of_arguments := MultiplicityOfFunctor( Functor );[0X
    [4X    [0X
    [4X    if number_of_arguments = 1 then[0X
    [4X        [0X
    [4X        HelperToInstallUnivariateDeltaFunctor( Functor );[0X
    [4X        [0X
    [4X    elif number_of_arguments = 2 then[0X
    [4X        [0X
    [4X        HelperToInstallFirstArgumentOfBivariateDeltaFunctor( Functor );[0X
    [4X        HelperToInstallSecondArgumentOfBivariateDeltaFunctor( Functor );[0X
    [4X        [0X
    [4X    elif number_of_arguments = 3 then[0X
    [4X        [0X
    [4X        HelperToInstallFirstArgumentOfTrivariateDeltaFunctor( Functor );[0X
    [4X        HelperToInstallSecondArgumentOfTrivariateDeltaFunctor( Functor );[0X
    [4X        HelperToInstallThirdArgumentOfTrivariateDeltaFunctor( Functor );[0X
    [4X        [0X
    [4X    fi;[0X
    [4X    [0X
    [4Xend );[0X
  [4X------------------------------------------------------------------[0X
  
  The method does not return anything.
  
