Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drinfeld Modules: Default to zero endomorphism in .hom and avoid inversion of zero endomorphism #38964

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

S17A05
Copy link
Member

@S17A05 S17A05 commented Nov 13, 2024

This PR fixes #38953 and is inspired by the error raised in the issue:

  • The main fix is to avoid sampling the zero element of the base field in the test of __invert__, so that phi.hom(a) actually returns an invertible morphism.
  • However, the error raised in the issue named above was slightly confusing, as the call of phi.hom(K.zero()) does not return any homomorphism: Since the codomain is not specified, it tries to find a codomain via the .velu-method, but this only works if the given element defines an isogeny, which K.zero() does not. Instead of raising an error for this special case in .hom, it seems more robust to default to the zero endomorphism of self instead.
  • Also added the mention of isog in the .velu-method.

Copy link

Documentation preview for this PR (built with commit b192330; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@xcaruso
Copy link
Contributor

xcaruso commented Nov 14, 2024

Looks good to me. Thanks.

vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 14, 2024
….hom` and avoid inversion of zero endomorphism

    
This PR fixes sagemath#38953 and is inspired by the error raised in the issue:
- The main fix is to avoid sampling the zero element of the base field
in the test of `__invert__`, so that `phi.hom(a)` actually returns an
invertible morphism.
- However, the error raised in the issue named above was slightly
confusing, as the call of `phi.hom(K.zero())` does not return any
homomorphism: Since the codomain is not specified, it tries to find a
codomain via the `.velu`-method, but this only works if the given
element defines an isogeny, which `K.zero()` does not. Instead of
raising an error for this special case in `.hom`, it seems more robust
to default to the zero endomorphism of `self` instead.
- Also added the mention of `isog` in the `.velu`-method.
    
URL: sagemath#38964
Reported by: Sebastian A. Spindler
Reviewer(s): Xavier Caruso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

random doctest error in DrinfeldModuleMorphism
2 participants