Skip to content

problem with PreImagesRepresentative #4809

@ThomasBreuer

Description

@ThomasBreuer

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 ).

Metadata

Metadata

Assignees

Labels

kind: bugIssues describing general bugs, and PRs fixing themkind: bug: unexpected errorIssues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions