You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creation of a subscheme given by polynomial equations in some ambient space involves converting the input to polynomials in the correct ring and checking that these polynomials are "OK", e.g. that they are homogeneous for the projective space. There are the following (little) problems with the current realization:
converting to the coordinate ring is done in _validate method of ambient spaces, but it is the same for all of them and in general I would expect that a method with such a name just checks something without modifying the input
if a subscheme is constructed using an ideal of a wrong ring, but polynomials can be converted into the coordinate ring of the ambient space, then wrong ideal will be saved for later use
_validate is not listed as a mandatory method for overriding by subclasses of AmbientSpace
The attached patch makes the following:
all conversions are done in !init! of the subscheme
_validate of AmbientSpace's must check that the polynomials are OK, but they are already guaranteed to lie in the correct ring
_validate is listed as a method which must be overridden
error messages in exceptions include only the polynomial that lead to the error, not the whole input
Creation of a subscheme given by polynomial equations in some ambient space involves converting the input to polynomials in the correct ring and checking that these polynomials are "OK", e.g. that they are homogeneous for the projective space. There are the following (little) problems with the current realization:
The attached patch makes the following:
Apply on top of #8675.
Component: algebraic geometry
Author: Andrey Novoseltsev
Reviewer: Alex Ghitza
Merged: sage-4.4.4.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/8682
The text was updated successfully, but these errors were encountered: