Ask Your Question

One point from infinity variety

asked 2020-07-14 10:00:35 +0200

philipp7 gravatar image

Given an ideal, I want to compute a non-zero point in the variety of that ideal. This can be done with .variety() if the ideal has 0-dimension. How can I get a non-zero point in the variety if the ideal is not 0-dimensional?


R.<x,y> = PolynomialRing(QQ)
I = R.ideal([x^2-y^2])

yields an error. How can I get a point like (1,1) which lies in the variety?


edit retag flag offensive close merge delete


Cut by hyperplanes until the dimension is zero.

FrédéricC gravatar imageFrédéricC ( 2020-07-14 11:43:55 +0200 )edit

Thank you! Two problems come into my mind with that approach: 1. If I intersect with hyperplanes I do not necessarily reduce the dimension by 1. Say I start with dimension 3, I might get the entire ring (so no solution at all) just by adding one hyperplane. 2. I am searching for elements in the variety which are (say) rational. By intersecting with a hyperplane I might get rid of possible rational solutions. However, I suppose mathematically this problem should be quite hard, as it is already very difficult to find rational points on some "easy" curves.

philipp7 gravatar imagephilipp7 ( 2020-07-14 13:41:08 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-07-14 13:02:39 +0200

Emmanuel Charpentier gravatar image

updated 2020-07-14 13:03:27 +0200

I tink that this is along the lines provided by FrédéricC :

sage: RR.<x,y>=PolynomialRing(QQ) ## R has some use already
sage: J=RR.ideal([x^2-y^2]) ## Similarly, I has an interesting use
sage: [J.random_element(u) for u in (1..5)]
 -1/2*x^2 + 1/2*y^2,
 -1/39*x^3 - 2/3*x^2*y + 1/39*x*y^2 + 2/3*y^3,
 -x^3*y + x*y^3 - x^3 + x*y^2 + x^2 - y^2,
 -4*x^2*y^3 + 4*y^5 + x^3 + 7/4*x^2*y - x*y^2 - 7/4*y^3 - x^2 + y^2]


edit flag offensive delete link more


Thank you. I am probably missing something here. How do I get a random point in the variety from some random polynomials in the ideal?

philipp7 gravatar imagephilipp7 ( 2020-07-14 13:43:47 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-07-14 10:00:35 +0200

Seen: 51 times

Last updated: Jul 14 '20