-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
base_ring is wrong for rational points in a projective space over a finite field #34336
Comments
Changed author from Mark Saaltink to Lorenz Panny |
Commit: |
comment:1
These fairly simple changes seem to do the trick. (I think the "author" field is for the author of the patch, not the bug report — someone please correct me if I'm wrong!) New commits:
|
Branch: public/34336 |
This comment has been minimized.
This comment has been minimized.
comment:4
I made small edits. diff --git a/src/sage/schemes/generic/homset.py b/src/sage/schemes/generic/homset.py
index 4115f163b4..5a67c614ef 100644
--- a/src/sage/schemes/generic/homset.py
+++ b/src/sage/schemes/generic/homset.py
@@ -154,7 +154,7 @@ class SchemeHomsetFactory(UniqueFactory):
if isinstance(Y, CommutativeRing):
Y = AffineScheme(Y)
if base is None:
- from sage.structure.all import coercion_model
+ from sage.structure.element import coercion_model
base = coercion_model.common_parent(X.base_ring(), Y.base_ring())
if is_AffineScheme(base):
base_spec = base It is not recommended to import from diff --git a/src/sage/schemes/generic/morphism.py b/src/sage/schemes/generic/morphism.py
index b1409f05ba..4c75777c1d 100644
--- a/src/sage/schemes/generic/morphism.py
+++ b/src/sage/schemes/generic/morphism.py
@@ -482,7 +482,7 @@ class SchemeMorphism(Element):
def base_ring(self):
r"""
Return the base ring of ``self``, that is, the ring over which
- the coefficients of ``self`` are given as polynomials.
+ the defining polynomials of ``self`` are defined.
OUTPUT:
as the meaning of the original sentence is not clear. I am positive otherwise. |
Reviewer: Kwankyu Lee |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
You can set positive review if you are okay with my edits. |
comment:8
Looks good, thank you! |
Changed branch from public/34336 to |
This is wrong:
Surely in both cases the base ring should be GF(3).
This also afflicts points generated in other ways. For example
Component: algebraic geometry
Author: Lorenz Panny
Branch/Commit:
1626caf
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/34336
The text was updated successfully, but these errors were encountered: