In this chapter we describe the functions in Citrus for determining the structure of a semigroup of transformations or partial permutations, in particular for computing Green's classes and related properties of semigroups.
In some cases it is possible to express the elements of a transformation semigroup as a word in the generators. This section describes how to accomplish this in Citrus.
Note that at present it is not possible to factorize elements in a semigroup of partial permutations.
‣ EvaluateWord( gens, w ) | ( operation ) |
Returns: A transformation.
The argument gens should be a list of transformations and the argument w should be a list of positive integers less than or equal to the length of gens. This operation evaluates the word w in the generators gens. More precisely, EvaluateWord returns the equivalent of:
Product(List(w, i-> gens[i]));
see also Factorization (4.1-2).
gap> gens:=[ Transformation( [ 2, 4, 4, 6, 8, 8, 6, 6 ] ), > Transformation( [ 2, 7, 4, 1, 4, 6, 5, 2 ] ), > Transformation( [ 3, 6, 2, 4, 2, 2, 2, 8 ] ), > Transformation( [ 4, 3, 6, 4, 2, 1, 2, 6 ] ), > Transformation( [ 4, 5, 1, 3, 8, 5, 8, 2 ] ) ];; gap> S:=Semigroup(gens);; gap> f:=Transformation( [ 1, 4, 6, 1, 7, 2, 7, 6 ] );; gap> Factorization(S, f); [ 4, 2 ] gap> EvaluateWord(gens, last); Transformation( [ 1, 4, 6, 1, 7, 2, 7, 6 ] )
‣ Factorization( S, f ) | ( method ) |
Returns: A word in the generators.
If S is a transformation semigroup and f is a transformation belonging to S, then Factorization returns a word in the generators of S that is equal to f. Here, a word is a list of positive integers where i corresponds to GeneratorsOfSemigroups(S)[i]. More specifically,
EvaluateWord(GeneratorsOfSemigroup(S), Factorization(S, f))=f;
Note that Factorization does not return a word of minimum length. An empty list is evaluated to the identity transformation with degree equal to the degree of S regardless of whether this transformation is an element of S or not.
See also EvaluateWord (4.1-1) and GeneratorsOfSemigroup (Reference: GeneratorsOfSemigroup).
gap> gens:=[ Transformation( [ 2, 2, 9, 7, 4, 9, 5, 5, 4, 8 ] ), > Transformation( [ 4, 10, 5, 6, 4, 1, 2, 7, 1, 2 ] ) ];; gap> S:=Semigroup(gens);; gap> f:=Transformation( [ 1, 10, 2, 10, 1, 2, 7, 10, 2, 7 ] );; gap> Factorization(S, f); [ 2, 2, 1, 2 ] gap> EvaluateWord(gens, last); Transformation( [ 1, 10, 2, 10, 1, 2, 7, 10, 2, 7 ] )
‣ DClassOfHClass( class ) | ( method ) |
‣ DClassOfLClass( class ) | ( method ) |
‣ DClassOfRClass( class ) | ( method ) |
‣ LClassOfHClass( class ) | ( method ) |
‣ RClassOfHClass( class ) | ( method ) |
Returns: A Green's class.
XClassOfYClass returns the X-class containing the Y-class class where X and Y should be replaced by an appropriate choice of D, H, L, and R.
Note that if it is not known to GAP whether or not the representative of class is an element of the semigroup containing class, then no attempt is made to check this.
The same result can be produced using:
First(GreensXClasses(S), x-> Representative(x) in class);
but this might be substantially slower. Note that XClassOfYClass is also likely to be faster than
GreensXClassOfElement(S, Representative(class));
DClass can also be used as a synonym for DClassOfHClass, DClassOfLClass, and DClassOfRClass; LClass as a synonym for LClassOfHClass; and RClass as a synonym for RClassOfHClass. See also GreensDClassOfElement (Reference: GreensDClassOfElement) and GreensDClassOfElementNC (4.2-3).
gap> S:=Semigroup(Transformation( [ 1, 3, 2 ] ), > Transformation( [ 2, 1, 3 ] ), Transformation( [ 3, 2, 1 ] ), > Transformation( [ 1, 3, 1 ] ) );; gap> R:=GreensRClassOfElement(S, Transformation( [ 3, 2, 1 ] )); {Transformation( [ 1, 2, 3 ] )} gap> DClassOfRClass(R); {Transformation( [ 1, 2, 3 ] )} gap> IsGreensDClass(DClassOfRClass(R)); true gap> S:=InverseSemigroup(PartialPermNC([ 1, 2, 3, 6, 8, 10 ], > [ 2, 6, 7, 9, 1, 5 ]), PartialPermNC([ 1, 2, 3, 4, 6, 7, 8, 10 ], > [ 3, 8, 1, 9, 4, 10, 5, 6 ])); <inverse semigroup with 2 generators> gap> f:=Generators(S)[1]; [ 1, 2, 3, 6, 8, 10 ] -> [ 2, 6, 7, 9, 1, 5 ] gap> h:=HClass(S, f); {[ 1, 2, 3, 6, 8, 10 ] -> [ 2, 6, 7, 9, 1, 5 ]} gap> r:=RClassOfHClass(h); {<identity on [ 1, 2, 3, 6, 8, 10 ]>} gap> l:=LClass(h); {[ 1, 2, 3, 6, 8, 10 ] -> [ 2, 6, 7, 9, 1, 5 ]} gap> DClass(r)=DClass(l); true gap> DClass(h)=DClass(l); true
‣ GreensDClassOfElement( X, f ) | ( operation ) |
‣ DClass( X, f ) | ( function ) |
‣ GreensHClassOfElement( X, f ) | ( operation ) |
‣ HClass( X, f ) | ( function ) |
‣ GreensLClassOfElement( X, f ) | ( operation ) |
‣ LClass( X, f ) | ( function ) |
‣ GreensRClassOfElement( X, f ) | ( operation ) |
‣ RClass( X, f ) | ( function ) |
Returns: A Green's class.
These functions produce essentially the same output as the GAP library functions with the same names; see GreensDClassOfElement (Reference: GreensDClassOfElement). The main difference is that these functions can be applied to a wider class of objects:
GreensDClassOfElement and DClassX must be a semigroup of transformations or partial permutations.
GreensHClassOfElement and HClassX can be a semigroup of transformations or partial permutations, \(\mathcal{R}\)-class, \(\mathcal{L}\)-class, or \(\mathcal{D}\)-class.
GreensLClassOfElement and LClassX can be a semigroup of transformations or partial permutations, or \(\mathcal{D}\)-class.
GreensRClassOfElement and RClassX can be a semigroup of transformations or partial permutations, or \(\mathcal{D}\)-class.
Note that GreensXClassOfElement and XClass are synonyms and have identical output. The shorter command is provided for the sake of convenience.
‣ GreensDClassOfElementNC( X, f ) | ( operation ) |
‣ DClassNC( X, f ) | ( function ) |
‣ GreensHClassOfElementNC( X, f ) | ( operation ) |
‣ HClassNC( X, f ) | ( function ) |
‣ GreensLClassOfElementNC( X, f ) | ( operation ) |
‣ LClassNC( X, f ) | ( function ) |
‣ GreensRClassOfElementNC( X, f ) | ( operation ) |
‣ RClassNC( X, f ) | ( function ) |
Returns: A Green's class.
These functions are essentially the same as GreensDClassOfElement (4.2-2) except that no effort is made to verify if f is an element of X. More precisely, GreensXClassOfElementNC and XClassNC first check if f has already been shown to be an element of X. If it is not known to GAP if f is an element of X, then no further attempt to verify this is made.
Note that GreensXClassOfElementNC and XClassNC are synonyms and have identical output. The shorter command is provided for the sake of convenience.
It can be quicker to compute the class of an element using GreensRClassOfElementNC, say, than using GreensRClassOfElement if it is known a priori that f is an element of X. On the other hand, if f is not an element of X, then the results of this computation are unpredictable.
For example, if
f:=Transformation( [ 15, 18, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
20, 20, 20, 20, 20, 20 ] );in the semigroup X of order-preserving mappings on 20 points, then
GreensRClassOfElementNC(X, f);;
returns an answer relatively quickly, whereas GreensRClassOfElement can take a signficant amount of time to return a value.
See also GreensRClassOfElement (Reference: GreensRClassOfElement) and RClassOfHClass (4.2-1).
gap> S:=RandomTransformationSemigroup(2,1000);; gap> f:=[ 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1 ];; gap> f:=EvaluateWord(Generators(S), f);; gap> R:=GreensRClassOfElementNC(S, f);; gap> Size(R); 1 gap> L:=GreensLClassOfElementNC(S, f);; gap> Size(L); 1 gap> f:=PartialPermNC([ 1, 2, 3, 4, 7, 8, 9, 10 ], > [ 2, 3, 4, 5, 6, 8, 10, 11 ]);; gap> L:=LClass(POI(13), f); {[ 1, 2, 3, 4, 7, 8, 9, 10 ] -> [ 2, 3, 4, 5, 6, 8, 10, 11 ]} gap> Size(L); 1287
‣ GroupHClass( class ) | ( attribute ) |
Returns: A group \(\mathcal{H}\)-class of the \(\mathcal{D}\)-class class if it is regular and fail if it is not.
GroupHClass is a synonym for GroupHClassOfGreensDClass (Reference: GroupHClassOfGreensDClass).
See also IsGroupHClass (Reference: IsGroupHClass), IsRegularDClass (Reference: IsRegularDClass), IsRegularDClass (4.4-6), and IsRegularSemigroup (4.6-19).
gap> S:=Semigroup( Transformation( [ 2, 6, 7, 2, 6, 1, 1, 5 ] ), > Transformation( [ 3, 8, 1, 4, 5, 6, 7, 1 ] ) );; gap> IsRegularSemigroup(S); false gap> iter:=IteratorOfDClasses(S);; gap> repeat D:=NextIterator(iter); until IsRegularDClass(D); gap> D; {Transformation( [ 6, 1, 1, 6, 1, 2, 2, 6 ] )} gap> NrIdempotents(D); 12 gap> NrRClasses(D); 8 gap> NrLClasses(D); 4 gap> GroupHClass(D); {Transformation( [ 6, 1, 1, 6, 1, 2, 2, 6 ] )} gap> GroupHClassOfGreensDClass(D); {Transformation( [ 6, 1, 1, 6, 1, 2, 2, 6 ] )} gap> StructureDescription(GroupHClass(D)); "S3" gap> repeat D:=NextIterator(iter); until not IsRegularDClass(D); gap> D; {Transformation( [ 7, 5, 2, 2, 6, 1, 1, 2 ] )} gap> IsRegularDClass(D); false gap> GroupHClass(D); fail gap> s:=InverseSemigroup( [ PartialPermNC( [ 1, 2, 3, 5 ], [ 2, 1, 6, 3 ] ), > PartialPermNC( [ 1, 2, 3, 6 ], [ 3, 5, 2, 6 ] ) ]);; gap> f:=PartialPermNC([ 1 .. 3 ], [ 6, 3, 1 ]);; gap> First(DClasses(s), x-> not IsTrivial(GroupHClass(x))); {<identity on [ 1, 2 ]>} gap> StructureDescription(GroupHClass(last)); "C2"
‣ GreensDClasses( obj ) | ( method ) |
‣ DClasses( obj ) | ( method ) |
‣ GreensHClasses( obj ) | ( method ) |
‣ HClasses( obj ) | ( method ) |
‣ GreensJClasses( obj ) | ( method ) |
‣ JClasses( obj ) | ( method ) |
‣ GreensLClasses( obj ) | ( method ) |
‣ LClasses( obj ) | ( method ) |
‣ GreensRClasses( obj ) | ( method ) |
‣ RClasses( obj ) | ( method ) |
Returns: A list of Green's classes.
These functions produce essentially the same output as the GAP library functions with the same names; see GreensDClasses (Reference: GreensDClasses). The main difference is that these functions can be applied to a wider class of objects:
GreensDClasses and DClassesX should be a semigroup of transformations or partial permutations.
GreensHClasses and HClassesX can be a semigroup of transformations or partial permutations, \(\mathcal{R}\)-class, \(\mathcal{L}\)-class, or \(\mathcal{D}\)-class.
GreensLClasses and LClassesX can be a semigroup of transformations or partial permutations, or \(\mathcal{D}\)-class.
GreensRClasses and RClassesX can be a semigroup of transformations or partial permutations, or \(\mathcal{D}\)-class.
Note that GreensXClasses and XClasses are synonyms and have identical output. The shorter command is provided for the sake of convenience.
See also DClassReps (4.3-4), IteratorOfDClassReps (4.3-2), IteratorOfDClasses (4.3-3), and NrDClasses (4.4-8).
gap> S:=Semigroup(Transformation( [ 3, 4, 4, 4 ] ), > Transformation( [ 4, 3, 1, 2 ] ));; gap> GreensDClasses(S); [ {Transformation( [ 1, 2, 3, 4 ] )}, {Transformation( [ 3, 4, 4, 4 ] )}, {Transformation( [ 4, 4, 4, 4 ] )} ] gap> GreensRClasses(S); [ {Transformation( [ 1, 2, 3, 4 ] )}, {Transformation( [ 3, 4, 4, 4 ] )}, {Transformation( [ 4, 4, 4, 4 ] )}, {Transformation( [ 4, 4, 3, 4 ] )}, {Transformation( [ 4, 3, 4, 4 ] )}, {Transformation( [ 4, 4, 4, 3 ] )} ] gap> D:=GreensDClasses(S)[2]; {Transformation( [ 3, 4, 4, 4 ] )} gap> GreensLClasses(D); [ {Transformation( [ 3, 4, 4, 4 ] )}, {Transformation( [ 1, 2, 2, 2 ] )} ] gap> GreensRClasses(D); [ {Transformation( [ 3, 4, 4, 4 ] )}, {Transformation( [ 4, 4, 3, 4 ] )}, {Transformation( [ 4, 3, 4, 4 ] )}, {Transformation( [ 4, 4, 4, 3 ] )} ] gap> R:=GreensRClasses(D)[1]; {Transformation( [ 3, 4, 4, 4 ] )} gap> GreensHClasses(R); [ {Transformation( [ 3, 4, 4, 4 ] )}, {Transformation( [ 1, 2, 2, 2 ] )} ] gap> s:=InverseSemigroup( PartialPermNC( [ 1, 2, 3 ], [ 2, 4, 1 ] ), > PartialPermNC( [ 1, 3, 4 ], [ 3, 4, 1 ] ) );; gap> GreensDClasses(s); [ {<identity on [ 1, 2, 4 ]>}, {<identity on [ 1, 3, 4 ]>}, {<identity on [ 2, 4 ]>}, {<identity on [ 4 ]>}, {<empty mapping>} ] gap> GreensLClasses(s); [ {<identity on [ 1, 2, 4 ]>}, {[ 1, 2, 4 ] -> [ 3, 1, 2 ]}, {<identity on [ 1, 3, 4 ]>}, {<identity on [ 2, 4 ]>}, {[ 2, 4 ] -> [ 3, 1 ]}, {[ 2, 4 ] -> [ 1, 2 ]}, {[ 2, 4 ] -> [ 3, 2 ]}, {[ 2, 4 ] -> [ 4, 3 ]}, {[ 2, 4 ] -> [ 1, 4 ]}, {<identity on [ 4 ]>}, {[ 4 ] -> [ 1 ]}, {[ 4 ] -> [ 3 ]}, {[ 4 ] -> [ 2 ]}, {<empty mapping>} ] gap> D:=GreensDClasses(s)[3]; {<identity on [ 2, 4 ]>} gap> GreensLClasses(D); [ {<identity on [ 2, 4 ]>}, {[ 2, 4 ] -> [ 3, 1 ]}, {[ 2, 4 ] -> [ 1, 2 ]}, {[ 2, 4 ] -> [ 3, 2 ]}, {[ 2, 4 ] -> [ 4, 3 ]}, {[ 2, 4 ] -> [ 1, 4 ]} ] gap> GreensRClasses(D); [ {<identity on [ 2, 4 ]>}, {[ 1, 3 ] -> [ 4, 2 ]}, {[ 1, 2 ] -> [ 2, 4 ]}, {[ 2, 3 ] -> [ 4, 2 ]}, {[ 3, 4 ] -> [ 4, 2 ]}, {[ 1, 4 ] -> [ 2, 4 ]} ]
‣ IteratorOfDClassReps( S ) | ( function ) |
‣ IteratorOfHClassReps( S ) | ( function ) |
‣ IteratorOfLClassReps( S ) | ( function ) |
‣ IteratorOfRClassReps( S ) | ( function ) |
Returns: An iterator.
Returns an iterator of the representatives of the Green's classes contained in the semigroup of transformations or partial permutations S. See Reference: Iterators for more information on iterators.
See also GreensRClasses (Reference: GreensRClasses), GreensRClasses (4.3-1), and IteratorOfRClasses (4.3-3).
In the display of an IteratorOfRClassReps, for a transformation semigroup, the total number of elements in the orbit of the semigroup acting on its \(\mathcal{R}\)-class representatives by multiplication on the left is given (every \(\mathcal{R}\)-class representative occurs in this orbit), the number of elements of the semigroup that have so far been computed is given, and the number of distinct \(\mathcal{R}\)-classes that have been found is given. Note that these numbers depend on the state of the semigroup and not of the iterator.
gap> gens:=[ Transformation( [ 3, 2, 1, 5, 4 ] ), > Transformation( [ 5, 4, 3, 2, 1 ] ), > Transformation( [ 5, 4, 3, 2, 1 ] ), Transformation( [ 5, 5, 4, 5, 1 ] ), > Transformation( [ 4, 5, 4, 3, 3 ] ) ];; gap> S:=Semigroup(gens);; gap> iter:=IteratorOfRClassReps(S); <iterator of R-class reps, 6 candidates, 0 elements, 0 R-classes> gap> NextIterator(iter); Transformation( [ 1, 2, 3, 4, 5 ] ) gap> NextIterator(iter); Transformation( [ 5, 5, 4, 5, 1 ] ) gap> iter; <iterator of R-class reps, 10 candidates, 20 elements, 2 R-classes> gap> file:=Concatenation(CitrusDir(), "/examples/inverse.citrus.gz");; gap> s:=InverseSemigroup(ReadCitrus(file, 8)); <inverse semigroup with 2 generators> gap> NrMovedPoints(s); 983 gap> iter:=IteratorOfLClassReps(s); <iterator of L-class reps> gap> NextIterator(iter); <partial perm on 634 pts>
‣ IteratorOfDClasses( S ) | ( function ) |
‣ IteratorOfHClasses( S ) | ( function ) |
‣ IteratorOfLClasses( S ) | ( function ) |
‣ IteratorOfRClasses( S ) | ( function ) |
Returns: An iterator.
Returns an iterator of the Green's classes in the semigroup of transformations or partial permutations S. See Reference: Iterators for more information on iterators.
This function is useful if you are, for example, looking for an \(\mathcal{R}\)-class of a semigroup with a particular property but do not necessarily want to compute all of the \(\mathcal{R}\)-classes.
See also GreensRClasses (4.3-1), GreensRClasses (Reference: GreensRClasses), NrRClasses (4.4-8), and IteratorOfRClassReps (4.3-2).
The transformation semigroup in the example below has 25147892 elements but it only takes a fraction of a second to find a non-trivial \(\mathcal{R}\)-class. The inverse semigroup of partial permutations in the example below has size 158122047816 but it only takes a fraction of a second to find an \(\mathcal{R}\)-class with more than 1000 elements.
gap> gens:=[ Transformation( [ 2, 4, 1, 5, 4, 4, 7, 3, 8, 1 ] ), > Transformation( [ 3, 2, 8, 8, 4, 4, 8, 6, 5, 7 ] ), > Transformation( [ 4, 10, 6, 6, 1, 2, 4, 10, 9, 7 ] ), > Transformation( [ 6, 2, 2, 4, 9, 9, 5, 10, 1, 8 ] ), > Transformation( [ 6, 4, 1, 6, 6, 8, 9, 6, 2, 2 ] ), > Transformation( [ 6, 8, 1, 10, 6, 4, 9, 1, 9, 4 ] ), > Transformation( [ 8, 6, 2, 3, 3, 4, 8, 6, 2, 9 ] ), > Transformation( [ 9, 1, 2, 8, 1, 5, 9, 9, 9, 5 ] ), > Transformation( [ 9, 3, 1, 5, 10, 3, 4, 6, 10, 2 ] ), > Transformation( [ 10, 7, 3, 7, 1, 9, 8, 8, 4, 10 ] ) ];; gap> S:=Semigroup(gens);; gap> iter:=IteratorOfRClasses(S); <iterator of R-classes> gap> for R in iter do > if Size(R)>1 then break; fi; > od; gap> R; {Transformation( [ 6, 4, 1, 6, 6, 8, 9, 6, 2, 2 ] )} gap> Size(R); 21600 gap> S:=InverseSemigroup( > [ PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 10, 11, 19, 20 ], > [ 19, 4, 11, 15, 3, 20, 1, 14, 8, 13, 17 ] ), > PartialPermNC( [ 1, 2, 3, 4, 6, 7, 8, 14, 15, 16, 17 ], > [ 15, 14, 20, 19, 4, 5, 1, 13, 11, 10, 3 ] ), > PartialPermNC( [ 1, 2, 4, 6, 7, 8, 9, 10, 14, 15, 18 ], > [ 7, 2, 17, 10, 1, 19, 9, 3, 11, 16, 18 ] ), > PartialPermNC( [ 1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 13, 16 ], > [ 8, 3, 18, 1, 4, 13, 12, 7, 19, 20, 2, 11 ] ), > PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 9, 11, 15, 16, 17, 20 ], > [ 7, 17, 13, 4, 6, 9, 18, 10, 11, 19, 5, 2, 8 ] ), > PartialPermNC( [ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 18 ], > [ 10, 20, 11, 7, 13, 8, 4, 9, 2, 18, 17, 6, 15 ] ), > PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 17, 18 ], > [ 10, 20, 18, 1, 14, 16, 9, 5, 15, 4, 8, 12, 19, 11 ] ), > PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15, 16, 19, 20 ], > [ 13, 6, 1, 2, 11, 7, 16, 18, 9, 10, 4, 14, 15, 5, 17 ] ), > PartialPermNC( [ 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 20 ], > [ 5, 3, 12, 9, 20, 15, 8, 16, 13, 1, 17, 11, 14, 10, 2 ] ), > PartialPermNC( [ 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 13, 17, 18, 19, 20 ], > [ 8, 3, 9, 20, 2, 12, 14, 15, 4, 18, 13, 1, 17, 19, 5 ] ) ]);; gap> iter:=IteratorOfRClasses(S); <iterator of R-classes> gap> repeat r:=NextIterator(iter); until Size(r)>1000; gap> r; {<identity on [ 8, 11, 13, 15, 17, 19 ]>} gap> Size(r); 10020240
‣ DClassReps( obj ) | ( attribute ) |
‣ HClassReps( obj ) | ( attribute ) |
‣ LClassReps( obj ) | ( attribute ) |
‣ RClassReps( obj ) | ( attribute ) |
Returns: A list of transformations.
XClassReps returns a list of the representatives of the Green's classes of obj, which can be a semigroup of transformations or partial permutations, \(\mathcal{D}\)-, \(\mathcal{L}\)-, or \(\mathcal{R}\)-class (where appropriate).
The same output can be obtained by calling, for example:
List(GreensXClasses(obj), Representative);
Note that if the Green's classes themselves are not required, then XClassReps will return an answer more quickly than the above, since the Green's class objects are not created.
See also GreensDClasses (4.3-1), IteratorOfDClassReps (4.3-2), IteratorOfDClasses (4.3-3), and NrDClasses (4.4-8).
gap> S:=Semigroup(Transformation( [ 3, 4, 4, 4 ] ), > Transformation( [ 4, 3, 1, 2 ] ));; gap> DClassReps(S); [ Transformation( [ 1, 2, 3, 4 ] ), Transformation( [ 3, 4, 4, 4 ] ), Transformation( [ 4, 4, 4, 4 ] ) ] gap> LClassReps(S); [ Transformation( [ 1, 2, 3, 4 ] ), Transformation( [ 3, 4, 4, 4 ] ), Transformation( [ 1, 2, 2, 2 ] ), Transformation( [ 4, 4, 4, 4 ] ), Transformation( [ 2, 2, 2, 2 ] ), Transformation( [ 3, 3, 3, 3 ] ), Transformation( [ 1, 1, 1, 1 ] ) ] gap> D:=GreensDClasses(S)[2]; {Transformation( [ 3, 4, 4, 4 ] )} gap> LClassReps(D); [ Transformation( [ 3, 4, 4, 4 ] ), Transformation( [ 1, 2, 2, 2 ] ) ] gap> RClassReps(D); [ Transformation( [ 3, 4, 4, 4 ] ), Transformation( [ 4, 4, 3, 4 ] ), Transformation( [ 4, 3, 4, 4 ] ), Transformation( [ 4, 4, 4, 3 ] ) ] gap> R:=GreensRClasses(D)[1];; gap> HClassReps(R); [ Transformation( [ 3, 4, 4, 4 ] ), Transformation( [ 1, 2, 2, 2 ] ) ] gap> S:=SymmetricInverseSemigp(6);; gap> e:=InverseSemigroup(Idempotents(S));; gap> M:=MunnSemigroup(e);; gap> DClassReps(M); [ <partial perm on 64 pts>, <identity on [ 51 ]>, <identity on [ 27, 51 ]>, <identity on [ 15, 27, 50, 51 ]>, <identity on [ 8, 15, 26, 27, 49, 50, 51, 64 ]>, <identity on [ 4, 8, 14, 15, 25, 26, 27, 48, 49, 50, 51, 60, 61, 62, 63, 64 ]>, <partial perm on 32 pts> ] gap> L:=LClassNC(M, PartialPermNC( [ 51, 63 ] , [ 51, 47 ] ));; gap> HClassReps(L); [ [ 27, 51 ] -> [ 47, 51 ], <identity on [ 47, 51 ]>, [ 50, 51 ] -> [ 47, 51 ], [ 51, 59 ] -> [ 51, 47 ], [ 51, 63 ] -> [ 51, 47 ], [ 51, 64 ] -> [ 51, 47 ] ]
‣ \<( left-expr, right-expr ) | ( method ) |
Returns: true or false.
The Green's class left-expr is less than or equal to right-expr if they belong to the same semigroup and the representative of left-expr is less than the representative of right-expr under <; see also Representative (Reference: Representative), and Sections 2.6 and 2.7.
Please note that this is not the usual order on the Green's classes of a semigroup as defined in Reference: Green's Relations. See also IsGreensLessThanOrEqual (Reference: IsGreensLessThanOrEqual).
gap> S:=FullTransformationSemigroup(4);; gap> A:=GreensRClassOfElement(S, Transformation( [ 2, 1, 3, 1 ] )); {Transformation( [ 2, 1, 3, 1 ] )} gap> B:=GreensRClassOfElement(S, Transformation( [ 1, 2, 3, 4 ] )); {Transformation( [ 1, 2, 3, 4 ] )} gap> A<B; false gap> B<A; true gap> IsGreensLessThanOrEqual(A,B); true gap> IsGreensLessThanOrEqual(B,A); false gap> s:=SymmetricInverseSemigp(4);; gap> A:=GreensJClassOfElement(s, PartialPermNC([ 1 .. 3 ], [ 1, 3, 4 ]) ); {<identity on [ 1 .. 3 ]>} gap> B:=GreensJClassOfElement(s, PartialPermNC([ 1, 2 ], [ 3, 1 ]) ); {<identity on [ 1, 2 ]>} gap> A<B; false gap> B<A; true gap> IsGreensLessThanOrEqual(A, B); false gap> IsGreensLessThanOrEqual(B, A); true
‣ InjectionPrincipalFactor( D ) | ( attribute ) |
‣ IsomorphismReesMatrixSemigroup( D ) | ( attribute ) |
Returns: A injective mapping.
The argument D should be a \(\mathcal{D}\)-class of a semigroup of transformations or partial permutations. If D is a subsemigroup of S, then the principal factor of D is just D itself. If D is not a subsemigroup of S, then the principal factor of D is the semigroup with elements D and a new element 0 with multiplication of x,y∈ D defined by:
xy=\left\{\begin{array}{ll} x*y\ (\textrm{in }S)&\textrm{if }x*y\in D\\ 0&\textrm{if }xy\not\in D. \end{array}\right.
InjectionPrincipalFactor returns an injective function from the \(\mathcal{D}\)-class D to a Rees matrix semigroup, which contains the principal factor of D as a subsemigroup.
If D is a subsemigroup of its parent semigroup, then the function returned by InjectionPrincipalFactor or IsomorphismReesMatrixSemigroup is an isomorphism from D to a Rees matrix semigroup; see ReesMatrixSemigroup (Reference: ReesMatrixSemigroup).
If D is not a semigroup, then the function returned by InjectionPrincipalFactor is an injective function from D to a Rees 0-matrix semigroup isomorphic to the principal factor of D; see ReesZeroMatrixSemigroup (Reference: ReesZeroMatrixSemigroup). In this case, IsomorphismReesMatrixSemigroup returns an error.
See also PrincipalFactor (4.4-3).
gap> S:=InverseSemigroup( > PartialPermNC( [ 1, 2, 3, 6, 8, 10 ], [ 2, 6, 7, 9, 1, 5 ] ), > PartialPermNC( [ 1, 2, 3, 4, 6, 7, 8, 10 ], > [ 3, 8, 1, 9, 4, 10, 5, 6 ] ) );; gap> f:=PartialPermNC([ 1, 2, 5, 6, 7, 9 ], [ 1, 2, 5, 6, 7, 9 ]);; gap> d:=GreensDClassOfElement(S, f); {<identity on [ 1, 2, 5, 6, 7, 9 ]>} gap> InjectionPrincipalFactor(d); MappingByFunction( {<identity on [ 1, 2, 5, 6, 7, 9 ]>}, Rees Zero Matrix Semigroup over <zero group with 2 generators>, function( f ) ... end, function( x ) ... end ) gap> rms:=Range(last); Rees Zero Matrix Semigroup over <zero group with 2 generators> gap> SandwichMatrixOfReesZeroMatrixSemigroup(rms); [ [ (), 0, 0 ], [ 0, (), 0 ], [ 0, 0, () ] ] gap> Size(rms); 10 gap> Size(d); 9
‣ PrincipalFactor( D ) | ( attribute ) |
Returns: A Rees matrix semigroup.
PrincipalFactor(D) is just shorthand for Range(InjectionPrincipalFactor(D)); see InjectionPrincipalFactor (4.4-2) for more details.
‣ IsGreensClassOfTransSemigp( obj ) | ( property ) |
Returns: true or false.
IsGreensClassOfTransSemigp return true if the object obj is a Green's class of a transformation semigroup and false if it is not.
This property is required so that a Green's class knows that it belongs to a transformation semigroup, so that the methods defined in the Citrus are used in preference to those in the library.
gap> S:=Semigroup(Transformation( [ 2, 1, 4, 5, 6, 3 ] ), > Transformation( [ 2, 3, 1, 5, 4, 1 ] ));; gap> L:=GreensLClassOfElement(S, GeneratorsOfSemigroup(S)[1]); {Transformation( [ 2, 1, 4, 5, 6, 3 ] )} gap> IsGreensClassOfTransSemigp(L); true
‣ IsGreensClassOfPartialPermSemigp( obj ) | ( property ) |
Returns: true or false.
IsGreensClassOfPartialPermSemigp return true if the object obj is a Green's class of a semigroup of partial permutations and false if it is not.
This property is required so that a Green's class knows that it belongs to a semigroup of partial permutations, so that the methods defined in the Citrus are used in preference to those in the library.
gap> S:=InverseSemigroup( PartialPermNC( [ 1, 3 ], [ 4, 3 ] ), > PartialPermNC( [ 1, 2, 3 ], [ 4, 1, 2 ] ) );; gap> D:=GreensDClassOfElement(S, PartialPermNC( [ 1, 3 ], [ 4, 3 ] ) ); {<identity on [ 1, 3 ]>} gap> IsGreensClassOfPartPermSemigroup(D); true
‣ IsRegularDClass( class ) | ( property ) |
‣ IsRegularLClass( class ) | ( property ) |
‣ IsRegularRClass( class ) | ( property ) |
Returns: true or false.
This function returns true if class is a regular Green's class and false if it is not. See also IsRegularDClass (Reference: IsRegularDClass), IsGroupHClass (Reference: IsGroupHClass), GroupHClassOfGreensDClass (Reference: GroupHClassOfGreensDClass), GroupHClass (4.2-4), NrIdempotents (4.5-7), Idempotents (4.5-6), and IsRegularTransformation (2.4-5).
The function IsRegularDClass produces the same output as the GAP library functions with the same name; see IsRegularDClass (Reference: IsRegularDClass).
gap> S:=Monoid(Transformation( [ 10, 8, 7, 4, 1, 4, 10, 10, 7, 2 ] ), > Transformation( [ 5, 2, 5, 5, 9, 10, 8, 3, 8, 10 ] ));; gap> f:=Transformation( [ 1, 1, 10, 8, 8, 8, 1, 1, 10, 8 ] );; gap> R:=RClass(S, f);; gap> IsRegularRClass(R); true gap> S:=Monoid(Transformation([2,3,4,5,1,8,7,6,2,7]), > Transformation( [ 3, 8, 7, 4, 1, 4, 3, 3, 7, 2 ] ));; gap> f:=Transformation( [ 3, 8, 7, 4, 1, 4, 3, 3, 7, 2 ] );; gap> R:=RClass(S, f);; gap> IsRegularRClass(R); false gap> NrIdempotents(R); 0 gap> S:=Semigroup(Transformation( [ 2, 1, 3, 1 ] ), > Transformation( [ 3, 1, 2, 1 ] ), Transformation( [ 4, 2, 3, 3 ] ));; gap> f:=Transformation( [ 4, 2, 3, 3 ] );; gap> L:=GreensLClassOfElement(S, f);; gap> IsRegularLClass(L); false gap> R:=GreensRClassOfElement(S, f);; gap> IsRegularRClass(R); false gap> g:=Transformation( [ 4, 4, 4, 4 ] );; gap> IsRegularTransformation(S, g); true gap> IsRegularLClass(LClass(S, g)); true gap> IsRegularLClass(RClass(S, g)); false gap> IsRegularRClass(RClass(S, g)); true gap> IsRegularDClass(DClass(S, g)); true gap> DClass(S, g)=RClass(S, g); true
‣ NrRegularDClasses( S ) | ( attribute ) |
Returns: A positive integer.
NrRegularDClasses returns the number of regular \(\mathcal{D}\)-classes of the semigroup of transformations or partial permutations S. See also IsRegularDClass (4.4-6) and IsRegularDClass (Reference: IsRegularDClass).
gap> S:=Semigroup( [ Transformation( [ 1, 3, 4, 1, 3, 5 ] ), > Transformation( [ 5, 1, 6, 1, 6, 3 ] ) ]);; gap> NrRegularDClasses(S); 3 gap> NrDClasses(S); 7
‣ NrDClasses( obj ) | ( attribute ) |
‣ NrHClasses( obj ) | ( attribute ) |
‣ NrLClasses( obj ) | ( attribute ) |
‣ NrRClasses( obj ) | ( attribute ) |
Returns: A positive integer.
NrXClasses returns the number of Green's classes in obj where obj can be a semigroup of transformations or partial permutations, \(\mathcal{D}\)-, \(\mathcal{L}\)-, or \(\mathcal{R}\)-class of a semigroup of transformations or partial permutations (where appropriate). If the actual Green's classes are not required, then it is more efficient to use
NrHClasses(obj)
than
Length(HClasses(obj))
since the Green's classes themselves are not created when NrXClasses is called.
See also GreensRClasses (4.3-1), GreensRClasses (Reference: GreensRClasses), IteratorOfRClasses (4.3-3), and IteratorOfRClassReps (4.3-2).
gap> gens:=[ Transformation( [ 1, 2, 5, 4, 3, 8, 7, 6 ] ), > Transformation( [ 1, 6, 3, 4, 7, 2, 5, 8 ] ), > Transformation( [ 2, 1, 6, 7, 8, 3, 4, 5 ] ), > Transformation( [ 3, 2, 3, 6, 1, 6, 1, 2 ] ), > Transformation( [ 5, 2, 3, 6, 3, 4, 7, 4 ] ) ];; gap> S:=Semigroup(gens);; gap> f:=Transformation( [ 2, 5, 4, 7, 4, 3, 6, 3 ] );; gap> R:=RClass(S, f); {Transformation( [ 5, 2, 3, 6, 3, 4, 7, 4 ] )} gap> NrHClasses(R); 12 gap> D:=DClass(R); {Transformation( [ 5, 2, 3, 6, 3, 4, 7, 4 ] )} gap> NrHClasses(D); 72 gap> L:=LClass(S, f); {Transformation( [ 5, 2, 3, 6, 3, 4, 7, 4 ] )} gap> NrHClasses(L); 6 gap> NrHClasses(S); 1555 gap> gens:=[ Transformation( [ 4, 6, 5, 2, 1, 3 ] ), > Transformation( [ 6, 3, 2, 5, 4, 1 ] ), > Transformation( [ 1, 2, 4, 3, 5, 6 ] ), > Transformation( [ 3, 5, 6, 1, 2, 3 ] ), > Transformation( [ 5, 3, 6, 6, 6, 2 ] ), > Transformation( [ 2, 3, 2, 6, 4, 6 ] ), > Transformation( [ 2, 1, 2, 2, 2, 4 ] ), > Transformation( [ 4, 4, 1, 2, 1, 2 ] ) ];; gap> S:=Semigroup(gens);; gap> NrRClasses(S); 150 gap> Size(S); 6342 gap> f:=Transformation( [ 1, 3, 3, 1, 3, 5 ] );; gap> D:=DClass(S, f); {Transformation( [ 2, 1, 1, 2, 1, 4 ] )} gap> NrRClasses(D); 87 gap> s:=SymmetricInverseSemigp(10);; gap> NrDClasses(s); NrRClasses(s); NrHClasses(s); NrLClasses(s); 11 1024 184756 1024 gap> s:=POPI(10);; gap> NrDClasses(s); 11 gap> NrRClasses(s); 1024
‣ PartialOrderOfDClasses( S ) | ( attribute ) |
Returns: The partial order of the \(\mathcal{D}\)-classes of S.
Returns a list l where j is in l[i] if and only if GreensDClasses(S)[j] is immediately less than GreensDClasses(S)[i] in the partial order of \(\mathcal{D}\)- classes of S. The transitive closure of the relation {(j,i): j∈ l[i]} is the partial order of \(\mathcal{D}\)-classes of S.
The partial order on the \(\mathcal{D}\)-classes is defined by x≤ y if and only if S^1xS^1 is a subset of S^1yS^1.
See also GreensDClasses (4.3-1), GreensDClasses (Reference: GreensDClasses), IsGreensLessThanOrEqual (Reference: IsGreensLessThanOrEqual), and \< (4.4-1).
gap> S:=Semigroup( Transformation( [ 2, 4, 1, 2 ] ), > Transformation( [ 3, 3, 4, 1 ] ) );; gap> PartialOrderOfDClasses(S); [ [ 3 ], [ 2, 3 ], [ 3, 4 ], [ 4 ] ] gap> IsGreensLessThanOrEqual(GreensDClasses(S)[1], GreensDClasses(S)[2]); false gap> IsGreensLessThanOrEqual(GreensDClasses(S)[2], GreensDClasses(S)[1]); false gap> IsGreensLessThanOrEqual(GreensDClasses(S)[3], GreensDClasses(S)[1]); true gap> S:=InverseSemigroup( PartialPermNC( [ 1, 2, 3 ], [ 1, 3, 4 ] ), > PartialPermNC( [ 1, 3, 5 ], [ 5, 1, 3 ] ) );; gap> Size(S); 58 gap> PartialOrderOfDClasses(S); [ [ 1, 3 ], [ 2, 3 ], [ 3, 4 ], [ 4, 5 ], [ 5 ] ] gap> IsGreensLessThanOrEqual(GreensDClasses(S)[1], GreensDClasses(S)[2]); false gap> IsGreensLessThanOrEqual(GreensDClasses(S)[5], GreensDClasses(S)[2]); true gap> IsGreensLessThanOrEqual(GreensDClasses(S)[3], GreensDClasses(S)[4]); false gap> IsGreensLessThanOrEqual(GreensDClasses(S)[4], GreensDClasses(S)[3]); true
‣ SchutzenbergerGroup( class ) | ( attribute ) |
Returns: A permutation group.
SchutzenbergerGroup returns the generalized Schutzenberger group (defined below) of the \(\mathcal{R}\)-, \(\mathcal{D}\)-, \(\mathcal{L}\)-, or \(\mathcal{H}\)-class class of a semigroup of transformations or partial permutations.
If f is an element of a semigroup of transformations or partial permutations and im(f) denotes the image of f, then the generalized Schutzenberger group of im(f) is the permutation group
\{\:g|_{\textrm{im}(f)}\::\:\textrm{im}(f*g)=\textrm{im}(f)\:\}.
The generalized Schutzenberger group of the kernel ker(f) of a transformation f or the domain dom(f) of a partial permutation f is defined analogously.
The generalized Schutzenberger group of a Green's class is then defined as follows.
The generalized Schutzenberger group of the image or range of the representative of the \(\mathcal{R}\)-class.
The generalized Schutzenberger group of the kernel or domain of the representative of the \(\mathcal{L}\)-class.
The intersection of the generalized Schutzenberger groups of the \(\mathcal{R}\)- and \(\mathcal{L}\)-class containing the \(\mathcal{H}\)-class.
The intersection of the generalized Schutzenberger groups of the \(\mathcal{R}\)- and \(\mathcal{L}\)-class containing the representative of the \(\mathcal{D}\)-class.
gap> S:=Semigroup( Transformation( [ 4, 4, 3, 5, 3 ] ), > Transformation( [ 5, 1, 1, 4, 1 ] ), > Transformation( [ 5, 5, 4, 4, 5 ] ) );; gap> f:=Transformation( [ 5, 5, 4, 4, 5 ] );; gap> SchutzenbergerGroup(RClass(S, f)); Group([ (4,5) ]) gap> S:=InverseSemigroup( > [ PartialPermNC([ 1, 2, 3, 7 ], [ 9, 2, 4, 8 ]), > PartialPermNC([ 1, 2, 6, 7, 8, 9, 10 ], [ 6, 8, 4, 5, 9, 1, 3 ]), > PartialPermNC([ 1, 2, 3, 5, 6, 7, 8, 9 ], [ 7, 4, 1, 6, 9, 5, 2, 3 ]) ] );; gap> List(DClasses(S), SchutzenbergerGroup); [ Group(()), Group(()), Group(()), Group(()), Group([ (1,9,8), (8,9) ]), Group([ (4,9) ]), Group(()), Group(()), Group(()), Group(()), Group(()), Group(()), Group(()), Group(()), Group(()), Group(()), Group([ (2,5)(3,7) ]), Group([ (1,7,5,6,9,3) ]), Group(()), Group(()), Group(()), Group(()), Group(()) ]
In this section we describe the attributes Reference: Attributes of arbitrary semigroups of transformations or partial permutations that can be found using Citrus.
In addition to those functions described in this section, the operation Degree (2.4-6) is also relevant for transformation semigroups; and the following operations are also relevant to semigroups of partial permutations: MovedPoints (2.5-6), NrMovedPoints (2.5-7), LargestMovedPoint (2.5-8), SmallestMovedPoint (2.5-9), Degree (2.5-12).
‣ DomainOfPartialPermSemigroup( S ) | ( operation ) |
‣ Points( S ) | ( operation ) |
‣ Points( C ) | ( operation ) |
Returns: a set of positive integers.
Points returns the points acted on by the semigroup of partial permutations S or the partial permutation collection C, respectively. See also MovedPoints (2.5-6).
DomainOfPartialPermSemigroup is a synonym of Points.
gap> S:=InverseSemigroup( PartialPermNC( [ 1, 2, 3 ], [ 1, 3, 2 ] ), > PartialPermNC( [ 1, 2, 3 ], [ 1, 2, 20 ] ) );; gap> MovedPoints(S); [ 2, 3, 20 ] gap> Points(S); [ 1, 2, 3, 20 ]
‣ GeneratorsOfInverseSemigroup( S ) | ( attribute ) |
Returns: a list of partial permutations.
If S is an inverse semigroup of partial permutations, then GeneratorsOfInverseSemigroup returns the list of partial permutations used to define S, that is, an inverse semigroup generating set for S. Note that S is then the semigroup generated by the partial permutations in GeneratorsOfInverseSemigroup(S) and their inverses.
If S is an inverse monoid, then GeneratorsOfInverseSemigroup returns the list of partial permutations used to define S (as described above) and the identity of S; see One (2.2-3).
See also InverseSemigroup (3.1-1) and Generators (4.5-4).
gap> S:=InverseMonoid( > PartialPermNC( [ 1, 2 ], [ 1, 4 ] ), > PartialPermNC( [ 1, 2, 4 ], [ 3, 4, 1 ] ) );; gap> GeneratorsOfSemigroup(S); [ <identity on [ 1 .. 4 ]>, [ 1, 2 ] -> [ 1, 4 ], [ 1, 2, 4 ] -> [ 3, 4, 1 ], [ 1, 4 ] -> [ 1, 2 ], [ 1, 3, 4 ] -> [ 4, 1, 2 ] ] gap> GeneratorsOfInverseSemigroup(S); [ <identity on [ 1 .. 4 ]>, [ 1, 2 ] -> [ 1, 4 ], [ 1, 2, 4 ] -> [ 3, 4, 1 ] ] gap> GeneratorsOfMonoid(S); [ [ 1, 2 ] -> [ 1, 4 ], [ 1, 2, 4 ] -> [ 3, 4, 1 ], [ 1, 4 ] -> [ 1, 2 ], [ 1, 3, 4 ] -> [ 4, 1, 2 ] ]
‣ GeneratorsOfInverseMonoid( S ) | ( attribute ) |
Returns: a list of partial permutations.
If S is an inverse monoid of partial permutations, then GeneratorsOfInverseMonoid returns the list of partial permutations used to define S, that is, an inverse monoid generating set for S. Note that S is then the semigroup generated by the partial permutations in GeneratorsOfInverseSemigroup(S), their inverses, and the identity of S; see One (2.2-3). See also InverseMonoid (3.1-1) and Generators (4.5-4).
gap> S:=InverseMonoid( > PartialPermNC( [ 1, 2 ], [ 1, 4 ] ), > PartialPermNC( [ 1, 2, 4 ], [ 3, 4, 1 ] ) );; gap> GeneratorsOfInverseMonoid(S); [ [ 1, 2 ] -> [ 1, 4 ], [ 1, 2, 4 ] -> [ 3, 4, 1 ] ]
‣ Generators( S ) | ( function ) |
Returns: A list of transformations or partial permutations.
Generators returns the generating set used to define the semigroup S of transformations or partial permutations. The generators of a monoid or inverse semigroup S can be defined in several ways, for example, including or excluding the identity element, including or not the inverses of the generators. Generators(S) uses the definition that returns the least number of generators. Nothing new is computed when Generators is called and this function should not be confused with SmallGeneratingSet (4.5-16).
Generators(S) is a synonym for GeneratorsOfSemigroup (Reference: GeneratorsOfSemigroup).
Generators(S) is a synonym for GeneratorsOfMonoid (Reference: GeneratorsOfMonoid).
Generators(S) is a synonym for GeneratorsOfInverseSemigroup (4.5-2).
Generators(S) is a synonym for GeneratorsOfInverseMonoid (4.5-3).
gap> M:=Monoid(Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), > Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) );; gap> GeneratorsOfSemigroup(M); [ Transformation( [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] ), Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) ] gap> GeneratorsOfMonoid(M); [ Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) ] gap> Generators(M); [ Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) ] gap> S:=Semigroup(Generators(M));; gap> Generators(S); [ Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) ] gap> GeneratorsOfSemigroup(S); [ Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) ]
‣ GroupOfUnits( S ) | ( attribute ) |
Returns: The group of units of a semigroup.
GroupOfUnits returns the group of units of the semigroup of transformations or partial permutations S as a subsemigroup of S if it exists and returns fail if it does not. Use IsomorphismPermGroup (4.7-3) if you require a permutation representation of the group of units.
If a semigroup S has an identity e, then the group of units of S is the set of those s in S such that there exists t in S where s*t=t*s=e. Equivalently, the group of units is the \(\mathcal{H}\)-class of the identity of S.
See also GreensHClassOfElement (Reference: GreensHClassOfElement), IsMonoidAsSemigroup (4.6-15), and MultiplicativeNeutralElement (Reference: MultiplicativeNeutralElement).
gap> S:=Semigroup(Transformation( [ 1, 2, 5, 4, 3, 8, 7, 6 ] ), > Transformation( [ 1, 6, 3, 4, 7, 2, 5, 8 ] ), > Transformation( [ 2, 1, 6, 7, 8, 3, 4, 5 ] ), > Transformation( [ 3, 2, 3, 6, 1, 6, 1, 2 ] ), > Transformation( [ 5, 2, 3, 6, 3, 4, 7, 4 ] ) );; gap> Size(S); 5304 gap> StructureDescription(GroupOfUnits(S)); "C2 x S4" gap> S:=InverseSemigroup( PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], > [ 2, 4, 5, 3, 6, 7, 10, 9, 8, 1 ] ), > PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8, 10 ], > [ 8, 2, 3, 1, 4, 5, 10, 6, 9 ] ) );; gap> StructureDescription(GroupOfUnits(S)); "C8" gap> S:=InverseSemigroup( PartialPermNC( [ 1, 3, 4 ], [ 4, 3, 5 ] ), > PartialPermNC( [ 1, 2, 3, 5 ], [ 3, 1, 5, 2 ] ) );; gap> GroupOfUnits(S); fail
‣ Idempotents( obj[, n] ) | ( attribute ) |
Returns: A list of idempotents.
obj should be a semigroup of transformations or partial permutations, \(\mathcal{D}\)-class, \(\mathcal{H}\)-class, \(\mathcal{L}\)-class, or \(\mathcal{R}\)-class.
If the optional second argument n is present and obj is a semigroup of transformations or partial permutations, then a list of the idempotents in obj of rank n is returned. If you are only interested in the idempotents of a given rank, then the second version of the function will probably be faster. However, if the optional second argument is present, then nothing is stored in obj and so every time the function is called the computation must be repeated.
This functions produce essentially the same output as the GAP library function with the same name; see Idempotents (Reference: Idempotents). The main difference is that this function can be applied to a wider class of objects as described above.
See also IsRegularDClass (Reference: IsRegularDClass), IsRegularDClass (4.4-6) IsGroupHClass (Reference: IsGroupHClass), NrIdempotents (4.5-7), and GroupHClass (4.2-4).
gap> S:=Semigroup([ Transformation( [ 2, 3, 4, 1 ] ), > Transformation( [ 3, 3, 1, 1 ] ) ]);; gap> Idempotents(S, 1); [ ] gap> Idempotents(S, 2); [ Transformation( [ 1, 1, 3, 3 ] ), Transformation( [ 2, 2, 4, 4 ] ), Transformation( [ 1, 3, 3, 1 ] ), Transformation( [ 4, 2, 2, 4 ] ) ] gap> Idempotents(S); [ Transformation( [ 1, 1, 3, 3 ] ), Transformation( [ 2, 2, 4, 4 ] ), Transformation( [ 1, 3, 3, 1 ] ), Transformation( [ 4, 2, 2, 4 ] ), Transformation( [ 1, 2, 3, 4 ] ) ] gap> f:=Transformation( [ 2, 2, 4, 4 ] );; gap> R:=GreensRClassOfElement(S, f); {Transformation( [ 3, 3, 1, 1 ] )} gap> Idempotents(R); [ Transformation( [ 1, 1, 3, 3 ] ), Transformation( [ 2, 2, 4, 4 ] ) ] gap> f:=Transformation( [ 4, 2, 2, 4 ] );; gap> L:=GreensLClassOfElement(S, f);; gap> Idempotents(L); [ Transformation( [ 4, 2, 2, 4 ] ), Transformation( [ 2, 2, 4, 4 ] ) ] gap> D:=DClassOfLClass(L); {Transformation( [ 1, 3, 3, 1 ] )} gap> Idempotents(D); [ Transformation( [ 1, 3, 3, 1 ] ), Transformation( [ 1, 1, 3, 3 ] ), Transformation( [ 4, 2, 2, 4 ] ), Transformation( [ 2, 2, 4, 4 ] ) ] gap> L:=GreensLClassOfElement(S, Transformation( [ 3, 1, 1, 3 ] ));; gap> Idempotents(L); [ Transformation( [ 1, 3, 3, 1 ] ), Transformation( [ 1, 1, 3, 3 ] ) ] gap> H:=GroupHClass(D); {Transformation( [ 3, 1, 1, 3 ] )} gap> Idempotents(H); [ Transformation( [ 1, 3, 3, 1 ] ) ] gap> s:=InverseSemigroup( > [ PartialPermNC( [ 1, 2, 3, 4, 5, 7 ], [ 10, 6, 3, 4, 9, 1 ] ), > PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8 ], [ 6, 10, 7, 4, 8, 2, 9, 1 ] ) ]);; gap> Idempotents(s, 1); [ <identity on [ 4 ]> ] gap> Idempotents(s, 0); [ ]
‣ NrIdempotents( obj ) | ( attribute ) |
Returns: A positive integer.
This function returns the number of idempotents in obj where obj can be a semigroup of transformations or partial permutations, \(\mathcal{D}\)-, \(\mathcal{L}\)-, \(\mathcal{H}\)-, or \(\mathcal{R}\)-class of a semigroup of transformations or partial permutations. If the actual idempotents are not required, then it is more efficient to use NrIdempotents(obj) than Length(Idempotents(obj)) since the idempotents themselves are not created when NrIdempotents is called.
See also Idempotents (Reference: Idempotents) and Idempotents (4.5-6), IsRegularDClass (Reference: IsRegularDClass), IsRegularDClass (4.4-6) IsGroupHClass (Reference: IsGroupHClass), and GroupHClass (4.2-4).
gap> S:=Semigroup([ Transformation( [ 2, 3, 4, 1 ] ), > Transformation( [ 3, 3, 1, 1 ] ) ]);; gap> NrIdempotents(S); 5 gap> f:=Transformation( [ 2, 2, 4, 4 ] );; gap> R:=GreensRClassOfElement(S, f);; gap> NrIdempotents(R); 2 gap> f:=Transformation( [ 4, 2, 2, 4 ] );; gap> L:=GreensLClassOfElement(S, f);; gap> NrIdempotents(L); 2 gap> D:=DClassOfLClass(L);; gap> NrIdempotents(D); 4 gap> L:=GreensLClassOfElement(S, Transformation( [ 3, 1, 1, 3 ] ));; gap> NrIdempotents(L); 2 gap> H:=GroupHClass(D);; gap> NrIdempotents(H); 1 gap> s:=InverseSemigroup( > [ PartialPermNC( [ 1, 2, 3, 5, 7, 9, 10 ], [ 6, 7, 2, 9, 1, 5, 3 ] ), > PartialPermNC( [ 1, 2, 3, 5, 6, 7, 9, 10 ], [ 8, 1, 9, 4, 10, 5, 6, 7 ] ) ]);; gap> NrIdempotents(s); 236 gap> f:=PartialPermNC([ 2, 3, 7, 9, 10 ], [ 7, 2, 1, 5, 3 ]);; gap> d:=DClassNC(s, f);; gap> NrIdempotents(d); 13
‣ IdempotentGeneratedSubsemigp( S ) | ( operation ) |
Returns: A semigroup.
IdempotentGeneratedSubsemigp returns the subsemigroup of the semigroup of transformations or partial permutations S generated by the idempotents of S.
See also Idempotents (4.5-6) and SmallGeneratingSet (4.5-16).
gap> file:=Concatenation(CitrusDir(), "/examples/graph8c.citrus.gz");; gap> S:=Semigroup(ReadCitrus(file, 13));; gap> IdempotentGeneratedSubsemigp(S); <monoid with 20 generators> gap> S:=SymmetricInverseSemigp(5); <inverse semigroup with 3 generators> gap> IdempotentGeneratedSubsemigp(S); <inverse semigroup with 6 generators>
‣ IrredundantGeneratingSubset( coll ) | ( operation ) |
Returns: A list of transformations or partial permutations.
If coll is a transformation or partial permutation collection, then this function returns a subset U of coll or Generators(coll) such that no element of U is generated by the other elements of U.
See also Generators (4.5-4), IsTransformationCollection (Reference: IsTransformationCollection), and SmallGeneratingSet (4.5-16).
gap> S:=Semigroup( Transformation( [ 5, 1, 4, 6, 2, 3 ] ), > Transformation( [ 1, 2, 3, 4, 5, 6 ] ), > Transformation( [ 4, 6, 3, 4, 2, 5 ] ), > Transformation( [ 5, 4, 6, 3, 1, 3 ] ), > Transformation( [ 2, 2, 6, 5, 4, 3 ] ), > Transformation( [ 3, 5, 5, 1, 2, 4 ] ), > Transformation( [ 6, 5, 1, 3, 3, 4 ] ), > Transformation( [ 1, 3, 4, 3, 2, 1 ] ) );; gap> IrredundantGeneratingSubset(S); [ Transformation( [ 1, 3, 4, 3, 2, 1 ] ), Transformation( [ 2, 2, 6, 5, 4, 3 ] ), Transformation( [ 3, 5, 5, 1, 2, 4 ] ), Transformation( [ 5, 1, 4, 6, 2, 3 ] ), Transformation( [ 5, 4, 6, 3, 1, 3 ] ), Transformation( [ 6, 5, 1, 3, 3, 4 ] ) ] gap> S:=RandomInverseMonoid(1000,10); <inverse monoid with 1000 generators> gap> SmallGeneratingSet(S); [ [ 1 .. 10 ] -> [ 6, 5, 1, 9, 8, 3, 10, 4, 7, 2 ], [ 1 .. 10 ] -> [ 1, 4, 6, 2, 8, 5, 7, 10, 3, 9 ], [ 1, 2, 3, 4, 6, 7, 8, 9 ] -> [ 7, 5, 10, 1, 8, 4, 9, 6 ] [ 1 .. 9 ] -> [ 4, 3, 5, 7, 10, 9, 1, 6, 8 ] ] gap> IrredundantGeneratingSubset(last); [ [ 1 .. 9 ] -> [ 4, 3, 5, 7, 10, 9, 1, 6, 8 ], [ 1 .. 10 ] -> [ 1, 4, 6, 2, 8, 5, 7, 10, 3, 9 ], [ 1 .. 10 ] -> [ 6, 5, 1, 9, 8, 3, 10, 4, 7, 2 ] ]
‣ MinimalIdeal( S ) | ( attribute ) |
Returns: The minimal ideal of a semigroup.
The minimal ideal of a semigroup is the least ideal with respect to containment.
Currently, MinimalIdeal returns a semigroup with as many generators as elements. There are plans to improve this in future versions of Citrus.
Note that MinimalIdeal is significantly faster than finding the \(\mathcal{D}\)-class with minimum rank representative (which is also the minimal ideal). See also PartialOrderOfDClasses (4.4-9) and IsGreensLessThanOrEqual (Reference: IsGreensLessThanOrEqual).
gap> S:=Semigroup( Transformation( [ 3, 4, 1, 3, 6, 3, 4, 6, 10, 1 ] ), > Transformation( [ 8, 2, 3, 8, 4, 1, 3, 4, 9, 7 ] ));; gap> MinimalIdeal(S); <semigroup with 5 generators> gap> Elements(MinimalIdeal(S)); [ Transformation( [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ), Transformation( [ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ] ), Transformation( [ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 ] ), Transformation( [ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ] ), Transformation( [ 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 ] ) ] gap> f:=Transformation( [ 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 ] );; gap> D:=DClass(S, f); {Transformation( [ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ] )} gap> ForAll(GreensDClasses(S), x-> IsGreensLessThanOrEqual(D, x)); true gap> S:=POI(10); <inverse monoid with 10 generators> gap> MinimalIdeal(S); <inverse semigroup with 1 generator>
‣ MultiplicativeZero( S ) | ( attribute ) |
Returns: The zero element of a semigroup.
MultiplicativeZero returns the zero element of the semigroup S of transformations or partial permutations if it has one and fail if it does not. See also MultiplicativeZero (Reference: MultiplicativeZero).
gap> S:=Semigroup( Transformation( [ 1, 4, 2, 6, 6, 5, 2 ] ), > Transformation( [ 1, 6, 3, 6, 2, 1, 6 ] ));; gap> MultiplicativeZero(S); Transformation( [ 1, 1, 1, 1, 1, 1, 1 ] ) gap> S:=Semigroup(Transformation( [ 2, 8, 3, 7, 1, 5, 2, 6 ] ), > Transformation( [ 3, 5, 7, 2, 5, 6, 3, 8 ] ), > Transformation( [ 6, 7, 4, 1, 4, 1, 6, 2 ] ), > Transformation( [ 8, 8, 5, 1, 7, 5, 2, 8 ] ));; gap> MultiplicativeZero(S); fail gap> S:=InverseSemigroup( PartialPermNC( [ 1, 3, 4 ], [ 5, 3, 1 ] ), > PartialPermNC( [ 1, 2, 3, 4 ], [ 4, 3, 1, 2 ] ), > PartialPermNC( [ 1, 3, 4, 5 ], [ 2, 4, 5, 3 ] ) );; gap> MultiplicativeZero(S); <empty mapping>
‣ NaturalPartialOrder( S ) | ( attribute ) |
Returns: The natural partial order on an inverse semigroup.
The natural partial order ≤ on an inverse semigroup S is defined by s≤t if there exists an idempotent e in S such that s=et. Hence if f and g are partial permutations, then f≤g if and only if f is a restriction of g; see RestrictedPartialPerm (2.2-2).
NaturalPartialOrder returns the natural partial order on the inverse semigroup of partial permutations S as a list of sets of positive integers where entry i in NaturalPartialOrder(S) is the set of positions in Elements(S) of elements less than Elements(S)[i]. See also NaturalLeqPartialPerm (2.7-1).
gap> S:=InverseSemigroup([ PartialPermNC( [ 1, 3 ], [ 1, 3 ] ), > PartialPermNC( [ 1, 2 ], [ 3, 2 ] ) ] ); <inverse semigroup with 2 generators> gap> Size(S); 11 gap> NaturalPartialOrder(S); [ [ ], [ 1 ], [ 1 ], [ 1 ], [ 1 ], [ 1 ], [ 1, 2, 4 ], [ 1, 3, 4 ], [ 1, 2, 6 ], [ 1, 4, 5 ], [ 1, 4, 6 ] ] gap> NaturalLeqPartialPerm(Elements(S)[4], Elements(S)[10]); true gap> NaturalLeqPartialPerm(Elements(S)[4], Elements(S)[9]); false
‣ NrElementsOfRank( S, n ) | ( attribute ) |
Returns: the number of elements of a given rank.
NrElementsOfRank returns the number of elements of the semigroup S of partial permutations or transformations with rank n; see Rank (2.4-7), RankOfPartialPerm (2.5-11) and RankOfTransformation (Reference: RankOfTransformation).
gap> S:=Semigroup( Transformation( [ 1, 3, 4, 1, 3 ] ), > Transformation( [ 2, 4, 1, 5, 5 ] ), > Transformation( [ 2, 5, 3, 5, 3 ] ), > Transformation( [ 4, 1, 2, 2, 1 ] ), > Transformation( [ 5, 5, 1, 1, 3 ] ) );; gap> NrElementsOfRank(S, 10); 0 gap> Size(S); 602 gap> List([1..5], x-> NrElementsOfRank(S, x)); [ 5, 260, 336, 1, 0 ] gap> Sum(last); 602 gap> T:=FullTransformationSemigroup(5);; gap> List([1..5], x-> NrElementsOfRank(T, x)); [ 5, 300, 1500, 1200, 120 ] gap> Sum(last); 3125 gap> S:=SymmetricInverseSemigp(5);; gap> NrElementsOfRank(S, 4); 600 gap> Binomial(5,4)^2*Factorial(4); 600
‣ PrimitiveIdempotents( S ) | ( attribute ) |
Returns: A list of idempotent partial permutations.
An idempotent in an inverse semigroup S is primitive if it is non-zero and minimal with respect to the NaturalPartialOrder (4.5-12) on S. PrimitiveIdempotents returns the list of primitive idempotents in the inverse semigroup of partial permutations S.
gap> S:= InverseMonoid( > PartialPermNC( [ 1 ], [ 4 ] ), > PartialPermNC( [ 1, 2, 3 ], [ 2, 1, 3 ] ), > PartialPermNC( [ 1, 2, 3 ], [ 3, 1, 2 ] ) );; gap> MultiplicativeZero(S); <empty mapping> gap> PrimitiveIdempotents(S); [ <identity on [ 4 ]>, <identity on [ 1 ]>, <identity on [ 2 ]>, <identity on [ 3 ]> ]
‣ Random( S ) | ( method ) |
Returns: A transformation or a partial permutation.
This function returns a random element of the semigroup of transformations or partial permutations S. If the \(\mathcal{R}\)-class structure of S has not been calculated, then a short product (at most 2*Length(GeneratorsOfSemigroup(S))) of generators is returned. If the \(\mathcal{R}\)-class structure of S is known, then a random element of a randomly chosen \(\mathcal{R}\)-class is returned.
‣ SmallGeneratingSet( S ) | ( attribute ) |
Returns: A small generating set for a semigroup.
SmallGeneratingSet returns a relatively small generating subset of the set of generators of the semigroup S of transformations or partial permutations; see Generators (4.5-4). If the number of generators for S is already relatively small, then this function will often return the original generating set.
As neither irredundancy, nor minimal length are proven, SmallGeneratingSet usually returns an answer much faster than IrredundantGeneratingSubset (4.5-9). It can be used whenever a small generating set is desired which does not necessarily needs to be optimal. SmallGeneratingSet works particularly well for inverse semigroups of partial permutations.
Note that SmallGeneratingSet may return different results in different GAP sessions.
gap> S:=Semigroup( Transformation( [ 1, 2, 3, 2, 4 ] ), > Transformation( [ 1, 5, 4, 3, 2 ] ), > Transformation( [ 2, 1, 4, 2, 2 ] ), Transformation( [ 2, 4, 4, 2, 1 ] ), > Transformation( [ 3, 1, 4, 3, 2 ] ), Transformation( [ 3, 2, 3, 4, 1 ] ), > Transformation( [ 4, 4, 3, 3, 5 ] ), Transformation( [ 5, 1, 5, 5, 3 ] ), > Transformation( [ 5, 4, 3, 5, 2 ] ), Transformation( [ 5, 5, 4, 5, 5 ] ) );; gap> SmallGeneratingSet(S); [ Transformation( [ 1, 5, 4, 3, 2 ] ), Transformation( [ 3, 2, 3, 4, 1 ] ), Transformation( [ 5, 4, 3, 5, 2 ] ), Transformation( [ 1, 2, 3, 2, 4 ] ), Transformation( [ 4, 4, 3, 3, 5 ] ) ] gap> S:=RandomInverseMonoid(10000,10);; gap> SmallGeneratingSet(S); [ [ 1 .. 10 ] -> [ 3, 2, 4, 5, 6, 1, 7, 10, 9, 8 ], [ 1 .. 10 ] -> [ 5, 10, 8, 9, 3, 2, 4, 7, 6, 1 ], [ 1, 3, 4, 5, 6, 7, 8, 9, 10 ] -> [ 1, 6, 4, 8, 2, 10, 7, 3, 9 ] ]
‣ GradedImagesOfTransSemigroup( S ) | ( attribute ) |
‣ GradedKernelsOfTransSemigroup( S ) | ( attribute ) |
Returns: A list of images or kernels.
GradedImagesOfTransSemigroup returns a list where the ith entry is a list of all the images of transformations in the transformation semigroup S with size i.
GradedKernelsOfTransSemigroup returns a list where the ith entry is a list of the values of CanonicalTransSameKernel (2.4-1) for all transformations in S with rank i.
See also ImagesOfTransSemigroup (4.5-18) and KernelsOfTransSemigroup (4.5-18).
gap> S:=Semigroup(Transformation( [ 1, 5, 1, 1, 1 ] ), > Transformation( [ 4, 4, 5, 2, 2 ] ));; gap> GradedImagesOfTransSemigroup(S); [ [ [ 1 ], [ 4 ], [ 2 ], [ 5 ] ], [ [ 1, 5 ], [ 2, 4 ] ], [ [ 2, 4, 5 ] ], [ ], [ ] ] gap> GradedKernelsOfTransSemigroup(S); [ [ [ 1, 1, 1, 1, 1 ] ], [ [ 1, 2, 1, 1, 1 ], [ 1, 1, 1, 2, 2 ] ], [ [ 1, 1, 2, 3, 3 ] ], [ ], [ ] ]
‣ ImagesOfTransSemigroup( S[, n] ) | ( attribute ) |
‣ KernelsOfTransSemigroup( S[, n] ) | ( attribute ) |
Returns: An orbit.
The argument S should be a transformation semigroup and the optional second argument n should be a positive integer not greater than the degree of S. ImagesOfTransSemigroup returns the Orb (orb: orb) object:
Orb(S, [1..Degree(S)], OnSets);
which contains the image sets of all the transformations belonging to S.
KernelsOfTransSemigroup returns the Orb (orb: orb) object:
Orb(S, [1,..Degree(S)], OnKernelsAntiAction);
If the optional second argument n (a positive integer) is present, then only the images or kernels of size at least n are found.
Note that the image/kernel [1..Degree(S)] always occurs in both orbits even if there is no element of S with image/kernel equal to [1..Degree(S)].
See also GradedImagesOfTransSemigroup (4.5-17), GradedKernelsOfTransSemigroup (4.5-17), OnKernelsAntiAction (2.9-1), and CanonicalTransSameKernel (2.4-1)
gap> S:=Semigroup( Transformation( [ 6, 4, 4, 4, 6, 1 ] ), > Transformation( [ 6, 5, 1, 6, 2, 2 ] ) );; gap> o:=ImagesOfTransSemigroup(S, 6); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree with grading> <closed orbit, 1 points with Schreier tree with grading> [ [ 1 .. 6 ] ] gap> o:=ImagesOfTransSemigroup(S, 5); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree with grading> <closed orbit, 1 points with Schreier tree with grading> [ [ 1 .. 6 ] ] gap> o:=ImagesOfTransSemigroup(S, 4); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree with grading> <closed orbit, 2 points with Schreier tree with grading> [ [ 1 .. 6 ], [ 1, 2, 5, 6 ] ] gap> o:=ImagesOfTransSemigroup(S, 3); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree with grading> <closed orbit, 4 points with Schreier tree with grading> [ [ 1 .. 6 ], [ 1, 4, 6 ], [ 1, 2, 5, 6 ], [ 2, 5, 6 ] ] gap> o:=ImagesOfTransSemigroup(S, 2); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree with grading> <closed orbit, 8 points with Schreier tree with grading> [ [ 1 .. 6 ], [ 1, 4, 6 ], [ 1, 2, 5, 6 ], [ 2, 6 ], [ 2, 5, 6 ], [ 1, 4 ], [ 2, 5 ], [ 4, 6 ] ] gap> o:=ImagesOfTransSemigroup(S, 1); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree with grading> <closed orbit, 13 points with Schreier tree with grading> [ [ 1 .. 6 ], [ 1, 4, 6 ], [ 1, 2, 5, 6 ], [ 2, 6 ], [ 2, 5, 6 ], [ 1, 4 ], [ 2, 5 ], [ 4, 6 ], [ 6 ], [ 1 ], [ 2 ], [ 4 ], [ 5 ] ] gap> o:=ImagesOfTransSemigroup(S); Enumerate(o); AsList(o); <open orbit, 1 points with Schreier tree> <closed orbit, 13 points with Schreier tree> [ [ 1 .. 6 ], [ 1, 4, 6 ], [ 1, 2, 5, 6 ], [ 2, 6 ], [ 2, 5, 6 ], [ 1, 4 ], [ 2, 5 ], [ 4, 6 ], [ 6 ], [ 1 ], [ 2 ], [ 4 ], [ 5 ] ]
In this section we describe several properties Reference: Properties of an arbitrary semigroup of transformations or partial permutations that can be determined using Citrus.
‣ IsBand( S ) | ( property ) |
Returns: true or false.
IsBand returns true if every element of the semigroup of transformations or partial permutations S is an idempotent and false if it is not. An inverse semigroup is band if and only if it is a semilattice; see IsSemilatticeAsSemigroup (4.6-22).
gap> gens:=[ Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 1 ] ), > Transformation( [ 2, 2, 2, 5, 5, 5, 8, 8, 8, 2 ] ), > Transformation( [ 3, 3, 3, 6, 6, 6, 9, 9, 9, 3 ] ), > Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 4 ] ), > Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 7 ] ) ];; gap> S:=Semigroup(gens);; gap> IsBand(S); true gap> S:=InverseSemigroup( > PartialPermNC( [ 1, 2, 3, 4, 8, 9 ], [ 5, 8, 7, 6, 9, 1 ] ), > PartialPermNC( [ 1, 3, 4, 7, 8, 9, 10 ], [ 2, 3, 8, 7, 10, 6, 1 ] ) );; gap> IsBand(S); false gap> IsBand(IdempotentGeneratedSubsemigp(S)); true
‣ IsBlockGroup( S ) | ( property ) |
‣ IsSemigroupWithCommutingIdempotents( S ) | ( property ) |
Returns: true or false.
IsBlockGroup and IsSemigroupWithCommutingIdempotents return true if the semigroup S of transformations or partial permutations is a block group and false if it is not.
A semigroup S is a block group if every \(\mathcal{L}\)-class and every \(\mathcal{R}\)-class of S contains at most one idempotent. Every semigroup of partial permutations is a block group.
gap> S:=Semigroup(Transformation( [ 5, 6, 7, 3, 1, 4, 2, 8 ] ), > Transformation( [ 3, 6, 8, 5, 7, 4, 2, 8 ] ));; gap> IsBlockGroup(S); true gap> S:=Semigroup(Transformation( [ 2, 1, 10, 4, 5, 9, 7, 4, 8, 4 ] ), > Transformation( [ 10, 7, 5, 6, 1, 3, 9, 7, 10, 2 ] ));; gap> IsBlockGroup(S); false
‣ IsBrandtSemigroup( S ) | ( property ) |
Returns: true or false.
IsBrandtSemigroup return true if the semigroup of transformations or partial permutations is a 0-simple inverse semigroup, and false if it is not. See also IsZeroSimpleSemigroup (4.6-28) and IsInverseSemigroup (4.6-10).
gap> S:=Semigroup(Transformation( [ 2, 8, 8, 8, 8, 8, 8, 8 ] ), > Transformation( [ 5, 8, 8, 8, 8, 8, 8, 8 ] ), > Transformation( [ 8, 3, 8, 8, 8, 8, 8, 8 ] ), > Transformation( [ 8, 6, 8, 8, 8, 8, 8, 8 ] ), > Transformation( [ 8, 8, 1, 8, 8, 8, 8, 8 ] ), > Transformation( [ 8, 8, 8, 1, 8, 8, 8, 8 ] ), > Transformation( [ 8, 8, 8, 8, 4, 8, 8, 8 ] ), > Transformation( [ 8, 8, 8, 8, 8, 7, 8, 8 ] ), > Transformation( [ 8, 8, 8, 8, 8, 8, 2, 8 ] ));; gap> IsBrandtSemigroup(S); true gap> T:=Range(IsomorphismPartialPermSemigroup(S));; gap> IsBrandtSemigroup(T); true
‣ IsCliffordSemigroup( S ) | ( property ) |
Returns: true or false.
IsCliffordSemigroup returns true if the semigroup of transformations or partial permutations S is regular and its idempotents are central, and false if it is not.
gap> S:=Semigroup( Transformation( [ 1, 2, 4, 5, 6, 3, 7, 8 ] ), > Transformation( [ 3, 3, 4, 5, 6, 2, 7, 8 ] ), > Transformation( [ 1, 2, 5, 3, 6, 8, 4, 4 ] ) );; gap> IsCliffordSemigroup(S); true gap> T:=Range(IsomorphismPartialPermSemigroup(S));; gap> IsCliffordSemigroup(S); true
‣ IsCommutativeSemigroup( S ) | ( property ) |
Returns: true or false.
IsCommutativeSemigroup returns true if the semigroup of transformations or partial permutations S is commutative and false if it is not. The function IsCommutative (Reference: IsCommutative) can also be used to test if a semigroup is commutative.
A semigroup S is commutative if x*y=y*x for all x,y in S.
gap> gens:=[ Transformation( [ 2, 4, 5, 3, 7, 8, 6, 9, 1 ] ), > Transformation( [ 3, 5, 6, 7, 8, 1, 9, 2, 4 ] ) ];; gap> S:=Semigroup(gens);; gap> IsCommutativeSemigroup(S); true gap> IsCommutative(S); true gap> S:=InverseSemigroup( > PartialPermNC( [ 1, 2, 3, 4, 5, 6 ], [ 2, 5, 1, 3, 9, 6 ] ), > PartialPermNC( [ 1, 2, 3, 4, 6, 8 ], [ 8, 5, 7, 6, 2, 1 ] ) );; gap> IsCommutativeSemigroup(S); false
‣ IsCompletelyRegularSemigroup( S ) | ( property ) |
Returns: true or false.
IsCompletelyRegularSemigroup returns true if every element of the semigroup of transformations or partial permutations S is contained in a subgroup of S.
An inverse semigroup is completely regular if and only if it is a Clifford semigroup; see IsCliffordSemigroup (4.6-4).
gap> gens:=[ Transformation( [ 1, 2, 4, 3, 6, 5, 4 ] ), > Transformation( [ 1, 2, 5, 6, 3, 4, 5 ] ), > Transformation( [ 2, 1, 2, 2, 2, 2, 2 ] ) ];; gap> S:=Semigroup(gens);; gap> IsCompletelyRegularSemigroup(S); true gap> IsInverseSemigroup(S); true gap> T:=Range(IsomorphismPartialPermSemigroup(S));; gap> IsCompletelyRegularSemigroup(T); true gap> IsCliffordSemigroup(T); true
‣ IsFactorisableSemigroup( S ) | ( property ) |
Returns: true or false.
An inverse monoid is factorisable if every element is the product of an element of the group of units and an idempotent; see also GroupOfUnits (4.5-5) and Idempotents (4.5-6). Hence an inverse semigroup of partial permutations is factorisable if and only if each of its generators is the restriction of some element in the group of units.
gap> S:=InverseSemigroup( PartialPermNC( [ 1, 2, 4 ], [ 3, 1, 4 ] ), > PartialPermNC( [ 1, 2, 3, 5 ], [ 4, 1, 5, 2 ] ) );; gap> IsFactorisableSemigroup(S); false gap> IsFactorisableSemigroup(SymmetricInverseSemigp(5)); true
‣ IsGroupAsSemigroup( S ) | ( property ) |
Returns: true or false.
If the semigroup of transformations or partial permutations S is actually a group, then IsGroupAsSemigroup returns true. If it is not a group, then false is returned.
gap> gens:=[ Transformation( [ 2, 4, 5, 3, 7, 8, 6, 9, 1 ] ), > Transformation( [ 3, 5, 6, 7, 8, 1, 9, 2, 4 ] ) ];; gap> S:=Semigroup(gens);; gap> IsGroupAsSemigroup(S); true gap> G:=SymmetricGroup(5);; gap> S:=Range(IsomorphismPartialPermSemigroup(G)); <inverse semigroup with 2 generators> gap> IsGroupAsSemigroup(S); true
‣ IsIdempotentGenerated( S ) | ( property ) |
‣ IsSemiBand( S ) | ( property ) |
Returns: true or false.
IsIdempotentGenerated and IsSemiBand return true if the semigroup of transformations or partial permutations S is generated by its idempotents and false if it is not. See also Idempotents (4.5-6) and IdempotentGeneratedSubsemigp (4.5-8).
An inverse semigroup is idempotent-generated if and only if it is a semilattice; see IsSemilatticeAsSemigroup (4.6-22).
Semiband and idempotent-generated are synonymous in this context.
gap> S:=SingularSemigroup(4); <semigroup with 12 generators> gap> IsIdempotentGenerated(S); true
‣ IsInverseSemigroup( S ) | ( property ) |
‣ IsInverseMonoid( S ) | ( property ) |
Returns: true or false.
If S is a semigroup of transformations or partial permutations, then IsInverseSemigroup returns true if S is an inverse semigroup and false if it is not. If S is monoid of transformations or partial permutations, then IsInverseMonoid returns true if S is an inverse monoid and false if it is not.
A semigroup is an inverse semigroup if every element x has a unique semigroup inverse, that is, a unique element y such that x*y*x=x and y*x*y=y.
gap> gens:=[Transformation([1,2,4,5,6,3,7,8]), > Transformation([3,3,4,5,6,2,7,8]), > Transformation([1,2,5,3,6,8,4,4])];; gap> S:=Semigroup(gens);; gap> IsInverseSemigroup(S); true
‣ IsLeftSimple( S ) | ( property ) |
‣ IsRightSimple( S ) | ( property ) |
Returns: true or false.
IsLeftSimple and IsRightSimple returns true if the semigroup of transformations or partial permutations S has only one \(\mathcal{L}\)-class or one \(\mathcal{R}\)-class, respectively, and returns false if it has more than one.
An inverse semigroup is left simple if and only if it is right simple if and only if it is a group; see IsGroupAsSemigroup (4.6-8).
gap> S:=Semigroup( Transformation( [ 6, 7, 9, 6, 8, 9, 8, 7, 6 ] ), > Transformation( [ 6, 8, 9, 6, 8, 8, 7, 9, 6 ] ), > Transformation( [ 6, 8, 9, 7, 8, 8, 7, 9, 6 ] ), > Transformation( [ 6, 9, 8, 6, 7, 9, 7, 8, 6 ] ), > Transformation( [ 6, 9, 9, 6, 8, 8, 7, 9, 6 ] ), > Transformation( [ 6, 9, 9, 7, 8, 8, 6, 9, 7 ] ), > Transformation( [ 7, 8, 8, 7, 9, 9, 7, 8, 6 ] ), > Transformation( [ 7, 9, 9, 7, 6, 9, 6, 8, 7 ] ), > Transformation( [ 8, 7, 6, 9, 8, 6, 8, 7, 9 ] ), > Transformation( [ 9, 6, 6, 7, 8, 8, 7, 6, 9 ] ), > Transformation( [ 9, 6, 6, 7, 9, 6, 9, 8, 7 ] ), > Transformation( [ 9, 6, 7, 9, 6, 6, 9, 7, 8 ] ), > Transformation( [ 9, 6, 8, 7, 9, 6, 9, 8, 7 ] ), > Transformation( [ 9, 7, 6, 8, 7, 7, 9, 6, 8 ] ), > Transformation( [ 9, 7, 7, 8, 9, 6, 9, 7, 8 ] ), > Transformation( [ 9, 8, 8, 9, 6, 7, 6, 8, 9 ] ) );; gap> IsRightSimple(S); false gap> IsLeftSimple(S); true gap> IsGroupAsSemigroup(S); false gap> NrRClasses(S); 16
‣ IsLeftZeroSemigroup( S ) | ( property ) |
Returns: true or false.
IsLeftZeroSemigroup returns true if the semigroup S of transformations or partial permutations is a left zero semigroup and false if it is not.
A semigroup is a left zero semigroup if x*y=x for all x,y. An inverse semigroup is a left zero semigroup if and only if it is trivial.
gap> gens:=[ Transformation( [ 2, 1, 4, 3, 5 ] ), > Transformation( [ 3, 2, 3, 1, 1 ] ) ];; gap> S:=Semigroup(gens);; gap> IsRightZeroSemigroup(S); false gap> gens:=[Transformation( [ 1, 2, 3, 3, 1 ] ), > Transformation( [ 1, 2, 3, 3, 3 ] ) ];; gap> S:=Semigroup(gens);; gap> IsLeftZeroSemigroup(S); true
‣ IsMonogenicSemigroup( S ) | ( property ) |
Returns: true or false.
IsMonogenicSemigroup returns true if the semigroup S of transformations or partial permutations is monogenic and it returns false if it is not.
A semigroup is monogenic if it is generated by a single element. See also IsMonogenicInverseSemigroup (4.6-14) and IndexPeriodOfTransformation (2.4-2).
gap> S:=Semigroup( > Transformation( [ 2, 2, 2, 11, 10, 8, 10, 11, 2, 11, 10, 2, 11, 11, 10 ] ), > Transformation( [ 2, 2, 2, 8, 11, 15, 11, 10, 2, 10, 11, 2, 10, 4, 7 ] ), > Transformation( [ 2, 2, 2, 11, 10, 8, 10, 11, 2, 11, 10, 2, 11, 11, 10 ] ), > Transformation( [ 2, 2, 12, 7, 8, 14, 8, 11, 2, 11, 10, 2, 11, 15, 4 ] ));; gap> IsMonogenicSemigroup(S); true
‣ IsMonogenicInverseSemigroup( S ) | ( property ) |
Returns: true or false.
IsMonogenicInverseSemigroup returns true if the semigroup S of transformations or partial permutations is an inverse monogenic semigroup and it returns false if it is not.
A inverse semigroup is monogenic if it is generated as an inverse semigroup by a single element. See also IsMonogenicSemigroup (4.6-13) and IndexPeriodOfTransformation (2.4-2).
gap> f:=PartialPermNC( [ 1, 2, 3, 6, 8, 10 ], [ 2, 6, 7, 9, 1, 5 ] );; gap> S:=InverseSemigroup(f, f^2, f^3);; gap> IsMonogenicSemigroup(S); false gap> IsMonogenicInverseSemigroup(S); true
‣ IsMonoidAsSemigroup( S ) | ( property ) |
Returns: true or false.
IsMonoidAsSemigroup returns true if the semigroup of transformations or partial permutations S is a monoid and false if it is not. It is possible that S is a monoid but does not satisfy IsMonoid (Reference: IsMonoid) and so S does not possess the attributes of a monoid (such as, GeneratorsOfMonoid (Reference: GeneratorsOfMonoid)).
A semigroup of transformations satisfies IsMonoidAsSemigroup if and only if it satisfies IsTransformationMonoid (Reference: IsTransformationMonoid). A semigroup of partial permutations satisfies IsMonoidAsSemigroup if and only if it satisfies IsPartialPermMonoid (4.6-16).
See also One (Reference: One), IsInverseMonoid (4.6-10) and IsomorphismTransformationMonoid (4.7-4).
gap> S:=Semigroup( Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), > Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) );; gap> IsMonoidAsSemigroup(S); true gap> MultiplicativeNeutralElement(S); Transformation( [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 9 ] ) gap> S:=Monoid(Transformation( [ 8, 2, 8, 9, 10, 6, 2, 8, 7, 8 ] ), > Transformation( [ 9, 2, 6, 3, 6, 4, 5, 5, 3, 2 ] ));; gap> IsMonoidAsSemigroup(S); true
‣ IsPartialPermSemigroup( S ) | ( property ) |
‣ IsPartialPermMonoid( S ) | ( property ) |
Returns: true or false.
IsPartialPermSemigroup returns true if S is a semigroup of partial permutations and false if it is not. IsPartialPermMonoid returns true if S is a monoid of partial permutations and false if it is not. Note that a semigroup S satisfies IsPartialPermMonoid if and only if it contains an identity but S may or may not satisfy IsMonoid (Reference: IsMonoid); see IsMonoidAsSemigroup (4.6-15).
‣ IsOrthodoxSemigroup( S ) | ( property ) |
Returns: true or false.
IsOrthodoxSemigroup returns true if the semigroup S of transformations or partial permutations is orthodox and false if it is not.
A semigroup is orthodox if it is regular and its idempotent elements form a subsemigroup. Every inverse semigroup is also an orthodox semigroup.
See also IsRegularSemigroup (4.6-19) and IsRegularSemigroup (Reference: IsRegularSemigroup).
gap> gens:=[ Transformation( [ 1, 1, 1, 4, 5, 4 ] ), > Transformation( [ 1, 2, 3, 1, 1, 2 ] ), > Transformation( [ 1, 2, 3, 1, 1, 3 ] ), > Transformation( [ 5, 5, 5, 5, 5, 5 ] ) ];; gap> S:=Semigroup(gens);; gap> IsOrthodoxSemigroup(S); true
‣ IsRectangularBand( S ) | ( property ) |
Returns: true or false.
IsRectangularBand returns true if the semigroup S of transformations or partial permutations is a rectangular band and false if it is not.
A semigroup S is a rectangular band if for all x,y,z in S we have that x^2=x and xyz=xz. An inverse semigroup is a rectangular band if and only if it is a group.
gap> gens:=[ Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 1 ] ), > Transformation( [ 2, 2, 2, 5, 5, 5, 8, 8, 8, 2 ] ), > Transformation( [ 3, 3, 3, 6, 6, 6, 9, 9, 9, 3 ] ), > Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 4 ] ), > Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 7 ] ) ];; gap> S:=Semigroup(gens);; gap> IsRectangularBand(S); true
‣ IsRegularSemigroup( S ) | ( property ) |
Returns: true or false.
IsRegularSemigroup returns true if the semigroup of transformations or partial permutations S is regular and false if it is not.
A semigroup S is regular if for all x in S there exists y in S such that x*y*x=x. Every inverse semigroup is regular, and a semigroup of partial permutations is regular if and only if it is an inverse semigroup.
See also IsRegularDClass (Reference: IsRegularDClass), IsRegularDClass (4.4-6), and IsRegularTransformation (2.4-5).
gap> IsRegularSemigroup(FullTransformationSemigroup(5)); true
‣ IsRightZeroSemigroup( S ) | ( property ) |
Returns: true or false.
IsRightZeroSemigroup returns true if the semigroup of transformations or partial permutations S is a right zero semigroup and false if it is not.
A semigroup S is a right zero semigroup if x*y=y for all x,y in S. An inverse semigroup is a right zero semigroup if and only if it is trivial.
gap> gens:=[ Transformation( [ 2, 1, 4, 3, 5 ] ), > Transformation( [ 3, 2, 3, 1, 1 ] ) ];; gap> S:=Semigroup(gens);; gap> IsRightZeroSemigroup(S); false gap> gens:=[Transformation( [ 1, 2, 3, 3, 1 ] ), > Transformation( [ 1, 2, 4, 4, 1 ] )];; gap> S:=Semigroup(gens);; gap> IsRightZeroSemigroup(S); true
‣ IsRTrivial( S ) | ( property ) |
‣ IsLTrivial( S ) | ( property ) |
‣ IsHTrivial( S ) | ( property ) |
‣ IsDTrivial( S ) | ( property ) |
‣ IsAperiodicSemigroup( S ) | ( property ) |
‣ IsCombinatorialSemigroup( S ) | ( property ) |
Returns: true or false.
IsXTrivial returns true if Green's \(\mathcal{R}\)-relation, \(\mathcal{L}\)-relation, \(\mathcal{H}\)-relation, \(\mathcal{D}\)-relation, respectively, on the semigroup of transformations or partial permutations S is trivial and false if it is not. These properties can also be applied to a Green's class instead of a semigroup where applicable.
For inverse semigroups, the properties of being \(\mathcal{R}\)-trivial, \(\mathcal{L}\)-trivial, \(\mathcal{D}\)-trivial, and a semilattice are equivalent; see IsSemilatticeAsSemigroup (4.6-22).
A semigroup is aperiodic if its contains no non-trivial subgroups (equivalently, all of its group \(\mathcal{H}\)-classes are trivial). A finite semigroup is aperiodic if and only if it is \(\mathcal{H}\)-trivial.
Combinatorial is a synonym for aperiodic in this context.
gap> S:=Semigroup( Transformation( [ 1, 5, 1, 3, 7, 10, 6, 2, 7, 10 ] ), > Transformation( [ 4, 4, 5, 6, 7, 7, 7, 4, 3, 10 ] ) );; gap> IsHTrivial(S); true gap> Size(S); 108 gap> IsRTrivial(S); false gap> IsLTrivial(S); false
‣ IsSemilatticeAsSemigroup( S ) | ( property ) |
Returns: true or false.
IsSemilatticeAsSemigroup returns true if the semigroup S is a semilattice and false if it is not.
A semigroup is a semilattice if it is commutative and every element is an idempotent. The idempotents of an inverse semigroup form a semilattice.
gap> S:=Semigroup(Transformation( [ 2, 5, 1, 7, 3, 7, 7 ] ), > Transformation( [ 3, 6, 5, 7, 2, 1, 7 ] ) );; gap> Size(S); 631 gap> IsInverseSemigroup(S); true gap> A:=Semigroup(Idempotents(S)); <semigroup with 32 generators> gap> IsSemilatticeAsSemigroup(A); true
‣ IsSimpleSemigroup( S ) | ( property ) |
‣ IsCompletelySimpleSemigroup( S ) | ( property ) |
Returns: true or false.
IsSimpleSemigroup returns true if the semigroup of transformations or partial permutations S is simple and false if it is not.
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. An inverse semigroup is simple if and only if it is a group.
gap> gens:=[ Transformation( [ 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 2 ] ), > Transformation( [ 1, 1, 3, 3, 5, 5, 7, 7, 9, 9, 11, 11, 3 ] ), > Transformation( [ 1, 7, 3, 9, 5, 11, 7, 1, 9, 3, 11, 5, 5 ] ), > Transformation( [ 7, 7, 9, 9, 11, 11, 1, 1, 3, 3, 5, 5, 7 ] ) ];; gap> S:=Semigroup(gens);; gap> IsSimpleSemigroup(S); true gap> IsCompletelySimpleSemigroup(S); true
‣ IsSynchronizingSemigroup( S ) | ( property ) |
Returns: true or false.
IsSynchronizingSemigroup returns true if the semigroup of transformations S contains a constant transformation. See also ConstantTransformation (2.1-1).
gap> S:=Semigroup( Transformation( [ 1, 1, 8, 7, 6, 6, 4, 1, 8, 9 ] ), > Transformation( [ 5, 8, 7, 6, 10, 8, 7, 6, 9, 7 ] ) );; gap> IsSynchronizingSemigroup(S); true gap> S:=Semigroup( Transformation( [ 3, 8, 1, 1, 9, 9, 8, 7, 9, 6 ] ), > Transformation( [ 7, 6, 8, 7, 5, 6, 8, 7, 8, 9 ] ) );; gap> IsSynchronizingSemigroup(S); false gap> Representative(MinimalIdeal(S)); Transformation( [ 7, 7, 8, 7, 7, 7, 8, 7, 8, 7 ] )
‣ IsZeroGroup( S ) | ( property ) |
Returns: true or false.
IsZeroGroup returns true if the semigroup of transformations or partial permutations S is a zero group and false if it is not.
A semigroup S is a zero group if there exists an element z in S such that S without z is a group and x*z=z*x=z for all x in S. Every zero group is an inverse semigroup.
gap> S:=Semigroup(Transformation( [ 2, 2, 3, 4, 6, 8, 5, 5, 9 ] ), > Transformation( [ 3, 3, 8, 2, 5, 6, 4, 4, 9 ] ), > ConstantTransformation(9, 9));; gap> IsZeroGroup(S); true gap> T:=Range(IsomorphismPartialPermSemigroup(S));; gap> IsZeroGroup(T); true
‣ IsZeroRectangularBand( S ) | ( property ) |
Returns: true or false.
IsZeroRectangularBand returns true if the semigroup of transformations or partial permutations S is a zero rectangular band and false if it is not.
A semigroup is a zero rectangular band if it is zero simple and \(\mathcal{H}\)-trivial; see also IsZeroSimpleSemigroup (4.6-28) and IsHTrivial (4.6-21). An inverse semigroup is a zero rectangular band if and only if it is a zero group; see IsZeroGroup (4.6-25).
gap> S:=Semigroup( > Transformation( [ 1, 3, 7, 9, 1, 12, 13, 1, 15, 9, 1, 18, 1, 1, 13, 1, 1, > 21, 1, 1, 1, 1, 1, 25, 26, 1 ] ), > Transformation( [ 1, 5, 1, 5, 11, 1, 1, 14, 1, 16, 17, 1, 1, 19, 1, 11, 1, > 1, 1, 23, 1, 16, 19, 1, 1, 1 ] ), > Transformation( [ 1, 4, 8, 1, 10, 1, 8, 1, 1, 1, 10, 1, 8, 10, 1, 1, 20, 1, > 22, 1, 8, 1, 1, 1, 1, 1 ] ), > Transformation( [ 1, 6, 6, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 6, 1, 1, 6, 1, > 1, 24, 1, 1, 1, 1, 6 ] ) );; gap> IsZeroRectangularBand(Semigroup(Elements(GreensDClasses(S)[9]))); true gap> IsZeroRectangularBand(Semigroup(Elements(GreensDClasses(S)[3]))); true gap> IsZeroRectangularBand(Semigroup(Elements(GreensDClasses(S)[1]))); false
‣ IsZeroSemigroup( S ) | ( property ) |
Returns: true or false.
IsZeroSemigroup returns true if the semigroup of transformations or partial permutations S is a zero semigroup and false if it is not.
A semigroup S is a zero semigroup if there exists an element z in S such that x*y=z for all x,y in S. An inverse semigroup is a zero semigroup if and only if it is trivial.
gap> S:=Semigroup( Transformation( [ 4, 7, 6, 3, 1, 5, 3, 6, 5, 9 ] ), > Transformation( [ 5, 3, 5, 1, 9, 3, 8, 7, 4, 3 ] ) );; gap> IsZeroSemigroup(S); false gap> S:=Semigroup( Transformation( [ 7, 8, 8, 8, 5, 8, 8, 8 ] ), > Transformation( [ 8, 8, 8, 8, 5, 7, 8, 8 ] ), > Transformation( [ 8, 7, 8, 8, 5, 8, 8, 8 ] ), > Transformation( [ 8, 8, 8, 7, 5, 8, 8, 8 ] ), > Transformation( [ 8, 8, 7, 8, 5, 8, 8, 8 ] ) );; gap> IsZeroSemigroup(S); true gap> MultiplicativeZero(S); Transformation( [ 8, 8, 8, 8, 5, 8, 8, 8 ] )
‣ IsZeroSimpleSemigroup( S ) | ( property ) |
Returns: true or false.
IsZeroSimpleSemigroup returns true if the semigroup of transformations or partial permutations S is a zero simple semigroup and false if it is not.
A semigroup is a zero simple semigroup if it has no two-sided ideals other than itself and the set containing the zero element; see also MultiplicativeZero (4.5-11). An inverse semigroup is zero simple if and only if it is a Brandt semigroup; see IsBrandtSemigroup (4.6-3).
gap> S:=Semigroup( > Transformation( [ 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 5, 17, > 17, 17, 17, 17, 17 ] ), > Transformation( [ 1, 17, 17, 17, 11, 17, 17, 17, 17, 17, 17, 17, > 17, 17, 17, 17, 17 ] ), > Transformation( [ 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 4, 17, > 17, 17, 17, 17, 17 ] ), > Transformation( [ 1, 17, 17, 5, 17, 17, 17, 17, 17, 17, 17, 17, > 17, 17, 17, 17, 17 ] ));; gap> IsZeroSimpleSemigroup(S); true gap> S:=Semigroup( > Transformation( [ 2, 3, 4, 5, 1, 8, 7, 6, 2, 7 ] ), > Transformation([ 2, 3, 4, 5, 6, 8, 7, 1, 2, 2 ] ));; gap> IsZeroSimpleSemigroup(S); false
‣ AntiIsomorphismTransformationSemigroup( S ) | ( operation ) |
Returns: An anti-isomorphism.
If S is a semigroup, then AntiIsomorphismTransformationSemigroup returns an anti-isomorphism from S to a transformation semigroup. At present, the degree of the resulting transformation semigroup equals the size of S plus 1, and, consequently, this function is of limited use.
See also IsomorphismTransformationSemigroup (Reference: IsomorphismTransformationSemigroup).
gap> file:=Concatenation(CitrusDir(), "/examples/selfcomp.citrus.gz");; gap> S:=Semigroup(ReadCitrus(file, 34));; gap> Size(S); 1016 gap> AntiIsomorphismTransformationSemigroup(S); MappingByFunction( <semigroup with 7 generators>, <semigroup with 7 generators>, function( a ) ... end )
‣ IsomorphismPartialPermMonoid( S ) | ( operation ) |
‣ IsomorphismPartialPermSemigroup( S ) | ( operation ) |
Returns: An isomorphism.
IsomorphismPartialPermSemigroup(S) returns an isomorphism from the inverse semigroup or group S to an inverse semigroup of partial permutations.
IsomorphismPartialPermMonoid(S) returns an isomorphism from the inverse monoid or group S to an inverse monoid of partial permutations.
We only describe IsomorphismPartialPermMonoid, the corresponding statements for IsomorphismPartialPermSemigroup also hold.
If S is a partial permutation semigroup that does not satisfy IsMonoid (Reference: IsMonoid) but does satisfy IsMonoidAsSemigroup (4.6-15), then IsomorphismPartialPermMonoid(S) returns an isomorphism from S to an inverse monoid of partial permutations; see InverseMonoid (3.1-1).
If S is a permutation group, then IsomorphismPartialPermMonoid returns an isomorphism from S to an inverse monoid of partial permutations on the set MovedPoints(S) obtained using AsPartialPerm (2.8-3). The inverse of this isomorphism is obtained using AsPermutation (2.8-2); see MovedPoints (Reference: MovedPoints (for a permutation)).
If S is a transformation semigroup satisfying IsInverseMonoid (4.6-10), then IsomorphismPartialPermMonoid returns an isomorphism from S to an inverse monoid of partial permutations on a subset of [1..DegreeOfTransformationSemigroup(S)].
gap> s:=InverseSemigroup( > PartialPermNC( [ 1, 2, 3, 4, 5 ], [ 4, 2, 3, 1, 5 ] ), > PartialPermNC( [ 1, 2, 4, 5 ], [ 3, 1, 4, 2 ] ) );; gap> IsMonoid(s); false gap> IsMonoidAsSemigroup(s); true gap> iso:=IsomorphismPartialPermMonoid(s); MappingByFunction( <inverse semigroup with 2 generators>, <inverse monoid with 2 generators>, function( x ) ... end, function( x ) ... end ) gap> Size(s); 508 gap> Size(Range(iso)); 508 gap> g:=Group((1,2)(3,8)(4,6)(5,7), (1,3,4,7)(2,5,6,8), (1,4)(2,6)(3,7)(5,8));; gap> IsomorphismPartialPermSemigroup(g); MappingByFunction( Group([ (1,2)(3,8)(4,6)(5,7), (1,3,4,7)(2,5,6,8), (1,4)(2,6)(3,7)(5,8) ]), <inverse semigroup with 3 generators>, function( p ) ... end, function( f ) ... end ) gap> s:=Semigroup(Transformation( [ 2, 5, 1, 7, 3, 7, 7 ] ), > Transformation( [ 3, 6, 5, 7, 2, 1, 7 ] ) );; gap> iso:=IsomorphismPartialPermMonoid(s); MappingByFunction( <inverse monoid with 2 generators>, <inverse monoid with 2 generators>, function( f ) ... end, function( x ) ... end ) gap> MovedPoints(Range(iso)); [ 1, 2, 3, 5, 6 ]
‣ IsomorphismPermGroup( S ) | ( operation ) |
Returns: An isomorphism.
If the semigroup of transformations or partial permutations S satisfies IsGroupAsSemigroup (4.6-8), then IsomorphismPermGroup returns an isomorphism to a permutation group.
If S does not satisfy IsGroupAsSemigroup (4.6-8), then an error is given.
gap> S:=Semigroup( Transformation( [ 2, 2, 3, 4, 6, 8, 5, 5 ] ), > Transformation( [ 3, 3, 8, 2, 5, 6, 4, 4 ] ) );; gap> IsGroupAsSemigroup(S); true gap> IsomorphismPermGroup(S); MappingByFunction( <semigroup with 2 generators>, Group([ (5,6,8), (2,3,8,4) ]), <Operation "AsPermutation">, function( x ) ... end ) gap> StructureDescription(Range(IsomorphismPermGroup(S))); "S6" gap> s:=Range(IsomorphismPartialPermSemigroup(SymmetricGroup(4))); <inverse semigroup with 2 generators> gap> IsomorphismPermGroup(s); MappingByFunction( <inverse semigroup with 2 generators>, Group( [ (1,2,3,4), (1,2) ]), <Operation "AsPermutation">, function( x ) ... end )
‣ IsomorphismTransformationMonoid( S ) | ( operation ) |
‣ IsomorphismTransformationSemigroup( S ) | ( operation ) |
Returns: An isomorphism.
IsomorphismTransformationSemigroup(S) returns an isomorphism from the semigroup S to a semigroup of transformations.
IsomorphismTransformationMonoid(S) returns an isomorphism from the monoid S to a monoid of transformations.
We only describe IsomorphismTransformationMonoid, the corresponding statements for IsomorphismTransformationSemigroup also hold.
If S is a partial permutation monoid, then IsomorphismTransformationMonoid(S) returns an isomorphism from S to a monoid of partial permutations on [1..LargestMovedPoint(S)+1] obtained using AsTransformation (2.8-4). The inverse of this isomorphism is obtained using AsPartialPerm (2.8-3); see LargestMovedPoint (2.5-8), InverseMonoid (3.1-1) and Monoid (Reference: Monoid).
If S is a permutation group, then IsomorphismTransformationMonoid returns an isomorphism from S to a transformation monoid acting on the set [1..NrMovedPoints(S)] obtained using AsTransformation (2.8-4); see NrMovedPoints (Reference: NrMovedPoints (for a permutation)).
If obj is a transformation semigroup satisfying IsMonoidAsSemigroup (4.6-15), then this function returns an isomorphism from obj to a transformation monoid.
gap> S:=Semigroup( Transformation( [ 1, 4, 6, 2, 5, 3, 7, 8, 9, 9 ] ), > Transformation( [ 6, 3, 2, 7, 5, 1, 8, 8, 9, 9 ] ) );; gap> IsTransformationMonoid(S); false gap> IsMonoidAsSemigroup(S); true gap> M:=Range(IsomorphismTransformationMonoid(S)); <monoid with 2 generators> gap> IsTransformationMonoid(M); true gap> s:=InverseMonoid( > PartialPermNC( [ 1, 2, 3 ], [ 4, 2, 3 ] ), > PartialPermNC( [ 1, 2, 4 ], [ 1, 3, 2 ] ), > PartialPermNC( [ 1, 2, 4 ], [ 4, 1, 2 ] ) );; gap> t:=Range(IsomorphismTransformationMonoid(s)); <monoid with 5 generators> gap> Size(s); Size(t); 117 117
generated by GAPDoc2HTML