The ideal is defined in the ring theory;
In ring theory, a branch of abstract algebra, an ideal of a ring is a special subset of its elements
In the answer to this question What is the exponent of a group?, the term ideal is used for groups as;
The exponent of a group $G$ is the non-negative generator of the ideal $\{z \in \mathbb{Z} : \forall g \in G (g^z=1)\}$.
Is this usage of the term ideal correct? If not, what is the correct term?