Curve() accepts incorrect arguments

62 views
Skip to first unread message

Georgi Guninski

unread,
Nov 17, 2024, 10:17:04 AM11/17/24
to sage-...@googlegroups.com
I think this is a bug:

sage: Kt.<x,y,z,t>=QQ[]
sage: J=[x*y*z-t^2,x+2*y+3*z-t-1]
sage: Ideal(J).dimension()
2
sage: C=Curve(J);C
Affine Curve over Rational Field defined by x*y*z - t^2, x + 2*y + 3*z - t - 1
sage: C.genus()
1
sage:

Kwankyu Lee

unread,
Nov 17, 2024, 6:24:45 PM11/17/24
to sage-devel
sage: Ideal(J).dimension()
2

Curve code does not check the dimension of the input ideal, as it is an expensive computation in general.
I think this should be documented in the docstring, though in general, it is user's responsibility to pass appropriate input. 

Kwankyu Lee

unread,
Nov 18, 2024, 3:55:01 AM11/18/24
to sage-devel
Curve code does not check the dimension of the input ideal, as it is an expensive computation in general.

But in this case, it was actually fixed recently (in Sage 10.5.rc0):

sage: C=Curve(J);C
...
ValueError: defining equations (=[x*y*z - t^2, x + 2*y + 3*z - t - 1]) define a scheme of dimension 2 != 1


 
Reply all
Reply to author
Forward
0 new messages