- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 580
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
A polynomial ring contains its basering #23203
Comments
This comment has been minimized.
This comment has been minimized.
Dependencies: #23204 |
New commits:
|
Commit: |
comment:5
(needs review: the |
Author: Julian Rüth |
comment:8
While it is a degenerate case, a polynomial ring could be isomorphic to its base ring:
|
Changed keywords from sd86.5 to sd86.5, sd87 |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: cmt |
comment:13
Full names in reviewer field please :) |
Changed reviewer from cmt to none |
Reviewer: Claire Tomesch |
comment:16
After fetching and merging #23204 into my local branch for this ticket, I built sage. I then ran I am still within the (lengthly) process of running |
comment:17
I just updated #23204 to fix typos in two of the doctest. If you are getting a two failures, you might try checking out the updated ticket. Replying to @sagetrac-cmt:
|
comment:18
Okay, something in my configuration had gotten messed up, so I started over entirely. I just pulled the latest version of this branch ( bash-3.2$ ./sage -tp 8 --long src/sage/structure/ src/sage/categories/ src/sage/rings/ src/sage/modular/ src/sage/schemes/
too few successful tests, not using stored timings
Running doctests with ID 2017-07-21-16-33-34-b8fb451a.
Git branch: t/23203/a_polynomial_ring_contains_its_basering
Using --optional=ccache,mpir,python2,sage
Sorting sources by runtime so that slower doctests are run first....
Doctesting 883 files using 8 threads.
...
sage -t --long src/sage/schemes/curves/projective_curve.py
**********************************************************************
File "src/sage/schemes/curves/projective_curve.py", line 1304, in sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model
Failed example:
D = C.ordinary_model(); D # long time (2 seconds)
Exception raised:
Traceback (most recent call last):
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model[8]>", line 1, in <module>
D = C.ordinary_model(); D # long time (2 seconds)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/schemes/curves/projective_curve.py", line 1393, in ordinary_model
emb = extension(C.singular_subscheme())
File "/Sage/sage/local/lib/python2.7/site-packages/sage/schemes/curves/projective_curve.py", line 1373, in extension
pts = self.change_ring(F.embeddings(QQbar)[0]).rational_points()
File "/Sage/sage/local/lib/python2.7/site-packages/sage/schemes/generic/algebraic_scheme.py", line 1846, in change_ring
I = [f.change_ring(R) for f in self.defining_polynomials()]
File "sage/rings/polynomial/multi_polynomial.pyx", line 873, in sage.rings.polynomial.multi_polynomial.MPolynomial.change_ring (build/cythonized/sage/rings/polynomial/multi_polynomial.c:13133)
return self.parent().change_ring(R)(self)
File "sage/rings/polynomial/multi_polynomial_ring_generic.pyx", line 985, in sage.rings.polynomial.multi_polynomial_ring_generic.MPolynomialRing_generic.change_ring (build/cythonized/sage/rings/polynomial/multi_polynomial_ring_generic.c:15237)
return PolynomialRing(base_ring, self.ngens(), names, order=order)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 438, in PolynomialRing
raise TypeError('base_ring must be a ring')
TypeError: base_ring must be a ring
**********************************************************************
File "src/sage/schemes/curves/projective_curve.py", line 1321, in sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model
Failed example:
all([D.codomain().is_ordinary_singularity(Q) for Q in D.codomain().singular_points()]) # long time
Exception raised:
Traceback (most recent call last):
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model[9]>", line 1, in <module>
all([D.codomain().is_ordinary_singularity(Q) for Q in D.codomain().singular_points()]) # long time
NameError: name 'D' is not defined
**********************************************************************
File "src/sage/schemes/curves/projective_curve.py", line 1329, in sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model
Failed example:
C.ordinary_model() # long time (5 seconds)
Exception raised:
Traceback (most recent call last):
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model[13]>", line 1, in <module>
C.ordinary_model() # long time (5 seconds)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/schemes/curves/projective_curve.py", line 1393, in ordinary_model
emb = extension(C.singular_subscheme())
File "/Sage/sage/local/lib/python2.7/site-packages/sage/schemes/curves/projective_curve.py", line 1373, in extension
pts = self.change_ring(F.embeddings(QQbar)[0]).rational_points()
File "/Sage/sage/local/lib/python2.7/site-packages/sage/schemes/generic/algebraic_scheme.py", line 1846, in change_ring
I = [f.change_ring(R) for f in self.defining_polynomials()]
File "sage/rings/polynomial/multi_polynomial.pyx", line 873, in sage.rings.polynomial.multi_polynomial.MPolynomial.change_ring (build/cythonized/sage/rings/polynomial/multi_polynomial.c:13133)
return self.parent().change_ring(R)(self)
File "sage/rings/polynomial/multi_polynomial_ring_generic.pyx", line 985, in sage.rings.polynomial.multi_polynomial_ring_generic.MPolynomialRing_generic.change_ring (build/cythonized/sage/rings/polynomial/multi_polynomial_ring_generic.c:15237)
return PolynomialRing(base_ring, self.ngens(), names, order=order)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 438, in PolynomialRing
raise TypeError('base_ring must be a ring')
TypeError: base_ring must be a ring
**********************************************************************
1 item had failures:
3 of 15 in sage.schemes.curves.projective_curve.ProjectivePlaneCurve.ordinary_model
[328 tests, 3 failures, 65.69 s]
...
----------------------------------------------------------------------
sage -t --long src/sage/schemes/curves/projective_curve.py # 3 doctests failed
----------------------------------------------------------------------
Total time for all tests: 1958.8 seconds
cpu time: 6272.7 seconds
cumulative wall time: 15257.4 seconds I also ran the same tests on the latest develop build ( Since I think someone with fresh eyes should take a look at this ticket the next time it comes up for review, I am taking my name out of the reviewer field. |
Changed reviewer from Claire Tomesch to none |
comment:20
cmt: Thanks for pointing this out. This is a problem in #23204. I'll fix it there. |
comment:21
Fixed in #23204. |
Reviewer: Claire Tomesch |
comment:23
Claire: We usually do not remove people from the Reviewers field, i.e., it is just a list of everybody that had a look at the ticket. |
comment:24
Julian: Thanks, and my apologies! I didn't realize that was the convention. |
comment:25
I just merged the latest version of #23204 ( I am now running all doctests. |
comment:26
I just ran all tests in $ ./sage -tp 8 --long src/sage/
too few successful tests, not using stored timings
Running doctests with ID 2017-07-22-12-22-47-8f9951fd.
Git branch: t/23203/a_polynomial_ring_contains_its_basering
Using --optional=ccache,mpir,python2,sage
Sorting sources by runtime so that slower doctests are run first....
Doctesting 2969 files using 8 threads.
...
sage -t --long src/sage/tests/cmdline.py
**********************************************************************
File "src/sage/tests/cmdline.py", line 814, in sage.tests.cmdline.test_executable
Failed example:
test_executable(["sage", "--rst2sws", input, output])
Expected:
('', '', 0)
Got:
('',
'Traceback (most recent call last):\n File "/Sage/sage/src/bin/sage-rst2sws", line 131, in <module>\n from sagenb.notebook.notebook import Notebook\n File "/Sage/sage/local/lib/python2.7/site-packages/sagenb/notebook/notebook.py", line 46, in <module>\n from . import js # javascript\n File "/Sage/sage/local/lib/python2.7/site-packages/sagenb/notebook/js.py", line 34, in <module>\n from .compress.JavaScriptCompressor import JavaScriptCompressor\nImportError: No module named JavaScriptCompressor\n',
1)
**********************************************************************
File "src/sage/tests/cmdline.py", line 817, in sage.tests.cmdline.test_executable
Failed example:
f = tarfile.open(output, 'r')
Exception raised:
Traceback (most recent call last):
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.cmdline.test_executable[242]>", line 1, in <module>
f = tarfile.open(output, 'r')
File "/Sage/sage/local/lib/python2.7/tarfile.py", line 1680, in open
raise ReadError("file could not be opened successfully")
ReadError: file could not be opened successfully
**********************************************************************
File "src/sage/tests/cmdline.py", line 818, in sage.tests.cmdline.test_executable
Failed example:
print(f.extractfile('sage_worksheet/worksheet.html').read())
Exception raised:
Traceback (most recent call last):
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.cmdline.test_executable[243]>", line 1, in <module>
print(f.extractfile('sage_worksheet/worksheet.html').read())
AttributeError: 'file' object has no attribute 'extractfile'
**********************************************************************
File "src/sage/tests/cmdline.py", line 832, in sage.tests.cmdline.test_executable
Failed example:
print(f.extractfile('sage_worksheet/worksheet.txt').read())
Exception raised:
Traceback (most recent call last):
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.cmdline.test_executable[244]>", line 1, in <module>
print(f.extractfile('sage_worksheet/worksheet.txt').read())
AttributeError: 'file' object has no attribute 'extractfile'
**********************************************************************
1 item had failures:
4 of 246 in sage.tests.cmdline.test_executable
[245 tests, 4 failures, 155.43 s]
----------------------------------------------------------------------
sage -t --long src/sage/tests/cmdline.py # 4 doctests failed
---------------------------------------------------------------------- However! When I run these same doctests on my latest build of the develop branch ( Therefore, I'm going to positively review this ticket -- if others think this is a problem they are welcome to revert the status as they see fit. |
Changed branch from u/saraedum/a_polynomial_ring_contains_its_basering to |
Currently, this fails
Depends on #23204
CC: @jpflori
Component: commutative algebra
Keywords: sd86.5, sd87
Author: Julian Rüth
Branch/Commit:
5f99cf9
Reviewer: Claire Tomesch
Issue created by migration from https://trac.sagemath.org/ticket/23203
The text was updated successfully, but these errors were encountered: