singularLocus X
The singular locus of a variety is the set of singular points of some variety $X$. Geometrically it is the intersection of the points in the variety $X$ with the points at which the associated jacobian matrix does not have maximal rank. Algebraically, this corresponds to the variety defined the ideal obtained by taking the sum of the defining ideal of $X$ and the maximal minors of the Jacobian matrix. In the projective case, one should also saturate to make sure the ideal defines a reduced object.
|
|
|
|
|
In the projective case, there may be additional irrelevant components that we would like to saturate away:
|
|
|
|
|
|
As we see in the above, without saturating there is an irrelevant component arising from the ideal $(x^2 , y)$ that disappears upon saturating.
The source of this document is in Varieties/doc-varieties.m2:300:0.