Skip to content

Commit

Permalink
Merge pull request #438 from james-d-mitchell/fix-view-inverse-semigr…
Browse files Browse the repository at this point in the history
…oups

Add another ViewString method for inverse semigroups
  • Loading branch information
alex-konovalov committed Jan 13, 2016
2 parents c507286 + f56c5e3 commit fb86a3d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/semigrp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ InstallMethod(ViewString, "for a semigroup with generators",
InstallMethod(ViewString, "for a monoid with generators",
[IsMonoid and HasGeneratorsOfMonoid], _ViewStringForSemigroups);

InstallMethod(ViewString, "for an inverse semigroup with generators",
InstallMethod(ViewString, "for an inverse semigroup with semigroup generators",
[IsInverseSemigroup and HasGeneratorsOfSemigroup],
_ViewStringForSemigroups);

InstallMethod(ViewString,
"for an inverse semigroup with inverse semigroup generators",
[IsInverseSemigroup and HasGeneratorsOfInverseSemigroup],
_ViewStringForSemigroups);

Expand Down
13 changes: 13 additions & 0 deletions tst/testinstall/semigrp.tst
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,19 @@ false
gap> IsEmpty(T);
true

# Check for correct ViewString method for IsInverseSemigroup and
# HasGeneratorsOfSemigroup
gap> S := Semigroup(Transformation([4, 3, 5, 5, 5]),
> Transformation([4, 1, 5, 2, 5]),
> Transformation([5, 5, 2, 1, 5]));
<transformation semigroup of degree 5 with 3 generators>
gap> IsInverseSemigroup(S);
true
gap> Size(S);
36
gap> S;
<inverse transformation semigroup of size 36, degree 5 with 3 generators>

#
gap> STOP_TEST( "semigrp.tst", 1060000);

Expand Down

0 comments on commit fb86a3d

Please sign in to comment.