Open stertooy opened 4 years ago
Of interest: in this issue, it is mentioned that perhaps #39 was not an issue after all and PreImagesRepresentative
is, in fact, not meant to return fail
if the argument does not lie in the image of the homomorphism. In that case, perhaps #41 could just be reverted, which should(?) fix this issue.
The following error occurs when using
PreImage
on a subgroup that is not an element of the image:The problem seems to be that the implementations of
PreImagesSet
cannot deal withPreImagesRepresentative
returningfail
.I believe that before #41,
PreImagesSet
relied on the (incorrect) behaviour ofPreImagesRepresentative
, namely that it would returnid
instead of fail. Perhaps replacing thefail
's in the implementations ofPreImagesSet
by the identity or throwing them away alltogether would work?For now, a quick workaround is to use
PreImage( hom, Intersection( Image( hom ), U ) )
rather thanPreImage( hom, U )
, but I suspect this is quite inefficient.