Skip to content

Incorrect PreImages result for elements not in image #6226

@ttiiddee

Description

@ttiiddee

Incorrect PreImages result for elements not in image.

Steps to Reproduce

G := Group((1,2));;
f := GroupHomomorphismByImages(G, G, [(1,2)], [()]);;
# The map f sends (1,2) -> () and () -> ().
# The set [(1,2)] contains no elements from the image of f.
PreImages(f, [(1,2)]);

Expected behavior
The output should be an empty list [ ].

Actual behavior
GAP returns the whole group: [ (), (1,2) ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions