Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Isomorphisms of trivial groups are bijective #1116

Merged
merged 3 commits into from
Feb 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/ghom.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,9 @@ BindGlobal( "IsomorphismAbelianGroupViaIndependentGenerators", function ( filter

if IsTrivial( G ) then
K := TrivialGroup( filter );
return GroupHomomorphismByImagesNC( G, K, [], [] );
nice := GroupHomomorphismByImagesNC( G, K, [], [] );
SetIsBijective( nice, true );
return nice;
fi;

gens := IndependentGeneratorsOfAbelianGroup( G );
Expand Down
20 changes: 20 additions & 0 deletions tst/testinstall/triviso.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#############################################################################
##
#W triviso.tst
#Y Bernhard Reinke
##
#############################################################################
##

gap> START_TEST("triviso.tst");
gap> G := Group(());
Group(())
gap> phi := IsomorphismPermGroup(G);
[ ] -> [ ]
gap> HasIsBijective(phi);
true
gap> inv := InverseGeneralMapping(phi);
[ ] -> [ ]
gap> HasIsMapping(inv);
true
gap> STOP_TEST( "triviso.tst", 10000);