-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Implemented the (local) Hilbert symbol for global function fields #37554
Conversation
6bf63ef
to
54611e1
Compare
Amends: Changed some documentation, adapted characteristic check to check ==2 instead of <= 2
54611e1
to
be7c5f1
Compare
55b7091
to
b7a9614
Compare
Amend: Added missing multiline continuation markers
cb29b63
to
c12a9de
Compare
- Simplified return command, removed `ZZ` from import again - Return `0` instead of an error for zero inputs
- Fixed errors caused by unexpected behavior of reduction map - Added examples for bimultiplicativity - Corrected docstring
Amend: Fixed weird spacing
7d7bcdd
to
894a6b4
Compare
- Fixed Lint issue - Implemented reviewer feedback - Added checks for symmetry
I fixed typos and refined the docstring. If you pardon me, please consider: diff --git a/src/sage/rings/function_field/function_field.py b/src/sage/rings/function_field/function_field.py
index d1652873c71..4f91e51c111 100644
--- a/src/sage/rings/function_field/function_field.py
+++ b/src/sage/rings/function_field/function_field.py
@@ -1229,23 +1229,10 @@ class FunctionField(Field):
def hilbert_symbol(self, a, b, P):
r"""
- Return the Hilbert symbol `(a,b)_{F_P}` (where `F_P` is the
- completion of this function field at the place `P`).
+ Return the Hilbert symbol `(a,b)_{F_P}` for the local field `F_P`.
- The Hilbert symbol `(a,b)_{F_P}` is `0` if one of `a` or `b` is
- zero. Otherwise it takes the value `1` if the quaternion algebra
- defined by `(a,b)` over `F_P` is split, and `-1` if it is division.
-
- For the valuation `\nu` belonging to the completion of the function
- field at `P`, we compute the valuations `\nu(a)` and `\nu(b)` as well
- as elements `a_0` and `b_0` such that, for a uniformizer `\pi` of
- `\nu`, the elememts `a*\pi^{-\nu(a))}` and `a_0` respectively the
- elements `b*\pi^{-\nu(b)}` and `b_0` are congruent modulo `\pi`.
- Motivated by formula 12.4.10 in [Voi2021]_.
-
- Currently only tested for function fields separable over their base
- since places are not fully supported for other function fields. Only
- implemented for global function fields of odd characteristic.
+ The local field `F_P` is the completion of this function field `F` at
+ the place `P`.
INPUT:
@@ -1253,6 +1240,23 @@ class FunctionField(Field):
- ``P`` -- a place of this function field
+ The Hilbert symbol `(a,b)_{F_P}` is `0` if `a` or `b` is zero.
+ Otherwise it takes the value `1` if the quaternion algebra defined by
+ `(a,b)` over `F_P` is split, and `-1` if it is a division ring.
+
+ ALGORITHM:
+
+ For the valuation `\nu = \nu_P` of `F`, we compute the valuations
+ `\nu(a)` and `\nu(b)` as well as elements `a_0` and `b_0` of the
+ residue field such that for a uniformizer `\pi` at `P`,
+ `a\pi^{-\nu(a)}` and `a_0` respectively `b\pi^{-\nu(b)}` and `b_0` are
+ congruent modulo `\pi`. Then the Hilbert symbol is computed by the
+ formula 12.4.10 in [Voi2021]_.
+
+ Currently only implemented for global function fields of odd
+ characteristic since places are not fully supported for other function
+ fields.
+
EXAMPLES:: |
Thanks, I'll integrate your changes. Just one small thing: Technically speaking there is a difference to formula 12.4.10 in [Voi2021]_, because the element |
Anyone reading the paragraph and the formula will understand that. Not a big deal. Also you explained the point. |
b0 = ser_b.coefficients()[0] | ||
|
||
# Get the residue field of the completion together with the necssary exponent | ||
k = sigma.codomain().base_ring() |
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.
typo necessary
- Rewrote docstring accordings to suggestions - Fixed typo in comment
I implemented a slightly modified version of your suggested docstring, mainly because I wanted to emphasize that |
Documentation preview for this PR (built with commit 4f1e025; changes) is ready! 🎉 |
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.
Thanks. LGTM.
Implemented the computation of the (local) Hilbert symbol at a place of a global function field of odd characteristic following formula 12.4.10 in John Voight's "Quaternion Algebras" (in preparation of extending some quaternion algebra functionality to these global function fields).
The global Hilbert symbol will be implemented via a call to
.is_matrix_ring()
of the appropriate quaternion algebra once the latter method has been extended using an extension of PR #37173, which will be done once both this PR and the referenced PR have been merged.