-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Fix coercions and pushout for Laurent series #24431
Comments
Branch: u/vdelecroix/24431 |
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:10
rebased on 8.2.beta2 |
comment:11
LGTM except I don't understand the non-import changes in |
comment:12
Replying to @tscrim:
I believe you refer to this line
This is the third point in the ticket description. |
comment:13
I understand now the reason why that change is needed. Thanks. (Although I don't quite understand why that pushout is no longer allowed, but that's okay.) Just remove the unneeded import of @@ -410,7 +565,11 @@ class LaurentSeriesRing_generic(UniqueRepresentation, ring.CommutativeRing):
from sage.rings.polynomial.polynomial_ring import is_PolynomialRing
from sage.rings.power_series_ring import is_PowerSeriesRing
- if ((is_LaurentSeriesRing(P) or is_PowerSeriesRing(P) or is_PolynomialRing(P))
+ from sage.rings.polynomial.laurent_polynomial_ring import is_LaurentPolynomialRing
+ if ((is_LaurentSeriesRing(P) or \
+ is_LaurentPolynomialRing(P) or \
+ is_PowerSeriesRing(P) or \
+ is_PolynomialRing(P))
and P.variable_name() == self.variable_name()
and A.has_coerce_map_from(P.base_ring())):
return True and you can set a positive review on my behalf. |
This comment has been minimized.
This comment has been minimized.
Reviewer: Travis Scrimshaw |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
I did not find the import you were talking about in [comment:13]. |
comment:16
diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py
index cdca282..9e9897a 100644
--- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py
+++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py
@@ -33,7 +33,11 @@ from __future__ import absolute_import
# http://www.gnu.org/licenses/
#*****************************************************************************
-from sage.rings.all import PolynomialRing, RR, PowerSeriesRing, LaurentSeriesRing, O
+from sage.rings.polynomial.all import PolynomialRing, LaurentPolynomialRing
+from sage.rings.big_oh import O
+from sage.rings.power_series_ring import PowerSeriesRing
+from sage.rings.laurent_series_ring import LaurentSeriesRing
+from sage.rings.real_mpfr import RR
from sage.functions.all import log
from sage.structure.category_object import normalize_names
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Looks like there is a test failure since 8.2.beta3. |
comment:19
It is trivial due to the output of the functor. Once fixed, you can set a positive review on my behalf. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:21
Rebased on beta4. Waiting for patchbots as an extra check. |
Changed branch from u/vdelecroix/24431 to |
There should be an automatic extension of scalars in the following situation
To be compared with
Currently, these pushouts are allowed:
This is inconsistent with
PowerSeriesRing
.By fixing these problems, we had to adapt some code in
sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py
that was using the aforementioned pushout.Depends on #24420
Component: algebra
Author: Vincent Delecroix
Branch/Commit:
8abc33b
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/24431
The text was updated successfully, but these errors were encountered: