  
  [1X2 [5XUnitLib[1X functions[0X
  
  Since the main purpose of [5XUnitLib[0m is the storage of large amount of data, it
  has  only  two  main  user functions, which allow to read the description of
  V(KG) for the given catalogue number of G in the Small Groups Library of the
  [5XGAP[0m  system,  and to save the description of V(KG) if the user would like to
  store  it  for  the further usage for the group that is not contained in the
  library.
  
  Examples  below  contain  some functions from the [5XLAGUNA[0m package [BKRS], see
  their description in the [5XLAGUNA[0m manual.
  
  To use the [5XUnitLib[0m package first you need to load it as follows:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X[0X
    [4Xgap> LoadPackage("unitlib");[0X
    [4X----------------------------------------------------------------------------[0X
    [4XLoading  UnitLib 3.0.0 (Library of normalized unit groups of modular group algebras)[0X
    [4Xby Alexander Konovalov (http://www.cs.st-andrews.ac.uk/~alexk/) and[0X
    [4X   Elena Yakimenko (k-algebra@zsu.zp.ua).[0X
    [4X----------------------------------------------------------------------------[0X
    [4Xtrue[0X
    [4X[0X
  [4X------------------------------------------------------------------[0X
  
  In   case   of  a  non-UNIX  system,  a  warning  will  be  displayed  about
  non-availability  of  the  library  of  normalized unit groups for groups of
  orders 128 and 243.
  
  
  [1X2.1 MainFunctions[0X
  
  [1X2.1-1 PcNormalizedUnitGroupSmallGroup[0m
  
  [2X> PcNormalizedUnitGroupSmallGroup( [0X[3Xs, n[0X[2X ) __________________________[0Xfunction
  [6XReturns:[0X  PcGroup
  
  Let [3Xs[0m be a power of prime p and [3Xn[0m is an integer from [10X[ 1 .. NrSmallGroups(s)
  ][0m.  Then  [10XPcNormalizedUnitGroupSmallGroup([3Xs[0m[10X,[3Xn[0m[10X)[0m  returns  the normalized unit
  group  V(KG) of the modular group algebra KG, where G is [10XSmallGroup([3Xs[0m[10X,[3Xn[0m[10X)[0m and
  K is a field of p elements.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X[0X
    [4Xgap> PcNormalizedUnitGroupSmallGroup(128,161);[0X
    [4X<pc group of size 170141183460469231731687303715884105728 with 127 generators>[0X
    [4X[0X
  [4X------------------------------------------------------------------[0X
  
  The result returned by [10XPcNormalizedUnitGroupSmallGroup[0m will be equivalent to
  the following sequence of commands:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X                                                                         [0X
    [4Xgap> G := SmallGroup( s, n );[0X
    [4Xgap> p := PrimePGroup( G );[0X
    [4Xgap> K := GF( p );[0X
    [4Xgap> KG := GroupRing( K, G );[0X
    [4Xgap> PcNormalizedUnitGroup( KG );[0X
    [4X                                                                               [0X
  [4X------------------------------------------------------------------[0X
  
  Nevertheless,  [10XPcNormalizedUnitGroupSmallGroup[0m  is  not  just a shortcut for
  such computation. It reads the description of the normalized unit group from
  the  [5XUnitLib[0m  library and then reconstructs all its necessary attributes and
  properties.  Thus,  if  you would like to obtain the group algebra KG or the
  field K and the group G, you should extract them from V(KG), which should be
  constructed first.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X[0X
    [4Xgap> V:=PcNormalizedUnitGroup(GroupRing(GF(2),SmallGroup(8,3)));[0X
    [4X<pc group of size 128 with 7 generators>[0X
    [4Xgap> V1:=PcNormalizedUnitGroupSmallGroup(8,3);                   [0X
    [4X<pc group of size 128 with 7 generators>[0X
    [4Xgap> V1=V;     # two isomorphic groups but not identical objects[0X
    [4Xfalse[0X
    [4Xgap> IdGroup(V)=IdGroup(V1);[0X
    [4Xtrue[0X
    [4Xgap> IsomorphismGroups(V,V1);[0X
    [4X[ f1, f2, f3, f4, f5, f6, f7 ] -> [ f1, f2, f3, f4, f5, f6, f7 ][0X
    [4Xgap> KG:=UnderlyingGroupRing(V1);  # now the correct way[0X
    [4X<algebra-with-one over GF(2), with 3 generators>[0X
    [4Xgap> V1=PcNormalizedUnitGroup(KG); # V1 is an attribute of KG[0X
    [4Xtrue[0X
    [4Xgap> K:=UnderlyingField(KG);[0X
    [4XGF(2)[0X
    [4Xgap> G:=UnderlyingGroup(KG);     [0X
    [4X<pc group of size 8 with 3 generators>[0X
    [4X[0X
  [4X------------------------------------------------------------------[0X
  
  Moreover,  the  original  group  G  can  be  embedded into the output of the
  [10XPcNormalizedUnitGroupSmallGroup[0m, as it is shown in the next example:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X[0X
    [4Xgap> f:=Embedding(G,V1); [0X
    [4X[ f1, f2, f3 ] -> [ f2, f1, f3 ][0X
    [4Xgap> g:=List(GeneratorsOfGroup(G), x -> x^f ); [0X
    [4X[ f2, f1, f3 ][0X
    [4Xgap> G1:=Subgroup(V1,g);[0X
    [4XGroup([ f2, f1, f3 ])[0X
    [4Xgap> IdGroup(G1);[0X
    [4X[ 8, 3 ][0X
    [4X[0X
  [4X------------------------------------------------------------------[0X
  
  If  the  first argument [3Xs[0m (the order of a group) is not a power of prime, an
  error  message  will appear. If [3Xs[0m is bigger than 243, you will get a warning
  telling that the library does not contain V(KG) for G of such order, and you
  can use only data that you already stored in your [11Xunitlib/userdata[0m directory
  with the help of the function [2XSavePcNormalizedUnitGroup[0m ([14X2.1-2[0m).
  
  It  is  worth to mention that for some groups of order 243, the construction
  of  the  normalized  unit  group  using  [10XPcNormalizedUnitGroupSmallGroup[0m may
  already  require  some noticeable amount of time. For example, it took about
  166  seconds  of CPU time to compute [10XPcNormalizedUnitGroupSmallGroup(243,30)[0m
  on Intel Xeon 3.4 GHz with 2048 KB cache.
  
  [1X2.1-2 SavePcNormalizedUnitGroup[0m
  
  [2X> SavePcNormalizedUnitGroup( [0X[3XG[0X[2X ) ___________________________________[0Xfunction
  [2X> ParSavePcNormalizedUnitGroup( [0X[3XG[0X[2X ) ________________________________[0Xfunction
  [6XReturns:[0X  true
  
  Let  [3XG[0m  be  a finite p-group of order s from the Small Groups Library of the
  [5XGAP[0m   system,   constructed   with   the   help   of  [10XSmallGroup(s,n)[0m.  Then
  [10XSavePcNormalizedUnitGroup([3XG[0m[10X)[0m  creates  the  file  with  the name of the form
  [11Xus_n.g[0m  in the directory [11Xunitlib/userdata[0m, and returns [9Xtrue[0m if this file was
  successfully generated. This file contains the description of the normalized
  unit  group  V(KG)  of  the group algebra of the group [3XG[0m over the field of p
  elements.
  
  If  the  order  of  [3XG[0m  is greater than 243, after this you can construct the
  group  V(KG)  using [2XPcNormalizedUnitGroupSmallGroup[0m ([14X2.1-1[0m) similarly to the
  previous  section.  The  preliminary warning will be displayed, telling that
  for  such orders you can use only those groups that were already computed by
  the  user  and  saved to the [11Xunitlib/userdata[0m directory. If there will be no
  such  file  there,  you will get an error message, otherwise the computation
  will begin.
  
  If  the order of [3XG[0m is less or equal to 243, then the file will be created in
  the  [11Xunitlib/userdata[0m  directory,  but [5XUnitLib[0m will continue to use the file
  with  the  same name from the appropriate directory in [11Xunitlib/data[0m. You can
  compare these two files to make it sure that they are the same.
  
  [12XNOTE THAT:[0m
  
  1. The argument should be the underlying group G and not the normalized unit
  group V(KG).
  
  2.  The  argument  should  be  a  group  from  the  [5XGAP[0m Small Groups Library
  constructed with the help of [10XSmallGroup(s,n)[0m, otherwise the date consistency
  may be lost.
  
  [2XParSavePcNormalizedUnitGroup[0m  works  in  the same way, but uses the function
  [10XParPcNormalizedUnitGroup[0m  to  parallelise  the  computation  using  the  [5XGAP[0m
  package [5XSCSCP[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X[0X
    [4Xgap> SavePcNormalizedUnitGroup( SmallGroup( 256, 56092 ) );[0X
    [4Xtrue[0X
    [4Xgap> PcNormalizedUnitGroupSmallGroup( 256, 56092 );[0X
    [4XWARNING : the library of V(KG) for groups of order[0X
    [4X256 is not available yet !!![0X
    [4XYou can use only groups from the unitlib/userdata directory[0X
    [4Xin case if you already computed their descriptions[0X
    [4X(See the manual for SavePcNormalizedUnitGroup).[0X
    [4XDescription of V(KG) for G=SmallGroup(256, 56092) accepted, started its generation[0X
    [4X<pc group of size[0X
    [4X57896044618658097711785492504343953926634992332820282019728792003956564819968[0X
    [4X  with 255 generators>[0X
    [4X[0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X2.2 Service tools[0X
  
  [1X2.2-1 UNITLIBBuildManual[0m
  
  [2X> UNITLIBBuildManual( [0X[3X[0X[2X ) ___________________________________________[0Xfunction
  
  This  function  is  used  to build the manual in the following formats: DVI,
  PDF,  PS,  HTML  and text for online help. We recommend that the user should
  have  a  recent  and  fairly  complete  TeX  distribution.  Since [5XUnitLib[0m is
  distributed  together  with  its manual, it is not necessary for the user to
  use  this  function.  Normally  it  is intended to be used by the developers
  only.  This  is  the  only  function  of  [5XUnitLib[0m  which requires UNIX/Linux
  environment.
  
  [1X2.2-2 UNITLIBBuildManualHTML[0m
  
  [2X> UNITLIBBuildManualHTML( [0X[3X[0X[2X ) _______________________________________[0Xfunction
  
  This  fuction is used to build the manual only in HTML format. This does not
  depend  on  the availability of the TeX installation and works under Windows
  and MacOS as well. Since [5XUnitLib[0m is distributed together with its manual, it
  is  not necessary for the user to use this function. Normally it is intended
  to be used by the developers only.
  
