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
Bug in is_hyperbolic #18430
Comments
Branch: u/MRupert/bug_in_is_hyperbolic |
comment:2
This commit should fix the problem. I also added functionality and improved the documentation on the infinite place. New commits:
|
Commit: |
Author: Malcolm Rupert |
comment:3
Can you replace
by
This means you don't need to indent the whole block for I also don't understand why you use And instead of writing
why don't you actually write
|
comment:5
rebase and clean-up New commits:
|
Changed branch from u/MRupert/bug_in_is_hyperbolic to u/chapoton/18430 |
comment:9
Replying to @jdemeyer:
I am pretty sure the former is (much) faster and the comment makes the simplification clear. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
done |
comment:12
ping ? |
Reviewer: Frédéric Chapoton, Travis Scrimshaw |
comment:13
If you just fix up this -`p` -- a prime number > 0 or `-1` for the infinite place.
+- `p` -- a prime number > 0 or `-1` for the infinite place Once that is done, you can set a positive review on my behalf. |
Work Issues: documentation formatting |
Changed work issues from documentation formatting to none |
comment:17
LGTM. |
Changed branch from u/chapoton/18430 to |
The method is_hyperbolic in the class of quadratic form returns incorrect results over the field QQ_2. Here is an explicit example:
The form <1,1,-1,-1> is clearly hyperbolic - by definition. It is a sum of two hyperbolic planes. Nevertheless Sage returns
False
here.The reason is as follows. In the file
quadratic_forms/quadratic_form__local_field_invariants.py
in functionis_hyperbolic
the actual code iswhile it should be
For mathematical explanation see e.g. T.Y. Lam "Introduction to Quadratic Forms over Field", Proposition V.3.25
I'm not sure how to formally patch the code, so I'm posting it this way.
Component: quadratic forms
Author: Malcolm Rupert
Branch/Commit:
f99393f
Reviewer: Frédéric Chapoton, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/18430
The text was updated successfully, but these errors were encountered: