The singular set of a variety is the set of singular points. This is a proper subvariety. A subvariety of is contained in the singular set if and only if its local ring is not regular.