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

.multiplication_by_m_isogeny() fails for negative m #34727

Closed
yyyyx4 opened this issue Nov 7, 2022 · 8 comments
Closed

.multiplication_by_m_isogeny() fails for negative m #34727

yyyyx4 opened this issue Nov 7, 2022 · 8 comments

Comments

@yyyyx4
Copy link
Member

yyyyx4 commented Nov 7, 2022

sage: EllipticCurve([5,5]).multiplication_by_m_isogeny(-1)
# ...
AssertionError: bug in multiplication_by_m_isogeny()
sage: EllipticCurve([5,5]).multiplication_by_m_isogeny(-2)
# ...
NotImplementedError: Kohel's algorithm currently only supports cyclic isogenies (except for [2])
sage: EllipticCurve([5,5]).multiplication_by_m_isogeny(-3)
# ...
ValueError: n must be a positive integer (or -1 or -2)

All of these are because .multiplication_by_m_isogeny() calls .torsion_polynomial() with m, which may be negative, rather than abs(m). As the last error message indicates, the values -1 and -2 additionally have special meaning for .torsion_polynomial(), which made debugging a bit more confusing...

Component: elliptic curves

Author: Lorenz Panny

Branch/Commit: a6e99a7

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/34727

@yyyyx4 yyyyx4 added this to the sage-9.8 milestone Nov 7, 2022
@yyyyx4
Copy link
Member Author

yyyyx4 commented Nov 7, 2022

New commits:

a6e99a7use abs(m) to compute m-division polynomial

@yyyyx4
Copy link
Member Author

yyyyx4 commented Nov 7, 2022

Branch: public/34727

@yyyyx4

This comment has been minimized.

@yyyyx4
Copy link
Member Author

yyyyx4 commented Nov 7, 2022

Author: Lorenz Panny

@yyyyx4
Copy link
Member Author

yyyyx4 commented Nov 7, 2022

Commit: a6e99a7

@fchapoton
Copy link
Contributor

Reviewer: Frédéric Chapoton

@fchapoton
Copy link
Contributor

comment:2

ok

@vbraun
Copy link
Member

vbraun commented Nov 20, 2022

Changed branch from public/34727 to a6e99a7

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

No branches or pull requests

3 participants