A transformation is just a function from the set \(\{1,\ldots, n\}\) to itself, and a partial permutation is an injective function from a subset of \(\{1,\ldots, n\}\) to \(\{1,\ldots, n\}\) where \(n\) is a positive integer. In this chapter, we describe functions for creating and determining fundamental properties of transformations and partial permutations. Semigroups in the Citrus package are semigroups of transformations and partial permutations, and so we describe how to create and manipulate these objects first.
The functions described in this section relating to transformations extend the functionality of GAP library; see also Reference: Transformations.
In this section we describe the functions available in Citrus for creating transformations. The following functions from the GAP reference manual are particularly relevant to this section:
Transformation (Reference: Transformation),
IdentityTransformation (Reference: IdentityTransformation),
RandomTransformation (Reference: RandomTransformation),
AsTransformation (Reference: AsTransformation).
‣ ConstantTransformation( m, n ) | ( function ) |
Returns: A constant transformation of degree m with value n.
gap> ConstantTransformation(5, 1); Transformation( [ 1, 1, 1, 1, 1 ] ) gap> ConstantTransformation(6, 4); Transformation( [ 4, 4, 4, 4, 4, 4 ] )
‣ Idempotent( ker, img ) | ( function ) |
‣ IdempotentNC( ker, img ) | ( function ) |
Returns: An idempotent transformation.
This function returns an idempotent with CanonicalTransSameKernel (2.4-1) equal to ker and image set equal to img after first checking that IsInjectiveTransOnList (2.4-4) holds with argument ker, img.
IdempotentNC returns an idempotent with CanonicalTransSameKernel (2.4-1) equal to ker and image set equal to img without checking that IsInjectiveTransOnList (2.4-4) holds.
gap> f:=Transformation( [ 10, 2, 3, 10, 5, 10, 7, 2, 5, 6 ] );; gap> ker:=CanonicalTransSameKernel(f); [ 1, 2, 3, 1, 4, 1, 5, 2, 4, 6 ] gap> img:=ImageSetOfTransformation(f); [ 2, 3, 5, 6, 7, 10 ] gap> Idempotent(ker, img); Transformation( [ 6, 2, 3, 6, 5, 6, 7, 2, 5, 10 ] )
‣ RandomIdempotent( img, m ) | ( operation ) |
‣ RandomIdempotentNC( img, m ) | ( operation ) |
Returns: An idempotent transformation.
Returns a random idempotent with image set img of degree m after checking that the maximum value in img is at most m.
RandomIdempotentNC returns a random idempotent with image set img of degree m without checking that the maximum value in img is at most m.
gap> RandomIdempotent([ 1, 2, 3 ], 5); Transformation( [ 1, 2, 3, 1, 3 ] ) gap> RandomIdempotent([ 1, 2, 3 ], 4); Transformation( [ 1, 2, 3, 3 ] ) gap> RandomIdempotent([ 1, 2, 3 ], 3); Transformation( [ 1, 2, 3 ] ) gap> RandomIdempotent([ 1, 2, 4, 5, 6 ], 10); Transformation( [ 1, 2, 6, 4, 5, 6, 2, 5, 1, 6 ] )
‣ RandomTransformation( arg ) | ( operation ) |
‣ RandomTransformationNC( arg ) | ( operation ) |
Returns: A transformation.
If arg is a positive integer, then a random transformation of degree arg is returned; see RandomTransformation (Reference: RandomTransformation).
If arg[1] is a list of positive integers and arg[2] is a positive integer, then RandomTransformation returns a random transformation with degree arg[2] and image contained in arg[1].
The no check version RandomTransformationNC does not check that the arguments can define a transformation.
gap> RandomTransformation([1,2,3], 6); Transformation( [ 2, 1, 2, 1, 1, 2 ] ) gap> RandomTransformationNC([1,2,3], 6); Transformation( [ 3, 1, 2, 2, 1, 2 ] )
In this section we describe the functions available in Citrus for creating partial permutations. In addition to the functions described in this section, partial permutations can also be created from permutations and certain transformations; see Section 2.8.
Please note that the functions for partial permutations and inverse semigroups are only available if you have compiled Citrus.
‣ PartialPerm( dom, ran ) | ( function ) |
‣ PartialPerm( list ) | ( function ) |
‣ PartialPermNC( dom, ran ) | ( function ) |
‣ PartialPermNC( list ) | ( function ) |
Returns: A partial permutation.
Partial permutations can be created in two ways: by giving the domain and the range, or the dense range list.
The partial permutation defined by a domain dom and range ran, where dom is a set of positive integers and ran is a duplicate free list of positive integers, maps dom[i] to ran[i]. For example, the partial permutation mapping \(1\) and \(5\) to \(20\) and \(2\) can be created using:
PartialPermNC([1,5],[20,2]);
The partial permutation defined by a dense range list list, maps the positive integer i to list[i] if list[i]<>>0 and is undefined at i if list[i]=0. For example, the partial permutation mapping \(1\) and \(5\) to \(20\) and \(2\) can be created using:
PartialPermNC([20,0,0,0,2]);
Regardless of which of these two methods are used to create a partial permutation in GAP the internal representation is the same.
If the largest point in the domain is larger than the rank of the partial permutation, then using the dense range list to define the partial permutation will require less typing; otherwise using the domain and the range will require less typing. For example, the partial permutation mapping \(10000\) to \(1\) can be defined using:
PartialPermNC([10000], [1]);
but using the dense range list would require a list with \(9999\) entries equal to \(0\) and the final entry equal to \(1\). On the other hand, the identity on [1,2,3,4,6] can be defined using:
PartialPermNC([1,2,3,4,0,6]);
PartialPerm checks that the argument defines a partial permatutation whereas PartialPermNC does not. PartialPermNC is a kernel function written in C, which performs no checks on it argument, and so if the argument does not define a partial permutation, then the results can be unpredictable, and it could even potentially cause GAP to crash.
It is currently only possible to create partial permutations acting on positive integers not greater than \(65535\). Note that this might cause some unexpected behaviour when multiplying partial permutations by permutations. For example, if f:=PartialPerm([1,2,3]);, then f*(1,100000)*(1,100000) will return an error since the result of f*(1,100000) would be a partial permutation acting on too many points. However, the product f*((1,100000)*(1,100000)) is just f and no error is given.
Please note that a partial permutation in GAP is never a permutation nor is a permutation ever a partial permutation. For example, the permutation (1,4,2) fixes 3 but the partial permutation PartialPerm([4,1,0,2]); is not defined on 3.
‣ RestrictedPartialPerm( f, set ) | ( operation ) |
‣ RestrictedPartialPermNC( f, set ) | ( operation ) |
Returns: A partial permutation.
RestrictedPartialPerm returns a new partial permutation that acts on the points in the set of positive integers set in the same way as the partial permutation f, and that is undefined on those points that are not in set.
RestrictedPartialPermNC does not check whether set is a set of positive integers, if it is not, then the results of this function are unpredictable.
gap> f:=PartialPermNC( [ 1, 3, 4, 7, 8, 9 ], [ 9, 4, 1, 6, 2, 8 ] );; gap> RestrictedPartialPerm(f, [2,3,6,10]); [ 3 ] -> [ 4 ]
‣ One( f ) | ( method ) |
Returns: A partial permutation.
As described in the reference manual OneImmutable (Reference: OneImmutable), One returns the multiplicative neutral element of the partial permutation f, which is the identity partial permutation on the union of the domain and range of f; see DomainOfPartialPerm (2.5-2) and RangeOfPartialPerm (2.5-3).
gap> f:=PartialPermNC([ 1, 2, 3, 4, 5, 7, 10 ], [ 3, 7, 9, 6, 1, 10, 2 ]);; gap> One(f); <identity on [ 1, 2, 3, 4, 5, 6, 7, 9, 10 ]>
‣ LeftOne( f ) | ( function ) |
‣ RightOne( f ) | ( function ) |
Returns: The idempotent partial permutation f*f^-1 or f^-1*f.
LeftOne returns the identity partial permutation on DomainOfPartialPerm(f), which is equal to f*f^-1; see DomainOfPartialPerm (2.5-2).
RightOne returns the idenpartial permutation on RangeOfPartialPerm(f), which is equal to f^-1*f; see RangeOfPartialPerm (2.5-3).
The methods for LeftOne and RightOne are more efficient than composing f with f^-1 or vice versa.
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 16, 17, 18, 19 ], > [ 3, 12, 14, 4, 11, 18, 17, 2, 9, 5, 15, 8, 20, 10, 19 ] );; gap> LeftOne(f); <identity on [ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 16, 17, 18, 19 ]> gap> RightOne(f); <identity on [ 2, 3, 4, 5, 8, 9, 10, 11, 12, 14, 15, 17, 18, 19, 20 ]>
‣ RandomPartialPerm( n ) | ( function ) |
Returns: A partial permutation.
RandomPartialPerm returns a randomly chosen partial permutation where points in the domain and range are bounded above by the positive integer n. Points are chosen in the dense range list of the returned partial permutation with the probability of a value being undefined equal to the probability of it being defined. Thus the expected rank of the returned partial permutation is approximately n/2.
gap> f:=RandomPartialPerm(10); [ 1, 2, 3, 4, 7, 8, 9 ] -> [ 5, 9, 1, 7, 2, 8, 4 ]
Partial permutations f with rank less than 20 are displayed as:
DomainOfPartialPerm(f) -> RangeOfPartialPerm(f)
see DomainOfPartialPerm (2.5-2) and RangeOfPartialPerm (2.5-3). The empty mapping is displayed as:
<empty mapping>
and a partial identity is displayed as, for example,
<identity on [ 1, 2, 3, 4, 5, 8, 12, 19, 20 ]>
If a partial permutation in GAP has rank 20 points or more, then to make the display more readable the domain and the range of the partial permutatation are not printed, for example, a partial permutation with rank 27 will be displayed as:
<partial perm on 27 pts>
If you want to display a partial permutation in a form that can be copied and pasted back into GAP, then use Display:
gap> Display(f); PartialPermNC( [ 1, 2, 3, 5, 6, 7, 8 ], [ 5, 9, 10, 6, 3, 8, 4 ] )
Likewise, you can display a collection of partial permutations using Display:
gap> Display(Generators(s)); [ PartialPermNC( [ 1, 2, 3, 4, 5, 8, 10 ], [ 3, 1, 4, 2, 5, 6, 7 ] ), PartialPermNC( [ 1, 2, 4, 7, 8, 9 ], [ 10, 7, 8, 5, 9, 1 ] ) ]
‣ PrettyPrintPP( f ) | ( function ) |
Returns: Nothing.
PrettyPrintPP will print the partial permutation f as a product of disjoint permutations and chains. A chain is a list X of length n such that:
X[1] is an element of the domain of f but not the range
X[i]^f=X[i+1] for all n in \(\{1,\ldots, n-1\}\)
X[n] is in the range of f but not the domain.
In the display, permutations are displayed as they usually are in GAP, fixed points are displayed enclosed in round brackets, and chains are displayed enclosed in square brackets.
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 16, 17, 18, 19 ], > [ 3, 12, 14, 4, 11, 18, 17, 2, 9, 5, 15, 8, 20, 10, 19 ]);; gap> PrettyPrintPP(f); [1,3,14][16,8,2,12,15](4)(5,11)[6,18,10,9][7,17,20](19)
In this section we describe the functions available in Citrus for finding various properties of transformations.
In addition to those functions described below, Citrus also contains a special method for RankOfTransformation (Reference: RankOfTransformation).
‣ CanonicalTransSameKernel( obj ) | ( function ) |
Returns: A list of positive integers.
The argument obj should be a transformation or the list of images of a transformation. If obj is a transformation, then we define f:=obj and if obj is the image list of a transformation we define f:=Transformation(obj). CanonicalTransSameKernel returns the image list of a transformation g such that the kernel of g equals the kernel of f and j^g=i for all j in KernelOfTransformation(g)[i]. For a given transformation f, there is a unique transformation g with this property.
See also ImageListOfTransformation (Reference: ImageListOfTransformation) and KernelOfTransformation (Reference: KernelOfTransformation).
gap> f:=Transformation( [ 10, 3, 7, 10, 1, 5, 9, 2, 6, 10 ] );; gap> CanonicalTransSameKernel(f); [ 1, 2, 3, 1, 4, 5, 6, 7, 8, 1 ] gap> f:=[ 10, 6, 7, 9, 9, 9, 4, 1, 4, 1 ];; gap> CanonicalTransSameKernel(f); [ 1, 2, 3, 4, 4, 4, 5, 6, 5, 6 ]
‣ IndexPeriodOfTransformation( f ) | ( function ) |
Returns: A pair of positive integers.
Returns the least positive integers m, r such that f^(m+r)=f^m, which are known as the index and period of the transformation f.
gap> f:=Transformation( [ 3, 4, 4, 6, 1, 3, 3, 7, 1 ] );; gap> IndexPeriodOfTransformation(f); [ 2, 3 ] gap> f^2=f^5; true
‣ InversesOfTransformation( S, f ) | ( operation ) |
‣ InversesOfTransformationNC( S, f ) | ( operation ) |
Returns: A list of transformations.
InversesOfTransformation returns a list of the inverses of the transformation f in the transformation semigroup S after first checking that f is an element of S.
A transformation g in S is an inverse of f if f*g*f=f and g*f*g=g.
The function InversesOfTransformationNC does not check that f is an element of S.
gap> S:=Semigroup([ Transformation( [ 3, 1, 4, 2, 5, 2, 1, 6, 1 ] ), > Transformation( [ 5, 7, 8, 8, 7, 5, 9, 1, 9 ] ), > Transformation( [ 7, 6, 2, 8, 4, 7, 5, 8, 3 ] ) ]);; gap> f:=Transformation( [ 3, 1, 4, 2, 5, 2, 1, 6, 1 ] );; gap> InversesOfTransformationNC(S, f); [ ] gap> IsRegularTransformation(S, f); false gap> f:=Transformation( [ 1, 9, 7, 5, 5, 1, 9, 5, 1 ] );; gap> InversesOfTransformation(S, f); [ Transformation( [ 1, 5, 1, 2, 5, 1, 3, 2, 2 ] ), Transformation( [ 1, 2, 3, 5, 5, 1, 3, 5, 2 ] ), Transformation( [ 1, 5, 1, 1, 5, 1, 3, 1, 2 ] ) ] gap> IsRegularTransformation(S, f); true
‣ IsInjectiveTransOnList( obj, list ) | ( operation ) |
Returns: true or false.
The argument obj should be a transformation or the list of images of a transformation and list should be a list of positive integers. If obj is a transformation, then we define f:=obj and if obj is the image list of a transformation we define f:=Transformation(obj). IsInjectiveTransOnList returns true if f is injective on list and false if it is not. If list is not duplicate free, then false is returned.
See also ImageListOfTransformation (Reference: ImageListOfTransformation) and Transformation (Reference: Transformation).
gap> f:=Transformation( [ 2, 6, 7, 2, 6, 9, 9, 1, 1, 5 ] );; gap> IsInjectiveTransOnList(f, [1,5]); true gap> IsInjectiveTransOnList(f, [5,1]); true gap> IsInjectiveTransOnList(f, [5,1,5,1,1,]); false gap> IsInjectiveTransOnList([1,2,3,4,5], [5,1,2,3]); true
‣ IsRegularTransformation( S, f ) | ( operation ) |
Returns: true or false.
This function returns true if f is a regular element of the transformation semigroup S and false if it is not.
A transformation f is regular in a transformation semigroup S if it lies inside a regular \(\mathcal{D}\)-class; see IsRegularDClass (Reference: IsRegularDClass) or IsRegularDClass (4.4-6). Equivalently f is regular if the orbit of the image of f containing a transversal of the kernel of f; see Transformation (Reference: Transformation) and ImageSetOfTransformation (Reference: ImageSetOfTransformation).
gap> S:=Monoid(Transformation([2,2,4,4,5,6]),Transformation([5,3,4,4,6,6]));; gap> f:=Generators(S)[1];; gap> IsRegularTransformation(S, f); true gap> img:=ImageSetOfTransformation(f); [ 2, 4, 5, 6 ] gap> o:=Orb(S, img, OnSets);; Enumerate(o); <closed orbit, 3 points> gap> ForAny(o, x-> IsInjectiveTransOnList(f, x)); true gap> IsRegularTransformation(S, Generators(S)[2]); false gap> IsRegularTransformation(FullTransformationSemigroup(6), Generators(S)[2]); true
‣ DegreeOfTransformation( f ) | ( function ) |
‣ Degree( f ) | ( function ) |
‣ Degree( C ) | ( function ) |
Returns: A positive integer.
The degree of a transformation f is the length of ImageListOfTransformation (Reference: ImageListOfTransformation).
The degree of a transformation collection C is the degree of any (and all) transformations in C.
See also DegreeOfTransformation (Reference: DegreeOfTransformation).
‣ RankOfTransformation( f ) | ( function ) |
‣ Rank( f ) | ( function ) |
Returns: A positive integer.
RankOfTransformation returns the length of the set of image points of the transformation f; see RankOfTransformation (Reference: RankOfTransformation).
Rank(f) returns the same result as RankOfTransformation and is included for the sake of having a shorter name. Rank can also be applied to partial permutations; see RankOfPartialPerm (2.5-11)
gap> f:=Transformation( [ 8, 5, 8, 2, 2, 8, 4, 7, 3, 1 ] );; gap> RankOfTransformation(f); 7 gap> Rank(f); 7
‣ SmallestIdempotentPower( f ) | ( operation ) |
Returns: A positive integer.
This function returns the least positive integer n such that the transformation f^n is an idempotent. See also SmallestIdempotentPower (2.5-14).
gap> f:=Transformation( [ 6, 7, 4, 1, 7, 4, 6, 1, 3, 4 ] );; gap> SmallestIdempotentPower(f); 3 gap> f:=Transformation( [ 6, 6, 6, 2, 7, 1, 5, 3, 10, 6 ] );; gap> SmallestIdempotentPower(f); 2
In this section we describe the functions available in Citrus for finding various properties of partial permutations.
‣ IsPartialPerm( obj ) | ( category ) |
‣ IsPartialPermCollection( obj ) | ( category ) |
Returns: true or false.
Each partial permutation in GAP lies in the category IsPartialPerm. Basic operations for partial permutations are DomainOfPartialPerm (2.5-2), RangeOfPartialPerm (2.5-3), RangeSetOfPartialPerm (2.5-4), RankOfPartialPerm (2.5-11), DegreeOfPartialPerm (2.5-12), multiplication of two partial permutations is via *, and exponentiation with the first argument a positive integer i and second argument a partial permutation f where the result is the image i^f of the point i under f.
IsPartialPermCollection is the category of collections of partial permutations. For example, a semigroup of partial permutations belongs in IsPartialPermCollection.
‣ DomainOfPartialPerm( f ) | ( operation ) |
Returns: A set of positive integers.
The domain of a partial permutation f is the set of positive integers where f is defined.
gap> f:=PartialPermNC( [ 1, 2, 3, 6, 8, 10 ], [ 2, 6, 7, 9, 1, 5 ] );; gap> DomainOfPartialPerm(f); [ 1, 2, 3, 6, 8, 10 ]
‣ RangeOfPartialPerm( f ) | ( operation ) |
Returns: A duplicate-free list of positive integers.
The range of a partial permutation f is the list of images of the elements of the domain f where RangeOfPartialPerm(f)[i]=DomainOfPartialPerm(f)[i]^f.
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 5, 8, 10 ], [ 7, 1, 4, 3, 2, 6, 5 ] );; gap> RangeOfPartialPerm(f); [ 7, 1, 4, 3, 2, 6, 5 ]
‣ RangeSetOfPartialPerm( f ) | ( operation ) |
Returns: A set of positive integers.
The range of a partial permutation f is the list of images of the elements of the domain f. RangeSetOfPartialPerm returns the range of a partial permutation sorted into increasing order.
gap> f:=PartialPermNC( [ 1, 2, 3, 5, 7, 10 ], [ 10, 2, 3, 5, 7, 6 ] );; gap> RangeSetOfPartialPerm(f); [ 2, 3, 5, 6, 7, 10 ]
‣ FixedPointsOfPartialPerm( f ) | ( operation ) |
Returns: A set of positive integers.
A positive integer i is fixed by a partial permutation f if i^f=i. FixedPointsOfPartialPerm returns the set of points fixed by the partial permutation f.
gap> f:=PartialPermNC( > [ 1, 2, 3, 5, 6, 8, 10, 11, 14, 17, 20, 21, 22, 24, 25, 26, 32 ], > [ 30, 20, 29, 24, 9, 14, 26, 5, 25, 15, 11, 6, 35, 2, 10, 19, 23 ] );; gap> FixedPointsOfPartialPerm(f); [ ] gap> f:=PartialPermNC([1..10]); <identity on [ 1 .. 10 ]> gap> FixedPointsOfPartialPerm(f); [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
‣ MovedPoints( f ) | ( operation ) |
‣ MovedPoints( C ) | ( operation ) |
Returns: A set of positive integers.
A positive integer i is moved by a partial permutation f if i^f<>i. MovedPoints returns the set of points moved by: the partial permutation f or at least one partial permutation in the collection C, respectively.
The operation Points (4.5-1) returns a list of all the points on which the collection C acts, not only those points that are moved.
gap> f:=PartialPermNC( > [ 1, 2, 3, 5, 6, 8, 10, 11, 14, 17, 20, 21, 22, 24, 25, 26, 32 ], > [ 30, 20, 29, 24, 9, 14, 26, 5, 25, 15, 11, 6, 35, 2, 10, 19, 23 ] );; gap> MovedPoints(f); [ 1, 2, 3, 5, 6, 8, 10, 11, 14, 17, 20, 21, 22, 24, 25, 26, 32 ] gap> f:=PartialPermNC([1..10]); <identity on [ 1 .. 10 ]> gap> MovedPoints(f); [ ]
‣ NrMovedPoints( f ) | ( operation ) |
‣ NrMovedPoints( C ) | ( operation ) |
Returns: A positive integer.
A positive integer i is moved by a partial permutation f if i^f<>i. NrMovedPoints returns the number of points moved by: the partial permutation f or the by at least one partial permutation in the collection C, respectively.
gap> f:=PartialPermNC( > [ 1, 2, 3, 5, 6, 8, 10, 11, 14, 17, 20, 21, 22, 24, 25, 26, 32 ], > [ 30, 20, 29, 24, 9, 14, 26, 5, 25, 15, 11, 6, 35, 2, 10, 19, 23 ] );; gap> NrMovedPoints(f); 17 gap> f:=PartialPermNC([1..10]); <identity on [ 1 .. 10 ]> gap> NrMovedPoints(f); 0
‣ LargestMovedPoint( f ) | ( operation ) |
‣ LargestMovedPoint( C ) | ( operation ) |
Returns: A non-negative integer.
A positive integer i is moved by a partial permutation f if i^f<>i.
LargestMovedPoint returns the largest point moved by the partial permutation f or \(0\) if no points are moved by f.
LargestMovedPoint returns the largest point moved by at least one of the partial permutations in the collection C or \(0\) if no points are moved by any element of C.
gap> f:=PartialPermNC( > [ 1, 2, 3, 5, 6, 8, 10, 11, 14, 17, 20, 21, 22, 24, 25, 26, 32 ], > [ 30, 20, 29, 24, 9, 14, 26, 5, 25, 15, 11, 6, 35, 2, 10, 19, 23 ] );; gap> LargestMovedPoint(f); 32 gap> f:=PartialPermNC([1..10]); <identity on [ 1 .. 10 ]> gap> LargestMovedPoint(f); 0
‣ SmallestMovedPoint( f ) | ( operation ) |
‣ SmallestMovedPoint( C ) | ( operation ) |
Returns: A non-negative integer.
A positive integer i is moved by a partial permutation f if i^f<>i.
SmallestMovedPoint returns the smallest point moved by the partial permutation f or \(0\) if no points are moved by f.
SmallestMovedPoint returns the smallest point moved by at least one of the partial permutations in the collection C or \(0\) if no points are moved by any element of C.
gap> f:=PartialPermNC( > [ 1, 2, 3, 5, 6, 8, 10, 11, 14, 17, 20, 21, 22, 24, 25, 26, 32 ], > [ 30, 20, 29, 24, 9, 14, 26, 5, 25, 15, 11, 6, 35, 2, 10, 19, 23 ] );; gap> SmallestMovedPoint(f); 1 gap> f:=PartialPermNC([1..10]); <identity on [ 1 .. 10 ]> gap> SmallestMovedPoint(f); 0
‣ DenseRangeList( f ) | ( function ) |
Returns: A list of positive integers.
The dense range list of a partial permutation f is a list of positive integers list such that list[i]=i^f where i^f=0 if f is undefined on i.
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 8, 9, 10 ], [ 5, 8, 9, 7, 2, 6, 10 ] );; gap> DenseRangeList(f); [ 5, 8, 9, 7, 0, 0, 0, 2, 6, 10 ]
‣ RankOfPartialPerm( f ) | ( function ) |
‣ Rank( f ) | ( function ) |
Returns: A positive integer.
The rank of a partial permutation f is the number of points in its domain (or equivalently its range).
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 5, 6 ], [ 10, 3, 9, 1, 5, 8 ] );; gap> RankOfPartialPerm(f); 6
‣ DegreeOfPartialPerm( f ) | ( function ) |
‣ Degree( f ) | ( function ) |
‣ Degree( C ) | ( function ) |
Returns: A positive integer.
The degree of a partial permutation f is the largest positive integer in the union of its domain and range.
The degree of a partial permutation collection C is the largest degree of any partial permutation in C, i.e. the largest point in the domain or range of any element in C.
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 6, 10 ], [ 1, 8, 2, 3, 4, 9 ] );; gap> DegreeOfPartialPerm(f); 10
‣ IndexPeriodOfPartialPerm( f ) | ( function ) |
Returns: A pair of positive integers.
Returns the least positive integers m, r such that f^(m+r)=f^m, which are known as the index and period of the partial permutation f.
gap> f:=PartialPermNC( > [ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 16, 17, 18, 19 ], > [ 3, 12, 14, 4, 11, 18, 17, 2, 9, 5, 15, 8, 20, 10, 19 ]);; gap> IndexPeriodOfPartialPerm(f); [ 5, 2 ] gap> f^5=f^7; true
‣ SmallestIdempotentPower( f ) | ( operation ) |
Returns: A positive integer.
This function returns the least positive integer n such that the partial permutation f^n is an idempotent. See also SmallestIdempotentPower (2.4-8).
gap> f:=PartialPermNC( > [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 16, 17, 23, 25, 29 ], > [ 30, 8, 28, 21, 23, 15, 10, 14, 1, 18, 16, 5, 7, 26, 6, 9, 11, 19 ] );; gap> SmallestIdempotentPower(f); 6 gap> f^6; <empty mapping>
i ^ freturns the image of the positive integer i under the transformation f if i is less than the degree of f.
f ^ greturns g^-1*f*g when f is a transformation and g is a permutation \^ (Reference: ^).
f * greturns the composition of the transformations f and g. Citrus contains more efficient methods than the GAP library for \* (Reference: *) when f and g are transformations or permutations (and at least one of f and g is a transformation).
f < greturns true if ImageListOfTransformation(f) is lexicographically less than ImageListOfTransformation(g) and false if it is not. See ImageListOfTransformation (Reference: ImageListOfTransformation).
f = greturns true if the transformation f equals the transformation g and returns false if it does not.
f ^ -1returns the inverse of the partial permutation f.
i ^ freturns the image of the positive integer i under the partial permutation f if f is defined on i and fail if f is undefined on i.
f * greturns the composition of the partial permutations f and g. Unlike transformations, but similar to permutations, in GAP it is possible to multiply any two partial permutations. It is also possible to multiply partial permutations and permutations acting on integers not larger than 65535; see PartialPerm (2.2-1) for some further comments about composing partial permutations and permutations.
f < greturns true if Concatenation(DomainOfPartialPerm(f), RangeOfPartialPerm(f)) is short-lex less than Concatenation(DomainOfPartialPerm(g), RangeOfPartialPerm(g)) and false if it is not. Note that this is not the natural partial order on elements of an inverse semigroup; see NaturalLeqPartialPerm (2.7-1).
f = greturns true if the partial permutation f equals the partial permutation g and returns false if it is not.
f / greturns f * g^-1 where f and g are partial permutations; f / g has better performance than f * g^-1.
‣ NaturalLeqPartialPerm( f, g ) | ( function ) |
Returns: true or false.
The natural partial order \(\leq\) on an inverse semigroup \(S\) is defined by \(s\leq\)\(t\) if there exists an idempotent \(e\) in \(S\) such that \(s=et\). Hence if f and g are partial permutations, then f\(\leq\)g if and only if f is a restriction of g; see RestrictedPartialPerm (2.2-2). NaturalLeqPartialPerm returns true if f is a restriction of g and false if it is not.
gap> f:=PartialPermNC( [ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 16, 17, 18, 19 ], > [ 3, 12, 14, 4, 11, 18, 17, 2, 9, 5, 15, 8, 20, 10, 19 ] );; gap> set:=[ 1, 2, 3, 9, 13, 20 ];; gap> g:=RestrictedPartialPerm(f, set); [ 1 .. 3 ] -> [ 3, 12, 14 ] gap> NaturalLeqPartialPerm(g,f); true gap> NaturalLeqPartialPerm(f,g); false gap> g:=PartialPermNC( [ 1, 2, 3, 4, 5, 8, 10 ], [ 7, 1, 4, 3, 2, 6, 5 ] );; gap> NaturalLeqPartialPerm(f, g); false gap> NaturalLeqPartialPerm(g, f); false
It is possible to change the representation of certain transformations and partial permutations using the functions described in this section.
‣ AsPermOfKerImg( f ) | ( function ) |
Returns: A permutation.
This function returns a permutation p such that
OnTuples(CanonicalTransSameKernel(f), p)=ImageListOfTransformation(f);
See also CanonicalTransSameKernel (2.4-1) and ImageListOfTransformation (Reference: ImageListOfTransformation).
gap> f:=Transformation( [ 2, 1, 6, 1, 7, 6, 2, 8, 4, 7 ] );; gap> CanonicalTransSameKernel(f); ImageListOfTransformation(f); [ 1, 2, 3, 2, 4, 3, 1, 5, 6, 4 ] [ 2, 1, 6, 1, 7, 6, 2, 8, 4, 7 ] gap> AsPermOfKerImg(f); (1,2)(3,6,4,7)(5,8)
‣ AsPermutation( f[, set] ) | ( operation ) |
Returns: A permutation.
If the transformation or partial permutation f is a permutation of the set of positive integers set, then AsPermutation returns this permutation; see Permutation (Reference: Permutation).
If the optional argument set is not specified, then the image set of f is used by default for transformations and the range of f is used by default for partial permutations; see ImageSetOfTransformation (Reference: ImageSetOfTransformation) and RangeSetOfPartialPerm (2.5-4).
gap> f:=Transformation( [ 5, 8, 3, 5, 8, 6, 2, 2, 7, 8 ] );; gap> AsPermutation(f); fail gap> f:=Transformation( [ 8, 2, 10, 2, 4, 4, 7, 6, 9, 10 ] );; gap> AsPermutation(f); fail gap> f:=Transformation( [ 1, 3, 6, 6, 2, 10, 2, 3, 10, 5 ] );; gap> AsPermutation(f); (2,3,6,10,5) gap> f:=Transformation( [ 5, 2, 8, 4, 1, 8, 10, 3, 5, 7 ] );; gap> AsPermutation(f); (1,5)(3,8)(7,10) gap> AsPermutation(f, [1,5]); (1,5) gap> AsPermutation(f, [3,8,7,10]); (3,8)(7,10) gap> f:=PartialPerm([ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 16, 17, 18, 19 ], > [ 3, 12, 14, 4, 11, 18, 17, 2, 9, 5, 15, 8, 20, 10, 19 ]);; gap> AsPermutation(f); fail gap> AsPermutation(f, [4,5,11]); (5,11) gap> f:=RandomPartialPerm(20);; gap> AsPermutation(f^-1*f); ()
‣ AsPartialPerm( f[, set] ) | ( function ) |
‣ AsPartialPermNC( f[, set] ) | ( function ) |
Returns: A partial permutation.
AsPartialPerm and AsPartialPermNC return the partial permutation that equals f on the set of positive integers set and is undefined elsewhere. If the optional second argument set is not specfied, then MovedPoints(f) is used; see MovedPoints (Reference: MovedPoints (for a permutation)).
If the optional second argument set is specified, then AsPartialPerm first checks that set is a set of positive integers and then calls AsPartialPermNC. If the optional second argument is not specified, then AsPartialPerm simply calls AsPartialPermNC and no further checks are performed.
Note that as explained in PartialPerm (2.2-1) a permutation is never a partial permutation in GAP, please keep this in mind when using AsPartialPerm.
If f is a transformation such that Degree(f)^f=Degree(f) and f is injective except on those i such that i^f=Degree(f), then AsPartialPerm returns the corresponding partial permutation.
AsPartialPerm first verifies that f has the required form, whereas AsPartialPermNC does not. There is currently no method for AsPartialPerm or AsPartialPermNC with two arguments.
gap> f:=(2,8,19,9,14,10,20,17,4,13,12,3,5,7,18,16);; gap> AsPartialPerm(f); [ 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 19, 20 ] -> [ 8, 5, 13, 7, 18, 19, 14, 20, 3, 12, 10, 2, 4, 16, 9, 17 ] gap> AsPartialPerm(f, [1,2,3]); [ 1 .. 3 ] -> [ 1, 8, 5 ] gap> f:=Transformation( [ 8, 3, 5, 9, 6, 2, 9, 7, 9 ] );; gap> AsPartialPerm(f); [ 1, 2, 3, 5, 6, 8 ] -> [ 8, 3, 5, 6, 2, 7 ] gap> AsPartialPermNC(f); [ 1, 2, 3, 5, 6, 8 ] -> [ 8, 3, 5, 6, 2, 7 ] gap> f:=Transformation( [ 2, 10, 2, 4, 4, 7, 6, 9, 10, 1 ] );; gap> AsPartialPerm(f); fail
‣ AsTransformation( f[, n] ) | ( operation ) |
Returns: A transformation.
If f is a partial permutation and m is the largest point in the union of the domain and range of f, then AsTransformation returns the transformation g such that i^g=i^f for all i in the domain of f and i^g=m+1 for all i in \(\{1,\ldots, m+1\}\) that is not in the domain of f.
If the optional second argument n is a positive integer greater than the largest point in the union of the domain and range of f, then the transformation obtained is defined by replacing m in the definition of g in previous paragraph by n.
It is also possible to use AsTransformation to convert permutations and binary relations into transformations; see AsTransformation (Reference: AsTransformation).
gap> f:=PartialPerm([ 1, 2, 3, 4, 5, 8, 10 ], [ 3, 1, 4, 2, 5, 6, 7 ]);; gap> AsTransformation(f); Transformation( [ 3, 1, 4, 2, 5, 11, 11, 6, 11, 7, 11 ] ) gap> AsTransformation(f, 12); Transformation( [ 3, 1, 4, 2, 5, 12, 12, 6, 12, 7, 12, 12 ] ) gap> AsTransformation(f, 14); Transformation( [ 3, 1, 4, 2, 5, 14, 14, 6, 14, 7, 14, 14, 14, 14 ] )
The following actions of transformations and partial permutations are used by Citrus in the computation of Green's relations and to test if an arbitrary transformation semigroup has a particular property; see Chapter 4 and Reference: Basic Actions.
‣ OnKernelsAntiAction( ker, f ) | ( function ) |
Returns: A list of positive integers.
The argument ker should equal CanonicalTransSameKernel(g); for some transformation g with degree equal to the degree of the transformation f. OnKernelsAntiAction returns CanonicalTransSameKernel(f*g). See also CanonicalTransSameKernel (2.4-1).
gap> f:=Transformation( [ 3, 6, 9, 2, 4, 2, 2, 2, 8, 2 ] );; gap> g:=Transformation( [ 7, 1, 4, 3, 2, 7, 7, 6, 6, 5 ] );; gap> ker:=CanonicalTransSameKernel(f); [ 1, 2, 3, 4, 5, 4, 4, 4, 6, 4 ] gap> OnKernelsAntiAction(ker, g); [ 1, 2, 1, 3, 4, 1, 1, 1, 1, 5 ] gap> CanonicalTransSameKernel(g*f); [ 1, 2, 1, 3, 4, 1, 1, 1, 1, 5 ]
‣ OnIntegerSetsWithPartialPerm( set, f ) | ( operation ) |
Returns: A set of positive integers.
OnIntegerSetsWithPartialPerm is a special method for OnSets (Reference: OnSets) for a set of positive integers set and a partial permutation f.
gap> f:=PartialPermNC([ 1, 2, 4, 5, 6, 8, 9, 10, 11, 15, 16, 17, 18 ], > [ 13, 20, 2, 14, 18, 7, 3, 19, 9, 11, 5, 16, 8 ]);; gap> OnSets([1,2,3], f); [ 13, 20, fail ] gap> OnIntegerSetsWithPartialPerm([1,2,3], f); [ 13, 20 ]
‣ TransformationActionNC( obj, list, func ) | ( operation ) |
Returns: A transformation or collection of transformations.
If obj is a GAP object that acts on the list list via the function func, then TransformationActionNC returns this action as a transformation; see also Transformation (Reference: Transformation). Mathematically, the argument obj should be an element of a semigroup so that the action of obj on list via func is a semigroup action. However, it is not technically necessary for obj to be an element of a semigroup in GAP.
If obj is a semigroup, then TransformationActionNC returns the list obtained from applying TransformationActionNC to every generator of obj.
gap> mat:=OneMutable(GeneratorsOfGroup(GL(3,3))[1]); [ [ Z(3)^0, 0*Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0, 0*Z(3) ], [ 0*Z(3), 0*Z(3), Z(3)^0 ] ] gap> mat[3][3]:=Z(3)*0; 0*Z(3) gap> F:=BaseDomain(mat); GF(3) gap> TransformationActionNC(mat, Elements(F^3), OnRight); Transformation( [ 1, 1, 1, 4, 4, 4, 7, 7, 7, 10, 10, 10, 13, 13, 13, 16, 16, 16, 19, 19, 19, 22, 22, 22, 25, 25, 25 ] )
The following functions supplement the Orb package by providing methods for computations related to the strongly connected components of an orbit of a semigroup.
Please note that if any of the functions in this section is applied to an open orbit, then the orbit is enumerated before anything else. It is not possible to calculate the strongly connected components of an orbit of a semigroup acting on a set until the entire orbit has been found.
‣ OrbSCC( o ) | ( function ) |
Returns: The strongly connected components of an orbit.
If o is an orbit created by the Orb package with the option orbitgraph=true, then OrbSCC returns a set of sets of positions in o corresponding to its strongly connected components.
See also OrbSCCLookup (2.10-2) and OrbSCCTruthTable (2.10-3).
gap> S:=FullTransformationSemigroup(4);; gap> o:=ImagesOfTransSemigroup(S);; gap> OrbSCC(o); [ [ 1 ], [ 2, 3, 4, 5 ], [ 6, 7, 8, 9, 10, 11 ], [ 12, 13, 14, 15 ] ]
‣ OrbSCCLookup( o ) | ( function ) |
Returns: A lookup table for the strongly connected components of an orbit.
If o is an orbit created by the Orb package with the option orbitgraph=true, then OrbSCCLookup returns a lookup table for its strongly connected components. More precisely, OrbSCCLookup(o)[i] equals the index of the strongly connected component containing o[i].
See also OrbSCC (2.10-1) and OrbSCCTruthTable (2.10-3).
gap> S:=FullTransformationSemigroup(4);; gap> o:=ImagesOfTransSemigroup(S);; gap> OrbSCC(o); [ [ 1 ], [ 2, 3, 4, 5 ], [ 6, 7, 8, 9, 10, 11 ], [ 12, 13, 14, 15 ] ] gap> OrbSCCLookup(o); [ 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ] gap> OrbSCCLookup(o)[1]; OrbSCCLookup(o)[4]; OrbSCCLookup(o)[7]; 1 2 3
‣ OrbSCCTruthTable( o ) | ( function ) |
Returns: Truth tables for strongly connected components of an orbit.
If o is an orbit created by the Orb package with the option orbitgraph=true, then OrbSCCTruthTable returns a list of boolean lists such that OrbSCCTruthTable(o)[i][j] is true if j belongs to OrbSCC(o)[i].
See also OrbSCC (2.10-1) and OrbSCCLookup (2.10-2).
gap> S:=FullTransformationSemigroup(4);; gap> o:=ImagesOfTransSemigroup(S);; gap> OrbSCC(o); [ [ 1 ], [ 2, 3, 4, 5 ], [ 6, 7, 8, 9, 10, 11 ], [ 12, 13, 14, 15 ] ] gap> OrbSCCTruthTable(o); [ [ true, false, false, false, false, false, false, false, false, false, false, false, false, false, false ], [ false, true, true, true, true, false, false, false, false, false, false, false, false, false, false ], [ false, false, false, false, false, true, true, true, true, true, true, false, false, false, false ], [ false, false, false, false, false, false, false, false, false, false, false, true, true, true, true ] ]
‣ ReverseSchreierTreeOfSCC( o, i ) | ( function ) |
Returns: The reverse Schreier tree corresponding to the ith strongly connected component of an orbit.
If o is an orbit created by the Orb package with the option orbitgraph=true and action act, and i is a positive integer, then ReverseSchreierTreeOfSCC(o, i) returns a pair [ gen, pos ] of lists with Length(o) entries such that
act(o[j], o!.gens[gen[j]])=o[pos[j]].
The pair [ gen, pos ] corresponds to a tree with root OrbSCC(o)[i][1] and a path from every element of OrbSCC(o)[i] to the root.
See also OrbSCC (2.10-1), TraceSchreierTreeOfSCCBack (2.10-6), SchreierTreeOfSCC (2.10-5), and TraceSchreierTreeOfSCCForward (2.10-7).
gap> S:=Semigroup(Transformation( [ 2, 2, 1, 4, 4 ] ), > Transformation( [ 3, 3, 3, 4, 5 ] ), > Transformation( [ 5, 1, 4, 5, 5 ] ) );; gap> o:=Orb(S, [1..4], OnSets, rec(orbitgraph:=true, schreier:=true));; gap> OrbSCC(o); [ [ 1 ], [ 2 ], [ 3, 5, 6, 7, 11 ], [ 4 ], [ 8 ], [ 9 ], [ 10, 12 ] ] gap> ReverseSchreierTreeOfSCC(o, 3); [ [ fail, fail, fail, fail, 2, 1, 2, fail, fail, fail, 1, fail ], [ fail, fail, fail, fail, 3, 5, 3, fail, fail, fail, 7, fail ] ] gap> ReverseSchreierTreeOfSCC(o, 7); [ [ fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, 3 ], [ fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, 10 ] ] gap> OnSets(o[11], Generators(S)[1]); [ 1, 4 ] gap> Position(o, last); 7
‣ SchreierTreeOfSCC( o, i ) | ( function ) |
Returns: The Schreier tree corresponding to the ith strongly connected component of an orbit.
If o is an orbit created by the Orb package with the option orbitgraph=true and action act, and i is a positive integer, then SchreierTreeOfSCC(o, i) returns a pair [ gen, pos ] of lists with Length(o) entries such that
act(o[pos[j]], o!.gens[gen[j]])=o[j].
The pair [ gen, pos ] corresponds to a tree with root OrbSCC(o)[i][1] and a path from the root to every element of OrbSCC(o)[i].
See also OrbSCC (2.10-1), TraceSchreierTreeOfSCCBack (2.10-6), ReverseSchreierTreeOfSCC (2.10-4), and TraceSchreierTreeOfSCCForward (2.10-7).
gap> S:=Semigroup(Transformation( [ 2, 2, 1, 4, 4 ] ), > Transformation( [ 3, 3, 3, 4, 5 ] ), > Transformation( [ 5, 1, 4, 5, 5 ] ) );; gap> o:=Orb(S, [1..4], OnSets, rec(orbitgraph:=true, schreier:=true));; gap> OrbSCC(o); [ [ 1 ], [ 2 ], [ 3, 5, 6, 7, 11 ], [ 4 ], [ 8 ], [ 9 ], [ 10, 12 ] ] gap> SchreierTreeOfSCC(o, 3); [ [ fail, fail, fail, fail, 1, 3, 1, fail, fail, fail, 2, fail ], [ fail, fail, fail, fail, 7, 5, 3, fail, fail, fail, 6, fail ] ] gap> SchreierTreeOfSCC(o, 7); [ [ fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, 1 ], [ fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, 10 ] ] gap> OnSets(o[6], Generators(S)[2]); [ 3, 5 ] gap> Position(o, last); 11
‣ TraceSchreierTreeOfSCCBack( orb, m, nr ) | ( function ) |
Returns: A word in the generators.
orb must be an orbit object with a Schreier tree and orbit graph, that is, the options schreier and orbitgraph must have been set to true during the creation of the orbit, m must be the number of a strongly connected component of orb, and nr must be the number of a point in the mth strongly connect component of orb. This operation traces the result of ReverseSchreierTreeOfSCC (2.10-4) and with arguments orb and m and returns a word in the generators that maps the point with number nr to the first point in the mth strongly connected component of orb. Here, a word is a list of integers, where positive integers are numbers of generators. See also OrbSCC (2.10-1),EvaluateWord (4.1-1), ReverseSchreierTreeOfSCC (2.10-4), SchreierTreeOfSCC (2.10-5), and TraceSchreierTreeOfSCCForward (2.10-7).
gap> S:=Semigroup(Transformation( [ 1, 3, 4, 1 ] ), > Transformation( [ 2, 4, 1, 2 ] ), > Transformation( [ 3, 1, 1, 3 ] ), > Transformation( [ 3, 3, 4, 1 ] ) );; gap> o:=Orb(S, [1..4], OnSets, rec(orbitgraph:=true, schreier:=true));; gap> OrbSCC(o); [ [ 1 ], [ 2 ], [ 3 ], [ 4, 5, 6, 7, 8 ], [ 9, 10, 11, 12 ] ] gap> ReverseSchreierTreeOfSCC(o, 4); [ [ fail, fail, fail, fail, 4, 1, 1, 3, fail, fail, fail, fail ], [ fail, fail, fail, fail, 4, 4, 4, 4, fail, fail, fail, fail ] ] gap> TraceSchreierTreeOfSCCBack(o, 4, 7); [ 1 ] gap> TraceSchreierTreeOfSCCBack(o, 4, 8); [ 3 ]
‣ TraceSchreierTreeOfSCCForward( orb, m, nr ) | ( function ) |
Returns: A word in the generators.
orb must be an orbit object with a Schreier tree and orbit graph, that is, the options schreier and orbitgraph must have been set to true during the creation of the orbit, m must be the number of a strongly connected component of orb, and nr must be the number of a point in the mth strongly connect component of orb. This operation traces the result of SchreierTreeOfSCC (2.10-5) and with arguments orb and m and returns a word in the generators that maps the first point in the mth strongly connected component of orb to the point with number nr. Here, a word is a list of integers, where positive integers are numbers of generators. See also OrbSCC (2.10-1), EvaluateWord (4.1-1), ReverseSchreierTreeOfSCC (2.10-4), SchreierTreeOfSCC (2.10-5), and TraceSchreierTreeOfSCCBack (2.10-6).
gap> S:=Semigroup(Transformation( [ 1, 3, 4, 1 ] ), > Transformation( [ 2, 4, 1, 2 ] ), > Transformation( [ 3, 1, 1, 3 ] ), > Transformation( [ 3, 3, 4, 1 ] ) );; gap> o:=Orb(S, [1..4], OnSets, rec(orbitgraph:=true, schreier:=true));; gap> OrbSCC(o); [ [ 1 ], [ 2 ], [ 3 ], [ 4, 5, 6, 7, 8 ], [ 9, 10, 11, 12 ] ] gap> SchreierTreeOfSCC(o, 4); [ [ fail, fail, fail, fail, 1, 2, 2, 4, fail, fail, fail, fail ], [ fail, fail, fail, fail, 4, 4, 6, 4, fail, fail, fail, fail ] ] gap> TraceSchreierTreeOfSCCForward(o, 4, 8); [ 4 ] gap> TraceSchreierTreeOfSCCForward(o, 4, 7); [ 2, 2 ]
generated by GAPDoc2HTML