-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
points_of_bounded_height for projective space is incorrect #32686
Comments
comment:1
The simplest fix here is probably to check the height before yielding the point. This is not efficient, but would yield correct results, since every correct point does occur in this method. If I don't hear another suggestion before I have time to fix this, I'll implement that (hopefully in the next week or two). |
comment:3
There is a paper on by David Krumm on the topic (https://arxiv.org/pdf/1403.6501.pdf). He says in Section 7 that he implemented his algorithm in Sage for demonstration purposes. I'll write to him to ask for the code, and then perhaps we can fit his algorithm into Sage. It might be worth it to implement a temporary fix in the mean time. |
comment:4
The Doyle-Krumm algorithm for points of bounded height in number fields is what is implemented in Sage for number field elements. The issue here is that the points of bounded height in projective space is simply taking the bound for each coordinate and that returns some points with too large a height. I don't think Doyle-Krumm address points in projective space in their paper. |
comment:5
The above paper isn't Doyle Krumm 2011, it's a follow up paper - Krumm 2014. It seems to be about projective space specifically, as it is titled "Computing Points of Bounded Height in Projective Space over a Number Field." |
comment:6
Sorry, you're right, I had the wrong paper. Taking a quick look, I think we should fix the "wrong" output problem with the simple fix here and then make an enhancement ticket to run the faster algorithm from David. |
Branch: u/gh-EnderWannabe/32686 |
comment:8
I agree, the algorithm from Krumm will take some time. He sent me his code - which at first glance works beautifully - so the majority of the work will be to write documentation and review the changes. I've pushed a branch with the quick fix. New commits:
|
Commit: |
comment:10
Shouldn't this be btw, can you send me the Krumm code (off-line). |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Alexander Galarraga |
comment:13
This looks fine. Let's let the patchbot pick it up for the full library test. |
comment:14
There are at least a couple doc test errors. Here is one.
I think the new result is the one that is wrong with those two points having height exactly equal to the bound. Please double check. |
comment:15
Do you need to pass |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
I think you are right. Taking a look at the point
I think the right fix here is not to just check inequality, but to also check that the difference between the bounds is less than I think the error in |
comment:18
Stalled in |
comment:19
Has the Krumm code been integrated into the Sage code? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
|
comment:58
Looks good! |
comment:59
reviewer full name is missing |
Changed author from Alexander Galarraga, Jing Guo to Jing Guo |
Reviewer: Alexander Galarraga, Ben Hutz |
comment:61
See patchbot for failures |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:63
Let the patch bot run. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/gh-guojing0/points to |
The method for number fields iterates over the points of bounded height for each coordinate. This includes all the appropriate points, but includes some other points that are larger than the specified bound.
See also #31400
Depends on #34212
CC: @pfili @EnderWannabe @bhutz
Component: algebraic geometry
Keywords: gsoc2022
Author: Jing Guo
Branch/Commit:
c053c2a
Reviewer: Alexander Galarraga, Ben Hutz
Issue created by migration from https://trac.sagemath.org/ticket/32686
The text was updated successfully, but these errors were encountered: