  
  [1X6 enum.g*[0X
  
  
  [1X6.1 Finding all semigroups[0X
  
  PREAMBLE  The following functions have the same usage but, of course, return
  different  values:  [2XEnumeratorOfSmallSemigroups[0m  ([14X6.1-2[0m), [2XAllSmallSemigroups[0m
  ([14X6.1-1[0m),  [2XEnumeratorSortedOfSmallSemigroups[0m ([14X6.1-3[0m), [2XIdsOfAllSmallSemigroups[0m
  ([14X6.1-4[0m),   [2XIteratorOfSmallSemigroups[0m   ([14X6.1-7[0m),  [2XNrSmallSemigroups[0m  ([14X6.1-8[0m),
  [2XOneSmallSemigroup[0m      ([14X6.1-9[0m),     [2XPositionsOfSmallSemigroups[0m     ([14X6.1-10[0m),
  [2XRandomSmallSemigroup[0m  ([14X6.1-15[0m). The number of arguments that these functions
  accept  is any odd number: the first should be a positive integer, a list of
  positive  integers,  or  an  enumerator or iterator of small semigroups, the
  [3X2i[0mth  argument  should  be  a  function, and the [3X2i+1[0mth argument should be a
  possible  value that can be returned by the preceding function. For example,
  to  obtain all the commutative semigroups with [3X3[0m idempotents of sizes [3X2[0m to [3X5[0m
  in a list we use:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4XAllSmallSemigroups([2..5], IsCommutative, true, Is3IdempotentGenerated, true);[0X
    [4X	[0X
  [4X------------------------------------------------------------------[0X
  
  or if we want a random semigroup with this property we use:
  
  [4X---------------------------  Example  ----------------------------[0X
    [4XRandomSmallSemigroup([2..5], IsCommutative, true, Is3IdempotentGenerated, true);[0X
    [4X	[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-1 AllSmallSemigroups[0m
  
  [2X> AllSmallSemigroups( [0X[3Xsgrps[0X[2X ) ______________________________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-2 EnumeratorOfSmallSemigroups[0m
  
  [2X> EnumeratorOfSmallSemigroups( [0X[3Xsgrps[0X[2X ) _____________________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-3 EnumeratorSortedOfSmallSemigroups[0m
  
  [2X> EnumeratorSortedOfSmallSemigroups( [0X[3Xsgrps[0X[2X ) _______________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-4 IdsOfAllSmallSemigroups[0m
  
  [2X> IdsOfAllSmallSemigroups( [0X[3Xsgrps[0X[2X ) _________________________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-5 IsEnumeratorOfSmallSemigroups[0m
  
  [2X> IsEnumeratorOfSmallSemigroups( [0X[3Xenum[0X[2X ) ____________________________[0Xproperty
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-6 IsIteratorOfSmallSemigroups[0m
  
  [2X> IsIteratorOfSmallSemigroups( [0X[3Xiter[0X[2X ) ______________________________[0Xproperty
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-7 IteratorOfSmallSemigroups[0m
  
  [2X> IteratorOfSmallSemigroups( [0X[3Xdunno[0X[2X ) _______________________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-8 NrSmallSemigroups[0m
  
  [2X> NrSmallSemigroups( [0X[3Xn[0X[2X ) ___________________________________________[0Xfunction
  
  returns  the  total  number  of  semigroups  up  to  isomorphism  and  anti-
  isomorphism of size [10Xn[0m for [10Xn[0m between 1 and 9.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> List([1..7], NrSmallSemigroups);[0X
    [4X[ 1, 4, 18, 126, 1160, 15973, 836021 ][0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-9 OneSmallSemigroup[0m
  
  [2X> OneSmallSemigroup( [0X[3Xdunno[0X[2X ) _______________________________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-10 PositionsOfSmallSemigroups[0m
  
  [2X> PositionsOfSmallSemigroups( [0X[3Xarg[0X[2X ) ________________________________[0Xfunction
  
  the  number  of  argument of this function should be odd. The first argument
  [10Xarg[1][0m    should   be   a   positive   integer   or   an   enumerator   with
  [2XIsEnumeratorOfSmallSemigroups[0m   ([14X6.1-5[0m),  the  even  arguments  [10Xarg[2i][0m,  if
  present,  should  be  functions, and the odd arguments [10Xarg[2i+1][0m should be a
  value  that  the  preceeding function can have. For example, a typical input
  might  be  [10X3,  IsRegularSemigroup,  true[0m.  The functions [10Xarg[2i][0m can be user
  defined  or  existing [5XGAP[0m functions. The argument can be a list [10Xarg[0m with the
  same components as given above.
  
  The function returns the second component of the [2XIdSmallSemigroup[0m ([14X4.1-7[0m) of
  all  the  small  semigroups [10XS[0m in the library satisfying [10Xarg[2i](S)=arg[2i+1][0m
  for  all  [10Xi[0m.  For example, if the input is [10X3, IsRegularSemigroup, true[0m, then
  the  output  is a list of the ids of all semigroups in the library of size [10X3[0m
  that are regular.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap>  PositionsOfSmallSemigroups([3]);[0X
    [4X[ 1 .. 18 ][0X
    [4Xgap>PositionsOfSmallSemigroups(3);[0X
    [4X[ 1 .. 18 ][0X
    [4Xgap> PositionsOfSmallSemigroups(3, IsRegularSemigroup, false);[0X
    [4X[ 1, 2, 3, 4, 5, 6, 7, 8, 9 ][0X
    [4Xgap> enum:=EnumeratorOfSmallSemigroups(3, IsRegularSemigroup, false);[0X
    [4X<enumerator of semigroups of size 3>[0X
    [4Xgap> PositionsOfSmallSemigroups(enum);[0X
    [4X[ 1, 2, 3, 4, 5, 6, 7, 8, 9 ][0X
    [4Xgap> PositionsOfSmallSemigroups(4, IsCommutative, true,                        [0X
    [4X> IsRegularSemigroup, false, IsMonoidAsSemigroup, true);[0X
    [4X[ 24, 28, 32, 40, 48, 68, 78, 83 ][0X
    [4X  [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-11 PositionsOfSmallSemisInEnum[0m
  
  [2X> PositionsOfSmallSemisInEnum( [0X[3Xenum[0X[2X ) _____________________________[0Xattribute
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-12 PrecomputedSmallSemisInfo[0m
  
  [2X> PrecomputedSmallSemisInfo__________________________________[0Xglobal variable
  
  the  global  variable  [10XPrecomputedSmallSemisInfo[0m  contains a list of all the
  names  of  precomputed  properties stored in the library. The [10Xi[0mth element of
  the  list contains the list of properties that have been precomputed for all
  semigroups in the library of order [10Xi[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> PrecomputedSmallSemisInfo[3];[0X
    [4X[ "Is1GeneratedSemigroup", "Is2GeneratedSemigroup", "Is3GeneratedSemigroup", "IsBand", [0X
    [4X  "IsCliffordSemigroup", "IsCommutative", "IsCompletelyRegularSemigroup", [0X
    [4X  "IsGroupAsSemigroup", "IsInverseSemigroup", "IsMonoidAsSemigroup", [0X
    [4X  "IsMultSemigroupOfNearRing", "IsRegularSemigroup", "IsSimpleSemigroup", [0X
    [4X  "IsZeroSimpleSemigroup", "MinimalGeneratorsOfSemigroup" ][0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-13 PropertiesOfSmallSemisInEnum[0m
  
  [2X> PropertiesOfSmallSemisInEnum( [0X[3Xenum[0X[2X ) ____________________________[0Xattribute
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-14 PropertiesOfSmallSemisInIter[0m
  
  [2X> PropertiesOfSmallSemisInIter( [0X[3Xiter[0X[2X ) ____________________________[0Xattribute
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-15 RandomSmallSemigroup[0m
  
  [2X> RandomSmallSemigroup( [0X[3Xdunno[0X[2X ) ____________________________________[0Xfunction
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-16 SizesOfSmallSemisInEnum[0m
  
  [2X> SizesOfSmallSemisInEnum( [0X[3Xdunno[0X[2X ) ________________________________[0Xattribute
  
  [4X---------------------------  Example  ----------------------------[0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-17 UpToIsomorphism[0m
  
  [2X> UpToIsomorphism( [0X[3Xsgrps[0X[2X ) ________________________________________[0Xoperation
  
  takes  a  list  [3Xsgrps[0m of non-equivalent semigroups from the library as input
  and  returns  a  list  of  non-isomorphic  semigroups  containing  for every
  semigroup in [3Xsgrps[0m an isomorphic semigroup and an anti-isomorphic semigroup.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> UpToIsomorphism([SmallSemigroup(5,126),SmallSemigroup(6,2)]);[0X
    [4X[ <small semigroup of size 5>, <small semigroup of size 6> ][0X
    [4Xgap> UpToIsomorphism([SmallSemigroup(5,126),SmallSemigroup(5,3)]);[0X
    [4X[ <small semigroup of size 5>, <small semigroup of size 5>, [0X
    [4X  <semigroup with 5 generators> ][0X
    [4Xgap> UpToIsomorphism([last]);                                     [0X
    [4XError, input has to be a list of semigroups obtained from the smallsemi librar\[0X
    [4Xy called from[0X
    [4X<function>( <arguments> ) called from read-eval-loop[0X
    [4XEntering break read-eval-print loop ...[0X
    [4Xyou can 'quit;' to quit to outer loop, or[0X
    [4Xyou can 'return;' to continue[0X
    [4Xbrk> [0X
  [4X------------------------------------------------------------------[0X
  
