Closed
Description
The following happens in GAP 4.13.0 as well as in the current master branch.
gap> G:= AbelianGroup( IsPcGroup, [ 3, 3, 3 ] );;
gap> Size( G );
27
gap> H:= AbelianGroup( IsPcGroup, [ 3, 3 ] );;
gap> f:= GroupHomomorphismByImages( G, H, GeneratorsOfGroup( G ),
> [ GeneratorsOfGroup( H )[1], One(H), One(H) ] );;
gap> ker:= Kernel( f );;
gap> Size( ker );
9
gap> pre:= PreImage( f, H );;
gap> HasSize( pre );
true
gap> Size( pre );
81
When the input line Size( ker )
is left out then the HasSize
output is false
, and the final Size
value is correct.
(I found this problem when working on oscar-system/Oscar.jl/pull/3166.)