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
Compute composite degree (separable) isogenies of EllipticCurves #35949
base: develop
Are you sure you want to change the base?
Conversation
This supports computing (separable) isogenies of composite degree. It is generic and calls `.isogenies_prime_degree`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the few small remarks, looks good to me!
Thanks Lorenz for the review <3 Co-authored-by: Lorenz Panny <84067835+yyyyx4@users.noreply.github.com>
Thanks for the review :) |
Yes. Co-authored-by: Lorenz Panny <84067835+yyyyx4@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the smaller code remarks above below, I'm also wondering if this should be an iterator: The list can grow very quickly, so doing it as a depth-first iterator might be a good idea?
I swear I wrote some code similar to the previous two commits, but somehow didn't commit it, and it's not in my |
Documentation preview for this PR (built with commit f5d5834; changes) is ready! π |
There are duplicates in the list as soon as any prime appears with multiplicity 3 or more in the degree: sage: E = EllipticCurve(GF(11^2), [1,0])
sage: len(list(E.isogenies_degree(2^3)))
27
sage: len(set(E.isogenies_degree(2^3)))
15 To fix it, we could restrict to cyclic isogenies: sage: P,Q = E.torsion_basis(2)
sage: len([phi for phi in E.isogenies_degree(2^3) if phi(P) or phi(Q)])
12
sage: len({phi for phi in E.isogenies_degree(2^3) if phi(P) or phi(Q)})
12 Returning only cyclic isogenies is arguably "better" anyway, since non-cyclic isogenies could be considered somewhat degenerate among the set of all isogenies of given degree. However, adding this check will make the code quite a bit more complicated. I'm unsure how to proceed. |
Oh right, sorry for missing that. We can have a check to ensure we are not taking the dual isogeny of the previous taken one, since the prime degrees considered are sorted. |
I think it would be useful to have an phi1.is_dual_of(phi2) method (up to isomorphism check). I also need something like for mitm. But if we add it to the EllipticCurveHom class, it should be generic (e.g. factor the degree?), which could introduce an overhead. |
.isogenies_degree
for EllipticCurvesπ Checklist
β Dependencies