The following happens in GAP 4.11 as well as in the current master branch.
gap> G:= SymmetricGroup( 4 );; H:= SylowSubgroup( G, 2 );;
gap> gens:= GeneratorsOfGroup( H );;
gap> f:= GroupHomomorphismByImages( H, G, gens, gens );;
gap> x:= (1,2,3,4);;
gap> x in Range( f );
true
gap> x in Image( f );
false
gap> PreImagesRepresentative( f, x );
(1,2)(3,4)
gap> y:= (1,2,3);;
gap> y in Range( f );
true
gap> y in Image( f );
false
gap> PreImagesRepresentative( f, y );
Error, List Element: <list>[2] must have an assigned value in
img := opr( img, S.transimages[bimg[1]] )
[...]
The documentation of PreImagesRepresentative says:
‣ PreImagesRepresentative( map, elm ) ──────────────────────────── operation
If elm is an element of the range of the general mapping map then
PreImagesRepresentative returns either a representative of the set of
preimages of elm under map or fail, the latter if and only if elm has no
preimages under map.
Anything may happen if elm is not an element of the range of map.
Thus I want to get fail for each of the inputs PreImagesRepresentative( f, x ), PreImagesRepresentative( f, y ).
The following happens in GAP 4.11 as well as in the current master branch.
The documentation of
PreImagesRepresentativesays:Thus I want to get
failfor each of the inputsPreImagesRepresentative( f, x ),PreImagesRepresentative( f, y ).