-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Serious errors in heights of projective points over number fields #31400
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Hi, I updated my code and added some docs (see the The global height is implemented without log, since this gives the precise value for rational numbers. The rational point enumeration method uses elimination and is a lot faster than the current available algorithms (see the documented examples). |
comment:3
Moving to 9.4, as 9.3 has been released. |
Branch: public/ticket/31400 |
Commit: |
comment:5
I have ported the code for global_height from "gh-8d1h" git repo. No idea if this is correct and better than before. New commits:
|
comment:7
would someone please provide a doctest where the value was wrong before ? |
comment:8
Hi! Sorry I was going to fix this but I didn't quite figure out how the whole trac thing works. For doctests, I put two of them in my file.
These are the current wrong results: they should be log(24) and 1.07295860828940 respectively. |
comment:10
Thanks. I have added these doctests. |
comment:11
Is there any other program that can be used to check these values ? |
comment:12
I guess you could try Magma at http://magma.maths.usyd.edu.au/calc/
although there are some differences in conventions, hence the (BTW I was trying to use Sage to check these values for my computation in Macaulay2 in the first place, and it turned out that the function is not correctly implemented...) |
comment:13
ok, looks good, same results in magma. I would propose to keep the other problem about the iterator for another ticket. @JohnCremona, @roed314, would you please review ? |
comment:14
The functionality looks good to me. We have an issue with return types.
While sometimes we return a real number. Since the function previously returned a real number, we shouldn't change the return type. |
Reviewer: Alexander Galarraga |
comment:15
so you prefer the inexact answer to the exact answer ? |
comment:16
Since this a function already included in Sage, we can't change it's return type without somehow deprecating the function. Additionally, it seems we can't return the exact answer in all cases - some answers are still inexact. Having different types returned from the same function with the same parameters is bad practice. So here I do prefer the inexact answer. It would be nice to return an exact answer, but I don't think it's possible here. |
comment:17
Actually, it is possible to return the exact answer even for general number fields, But I agree that one should be consistent with the return type. Since |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
ok, here it goes |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:22
LGTM |
comment:23
the author should probably be gh-8d1h ? I just copied and adapted the code We need an "Author full name".. |
Author: Jieao Song, Frédéric Chapoton |
Changed branch from public/ticket/31400 to |
Changed commit from |
comment:26
I recently came across this bug in the height functions as well as a couple other height bugs. This ticket did fix the the incorrect values I was seeing in global_height(). I'm trying to see if the other issues already have tickets opened too. Was there a ticket opened for the projective points of bounded height iterator? I couldn't find one when I searched trac. Thanks. |
comment:27
I've created the iterator ticket as #32686 |
This was raised at Ask Sage question 55698.
Number fields have an iterator to yield all elements of bounded global height. This is used in an incorrect way to enumerate points of bounded height on projective space: in
schemes.projective.projective_space
the iteratorpoints_of_bounded_height
appears to iterate over all points whose projective coordinates all have height less than the given bound -- this is not just wrong, it is not well-defined. Similarly, inschemes.projective.projective_point
the global height of a point is incorrectly implemented as the max of the heights of its coordinates -- again, not well defined.CC: @slel @EnderWannabe
Component: number theory
Keywords: projective height
Author: Jieao Song, Frédéric Chapoton
Branch:
71e63df
Reviewer: Alexander Galarraga
Issue created by migration from https://trac.sagemath.org/ticket/31400
The text was updated successfully, but these errors were encountered: