  
  [1X1 Introduction[0X
  
  
  [1X1.1 What is the role of the [5XModules[1X package in the [5Xhomalg[1X project?[0X
  
  
  [1X1.1-1 [5XModules[1X provides ...[0X
  
  It provides procedures to construct basic objects in homological algebra:
  
  --    modules (generators, relations)
  
  --    submodules (as images of maps)
  
  --    maps
  
  Beside  these  so-called  constructors [5Xhomalg[0m provides [13Xoperations[0m to perform
  computations with these objects. The list of operations includes:
  
  --    resolution of modules
  
  --    images of maps
  
  --    the  functors  [10XHom[0m and [10XTensorProduct[0m ([10XExt[0m and [10XTor[0m are then provided by
        [5Xhomalg[0m)
  
  --    test  if a module is torsion-free, reflexive, projective, stably free,
        free, pure
  
  --    determine   the   rank,   depth,   projective   dimension,  degree  of
        torsion-freeness, and codegree of purity of a module
  
  Using  the  philosophy  of  [5XGAP4[0m, one or more methods are [13Xinstalled[0m for each
  operation,  depending  on  [13Xproperties[0m and [13Xattributes[0m of these objects. These
  properties  and  attributes  can themselves be computed by methods installed
  for this purpose.
  
  
  [1X1.1-2 Rings supported in a sufficient way[0X
  
  Through  out  this  manual  the following terminology is used. We say that a
  computer  algebra  system  "sufficiently  supports" a ring R, if it contains
  procedures  to effectively solve one-sided inhomogeneous linear systems XA=B
  and AX=B with coefficients over R (--> [14X1.1-3[0m).
  
  
  [1X1.1-3 Principal limitation[0X
  
  Note that the solution space of the one-sided finite dimensional system YA=0
  (resp.  AY=0)  over  a  left  (resp.  right) noetherian ring R is a finitely
  generated  left  (resp.  right)  R-module, even if R is not commutative. The
  solution  space of the linear system X_1 A_1 + A_2 X_2 + A_3 X_3 A_4=0 is in
  general  not  an R-module, and worse, in general not finitely generated over
  the  center  of  R. [5Xhomalg[0m can only handle homological problems that lead to
  [13Xone  sided[0m  [13Xfinite dimensional[0m homogeneous or inhomogeneous systems over the
  underlying  ring R. Such problems are called problems of [13Xfinite type[0m over R.
  Typically,  the  computation  of  [10XHom[0m(M,N)  of two (even) finitely generated
  modules over a [13Xnon[0mcommutative ring R is generally [13Xnot[0m of finite type over R,
  unless at least one of the two modules is an R-bimodule. Also note that over
  a  commutative  ring  any linear system can be easily brought to a one-sided
  form. For more details see [BR08].
  
  
  [1X1.1-4 [5Xhomalg[1X's dictionaries (technical)[0X
  
  [5Xhomalg[0m  uses the so-called [10XhomalgTable[0m, which is stored in the ring, to know
  how to delegate the necessary matrix operations. I.e. the [10XhomalgTable[0m serves
  as  a  small  dictionary that enables [5Xhomalg[0m to speak (as much as needed of)
  the  language  of  the  computer algebra system which hosts the ring and the
  matrices.  The  [5XGAP[0m  internal ring of integers is the only ring which [5Xhomalg[0m
  endows   with   a   [10XhomalgTable[0m.  Other  packages  like  [5XGaussForHomalg[0m  and
  [5XRingsForHomalg[0m  provide dictionaries for further rings. While [5XGaussForHomalg[0m
  defines  internal  rings  and  matrices,  the package [5XRingsForHomalg[0m enables
  defining  external rings and matrices in a wide range of (external) computer
  algebra  systems  ([5XSingular[0m,  [5XSage[0m,  [5XMacaulay2[0m,  [5XMAGMA[0m,  [5XMaple[0m) by providing
  appropriate dictionaries.
  
  Since these dictionaries are all what is needed to handle matrix operations,
  [5Xhomalg[0m  does not distinguish between handling internal and handling external
  matrices.  Even  the physical communication with the external systems is not
  at  all  a  concern  of [5Xhomalg[0m. This is the job of the package [5XIO_ForHomalg[0m,
  which  is  based  on the powerful [5XIO[0m package of Max Neunhöffer. Furthermore,
  for all structures beyond matrices (from relations, generators, and modules,
  to  functors  and spectral sequences) [5Xhomalg[0m no longer distinguishes between
  internal and external.
  
  
  [1X1.1-5 The principle of least communication (technical)[0X
  
  Linking  different systems can also be highly problematic. The following two
  points are often among the major sources of difficulties:
  
  --    Different systems use different languages:
        It  takes  a  huge  amount  of  time  and  effort to teach systems the
        dialects of each others. These dialects are also rarely fixed forever,
        and  might very well be subject to slight modifications. So the larger
        the dictionary, the more difficult is its maintenance.
  
  --    Data has to be transferred from one system to another:
        Even  if  there  is  a  unified data format, transferring data between
        systems  can  lead to performance losses, especially when a big amount
        of data has to be transferred.
  
  Solving  these  two  difficulties  is  an important part of [5Xhomalg[0m's design.
  [5Xhomalg[0m  splits  homological computations into two parts. The matrices reside
  in a system which provides fast matrix operations (addition, multiplication,
  bases  and  normal form computations), while the higher structures (modules,
  maps,  complexes,  chain maps, spectral sequences, functors, ...) with their
  properties, attributes, and algorithms live in [5XGAP4[0m, as the system where one
  can  easily  create  such  complex  structures  and handle all their logical
  dependencies. With this split there is no need to transfer each sort of data
  outside  of  its  system.  The  remaining communication between [5XGAP4[0m and the
  system  hosting  the  matrices  gets along with a tiny dictionary. Moreover,
  [5XGAP4[0m,  as  it manages and delegates all computations, also manages the whole
  data flow, while the other system does not even recognize that it is part of
  a bidirectional communication.
  
  The  existence  of  such  a clear cut is certainly to some extent due to the
  special nature of homological computations.
  
  
  [1X1.1-6 Building upon the [5Xhomalg[1X package[0X
  
  As  mentioned  above,  the  package  [5Xhomalg[0m  should  only  be  the first and
  foundational  part  of  the  [5Xhomalg[0m  project. On the one hand it is designed
  independently of the details of the different matrix operations, which other
  packages   are   meant   to   provide.   Typically,   these  packages  (like
  [5XRingsForHomalg[0m) heavily rely on existing, well tested, and optimized systems
  like  [5XSingular[0m, [5XMacaulay2[0m, or [5XMAGMA[0m. On the other hand other packages can be
  built upon or extend the [5Xhomalg[0m package in different ways:
  
  --    add constructors (sheaves, schemes, simplicial sets, ...)
  
  --    add  methods  for  basic  operation (Yoneda products, Massey products,
        Steenrod operations, ...)
  
  --    add  methods to compute sheaf cohomology, local cohomology, Hochschild
        (co)homology, cyclic (co)homology...
  
  --    provide  algorithms  for  holonomic D-modules based on the restriction
        algorithm:  localization, computing tensor products, [10XHom[0m, [10XExt[0m, de Rham
        cohomology, ...
  
  --    support  change  of  rings, Lyndon/Hochschild-Serre spectral sequence,
        base change spectral sequences, ...
  
  --    support  perturbation  techniques,  Serre and Eilenberg-Moore spectral
        sequence of simplicial spaces of infinite type, ...
  
  --    ...
  
  The  project  will  remain  open  and  contributions are highly welcome. The
  different packages will be attributed to their respective authors. The whole
  project  will  be  attributed  to  the  "[5Xhomalg[0m  team", i.e. the authors and
  contributers of all packages in the project.
  
  
  [1X1.1-7 Frequently asked questions[0X
  
  --    [12XQ[0m:  Does  outsourcing the matrices mean that [5Xhomalg[0m is able to compute
        spectral  sequences,  for  example,  without  ever seeing the matrices
        involved in the computation?
        A: Yes.
  
  --    [12XQ[0m:   Can   [5Xhomalg[0m   profit  from  the  implementation  of  homological
        constructions like [10XHom[0m, [10XExt[0m, ... in [5XSingular[0m?
        A:  No.  This  is  for a lot of reasons incompatible with the idea and
        design (--> [14X1[0m) of [5Xhomalg[0m.
  
  --    [12XQ[0m: Are the external systems involved in the higher algorithms?
        A:  No.  They  host  all  the  matrices  and  do all matrix operations
        delegated  to  them  without  knowing  what  for.  The  meaning of the
        matrices and their logical interrelation is only known to [5XGAP4[0m.
  
  --    [12XQ[0m:  Do  developers  of  packages  building  upon  [5Xhomalg[0m  need to know
        anything about the communication with the external systems?
        A:  No,  unless they want to use more features of the external systems
        than  those  reflected by [5Xhomalg[0m. For this purpose, developers can use
        the  unified  communication interface provideb by [5XHomalgToCAS[0m. This is
        the interface used by [5Xhomalg[0m.
  
  
  [1X1.2 This manual[0X
  
  Chapter  [14X2[0m  describes  the  installation  of  this  package, while Chapter [14X3[0m
  provides  a  short  quick  guide  to build your first own example, using the
  package [5XExamplesForHomalg[0m. The remaining chapters are each devoted to one of
  the   [5Xhomalg[0m   objects   (-->  [14X1.1-1[0m)  with  its  constructors,  properties,
  attributes, and operations.
  
