Skip to content

Commit

Permalink
workaround for IsBijective test
Browse files Browse the repository at this point in the history
(If GAP is started without packages then something is missing.
This change is just a workaround, one can still run into problems.)
  • Loading branch information
ThomasBreuer committed Apr 11, 2024
1 parent f4a8fb4 commit 2d55734
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gpfpiso.gi
Original file line number Diff line number Diff line change
Expand Up @@ -912,10 +912,14 @@ InstallMethod( IsomorphismFpGroupByGeneratorsNC,
"for trivial group",
[ IsGroup, IsList and IsEmpty, IsString ],
function( G, emptygens, name )
local hom;

if not IsTrivial( G ) then
Error( "<emptygens> does not generate <G>" );
fi;
return GroupHomomorphismByImagesNC( G, FreeGroup( 0 ), [], [] );
hom:= GroupHomomorphismByImagesNC( G, FreeGroup( 0 ), [], [] );
SetIsBijective( hom, true );
return hom;
end );


Expand Down

0 comments on commit 2d55734

Please sign in to comment.