-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1784 from wilfwilson/fix-1783
Fix IsomorphismPartialPermSemigroup and Monoid for perm groups with 0 generators
- Loading branch information
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