In this section we detail the GAP functions that can be used to determine whether a small semigroup satisfies a certain property. Let S be a semigroup. Then
S is a left zero semigroup if xy=x for all x,y in S.
S is a right zero semigroup if xy=y for all x,y in S.
S is commutative if xy=yx for all x,y in S.
S is simple if it has no proper two-sided ideals.
S is regular if for all x in S there exists y in S such that xyx=x.
S is completely regular if every element of S lies in a subgroup.
S is an inverse semigroup if every element x in S has a unique semigroup inverse, that is, a unique element y such that xyx=x and yxy=y.
S is a Clifford semigroup if it is a regular semigroup whose idempotents are central, that is, for all e,f in S with e^2=e and f^2=f we have that ef=fe.
S is a band if every element is an idempotent, that is, x^2=x for all x in S.
S is a rectangular band if for all x,y,z in S we have that x^2=x and xyz=xz.
S is a semiband if it is generated by its idempotent elements, that is, elements satisfying x^2=x.
S is an orthodox semigroup if its idempotents (elements satisfying x^2=x) form a subsemigroup.
S is a zero semigroup if there exists an element 0 in S such that xy=0 for all x,y in S.
S is a zero group if there exists an element 0 in S such that S without 0 is a group and for all x in S we have that x0=0x=0.
The MONOID was used to determined which semigroups in the library satisfy the properties above. All of the resulting information is stored in the library.
> DiagonalOfMultiplicationTable( sgrp ) | ( attribute ) |
returns the diagonal of the multiplication table of the semigroup sgrp.
gap> s:=SmallSemigroup(8,10101);; gap> DiagonalOfMultiplicationTable(s); [ 1, 1, 1, 1, 1, 1, 1, 1 ] gap> s:=SmallSemigroup(7,10101);; gap> DiagonalOfMultiplicationTable(s); [ 1, 1, 1, 1, 1, 1, 1 ] |
> DisplaySmallSemigroup( sgrp ) | ( function ) |
displays all the information about the small semigroup sgrp that is stored in the library and its Green's classes and idempotents.
gap> s:=SmallSemigroup(6, 3838);;
gap> DisplaySmallSemigroup(s);
IsBand: false
IsCliffordSemigroup: false
IsCommutative: false
IsCompletelyRegularSemigroup: false
IsGroupAsSemigroup: false
IsInverseSemigroup: false
IsMonoidAsSemigroup: false
IsMultSemigroupOfNearRing: false
IsRegularSemigroup: false
IsSelfDualSemigroup: false
IsSimpleSemigroup: false
IsZeroSimpleSemigroup: false
MinimalGeneratorsOfSemigroup: [ s3, s4, s5, s6 ]
Idempotents: [ s1, s5, s6 ]
GreensRClasses: [ {s1}, {s2}, {s3}, {s4}, {s6} ]
GreensLClasses: [ {s1}, {s2}, {s3}, {s4}, {s5}, {s6} ]
GreensHClasses: [ {s1}, {s2}, {s3}, {s4}, {s5}, {s6} ]
GreensDClasses: [ {s1}, {s2}, {s3}, {s4}, {s6} ]
|
> Is3NilpotentSemigroup( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is 3-nilpotent and false otherwise.
A semigroup is 3-nilpotent if it has a zero element and every product of 3 elements equals zero.
gap> s:=SmallSemigroup(7, 366445);; gap> Is3NilpotentSemigroup(s); true gap> s:=SmallSemigroup(7, 518897);; gap> Is3NilpotentSemigroup(s); false gap> s:=SmallSemigroup(8, 11433105+1231);; gap> Is3NilpotentSemigroup(s); true gap> s:=SmallSemigroup(8,1);; gap> Is3NilpotentSemigroup(s); false |
Note that all the semigroups in the library of size 8 and id number greater than 11433105 are 3-nilpotent.
> IndexPeriod( x ) | ( attribute ) |
returns the minimum numbers m, r such that x^{m+r}=x^m; known as the index and period of the small semigroup element x.
gap> s:=SmallSemigroup(5,116); <small semigroup of size 5> gap> x:=Elements(s)[3]; s3 gap> IndexPeriod(x); [ 2, 1 ] gap> x^3=x^2; true gap> x^2=x^1; false gap> x^3=x^1; false |
> IsBand( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is a band and false otherwise.
A semigroup sgrp is a band if every element is an idempotent, that is, x^2=x for all x in sgrp.
gap> s:=SmallSemigroup(5,519);; gap> IsBand(s); false gap> s:=OneSmallSemigroup(5, IsBand, true); <small semigroup of size 5> gap> IsBand(s); true gap> IdSmallSemigroup(s); [ 5, 1010 ] |
> IsCliffordSemigroup( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is a Clifford semigroup and false otherwise.
A semigroup sgrp is a Clifford semigroup if it is a regular semigroup whose idempotents are central, that is, for all e,f in sgrp with e^2=e and f^2=f we have that ef=fe.
gap> s:=SmallSemigroup(5,519);; gap> IsBand(s); false gap> s:=OneSmallSemigroup(5, IsBand, true); <small semigroup of size 5> gap> IsBand(s); true gap> IdSmallSemigroup(s); [ 5, 1010 ] gap> s:=SmallSemigroup(5,519);; gap> IsCliffordSemigroup(s); false gap> s:=OneSmallSemigroup(5, IsCliffordSemigroup, true); <small semigroup of size 5> gap> IsCliffordSemigroup(s); true gap> IdSmallSemigroup(s); [ 5, 148 ] |
> IsCommutativeSemigroup( sgrp ) | ( property ) |
> IsCommutative( sgrp ) | ( property ) |
return true if the small semigroup sgrp is commutative and false otherwise.
A semigroup sgrp is commutative if xy=yx for all x,y in sgrp.
gap> s:=SmallSemigroup(6,871);; gap> IsCommutativeSemigroup(s); false gap> s:=OneSmallSemigroup(5, IsCommutative, true); <small semigroup of size 5> gap> IsCommutativeSemigroup(s); true gap> IsCommutative(s); true gap> IdSmallSemigroup(s); [ 5, 1 ] gap> s:=OneSmallSemigroup(5, IsCommutativeSemigroup, true); <small semigroup of size 5> gap> IsCommutativeSemigroup(s); true gap> IsCommutative(s); true |
> IsCompletelyRegularSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is completely regular and false otherwise.
A semigroup is completely regular if every element is contained in a subgroup.
gap> s:=SmallSemigroup(6,13131); <small semigroup of size 6> gap> IsCompletelyRegularSemigroup(s); false gap> s:=OneSmallSemigroup(6, IsCompletelyRegularSemigroup, true); <small semigroup of size 6> gap> IsCompletelyRegularSemigroup(s); true gap> IdSmallSemigroup(s); [ 6, 3164 ] |
> IsFullTransformationSemigroupCopy( sgrp ) | ( property ) |
returns true if the semigroup sgrp is isomorphic to a full transformation semigroup and false otherwise.
The size of the full transformation semigroup on an n element set is n^n and so there are only two semigroup in the library that have this property.
gap> s:=SmallSemigroup(1,1); <small semigroup of size 1> gap> IsFullTransformationSemigroupCopy(s); true gap> s:=OneSmallSemigroup(4, IsFullTransformationSemigroupCopy, true); <small semigroup of size 4> gap> IsFullTransformationSemigroupCopy(s); true gap> IdSmallSemigroup(s); [ 4, 96 ] gap> s:=OneSmallSemigroup(6, IsFullTransformationSemigroupCopy, true); fail |
> IsGroupAsSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is a group and false otherwise.
gap> s:=SmallSemigroup(7,7); <small semigroup of size 7> gap> IsGroupAsSemigroup(s); false gap> s:=SmallSemigroup(4,37);; gap> IsGroupAsSemigroup(s); true |
> IsIdempotentGenerated( sgrp ) | ( property ) |
> IsSemiband( sgrp ) | ( property ) |
returns true if the semigroup sgrp is a semiband and false otherwise.
A semigroup sgrp is idempotent generated or equivalently a semiband if it is generated by its idempotent elements, i.e elements satisfying x^2=x.
gap> s:=SmallSemigroup(3, 13); <small semigroup of size 3> gap> IsIdempotentGenerated(s); true gap> s:=OneSmallSemigroup(3, IsIdempotentGenerated, false); <small semigroup of size 3> gap> IsIdempotentGenerated(s); false gap> IdSmallSemigroup(s); [ 3, 1 ] gap> s:=OneSmallSemigroup(4, IsIdempotentGenerated, true, IsSingularSemigroupCopy, true); fail gap> s:=OneSmallSemigroup(2, IsIdempotentGenerated, true, IsSingularSemigroupCopy, true); <small semigroup of size 2> |
> IsInverseSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is an inverse semigroup and false otherwise.
A semigroup sgrp is an inverse semigroup if every element x in sgrp has a unique semigroup inverse, that is, a unique element y such that xyx=x and yxy=y.
gap> s:=OneSmallSemigroup(7, IsInverseSemigroup, true); <small semigroup of size 7> gap> IsInverseSemigroup(s); true gap> s:=SmallSemigroup(7, 101324); <small semigroup of size 7> gap> IsInverseSemigroup(s); false |
> IsLeftZeroSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is a left zero semigroup and false otherwise.
A semigroup sgrp is a left zero semigroup if xy=x for all x,y in sgrp.
gap> s:=SmallSemigroup(5, 438); <small semigroup of size 5> gap> IsLeftZeroSemigroup(s); false |
> IsMonogenicSemigroup( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is generated by a single element and false otherwise.
gap> s:=RandomSmallSemigroup(7); <small semigroup of size 7> gap> IsMonogenicSemigroup(s); false gap> s:=OneSmallSemigroup(7, IsMonogenicSemigroup, true); <small semigroup of size 7> gap> IsMonogenicSemigroup(s); true gap> MinimalGeneratorsOfSemigroup(s); [ s7 ] gap> s:=SmallSemigroup( 7, 406945); <small semigroup of size 7> gap> IsMonogenicSemigroup(s); false |
> IsMonoidAsSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is a monoid (i.e. has an identity element) and false otherwise.
gap> s:=SmallSemigroup(4, 126); <small semigroup of size 4> gap> IsMonoidAsSemigroup(s); false gap> s:=OneSmallSemigroup(4, IsMonoidAsSemigroup, true); <small semigroup of size 4> gap> IsMonoidAsSemigroup(s); true gap> One(s); s1 gap> IdSmallSemigroup(s); [ 4, 7 ] |
> IsMultSemigroupOfNearRing( sgrp ) | ( property ) |
returns true if sgrp is isomorphic (or anti-isomorphic?) to the multiplicative semigroup of a near-ring and false otherwise.
Those semigroups in the library that have this property were identified using the Sonata package.
gap> s:=OneSmallSemigroup(7, IsMultSemigroupOfNearRing, true); <small semigroup of size 7> gap> IdSmallSemigroup(s); [ 7, 1 ] gap> IsMultSemigroupOfNearRing(s); true gap> s:=SmallSemigroup(2,3); <small semigroup of size 2> gap> IsMultSemigroupOfNearRing(s); false |
> IsNGeneratedSemigroup( sgrp, n ) | ( operation ) |
returns true if the least size of a generating set for the small semigroup sgrp is n and false otherwise.
gap> s:=SmallSemigroup(7, 760041); <small semigroup of size 7> gap> IsNGeneratedSemigroup(s, 4); false gap> IsNGeneratedSemigroup(s, 3); true gap> MinimalGeneratorsOfSemigroup(s); [ s3, s5, s7 ] gap> s:=OneSmallSemigroup(4, x-> Length(MinimalGeneratorsOfSemigroup(x)), 4); <small semigroup of size 4> gap> IsNGeneratedSemigroup(s, 4); true |
> IsNIdempotentSemigroup( sgrp, n ) | ( operation ) |
returns true if the small semigroup sgrp has n idempotents and false otherwise.
gap> s:=SmallSemigroup(4, 75);; gap> IsNIdempotentSemigroup(s, 1); false gap> IsNIdempotentSemigroup(s, 2); false gap> IsNIdempotentSemigroup(s, 3); true |
> IsNilpotentSemigroup( sgrp ) | ( property ) |
> IsNilpotent( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is nilpotent and false otherwise.
A semigroup is nilpotent if it has a zero element and every element to some power equals this zero.
gap> s:=SmallSemigroup(5,116); <small semigroup of size 5> gap> IsNilpotentSemigroup(s); false gap> s:=SmallSemigroup(7, 673768);; gap> IsNilpotentSemigroup(s); true gap> s:=SmallSemigroup(7, 657867);; gap> IsNilpotent(s); true |
> IsOrthodoxSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is orthodox and false otherwise.
A semigroup is an orthodox semigroup if its idempotent elements form a subsemigroup.
gap> s:=SmallSemigroup(5, 677);; gap> IsOrthodoxSemigroup(s); true gap> s:=SmallSemigroup(5, 659);; gap> IsOrthodoxSemigroup(s); true gap> s:=SmallSemigroup(5, 327);; gap> IsOrthodoxSemigroup(s); false |
> IsRectangularBand( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is a rectangular band and false otherwise.
A semigroup sgrp is a rectangular band if for all x,y,z in sgrp we have that x^2=x and xyz=xz.
gap> s:=SmallSemigroup(5, 216);; gap> IsRectangularBand(s); false gap> s:=SmallSemigroup(6, 15854);; gap> IsRectangularBand(s); true |
> IsRegularSemigroup( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is a regular semigroup and false otherwise.
A semigroup sgrp is regular if for all x in sgrp there exists y in sgrp such that xyx=x.
gap> s:=SmallSemigroup(3, 10);; gap> IsRegularSemigroup(s); true gap> s:=SmallSemigroup(3, 1);; gap> IsRegularSemigroup(s); false gap> s:=OneSmallSemigroup(4, IsFullTransformationSemigroupCopy, true); <small semigroup of size 4> gap> IsRegularSemigroup(s); true |
> IsRightZeroSemigroup( sgrp ) | ( property ) |
returns true if the small semigroup sgrp is a right zero semigroup and false otherwise.
A semigroup sgrp is a right zero semigroup if xy=y for all x,y in sgrp.
gap> s:=SmallSemigroup(5, 438); <small semigroup of size 5> gap> IsRightZeroSemigroup(s); false |
> IsSingularSemigroupCopy( sgrp ) | ( property ) |
returns true if the semigroup sgrp is isomorphic to a semigroup of singular (i.e. non-invertible) mappings on a finite set and false otherwise.
The size of this semigroup on an n element set is n^n-n! and so there is only one semigroup in the library that have this property.
gap> s:=SmallSemigroup(1,1); <small semigroup of size 1> gap> IsSingularSemigroupCopy(s); false gap> s:=OneSmallSemigroup(2, IsSingularSemigroupCopy, true); <small semigroup of size 2> gap> IsSingularSemigroupCopy(s); true gap> IdSmallSemigroup(s); [ 2, 4] gap> s:=OneSmallSemigroup(4, IsSingularSemigroupCopy, true); fail |
> IsSelfDualSemigroup( sgrp ) | ( property ) |
returns true if the semigroup s is self dual and false otherwise.
A semigroup is self dual if it is isomorphic to its dual, that is, the semigroup t with multiplication * defined by x*y=yx where yx denotes the product in s.
gap> s:=SmallSemigroup(5,116); <small semigroup of size 5> gap> IsSelfDualSemigroup(s); false gap> s:=RandomSmallSemigroup(5, IsSelfDualSemigroup, true); <small semigroup of size 5> gap> IdSmallSemigroup(s); [ 5, 880 ] gap> IsSelfDualSemigroup(s); true |
> IsSimpleSemigroup( sgrp ) | ( property ) |
> IsCompletelySimpleSemigroup( sgrp ) | ( property ) |
return true if the semigroup sgrp is simple or completely simple and false otherwise.
A semigroup is simple if it has no proper 2-sided ideals. A semigroup is completely simple if it is simple and possesses minimal left and right ideals.
A finite semigroup is simple if and only if it is completely simple.
gap> s:=SmallSemigroup(7, 519799);; gap> IsSimpleSemigroup(s); true gap> IsCompletelySimpleSemigroup(s); true gap> s:=RandomSmallSemigroup(7, 208242);; gap> IsSimpleSemigroup(s); false |
> IsZeroGroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is a zero group and false otherwise.
A semigroup sgrp is a zero group if there exists an element 0 in sgrp such that sgrp without 0 is a group and for all x in sgrp we have that x0=0x=0.
gap> s:=Group((1,2),(3,4)); Group([ (1,2), (3,4) ]) gap> IdSmallSemigroup(s); [ 4, 7 ] gap> s:=ZeroGroup(s); <zero group with 3 generators> gap> IdSmallSemigroup(s); [ 5, 149 ] gap> IsZeroGroup(s); true |
> IsZeroSemigroup( sgrp ) | ( property ) |
returns true if the semigroup sgrp is a zero semigroup and false otherwise.
A semigroup sgrp is a zero semigroup if there exists an element 0 in sgrp such that xy=0 for all x,y in sgrp.
gap> s:=OneSmallSemigroup(5, IsZeroSemigroup, true); <zero semigroup with 5 elements> gap> IsZeroSemigroup(s); true gap> IdSmallSemigroup(s); [ 5, 1 ] gap> s:=OneSmallSemigroup(5, IsZeroSemigroup, false); <small semigroup of size 5> gap> IdSmallSemigroup(s); [ 5, 2 ] gap> IsZeroSemigroup(s); false gap> IsZeroSemigroup(SmallSemigroup(6,1)); true gap> IsZeroSemigroup(SmallSemigroup(7,1)); true gap> IsZeroSemigroup(SmallSemigroup(8,1)); false |
> IsZeroSimpleSemigroup( sgrp ) | ( property ) |
return true if the semigroup sgrp is 0-simple and false otherwise.
A semigroup sgrp is 0-simple if the only 2-sided ideals are 0 and sgrp.
gap> s:=SmallSemigroup(7, 519799); <small semigroup of size 7> gap> IsZeroSimpleSemigroup(s); false gap> s:=RandomSmallSemigroup(7, IsZeroSimpleSemigroup, true); <small semigroup of size 7> gap> IsZeroSimpleSemigroup(s); true |
> MinimalGeneratorsOfSemigroup( sgrp ) | ( attribute ) |
returns a set of generators for sgrp with minimal size.
gap> s:=SmallSemigroup(8, 1478885610);; gap> MinimalGeneratorsOfSemigroup(s); [ s4, s5, s6, s7, s8 ] gap> s:=SmallSemigroup(7, 673768);; gap> MinimalGeneratorsOfSemigroup(s); [ s4, s5, s6, s7 ] gap> s:=SmallSemigroup(4, 4);; gap> MinimalGeneratorsOfSemigroup(s); [ s2, s3, s4 ] |
> NilpotencyRank( sgrp ) | ( attribute ) |
returns the least n such that every product of n elements in the nilpotent small semigroup sgrp equals the zero element.
gap> s:=SmallSemigroup(7, 393450);; gap> NilpotencyRank(s); Error, no method found! For debugging hints type ?Recovery from NoMethodFound Error, no 1st choice method found for `NilpotencyRank' on 1 arguments Error( no_method_found ); called from <function>( <arguments> ) called from read-eval-loop you can 'quit;' to quit to outer loop, or you can 'return;' to continue brk> quit; gap> IsNilpotentSemigroup(s); true gap> NilpotencyRank(s); 3 |
generated by GAPDoc2HTML