Fix PreImagesRepresentative
for IsToPcGroupHomomorphismByImages
#5705
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a check whether the given element is in the image of the map. Now the method returns
fail
if not, as is specified in the documentation ofPreImagesRepresentative
.Note that
InversePcgs
is called (only) in thePreImagesRepresentative
method for a group homomorphism inIsToPcGroupHomomorphismByImages
.It sets the component
rangePcgs
; the value is a pcgs for the image of the homomorphism (in general not for the range).Resolves #5704, but there are likely other bugs of this kind.
I expect that #5073 or some follow-up of it will discuss the problem in the text for the release notes, thus there is no need to mention the current pull request in the release notes.