  
  [1X3 Quick Start[0X
  
  
  [1X3.1 Localization of ℤ[0X
  
  The following example is taken from Section 2 of [BR06].
  The  computation  takes place over the local ring R=ℤ_< 2> (i.e. ℤ localized
  at the maximal ideal generated by 2).
  
  Here we compute the (infinite) long exact homology sequence of the covariant
  functor Hom(Hom(-,R/2^7R),R/2^4R) (and its left derived functors) applied to
  the short exact sequence
  0 -> M_=R/2^2R --alpha_1--> M=R/2^5R --alpha_2--> _M=R/2^3R -> 0.
  
  We   want   to   lead   your   attention  to  the  commands  [9XLocalizeAt[0m  and
  [9XHomalgLocalMatrix[0m.  The first one creates a localized ring from a global one
  and  generators of a maximal ideal and the second one creates a local matrix
  from  a  global  matrix.  The  other  commands used here are well known from
  [5Xhomalg[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X  [0X
    [4Xgap> LoadPackage( "LocalizeRingForHomalg" );;[0X
    [4Xgap> ZZ := HomalgRingOfIntegers(  );;[0X
    [4Xgap> R := LocalizeAt( ZZ , [ 2 ] );[0X
    [4X<A homalg local ring>[0X
    [4Xgap> LoadPackage( "Modules" );[0X
    [4Xtrue[0X
    [4Xgap> M := LeftPresentation( HomalgMatrix( [ 2^5 ], R ) );[0X
    [4X<A cyclic left module presented by 1 relation for a cyclic generator>[0X
    [4Xgap> _M := LeftPresentation( HomalgMatrix( [ 2^3 ], R ) );[0X
    [4X<A cyclic left module presented by 1 relation for a cyclic generator>[0X
    [4Xgap> alpha2 := HomalgMap( HomalgMatrix( [ 1 ], R ), M, _M );[0X
    [4X<A "homomorphism" of left modules>[0X
    [4Xgap> M_ := Kernel( alpha2 );[0X
    [4X<A cyclic left module presented by yet unknown relations for a cyclic generato\[0X
    [4Xr>[0X
    [4Xgap> alpha1 := KernelEmb( alpha2 );[0X
    [4X<A monomorphism of left modules>[0X
    [4Xgap> Display( M_ );[0X
    [4XZ_< 2 >/< -4/1 >[0X
    [4Xgap> Display( alpha1 );[0X
    [4X[ [  24 ] ][0X
    [4X/ 1[0X
    [4X[0X
    [4Xthe map is currently represented by the above 1 x 1 matrix[0X
    [4Xgap> ByASmallerPresentation( M_ );[0X
    [4X<A cyclic left module presented by 1 relation for a cyclic generator>[0X
    [4Xgap> Display( M_ );[0X
    [4XZ_< 2 >/< 4/1 >[0X
  [4X------------------------------------------------------------------[0X
  
