Skip to content

Add PreImagesSet method for semigroup homs by images - #1219

Merged
james-d-mitchell merged 1 commit into
semigroups:mainfrom
fingolfin:mh/PreImagesSet
Sep 6, 2026
Merged

james-d-mitchell merged 1 commit into
semigroups:mainfrom
fingolfin:mh/PreImagesSet

Conversation

@fingolfin

Copy link
Copy Markdown
Contributor

GAP 4.17 changes PreImagesSet: a generic method now checks that the argument is a subset of the range and returns the preimage of its intersection with the image. With that method, PreImagesSet no longer signals an error for elements without preimages, which the tests expect, and the error for elements outside the range changes.

Install a method for semigroup homomorphisms by images that performs the range check with the package's own error message and otherwise delegates to PreImagesElm, so behaviour is the same with all supported GAP versions.

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com

See also gap-system/PackageDistro#1550

GAP 4.17 changes PreImagesSet: a generic method now checks that the
argument is a subset of the range and returns the preimage of its
intersection with the image. With that method, PreImagesSet no longer
signals an error for elements without preimages, which the tests
expect, and the error for elements outside the range changes.

Install a method for semigroup homomorphisms by images that performs
the range check with the package's own error message and otherwise
delegates to PreImagesElm, so behaviour is the same with all supported
GAP versions.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@james-d-mitchell

Copy link
Copy Markdown
Collaborator

Thanks @fingolfin

@james-d-mitchell
james-d-mitchell merged commit 7bacc29 into semigroups:main Sep 6, 2026
37 checks passed
@fingolfin
fingolfin deleted the mh/PreImagesSet branch September 7, 2026 12:07
@fingolfin

Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge, @james-d-mitchell . Would be lovely to have this in a release in September, so that we can gear up to GAP 4.17.0 in early October (right after GAP Days)

@james-d-mitchell

Copy link
Copy Markdown
Collaborator

Thanks @fingolfin I'll try to make a release later this week, it has been on my list of things to do for a while now! Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants