Repository navigation
Conversation
GAP 4.17 splits PreImagesRepresentative into a checked operation and PreImagesRepresentativeNC, and the library calls the latter. Semigroup homomorphisms by images only had a method for the checked operation, so PreImagesRepresentativeNC fell through to the library method for s.p. general mappings, which signals "no default method". Install the unchecked computation for PreImagesRepresentativeNC as well, keeping the checked method and its error message. On older GAP both names are the same operation, so the extra method is only installed when they differ. The inverse function of AsSemigroupIsomorphismByFunction used PreImages, which returns a list of preimages rather than an element, in every GAP version. Use PreImagesRepresentativeNC instead; the argument lies in the range of an isomorphism. The automorphism group computations for Rees (0-)matrix semigroups call PreImagesRepresentative on elements known to be in the image. Call PreImagesRepresentativeNC there, skipping the range and image membership tests that the checked operation performs in GAP 4.17. Assisted-by: Claude Code (Opus 5)
fingolfin
force-pushed
the
mh/preimages-nc
branch
from
October 8, 2026 13:14
e3a0bba to
07a4968
Compare
james-d-mitchell
enabled auto-merge (rebase)
October 8, 2026 14:03
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
GAP 4.17 splits PreImagesRepresentative into a checked operation and PreImagesRepresentativeNC, and the library calls the latter. Semigroup homomorphisms by images only had a method for the checked operation, so PreImagesRepresentativeNC fell through to the library method for s.p. general mappings, which signals "no default method". Install the unchecked computation for PreImagesRepresentativeNC as well, keeping the checked method and its error message. On older GAP both names are the same operation, so the extra method is only installed when they differ.
The inverse function of AsSemigroupIsomorphismByFunction used PreImages, which returns a list of preimages rather than an element, in every GAP version. Use PreImagesRepresentativeNC instead; the argument lies in the range of an isomorphism.
The automorphism group computations for Rees (0-)matrix semigroups call PreImagesRepresentative on elements known to be in the image. Call PreImagesRepresentativeNC there, skipping the range and image membership tests that the checked operation performs in GAP 4.17.
Assisted-by: Claude Code (Opus 5)