Skip to content

Commit

Permalink
Accommodate changes in GAP affecting method ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson committed Sep 17, 2018
1 parent 3db978c commit 7ecd87e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gap/ideals/ideals.gi
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ end);
InstallMethod(ViewString,
"for a semigroup ideal with ideal generators",
[IsSemigroupIdeal and HasGeneratorsOfSemigroupIdeal],
1, # to beat the library method
4, # to beat the library method
_ViewStringForSemigroupsIdeals);

InstallMethod(ViewString,
Expand Down
1 change: 1 addition & 0 deletions gap/semigroups/semigraph.gi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ InstallMethod(AsMonoid, "for a graph inverse semigroup",

InstallMethod(ViewString, "for a graph inverse semigroup",
[IsGraphInverseSemigroup],
RankFilter(IsGroupAsSemigroup), # to beat library method for groups as semigrps
function(S)
local n, str;

Expand Down
1 change: 1 addition & 0 deletions gap/semigroups/semirms.gi
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ InstallMethod(ViewString,
"for a Rees 0-matrix subsemigroup ideal with ideal generators",
[IsReesZeroMatrixSubsemigroup and IsSemigroupIdeal and
HasGeneratorsOfSemigroupIdeal],
3, # to beat ViewString for a semigroup ideal with ideal generators
function(I)
local str, nrgens;

Expand Down
7 changes: 3 additions & 4 deletions tst/standard/grpffmat.tst
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ gap> G := Group(GeneratorsOfSemigroup(G));
<group of 2x2 matrices over GF(2) with 3 generators>
gap> IsMatrixOverFiniteFieldGroup(G);
true
gap> map := IsomorphismPermGroup(G);
MappingByFunction( <group of 2x2 matrices over GF(2) with
3 generators>, Group([ (), (2,3), (1,
2) ]), function( x ) ... end, function( x ) ... end )
gap> map := IsomorphismPermGroup(G);;
gap> IsomorphismGroups(Range(map), SymmetricGroup(3)) <> fail;
true
gap> BruteForceInverseCheck(map);
true
gap> BruteForceIsoCheck(map);
Expand Down
14 changes: 10 additions & 4 deletions tst/standard/semitrans.tst
Original file line number Diff line number Diff line change
Expand Up @@ -2680,10 +2680,16 @@ Transformation( [ 3, 3, 3 ] )
# Test IsomorphismTransformationSemigroup for an ideal
gap> S := FullTransformationMonoid(3);
<full transformation monoid of degree 3>
gap> map := IsomorphismTransformationSemigroup(MinimalIdeal(S));
MappingByFunction( <simple transformation semigroup ideal of degree 3 with
1 generator>, <regular transformation semigroup ideal of degree 3 with
1 generator>, function( x ) ... end, function( x ) ... end )
gap> x := MinimalIdeal(S);
<simple transformation semigroup ideal of degree 3 with 1 generator>
gap> map := IsomorphismTransformationSemigroup(x);;
gap> x := Range(map);;
gap> IsSimpleSemigroup(x);
true
gap> Size(x) = 3;
true
gap> x;
<simple transformation semigroup ideal of size 3, degree 3 with 1 generator>
gap> BruteForceInverseCheck(map);
true
gap> BruteForceIsoCheck(map);
Expand Down

0 comments on commit 7ecd87e

Please sign in to comment.