forked from gap-system/gap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
semipperm: fix IsomorphismPPermSemigroup/Monoid
Previously, these methods encountered unexpected errors for perm groups with 0 generators. This adds a special case for such groups. Resolves gap-system#1783
- Loading branch information
1 parent
1fbf5de
commit d3b22af
Showing
3 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tst/testbugfix/2017-10-19-IsomorphismPartialPermSemigroup.tst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Issue related to IsomorphismPartialPermSemigroup and | ||
# IsomorphismPartialPermMonoid for a trivial perm group with 0 generators | ||
# Examples reported on issue #1783 on github.com/gap-system/gap | ||
gap> iso := [];; | ||
gap> iso[1] := IsomorphismPartialPermSemigroup(SymmetricGroup(1)); | ||
MappingByFunction( Group(()), <trivial partial perm group of rank 0 with | ||
1 generator>, function( p ) ... end, <Attribute "AsPermutation"> ) | ||
gap> iso[2] := IsomorphismPartialPermSemigroup(Group([()])); | ||
MappingByFunction( Group(()), <trivial partial perm group of rank 0 with | ||
1 generator>, function( p ) ... end, <Attribute "AsPermutation"> ) | ||
gap> iso[3] := IsomorphismPartialPermSemigroup(Group([], ())); | ||
MappingByFunction( Group(()), <trivial partial perm group of rank 0 with | ||
1 generator>, function( p ) ... end, <Attribute "AsPermutation"> ) | ||
gap> iso[4] := IsomorphismPartialPermMonoid(SymmetricGroup(1)); | ||
MappingByFunction( Group(()), <trivial partial perm group of rank 0 with | ||
1 generator>, function( p ) ... end, <Attribute "AsPermutation"> ) | ||
gap> iso[5] := IsomorphismPartialPermMonoid(Group([()])); | ||
MappingByFunction( Group(()), <trivial partial perm group of rank 0 with | ||
1 generator>, function( p ) ... end, <Attribute "AsPermutation"> ) | ||
gap> iso[6] := IsomorphismPartialPermMonoid(Group([], ())); | ||
MappingByFunction( Group(()), <trivial partial perm group of rank 0 with | ||
1 generator>, function( p ) ... end, <Attribute "AsPermutation"> ) | ||
gap> ForAll(iso, map -> () ^ map = EmptyPartialPerm()); | ||
true | ||
gap> inv := List(iso, InverseGeneralMapping);; | ||
gap> ForAll(inv, map -> EmptyPartialPerm() ^ map = ()); | ||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters