-
-
Notifications
You must be signed in to change notification settings - Fork 656
Fix lift_x()
for characteristic 2 and add is_x_coord()
to hyperelliptic curves
#37126
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
Conversation
lift_x
for characteristic 2 and add is_x_coord()
to hyperelliptic curveslift_x()
for characteristic 2 and add is_x_coord()
to hyperelliptic curves
Thanks for the review! |
…throwing an error
To ensure that the QQ bug can be properly tracked, I made a new issue: #37153. This PR fixes this issue as well as the first encountered bug. |
Documentation preview for this PR (built with commit 54a212e; changes) is ready! 🎉 |
Is this PR being held by the failures in the above tests? As far as I can tell the failures seem orthogonal to the changes I have made here. |
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.
No, I think simply no one reviewed it. Positive review!
sagemathgh-37126: Fix `lift_x()` for characteristic 2 and add `is_x_coord()` to hyperelliptic curves This PR fixes sagemath#37097, where the lifting of x-coordinates of hyperelliptic curves defined over fields of characteristic two would fail. It additionally includes a new method `is_x_coord(x)`, which returns a `bool` based on whether the input `x` is a valid x-coordinate for the base field of which the hyperelliptic curve is defined. While simplifying code, a bug was found computing roots in `QQ`, were an error was raised instead of returning an empty list when `all=True`. As a result, this PR also fixes sagemath#37153. #sd123 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. URL: sagemath#37126 Reported by: Giacomo Pope Reviewer(s): Giacomo Pope, grhkm21, Lorenz Panny
sagemathgh-37126: Fix `lift_x()` for characteristic 2 and add `is_x_coord()` to hyperelliptic curves This PR fixes sagemath#37097, where the lifting of x-coordinates of hyperelliptic curves defined over fields of characteristic two would fail. It additionally includes a new method `is_x_coord(x)`, which returns a `bool` based on whether the input `x` is a valid x-coordinate for the base field of which the hyperelliptic curve is defined. While simplifying code, a bug was found computing roots in `QQ`, were an error was raised instead of returning an empty list when `all=True`. As a result, this PR also fixes sagemath#37153. #sd123 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. URL: sagemath#37126 Reported by: Giacomo Pope Reviewer(s): Giacomo Pope, grhkm21, Lorenz Panny
sagemathgh-37126: Fix `lift_x()` for characteristic 2 and add `is_x_coord()` to hyperelliptic curves This PR fixes sagemath#37097, where the lifting of x-coordinates of hyperelliptic curves defined over fields of characteristic two would fail. It additionally includes a new method `is_x_coord(x)`, which returns a `bool` based on whether the input `x` is a valid x-coordinate for the base field of which the hyperelliptic curve is defined. While simplifying code, a bug was found computing roots in `QQ`, were an error was raised instead of returning an empty list when `all=True`. As a result, this PR also fixes sagemath#37153. #sd123 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. URL: sagemath#37126 Reported by: Giacomo Pope Reviewer(s): Giacomo Pope, grhkm21, Lorenz Panny
This PR fixes #37097, where the lifting of x-coordinates of hyperelliptic curves defined over fields of characteristic two would fail.
It additionally includes a new method
is_x_coord(x)
, which returns abool
based on whether the inputx
is a valid x-coordinate for the base field of which the hyperelliptic curve is defined.While simplifying code, a bug was found computing roots in
QQ
, were an error was raised instead of returning an empty list whenall=True
. As a result, this PR also fixes #37153.#sd123
📝 Checklist