This is the manual for the Citrus package version 0.9999 for computing with semigroups of transformations and partial permutations. Citrus 0.9999 is an updated and expanded version of the Monoid package for GAP 3 by Goetz Pfeiffer, Steve A. Linton, Edmund F. Robertson, and Nik Ruskuc and the Monoid package for GAP 4 by J. D. Mitchell.
Some of the theory behind the algorithms in Citrus is described in [LPRR98] and described in [LPRR02]. Another reference is [LM90].
The functionality of Monoid 3.1.4 for GAP 4 has been split between the GAP 4.5 packages Citrus and Comatose. Citrus 0.9999 retains all the functionality of the original Monoid package for GAP 3; and many of those functions from Monoid 3.1.4 not involved in the computation of automorphism groups of semigroups. The Comatose package retains those functions from Monoid 3.1.4 used to compute automorphism groups of transformation semigroups.
Citrus 0.9999 contains more efficient methods than those available in the GAP library (and in many cases more efficient than any other software) for creating semigroups of transformations and partial permutations, calculating their Green's classes, size, elements, group of units, minimal ideal, and testing membership, finding the inverses of a regular element, and factorizing elements over the generators, and many more; see Chapters 3 and 4. There are also methods for testing if a semigroup satisfies a particular property, such as if it is regular, simple, inverse, completely regular, and a variety of further properties; see Chapter 4. A range of functions is provided for creating and determining properties of individual transformations and partial permutations such as the index and period or the least idempotent power; see Chapter 2. A large catalogue of examples is provided; see Sections 3.4 and 3.5. Citrus also provides abbreviated names for many of the commonly used GAP library functions related to semigroups, and functions to read and write large collections of transformations or partial permutations to a file; see ReadCitrus (1.6-2) and WriteCitrus (1.6-3).
The Citrus package is written in C and GAP code and requires the Orb and IO packages. The Orb package is used to efficiently compute orbits in semigroups of transformations and partial permutations, and these methods underpin many of the features of Citrus. The IO package is used to read and write transformations and partial permutations to a file. The Grape package is used in the function MunnSemigroup (3.4-3) but nowhere else in Citrus. If Grape is not fully installed, then Citrus can be used as normal with the except that the operation MunnSemigroup (3.4-3) does not work.
Citrus is still under development, and so some features may not function as expected. At the present time, I do not know of any errors or serious issues with Citrus. If you find a bug or an issue with the package, then please let me know by emailing me the details at: jdm3@st-and.ac.uk.
For more details about semigroups in GAP or Green's relations in particular, see Reference: Semigroups or Reference: Green's Relations.
In this section we give a brief description of how to start using Citrus. If you have any problems getting Citrus working, then you could try emailing me at jdm3@st-and.ac.uk.
It is assumed that you have a working copy of GAP with version number 4.5 or higher. The most up-to-date version of GAP and instructions on how to install it can be obtained from the main GAP webpage
The following is a summary of the steps that should lead to a successful installation of Citrus:
download and install the Orb package version 4.2 or higher. For more details go to:
http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/orb.html
Note that Orb and Citrus both perform better if Orb is compiled.
download and install the IO package version 4.1 or higher. For more details go to:
http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/ io.html
if you want to be able to calculate the Munn semigroup of a semilattice MunnSemigroup (3.4-3), then download and fully install the Grape package version 4.5 or higher. For more details go to:
http://www.maths.qmul.ac.uk/~leonard/grape/
If Grape is not fully installed, then Citrus can be used as normal with the except that the operation MunnSemigroup (3.4-3) does not work.
download the package archive citrus-0.9999.tar.gz from
http://www-history.mcs.st-and.ac.uk/~jamesm/citrus/index.html
unzip and untar the file, this should create a directory called citrus-0.9999.
locate the pkg directory of your GAP directory, which contains the directories lib, doc and so on. Move the directory citrus-0.9999 into the pkg directory.
to use the functions in Citrus for partial permutations and inverse semigroups, you must compile the C part of the package (in the "pkg" directory) by doing:
cd citrus ./configure make
Further information about this step can be found in Section 1.2.
start GAP in the usual way.
type LoadPackage("citrus");
compile the documentation by using CitrusMakeDoc (1.3-1)
Please note that Citrus can only be used to compute with semigroups of partial permutations if it has been compiled.
Below is an example of an installation of Citrus in a Unix environment where home should be substituted with the main GAP directory (the one containing the folders bin, lib, and so on) in your installation of GAP.
> gunzip citrus-0.9999.tar.gz > tar -xf citrus-0.9999.tar > mv citrus-0.9999 home/pkg > gap [ ... ] gap> LoadPackage("citrus"); ---------------------------------------------------------------------- Loading orb 4.2 (orb - Methods to enumerate orbits) by Juergen Mueller (http://www.math.rwth-aachen.de/~Juergen.Mueller), Max Neunhoeffer (http://www-groups.mcs.st-and.ac.uk/~neunhoef), and Felix Noeske (http://www.math.rwth-aachen.de/~Felix.Noeske). ---------------------------------------------------------------------- ---------------------------------------------------------------------- Loading Citrus 0.9999 (Citrus - ComputIng wiTh semigRUopS) by J. D. Mitchell (http://tinyurl.com/jdmitchell). ---------------------------------------------------------------------- true gap>
Presuming that the above steps can be completed successfully you will be running the Citrus package!
If you want to check that the package is working correctly, you should run some the tests described in Section 1.4.
As of version 0.7, the Citrus package has a GAP kernel component in C which should be compiled. This component contains low-level functions relating to partial permutations and it is not possible to use these features or any related features in Citrus without compiling the package. It is possible to run Citrus without compiling it, but Citrus is limited to computing with transformation semigroups in this case.
To compile the GAP kernel component in the 'pkg' directory do:
cd citrus ./configure make
If you installed the package in another 'pkg' directory than the standard 'pkg' directory in your GAP installation, then you have to do two things. Firstly during compilation you have to use the option '--with-gaproot=PATH' of the 'configure' script where 'PATH' is a path to the main GAP root directory (if not given the default '../..' is assumed).
If you installed GAP on several architectures, you must execute the configure/make step for each of the architectures. You can either do this immediately after configuring and compiling GAP itself on this architecture, or alternatively (when using version 4.5 of GAP or newer) set the environment variable 'CONFIGNAME' to the name of the configuration you used when compiling GAP before running './configure'. Note however that your compiler choice and flags (environment variables 'CC' and 'CFLAGS') need to be chosen to match the setup of the original GAP compilation. For example you have to specify 32-bit or 64-bit mode correctly!
To compile the documentation use CitrusMakeDoc (1.3-1). If you want to use the help system, it is essential that you compile the documentation.
‣ CitrusMakeDoc( ) | ( function ) |
Returns: Nothing.
This function should be called with no argument to compile the Citrus documentation.
In this section we describe how to test that Citrus is working as intended. To test that Citrus is installed correctly use CitrusTestInstall (1.4-2) or for more extensive tests use CitrusTestAll (1.4-1). Please note that it will take a few seconds for CitrusTestInstall (1.4-2) to finish and it will take no more than 1 minute for CitrusTestAll (1.4-1) to finish.
Note that after calling CitrusTestAll (1.4-1), CitrusTestAll (1.4-1), or CitrusTestManualExamples (1.4-3), the message gzip: stdout: Broken pipe might be displayed (several times). While this is unfortunate, it is not an error and should simply be ignored. We hope to resolve this issue in the future. If something goes wrong, then please review the instructions in Section 1.1 and ensure that Citrus has been properly installed. If you continue having problems, please email me at jdm3@st-and.ac.uk.
‣ CitrusTestAll( ) | ( function ) |
Returns: Nothing.
This function should be called with no argument to comprehensively test that Citrus is working correctly. These tests should take no more than a few minutes to complete. To quickly test that Citrus is installed correctly use CitrusTestInstall (1.4-2).
‣ CitrusTestInstall( ) | ( function ) |
Returns: Nothing.
This function should be called with no argument to test your installation of Citrus is working correctly. These tests should take no more than a fraction of a second to complete. To more comprehensively test that Citrus is installed correctly use CitrusTestAll (1.4-1).
‣ CitrusTestManualExamples( ) | ( function ) |
Returns: Nothing.
This function should be called with no argument to test the examples in the Citrus manual. These tests should take no more than a few minutes to complete. To more comprehensively test that Citrus is installed correctly use CitrusTestAll (1.4-1). See also CitrusTestInstall (1.4-2).
‣ InfoCitrus | ( info class ) |
InfoCitrus is the info class of the Citrus package. The info level is initially set to 0 and no info messages are displayed. We recommend that you set the level to 1 so that basic info messages are displayed. To increase the amount of information displayed during a computation increase the info level to 2 or 3. To stop all info messages from being displayed, set the info level to 0. See also Reference: Info Functions and SetInfoLevel (Reference: SetInfoLevel).
The functions ReadCitrus (1.6-2) and WriteCitrus (1.6-3) can be used to read or write transformations or partial permutations to a file.
‣ CitrusDir( ) | ( function ) |
Returns: A string.
This function returns the absolute path to the Citrus package directory as a string. The same result can be obtained typing:
PackageInfo("citrus")[1]!.InstallationPath;at the GAP prompt.
‣ ReadCitrus( filename[, nr] ) | ( function ) |
Returns: A list of: transformations, partial permutations, lists of partial permutations or lists of transformations.
If filename is a file created using WriteCitrus (1.6-3), then ReadCitrus returns the contents of this file as a list of lists of transformations and partial permutations. If the optional second argument nr is present, then ReadCitrus returns the transformations or partial permutations stored in the nrth line of filename.
Note that if the file filename is gzipped, then the message gzip: stdout: Broken pipe might be displayed when ReadCitrus is used. While this is unfortunate, it not an error that affect the output of ReadCitrus. We hope to resolve this issue in the future.
‣ WriteCitrus( filename, list ) | ( function ) |
Returns: Nothing.
This function provides a method for writing transformations and partial permutations to a file that uses a relatively small amount of disk space. The resulting file can be further compressed using gzip.
list should be a list of: transformations of equal degree, partial permutations, a semigroup of transformations or partial permutations, or a list of lists of transformations, partial permutations, or semigroups of transformations or partial permutations; and filename should be a string containing the name of a file where the entries in list will be written.
WriteCitrus appends a line to the file filename for every entry in list. If any element of list is a semigroup, then the generators of that semigroup are written to filename.
The first character m of the appended line is the number of characters in the degree of the transformations to be written, the next m characters are the degree n of the transformations to be written, and the transformations themselves are written in blocks of m*n in the remainder of the line. For example, the transformations:
[ Transformation( [ 2, 6, 7, 2, 6, 9, 9, 1, 1, 5 ] ), Transformation( [ 3, 8, 1, 9, 9, 4, 10, 5, 10, 6 ] )]
are written as:
210 2 2 6 7 2 6 9 9 1 1 5 3 8 1 9 9 410 510 6
The file filename can be read using ReadCitrus (1.6-2).
gap> file:=Concatenation(CitrusDir(), "/examples/graph7c.citrus.gz");; gap> ReadCitrus(file, 453); [ Transformation( [ 1, 2, 2, 4, 5, 6, 7 ] ), Transformation( [ 1, 2, 3, 4, 5, 6, 7 ] ), Transformation( [ 1, 2, 3, 4, 5, 7, 7 ] ), Transformation( [ 1, 3, 2, 4, 7, 6, 7 ] ), Transformation( [ 4, 2, 1, 1, 6, 5, 7 ] ), Transformation( [ 4, 3, 2, 1, 6, 7, 7 ] ), Transformation( [ 4, 4, 5, 7, 6, 1, 1 ] ), Transformation( [ 7, 6, 6, 1, 2, 4, 4 ] ), Transformation( [ 7, 7, 5, 4, 3, 1, 1 ] ) ]
Due to inherent difficulties with computing Green's \(\mathcal{L}\)-, \(\mathcal{D}\)-, and \(\mathcal{H}\)-classes in transformation semigroups, the methods used to compute with Green's \(\mathcal{R}\)-classes are the most efficient in Citrus. Thus, if you are computing with a transformation semigroup, wherever possible it is advisable to use the commands relating to Green's \(\mathcal{R}\)-classes rather than those relating to Green's \(\mathcal{L}\)-, \(\mathcal{D}\)-, or \(\mathcal{H}\)-classes. No such difficulties are present when computing with semigroups of partial permutations.
The methods in Citrus allow the computation of individual Green's classes without the need to compute all the elements of the underlying semigroup; see GreensRClassOfElementNC (4.2-3). It is also possible to compute all the \(\mathcal{R}\)-classes, the number of elements and test membership in a transformation semigroup without computing all the elements; see, for example, GreensRClasses (4.3-1), RClassReps (4.3-4), IteratorOfRClassReps (4.3-2), IteratorOfRClasses (4.3-3), or NrRClasses (4.4-8). This may be useful if you want to study a very large semigroup where computing all the elements of the semigroup is infeasible.
In this section we list the functions from the GAP library (those available when Citrus is not loaded) which have new methods in Citrus. Some of these new methods apply to a wider class of objects than the existing methods. Where this is the case, we give references to both the Citrus documentation and the GAP manual; otherwise we may only give references to the GAP manual.
Citrus contains special methods for the following GAP functions where the argument is an arbitrary Green's class of a semigroup of transformations or partial permutations (specifically a Green's class satisfying IsGreensClassOfTransSemigp (4.4-4) or IsGreensClassOfPartialPermSemigp (4.4-5)) or a semigroup itself (where appropriate). For more details about semigroups in GAP or Green's relations in particular, see Reference: Semigroups or Reference: Green's Relations.
\< (4.4-1), = and in (see Reference: Comparisons),
AsSSortedList (Reference: AsSSortedList),
Enumerator (Reference: Enumerator),
GreensHClasses (Reference: GreensHClasses) and GreensHClasses (4.3-1),
GreensHClassOfElement (Reference: GreensHClassOfElement),
GreensLClasses (Reference: GreensLClasses) and GreensLClasses (4.3-1),
GreensLClassOfElement (Reference: GreensLClassOfElement),
GreensRClasses (Reference: GreensRClasses) and GreensRClasses (4.3-1),
GreensRClassOfElement (Reference: GreensRClassOfElement),
GreensDClasses (Reference: GreensDClasses) and GreensDClasses (4.3-1),
GreensDClassOfElement (Reference: GreensDClassOfElement),
Idempotents (Reference: Idempotents) and Idempotents (4.5-6),
Size (Reference: Size).
In addition to those functions mentioned above that can be applied to arbitrary Green's classes, Citrus contains special methods for the following GAP functions:
IsRegularDClass (Reference: IsRegularDClass) and IsRegularDClass (4.4-6),
GroupHClassOfGreensDClass (Reference: GroupHClassOfGreensDClass) and GroupHClass (4.2-4),
IsGroupHClass (Reference: IsGroupHClass),
IsomorphismPermGroup (Reference: IsomorphismPermGroup) (for a group \(\mathcal{H}\)-class),
StructureDescription (Reference: StructureDescription) (for a group \(\mathcal{H}\)-class),
IsomorphismTransformationMonoid and IsomorphismTransformationSemigroup (Reference: IsomorphismTransformationSemigroup) and (for a permutation group).
Citrus contains functions synonymous to some of the commands mentioned in this section but, for the sake of convenience with abbreviated names; for further details see below.
generated by GAPDoc2HTML