1 Introduction

The local dimension, the dimension of a variety at a point, is one of the most important invariants in algebraic geometry, complex analysis and singularity theory [2, 7, 15, 19]. Thus, a practical tool to compute the dimension or test zero-dimensionality is required for studying local properties of a variety [3, 11, 12, 14].

In this paper, we propose two methods for testing zero-dimensionality of a variety at a point, and we generalize them to the parametric cases. The main tools of our approach are Gröbner bases and comprehensive Gröbner systems. The proposed methods do not utilize primary ideal decompositions, and are free from computation in local rings.

Definition 1

Let V be an affine variety in \(\mathbb {C}^n\). For \(p \in V\), the dimension of V at p, denoted \(\dim _p(V)\), is the maximum dimension of an irreducible component of V containing the point p.

In singularity theory, problems that contain parameters are often studied, for instance, deformations of singularities, a family of hyperplane sections of a variety, etc. In such cases, since structures of relevant ideals or varieties may vary as parameters changes, there is a possibility that the local dimension of varieties may also depend on the values of parameters. We need methods to decompose a parameter space into strata according to the local dimensions of a given family of varieties.

In order to state precisely the problem, we give an example. Let \( f_0=x_1^4+x_1x_3^2+x_2^4 \) and consider \( f=f_0+t_1x_2x_3^2 \), where \( t_1 \) is a parameter. The hypersurface defined by \( f_0 = 0 \) has an isolated singularity at the origin O in \( \mathbb {C}^3\), i.e., \(\dim _O(\mathbb {V}(f_0,\frac{\partial f_0}{\partial x_1},\frac{\partial f_0}{\partial x_2},\frac{\partial f_0}{\partial x_3}))=0\). Since f has the parameter \( t_1 \), there is a possibility that the family of hypersurfaces defined by \( f=0 \) has non-isolated singularities at the origin for some values of the parameter \( t_1.\) In fact, if \(t_1^4+1= 0\), then f has a non-isolated singularity at O and \(\dim _O(\mathbb {V}(f,\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2},\frac{\partial f}{\partial x_3}))\) \(=1\). If \(t_1^4+1\ne 0\), then f has an isolated singularity at O. We really would like the condition \(t_1^4+1\ne 0\), or detect the condition \(t_1^4+1= 0\) in an algorithmic manner to study local properties of the deformation of an isolated singularity. How do we obtain such conditions?

Basically, the condition can be obtained by testing zero-dimensionality of the variety \(\mathbb {V}(f,\) \(\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2},\frac{\partial f}{\partial x_3} )\) at the origin O. We show in the present paper that the methods for testing zero-dimensionality of a variety at a point can be constructed by using Gröbner bases. Furthermore, we generalize the methods to parametric cases by utilizing comprehensive Gröbner systems [5, 9, 10, 13, 17]. We give two different kinds of algorithms for testing zero-dimensionality at a point of a family of varieties with parameters.

Note that the resulting algorithms do not involve computation in local rings and efficiently output the necessary and sufficient conditions for zero-dimensionality.

This paper is organized as follows. Section 2 briefly reviews comprehensive Gröbner systems, and gives notations that will be used in this paper. Section 3 considers the use of tangent cone and gives the discussion of the first algorithm for testing zero-dimensionality of varieties at a point. Section 4 considers the use of saturation and discusses the second algorithm for testing zero-dimensionality of varieties at a point. Section 5 gives results of the benchmark tests. Appendix A gives an efficient algorithm for computing ideal quotients with parameters, that utilizes a comprehensive Gröbner system of a module.

2 Preliminaries

Let \(t=\{t_1,\ldots ,t_m\}\) and \(x=\{x_1,\ldots , x_n\}\) be variables such that \(t \cap x=\emptyset \) and \(\mathbb {C}[t][x]\) be a polynomial ring with coefficients in a polynomial ring \(\mathbb {C}[t]\). For \(f_1,\ldots ,f_s \in \mathbb {C}[x]\) (or \(\mathbb {C}[t][x]\)), \(\langle f_1,\ldots ,f_s\rangle =\{\sum _{i=1}^sh_if_i | h_1,\ldots ,h_s \in \mathbb {C}[x] (\text { or }\mathbb {C}[t][x])\}\).

A symbol \(\text {Term}(x)\) is the set of terms of x. Fix a term order \(\succ \) on \(\text {Term}(x)\). Let \(f \in \mathbb {C}[x]\) (or \(f \in \mathbb {C}[t][x]\)), then, \(\text {ht}(f), \text {hm}(f)\) and \(\text {hc}(f)\) denote the head term, head monomial and head coefficient of f (i.e., \(\text {hm}(f)=\text {hc}(f)\cdot \text {ht}(f)\)). For \(F \subset \mathbb {C}[x]\) (or \(F \subset \mathbb {C}[t][x]\)), \(\text {ht}(F)=\{\text {ht}(f) | f\in F\}\).

For \(g_1,\ldots , g_r \in \mathbb {C}[t]\), \(\mathbb {V}(g_1,\ldots ,g_r) \subseteq \mathbb {C}^m\) denotes the affine variety of \(g_1,\ldots , g_r\), i.e., \(\mathbb {V}(g_1,\ldots ,g_r)=\{\bar{t}\in \mathbb {C}^m | g_1(\bar{t})=\cdots =g_r(\bar{t})=0\}\). We call an algebraic constructible set of a form \(\mathbb {V}(g_1,\ldots ,g_r) \backslash \mathbb {V}(g'_1,\ldots ,g'_{r'})\subseteq \mathbb {C}^m\) with \(g_1,\ldots ,g_r, g'_1,\ldots ,g'_{r'} \in \mathbb {C}[t]\), a stratum. Notations \(\mathbb {A}_1, \mathbb {A}_2,\) \(\ldots , \mathbb {A}_\nu \) are frequently used to represent strata.

For every \(\bar{t} \in \mathbb {C}^m\), the canonical specialization homomorphism \(\sigma _{\bar{t}} : \mathbb {C}[t][x] \rightarrow \mathbb {C}[x]\) (or \(\mathbb {C}[t] \rightarrow \mathbb {C}\)) is defined as the map that substitutes t by \(\bar{t}\) in \(f(t,x) \in \mathbb {C}[t][x]\) (i.e., \(\sigma _{\bar{t}}(f)=f(\bar{t},x) \in \mathbb {C}[x]\)). The image \(\sigma _{\bar{t}}\) of a set F is denoted by \(\sigma _{\bar{t}}(F)=\{\sigma _{\bar{t}}(f) | f \in F\} \subset \mathbb {C}[x]\). In this paper, the set of natural numbers \(\mathbb {N}\) includes zero.

We adopt the following as a definition of a comprehensive Gröbner system.

Definition 2

(comprehensive Gröbner system) Let \(\succ \) be a term order on \(\text {Term}(x)\). Let F be a subset of \(\mathbb {C}[t][x]\), \(\mathbb {A}_1, \mathbb {A}_2, \ldots , \mathbb {A}_\nu \) strata in \(\mathbb {C}^m\) and \(G_1,G_2,\ldots ,G_\nu \) subsets in \(\mathbb {C}[t][x]\). If a finite set \({\mathcal G}=\{(\mathbb {A}_1,G_1),(\mathbb {A}_2,G_2),\ldots ,(\mathbb {A}_\nu ,\) \(G_\nu )\}\) of pairs satisfies the following conditions

  1. 1.

    \(\mathbb {A}_i \ne \emptyset \) and \(\mathbb {A}_i \cap \mathbb {A}_j= \emptyset \) for \(1\le i\ne j \le \nu \),

  2. 2.

    for all \(\bar{t} \in \mathbb {A}_i\), \(\sigma _{\bar{t}}(G_i)\) is a minimal Gröbner basis of \(\langle \sigma _{\bar{t}}(F) \rangle \) w.r.t. \(\succ \) in \(\mathbb {C}[x]\), and

  3. 3.

    for all \(\bar{t} \in \mathbb {A}_i\) and \(f \in G_i\), \(\sigma _{\bar{t}}(\text {hc}(f))\ne 0\),

the set \({\mathcal G}\) is called a comprehensive Gröbner system on \(\mathbb {A}_1 \cup \cdots \cup \mathbb {A}_\ell \) for \(\langle F \rangle \) w.r.t. \(\succ \). We simply say that \({\mathcal G}\) is a comprehensive Gröbner system for \(\langle F \rangle \) if \(\mathbb {A}_1 \cup \cdots \cup \mathbb {A}_\ell =\mathbb {C}^m\).

In several papers [5, 9, 10, 13], algorithms and implementations for computing comprehensive Gröbner systems are introduced.

Example 1

Let \(F=\{t_1x_1x_2+x_2+1,x_1^2x_2+t_1x_1+3\}\) be a subset in \(\mathbb {C}[t_1][x_1,x_2]\) and \(\succ \) the lexicographic term order s.t. \(x_1 \succ x_2\). We regard \(t_1\) as a parameter in \(\mathbb {C}\). Then, a comprehensive Gröbner system of \(\langle F \rangle \) w.r.t. \(\succ \) is

\(\Bigl \{(\mathbb {C}\backslash \mathbb {V}(t_1^3-t_1), \{x_2^2+(2t_1^2+2)x_2-t_1^2+1,(t_1^3-t_1)x_1+x_2+3t_1^2+1\}), (\mathbb {V}(t_1^2-1),\{4x_1+3t_1,x_2+4\}), (\mathbb {V}(t_1),\{x_1^2-3,x_2+1\})\Bigl \}\).

3 Algorithm 1 (Tangent Cone Approach)

Here, we present an algorithm for testing zero-dimensionality of a variety at a point. This algorithm is based on the method described in section 9 of the famous textbook [1]. We generalize the method to parametric cases.

Before introducing the algorithm, we prepare some notations and basic facts.

Let \(p=(p_1,\ldots ,p_n)\in \mathbb {C}^n\), \(\alpha =(\alpha _1,\ldots , \alpha _n) \in \mathbb {N}^n\) and \((x-p)^\alpha =(x_1-p_1)^{\alpha _1}\cdots (x_n-p_n)^{\alpha _n}\). Given any polynomial \(f\in \mathbb {C}[x]\) of total degree d, f can be written as a polynomial in \(x_i-p_i\), namely,

$$\begin{aligned} f= & {} f_{p,0}+f_{p,1}+\cdots + f_{p,d} \end{aligned}$$
(3.1)

where \(f_{p,j}\) is a linear combination of \((x-p)^\alpha \) for \(\alpha _1+\cdots +\alpha _n=j \le d\). Note that \(f_{p,0}=f(p)\) and \(f_{p,1}=\frac{\partial f}{\partial x_1}(p)(x_1-p_1)+\cdots + \frac{\partial f}{\partial x_n}(p)(x_n-p_n)\).

The next definition is borrowed from [1].

Definition 3

(tangent cone) Let \(V\subset \mathbb {C}^n\) be an affine variety and let \(p=(p_1,\ldots ,p_n)\in V\).

  1. (i)

    If \(f \in \mathbb {C}[x]\) is a non-zero polynomial, then \(f_{p,min}\) is defined to be \(f_{p,j}\), where j is the smallest integer such that \(f_{p,j}\ne 0\) in (3.1).

  2. (ii)

    The tangent cone of V at p, denoted \(C_p(V)\), is the variety

    $$\begin{aligned} C_p(V)=\mathbb {V}\Bigl (f_{p,min} \mid f \in \mathbb {I}(V)\Bigr ) \end{aligned}$$

    where \(\mathbb {I}(V)=\{f \in \mathbb {C}[x] | f(\bar{x})=0, \text { for all } \bar{x} \in V \}\).

The details of the tangent cone are described in [18, 19]. In 1965, H. Whitney gave the following theorem.

Theorem 1

(H. Whitney [17]) Let \(V\subset \mathbb {C}^n\) be an affine variety and let \(p=(p_1,\ldots ,p_n)\in V\). Then,

$$\begin{aligned} \dim _p(V)=\dim (C_p(V)). \end{aligned}$$

In order to compute a tangent cone, we need the following definition.

Definition 4

  1. (i)

    Let \(f(x) \in \mathbb {C}[x]\) be a polynomial of total degree d. Let \(f(x)=\sum _{i=0}^d f_i(x)\) be the expansion of f(x) as the sum of its homogeneous components where \(f_i(x)\) has total degree i. Then,

    $$\begin{aligned} f^h(x_0,x)=\sum _{i=0}^d f_i(x)x_0^{d-i} \end{aligned}$$

    is a homogeneous polynomial of total degree d in \(\mathbb {C}[x_0,x]\) where \(x_0\) is a new variable.

  2. (ii )

    Let I be an ideal in \(\mathbb {C}[x]\). We define the homogenization of I to be the ideal

    $$\begin{aligned} I^h=\langle f^h | f \in I\rangle \subset \mathbb {C}[x_0,x]. \end{aligned}$$

From now on, we assume that the point p is the origin \(O=(0,\ldots ,0)\) in \(\mathbb {C}^n\).

Proposition 1

(Proposition 4, p. 485 [1]) Assume that the origin O is a point of \(V\subset \mathbb {C}^n\). Let \(\succ \) be a block term order such that \(x_0 \gg x\). Let I be an ideal such that \(V=\mathbb {V}(I)\). If \(\{g_1,\ldots ,g_r\}\) is a Gröbner basis of \(I^h\) w.r.t. \(\succ \), then

$$\begin{aligned} C_O(V)=\mathbb {V}\Bigl (\varepsilon (g_1)_{O,min},\varepsilon (g_2)_{O,min},\ldots ,\varepsilon (g_r)_{O,min}\Bigr ) \end{aligned}$$

where \(\varepsilon (g_i)\) is the dehomogenization of \(g_i\) for \(1\le i \le r\).

There exist several algorithms for computing the dimension of a variety, thus, the dimension of \(C_O(V)\) can be obtained. The procedure for computing \(\dim _O(V)\) is the following.

  1. Step 1:

    Compute \(C_O(V)\).

  2. Step 2:

    Compute \(\dim (C_O(V))\).

  3. Return

    \(\dim (C_O(V))\) (as \(\dim _O(V)=\dim (C_O(V))\)).

We turn to the parametric cases. Let I be an ideal in \(\mathbb {C}[t][x]\) where we regard t as parameters. After here we simply say that I is a “parametric” ideal.

As described in Sect. 2, there exist algorithms for computing comprehensive Gröbner systems, it is possible to compute a comprehensive Gröbner system of \(I^h\) w.r.t. \(\succ \) in Proposition 1. Therefore, Proposition 1 and the procedure above can be extended to the case of parametric ideals.

The following algorithm which utilizes a comprehensive Gröbner system outputs a condition of zero-dimensionality of \(\mathbb {V}(F)\) at O.

figure a

Since the algorithms [5, 9, 10, 13, 17] for computing comprehensive Gröbner systems always terminate and return a finite set of pairs, Algorithm 1 also terminates. The correctness follows from Theorem 1 and Proposition 1.

Note that Algorithm 1 contains a part of computing local dimensions. Thus, it can be naturally generalized to a method for decomposing a parameter space into strata according to the local dimensions of a given family of varieties.

We illustrate Algorithm 1 with the following example.

Example 2

Let \(f=x_1^3+t_1x_1^2x_2^4+x_2^{12} \in \mathbb {C}[t_1][x_1,x_2]\), \(F=\{f,\frac{\partial f}{\partial x_1}, \frac{\partial f}{\partial x_2}\}\) and \(I=\langle F \rangle \) where \(t_1\) is a parameter. Let \(\succ \) be the total degree lexicographic term order with \(x_1 \succ x_2\).

A comprehensive Gröbner systems of

$$\begin{aligned} I^h=\langle x_1^3x_0^9+t_1x_1^2x_2^4x_0^6+x_2^{12},3x_1^2x_0^2+2t_1x_2^4,4t_1x_1^2x_2^3x_0^6+12x_2^{11} \rangle \end{aligned}$$

w.r.t. the block term order with \(x_0 \gg \{x_1, x_2\}\), in \(\mathbb {C}[t_1][x_0,x_1,x_2]\), is

$$\begin{aligned} \{(\mathbb {C}\backslash \mathbb {V}(t_1(4t_1^3+27)), \{(4t_1^3+27)x_1x_2^{11},(4t_1^3+27)x_2^{15},3x_0^3x_1^2+2t_1x_1x_2^4, \\ 2t_1^2x_0^3x_1x_2^7-9x_2^{11}\}),\\ (\mathbb {V}(4t_1^3+27), \{3x_0^3x_1^2+2t_1x_1x_2^4,3x_0^3x_1x_2^7+2t_1x_2^{11}\}),(\mathbb {V}(t_1), \{x_2^{11},x_0x_1^2\})\}. \end{aligned}$$

Hence,

  • if \(t_1\) belongs to \(\mathbb {C}\backslash \mathbb {V}(t_1(4t_1^3+27)\), then \(C_O(\mathbb {V}(I))=\mathbb {V}(x_1x_2^{11},x_2^{15},x_1^{2},x_1x_2^7)\) and \(\dim _O(\mathbb {V}(I))\) \(=0\),

  • if \(t_1\) belongs to \(\mathbb {V}(4t_1^3+27)\), then \(C_O(\mathbb {V}(I))=\mathbb {V}(x_1^2,x_1x_2^{7})\) and \(\dim _O(\mathbb {V}(I))=1\),

  • if \(t_1\) belongs to \(\mathbb {C}\backslash \mathbb {V}(t_1)\), then \(C_O(\mathbb {V}(I))=\mathbb {V}(x_1^2,x_2^{11})\) and \(\dim _O(\mathbb {V}(I))=0\).

Therefore, for all \(\bar{t}\in \mathbb {C}\backslash \mathbb {V}(4t_1^3+27)\), \(\dim _O(\mathbb {V}(\sigma _{\bar{t}}(I)))=0\), namely, f has an isolated singularity at the origin O.

4 Algorithm 2 (Saturation Approach)

in this section, we consider the use of saturation and introduce an alternative method for testing zero-dimensionality of a variety at a point. We present an algorithm for testing zero-dimensionality of a family of varieties at a point, that utilizes a comprehensive Gröbner system of a module. Furthermore, we improve the algorithm in speed and give an efficient algorithm. We also show that, according to the concept of Chevalley dimension, local dimensions of varieties can also be computed by utilizing saturation.

4.1 Saturation Approach

Let IJ be ideals in \(\mathbb {C}[x]\). The ideal quotient of I by J is \(I : J =\{h \in \mathbb {C}[x] | hg \in I \text { for all } g \in J\}.\) The saturation of I with respect to J is the ideal

$$\begin{aligned} I : J^\infty =\{h \in \mathbb {C}[x] | h J^r \subset I \text { for some } r >0\}. \end{aligned}$$

The saturation \(I : J^\infty \) is the ideal at which the chain

$$\begin{aligned} I : J \subseteq I : J^2 \subseteq I : J^3\subseteq \cdots \end{aligned}$$

stabilizes.

Now, we give the following main theorem which is utilized to construct the new algorithm for testing the zero-dimensionality of a variety at a point.

Theorem 2

Let \(F \subset \mathbb {C}[x]\), \({\mathfrak m}=\langle x_1,\ldots ,x_n\rangle \subset \mathbb {C}[x]\) and \(O \in \mathbb {V}(F)\). Let G be a basis of the ideal \(\langle F \rangle : {\mathfrak m}^\infty \) in \(\mathbb {C}[x]\). Then, the affine variety \(\mathbb {V}(F)\) has an isolated point at the origin O if and only if there exists \(g \in G\) such that \(g(O)\ne 0\) (i.e., g has non-zero constant term).

Proof

As G is a basis of \(\langle F \rangle : {\mathfrak m}^\infty \), \(\mathbb {V}(G)=\mathbb {V}(\langle F \rangle : {\mathfrak m}^\infty )\) is the Zariski closure \(\overline{\mathbb {V}(F)\backslash \{O\}}\). The variety \(\mathbb {V}(F)\) can be written as \(\mathbb {V}(F)=V_1\cup V_2 \cup \cdots \cup V_\nu \) (finite union) where \(V_1, V_2,\ldots , V_\nu \) are distinct irreducible varieties.

First, assume that the affine variety \(\mathbb {V}(F)\) has an isolated point at the origin O. Then, one of \(V_i\) must be \(\{O\}\) and other varieties does not contain O where \(i \in \{1,2,\ldots ,\nu \}\). Without loss of generality, set \(V_1=\{O\}\). Then,

$$\begin{aligned} \mathbb {V}(G)=\mathbb {V}(\langle F \rangle : {\mathfrak m}^\infty )=\overline{\mathbb {V}(F)\backslash \{O\}}=V_2 \cup \cdots \cup V_\nu . \end{aligned}$$

As \(O \notin V_2 \cup \cdots \cup V_\nu =\mathbb {V}(G)\), there exists \(g \in G\) such that \(g(O)\ne 0\).

Next, assume that there exists \(g \in G\) such that \(g(O)\ne 0\). Since \(O \in \mathbb {V}(F)\),

$$\begin{aligned} \mathbb {V}(G)= \mathbb {V}(\langle F \rangle : {\mathfrak m}^\infty )=\overline{\mathbb {V}(F)\backslash \{O\}}\text { and }O \notin \mathbb {V}(G), \end{aligned}$$

there exists an irreducible variety \(\{O\}\) in \(\mathbb {V}(F)\). Therefore, \(\mathbb {V}(F)\) has an isolated point at the origin O. \(\square \)

The following corollary is a direct consequence of Theorem 2.

Corollary 1

Let \(f \in \mathbb {C}[x]\), \({\mathfrak m}=\langle x_1,\ldots ,x_n\rangle \subset \mathbb {C}[x]\) and \(O \in \mathbb {V}(f,\frac{\partial f}{\partial x_1},\ldots ,\frac{\partial f}{\partial x_n})\). Let G be a basis of \(\langle \frac{\partial f}{\partial x_1},\ldots ,\frac{\partial f}{\partial x_n}\rangle : {\mathfrak m}^\infty \) (or \(\langle f, \frac{\partial f}{\partial x_1},\ldots ,\frac{\partial f}{\partial x_n}\rangle : {\mathfrak m}^\infty \)). Then, the hypersurface, defined by f, has an isolated singularity at O if and only if there exists \(g \in G\) such that \(g(O)\ne 0\).

Example 3

Let us consider \(f_1=x_1^2x_3+x_2x_3^2+x_2^5+x_2^3x_3, f_2=x_1^2x_3+x_2x_3^2+x_2^5+2x_2^3x_3\) and \({\mathfrak m}=\langle x_1,x_2,x_3\rangle \) in \(\mathbb {C}[x_1,x_2,x_3]\). Let \(\succ \) be the total degree lexicographic term order with \(x_1 \succ x_2 \succ x_3\). Then, the reduced Gröbner basis of \(\langle \frac{\partial f_1}{\partial x_1}, \frac{\partial f_1}{\partial x_2}, \frac{\partial f_1}{\partial x_3}\rangle : {\mathfrak m}^\infty \) w.r.t. \(\succ \) is

$$\begin{aligned} \{1\}, \end{aligned}$$

and the reduced Gröbner basis of \(\langle \frac{\partial f_2}{\partial x_1}, \frac{\partial f_2}{\partial x_2}, \frac{\partial f_2}{\partial x_3} \rangle : {\mathfrak m}^\infty \) w.r.t. \(\succ \) is

$$\begin{aligned} \{x_2^2+x_3,x_1\}. \end{aligned}$$

Therefore, \(f_1\) has an isolated singularity at O, and \(f_2\) does not have an isolated singularity at O.

We turn to the parametric cases. There exists an algorithm for computing a comprehensive Gröbner system of the saturation of \(\langle F \rangle \) w.r.t. a given parametric ideal. The algorithm is given in Appendix A. Therefore, Theorem 2 is generalized to the parametric cases.

figure b

The correctness and termination of Algorithm 2-1 follows from Theorem 2 and that of the algorithm for computing comprehensive Gröbner systems.

We illustrate Algorithm 2-1 with the following example.

Example 4

Let \(f=x_1^3+x_1x_3^2+t_1x_1x_2^3+x_2^3x_3 \in \mathbb {C}[t_1][x_1,x_2,x_3]\) and \(\succ \) the total degree reverse lexicographic term order with the coordinate \(x_1 \succ x_2 \succ x_3\).

A comprehensive Gröbner system of \(\langle f, \frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2}, \frac{\partial f}{\partial x_3}\rangle : \langle x_1,x_2,x_3 \rangle ^\infty \) w.r.t. \(\succ \) is

$$\begin{aligned} \{(\mathbb {C}\backslash \mathbb {V}(t_1^2+1), \{1\}),(\mathbb {V}(t_1^2+1), \{x_1-t_1x_3,x_2^3+2t_1x_3^2\})\}. \end{aligned}$$

Hence,

  • if \(t_1\) belongs to \(\mathbb {C}\backslash \mathbb {V}(t_1^2+1)\), then \(\dim _O\Bigl (\mathbb {V}(f, \frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2}, \frac{\partial f}{\partial x_3})\Bigr )=0\),

  • if \(t_1\) belongs to \(\mathbb {V}(t_1^2+1)\), then \(\dim _O\Bigl (\mathbb {V}(f, \frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2}, \frac{\partial f}{\partial x_3})\Bigr )\ne 0\).

Therefore, for all \(\bar{t}\in \mathbb {C}\backslash \mathbb {V}(t_1^2+1)\), \(\sigma _{\bar{t}}(f)\) has an isolated singularity at the origin O.

4.2 Improvement

We improve Algorithm 2-1 in computation speed. The following lemma allows us to devise an efficient and practical algorithm for computing the saturation \(\langle F \rangle : {\mathfrak m}^\infty \).

Lemma 1

Let \(F \subset \mathbb {C}[x]\) and \({\mathfrak m}=\langle x_1,\ldots ,x_n\rangle \). For all \(\alpha _1,\alpha _2,\ldots ,\alpha _n \in \mathbb {N}\backslash \{0\}\),

$$\begin{aligned} \Bigl (\langle F \rangle : \langle x_1^{\alpha _1}, x_2^{\alpha _2}, \ldots , x_n^{\alpha _n}\rangle \Bigr ) : {\mathfrak m}^\infty =\langle F \rangle : {\mathfrak m}^\infty . \end{aligned}$$

Proof

There exists \(\beta \in \mathbb {N}\) such that

$$\begin{aligned} \langle F \rangle : {\mathfrak m}^{\beta -1}\subset \langle F \rangle : {\mathfrak m}^\beta =\langle F \rangle : {\mathfrak m}^{\beta +1}=\cdots . \end{aligned}$$

Let \(J=\langle x_1^{\alpha _1}, x_2^{\alpha _2}, \ldots , x_n^{\alpha _n}\rangle \) and \(\alpha = \max \Bigl (\{\alpha _1,\alpha _2,\ldots ,\alpha _n\}\Bigr )\). Obviously,

$$\begin{aligned} \Bigl (\langle F \rangle : J \Bigr ) : {\mathfrak m}^\beta = \langle F \rangle : J\cdot {\mathfrak m}^\beta . \end{aligned}$$

Since \(J\cdot {\mathfrak m}^\beta \subseteq {\mathfrak m}^\beta \), thus \(\langle F \rangle : {\mathfrak m}^{\beta }\subseteq \langle F \rangle : J\cdot {\mathfrak m}^\beta \). Take a sufficiently large number N such that \(N >\alpha + \beta \), then \({\mathfrak m}^N \subseteq J\cdot {\mathfrak m}^\beta \). Hence,

$$\begin{aligned} \langle F \rangle : {\mathfrak m}^{\beta }\subseteq \langle F \rangle : J\cdot {\mathfrak m}^\beta \subseteq \langle F \rangle : {\mathfrak m}^N. \end{aligned}$$

As \(\langle F \rangle : {\mathfrak m}^{\beta }=\langle F \rangle : {\mathfrak m}^N\), we have \(\langle F \rangle : {\mathfrak m}^\beta = \langle F \rangle : J\cdot {\mathfrak m}^{\beta }\). Therefore, \(\Bigl (\langle F \rangle : \langle x_1^{\alpha _1}, \ldots , x_n^{\alpha _n}\rangle \Bigr ) : {\mathfrak m}^\infty =\langle F \rangle : {\mathfrak m}^\infty .\)

The lemma above leads the following procedure for computing \(\langle F \rangle : {\mathfrak m}^\infty \).

  1. Step 1:

    Compute a basis G of \(\langle F \rangle : \langle x_1^{\alpha _1}, x_2^{\alpha _2}, \ldots , x_n^{\alpha _n}\rangle \).

  2. Step 2:

    Compute a basis \(G'\) of \(\langle G \rangle : {\mathfrak m}^\infty \).

  3. Return

    \(G'\).

Notice that in the procedure above arbitrary positive integers \( \alpha _1,\ldots ,\alpha _n \) can be used to compute \(\langle F \rangle : {\mathfrak m}^\infty \). Our strategy of choosing the integers is the following.

Let \(\displaystyle f=\sum _{\mathbf{r} \in \mathbb {N}^n}a_{\mathbf{r}}x^{\mathbf{r}}\) be a non-zero polynomial in \(\mathbb {C}[x]\) and \(F \subset \mathbb {C}[x]\). Let \(\text {mdeg}_{x_i}(f)\) be the degree of the polynomial f w.r.t. the variable \(x_i\), i.e.,

$$\begin{aligned} \text {mdeg}_{x_i}(f):=\max \Bigl (\{\gamma _i | \ \mathbf{r}=(\gamma _1,\ldots ,\gamma _i,\ldots ,\gamma _n) \in \mathbb {N}^n, a_{\mathbf{r}}\ne 0\}\Bigr ), \end{aligned}$$

where \(i \in \{1,\ldots ,n\}\). Moreover,let \(\text {mdeg}_{x_i}(F):=\max (\{\text {mdeg}_{x_i}(g)| g \in F\})\).. In Algorithm 2-2, we take

$$\begin{aligned} \alpha =\max \Bigl (\{\text {mdeg}_{x_1}(F),\text {mdeg}_{x_2}(F),\ldots ,\text {mdeg}_{x_n}(F)\}\Bigr ) \end{aligned}$$

as \(\alpha _1,\ldots ,\alpha _n\) to compute a basis of \(\langle F \rangle : {\mathfrak m}^\infty \), namely, \(\alpha _1=\alpha _2=\cdots =\alpha _n=\alpha \).

Lemma 1 and the strategy above yield the following improvement.

figure c

We illustrate Algorithm 2-2 with the next example, briefly.

Example 5

Let \(f=x_1^3x_2+t_1x_1^2x_2^4+x_2^{10}+t_2x_2^{11} \in \mathbb {C}[t_1,t_2][x_1,x_2]\), \(F=\{\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2}\}\) and \(V=\mathbb {V}(F)\). We use the total degree lexicographic term order with \(x_1 \succ x_2\).

Since \(\text {mdeg}_{x_1}(f)=3\) and \(\text {mdeg}_{x_2}(f)=11\), we compute a comprehensive Gröbner system \({\mathcal G}\) of \(\langle F \rangle : \langle x_1^{11}, x_2^{11}\rangle \). Then,

$$\begin{aligned} {\mathcal G}= & {} \{(\mathbb {C}^2\backslash \mathbb {V}((4t_1^3+27)t_1t_2),\{(297t_2x_2+40t_1^3+270)x_1,-264627t_2^2x_1^2\\&+(-3200t_1^7-43200t_1^4-145800t_1)x_1x_2,66t_1^2t_2x_1+(44t_1^3t_2+297t_2)x_2^3\\&+(40t_1^3+270)x_2^2\}), \left( \mathbb {V}(4t_1^3+27)\backslash \mathbb {V}(4t_1^3+27,t_2),\left\{ x_1,20t_2^2x_1-99t_2x_2^4-90x_2^3\right\} \right) ,\\&\qquad (\mathbb {V}(4t_1^3+27,t_2), \left\{ -2t_1^2x_1+9x_2^3\right\} , \left( \mathbb {V}(t_1)\backslash \mathbb {V}(t_1,t_2),\left\{ 11t_2x_2+10,x_1^2\right\} \right) ,\\&\qquad (\mathbb {V}(t_1,t_2),\{1\}), (\mathbb {V}(t_2)\backslash \mathbb {V}(4t_1^4+27t_1,t_2), \{x_1,x_2^2\})\}. \end{aligned}$$

Next, for each pair \((\mathbb {A},G)\) of the comprehensive Gröbner system \({\mathcal G}\), we compute a comprehensive Gröbner system of \(\langle G \rangle : \langle x_1,x_2\rangle ^\infty \) on \(\mathbb {A}\). Then, we can obtain a comprehensive Gröbner system of \(\langle F \rangle : \langle x_1, x_2\rangle ^\infty \) as follows:

$$\begin{aligned}&\{(\mathbb {C}^2\backslash \mathbb {V}((4t_1^3+27)t_1t_2),\{-2910897t_1^2t_2^3x_1+(-35200t_1^9t_2-712800t_1^6t_2-4811400t_1^3t_2-10825650t_2)x_2\\&\quad -32000t_1^9-648000t_1^6-4374000t_1^3-9841500,-9801t_1^2t_2^2x_1\\&\quad +(880t_1^6t_2+11880t_1^3t_2+40095t_1)x_2^2+(800t_1^6+10800t_1^3+36450)x_2\}),\\&\qquad (\mathbb {V}(4t_1^3+27)\backslash \mathbb {V}(4t_1^3+27,t_2),\{x_1,11t_2x_2+10\}), (\mathbb {V}(4t_1^3+27,t_2), \{2t_1^2x_1-9x_2^3\},\\&\qquad \left( \mathbb {V}(t_1)\backslash \mathbb {V}(t_1,t_2),\left\{ 11t_2x_2+10,x_1^2\right\} \right) , (\mathbb {V}(t_1,t_2),\{1\}), (\mathbb {V}(t_2)\backslash \mathbb {V}(4t_1^4+27t_1,t_2), \{1\})\}. \end{aligned}$$

From the comprehensive Gröbner system above, we have the following result.

  • If \((t_1,t_2)\) belongs to \(W=\mathbb {V}(4t_1^3+27,t_2),\) then then \(\dim _O(V)\ne 0\). The hypersurface S does not have an isolated singularity at O.

  • If \((t_1,t_2)\) belongs to \(\mathbb {C}^2\backslash W,\) then \(\dim _O(V)=0\), namely, the hypersurface S, defined by f, has an isolated singularity at O.

We have implemented Algorithm 2-2 in the computer algebra system Risa/Asir [16]. We give an output of our implementation in the following example.

Example 6

Let \(f=x_1x_3^2+x_1^4+x_2^4+t_1x_2x_3^2+t_2x_1^2x_2^2 \in \mathbb {C}[t_1,t_2][x_1,x_2,x_3]\) and \(V=\mathbb {V}(\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2},\frac{\partial f}{\partial x_3})\). Our implementation outputs the following.

  • If \((t_1,t_2)\) belongs to

    $$\begin{aligned} W=\Bigl (\mathbb {C}^2\backslash \mathbb {V}((t_1^4+t_1^2t_2+1)(t_2-2)(t_2+2)\Bigr ) \cup \Bigl (\mathbb {V}(t_2)\backslash \mathbb {V}(t_1^4+1,t_2)\Bigr ), \end{aligned}$$

    then \(\dim _O(V)=0\), namely, the hypersurface S, defined by f, has an isolated singularity at O.

  • If \((t_1,t_2)\) does not belong to W, then \(\dim _O(V)\ne 0\). The hypersurface S does not have an isolated singularity at O.

We will see in Sect. 5 how the use of \(\langle F \rangle : \langle x_1^\alpha ,x_2^\alpha ,\ldots , x_n^\alpha \rangle \) reduces the cost of computation of the saturation \(\langle F \rangle : {\mathfrak m}^\infty \) drastically.

4.3 Primary Ideal Component at O

Let \(\langle F \rangle \) be the ideal generated by F s.t. \(O \in \mathbb {V}(F)\). Let

$$\begin{aligned} \langle F \rangle =Q_0 \cap Q_1 \cap \ldots \cap Q_{\nu } \end{aligned}$$

be the primary ideal decomposition of the ideal \(\langle F \rangle \). Let S denote the saturation \(\langle F \rangle : {\mathfrak m}^\infty \) where \({\mathfrak m}=\langle x_1,\ldots , x_n\rangle \) is the maximal ideal in \(\mathbb {C}[x]\).

Assume that \(O \notin \mathbb {V}(S)\). Then, we have

$$\begin{aligned} \langle F \rangle =Q_0\cap S\text { and } Q_0 =\langle F \rangle : S. \end{aligned}$$

Therefore, the primary component \(Q_0\) at O of \(\langle F \rangle \) such that \(\mathbb {V}(Q_0)=\{O\}\) can also be computed by using the saturation \(S=\langle F \rangle : {\mathfrak m}^\infty \).

The method above works for parametric cases, too.

Example 7

Let \(f=x_1^3x_2+x_1^2x_2^4+t_1x_2^{10} \in \mathbb {C}[t_1][x_1,x_2]\) and \(F=\{\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2}\}\). Let \(\succ \) be the total degree lexicographic term order with \(x_1 \succ x_2\). A comprehensive Gröbner system of \(\langle F \rangle : {\mathfrak m}^\infty \) w.r.t. \(\succ \) is

$$\begin{aligned} \{(\mathbb {V}(t_1),\{1\}),(\mathbb {C}\backslash \mathbb {V}(t_1),\{2910897t_1^3x_1+16385050t_1x_2+14895500, \\ -9801t_1^2x_1+52855t_1x_2^2+48050x_2\})\}. \end{aligned}$$
  1. (i)

    A comprehensive Gröbner system of \(\langle F \rangle : \langle 1 \rangle \) on \(\mathbb {V}(t_1)\) w.r.t. \(\succ \) is

    $$\begin{aligned} \{(\mathbb {V}(t_1), Q_0')\}, \end{aligned}$$

    where \(Q'_0=\{3x_1^2x_2+2x_1x_2^4,x_1^4x_2,x_1^5,2x_1^4+53x_1^3x_2^3,x_1^3+4x_1^2x_2^3+10x_2^9\}\). This means that if \(t_1=0\), then \(\langle Q_0'\rangle \) is the primary ideal component such that \(\mathbb {V}(Q_0')=\{O\}\).

  2. (ii)

    A comprehensive Gröbner system of

    $$\begin{aligned} \langle F \rangle : \langle 2910897t_1^3x_1+16385050t_1x_2+14895500, -9801t_1^2x_1+52855t_1x_2^2+48050x_2 \rangle \end{aligned}$$

    on \(\mathbb {C}\backslash \mathbb {V}(t_1)\) w.r.t. \(\succ \) is

    $$\begin{aligned} \{ (\mathbb {C}\backslash \mathbb {V}(t_1), Q_0'')\} \end{aligned}$$

    where \(Q_0''=\{3x_1^2x_2+2x_1x_2^4,x_1^4x_2,x_1^5,2x_1^4+53x_1^3x_2^3,-1331t_1^3x_1^4+(-32065t_1^2x_2^2+29150t_1\) \(x_2+5300)x_1^3+21200x_1^2x_2^3+53000x_2^9\}\). Thus, if \(t_1\ne 0\), \(\langle Q_0''\rangle \) is the primary ideal component such that \(\mathbb {V}(Q_0')=\{O\}\).

4.4 Local Dimensions

In this subsection, we give an algorithm for computing the local dimension at O.

Let F be a set of polynomials in \(\mathbb {C}[x]\). Let E be a set of families of linear polynomials

$$\begin{aligned} \begin{array}{c} x_1+u_{11}x_{\ell +1}+u_{12}x_{\ell +2}+\cdots +u_{1 n-\ell }x_n, \\ x_2 +u_{21}x_{\ell +1}+u_{22}x_{\ell +2}+\cdots +u_{2 n-\ell }x_n, \\ x_3 +u_{31}x_{\ell +1}+u_{32}x_{\ell +2}+\cdots +u_{3 n-\ell }x_n, \\ \vdots \\ x_{\ell } + u_{\ell 1}x_{\ell +1}+u_{\ell 2}x_{\ell +2}+\cdots +u_{\ell n-\ell }x_n,\\ \ \\ \end{array} \end{aligned}$$

in \(\mathbb {C}(u)[x]\) where \(u=\{u_{11},\ldots ,u_{1 n-\ell },u_{21},\ldots ,u_{2\ell -n},\ldots ,u_{\ell 1}, \ldots , u_{\ell n-\ell }\}\), \(\ell \le n\) and \(\mathbb {C}(u)\) is the rational function field on u alternatively, the multivariate rational function field. Then, we have the following proposition.

Proposition 2

Let \({\mathfrak m}=\langle x_1,\ldots ,x_n\rangle \subset \mathbb {C}[x]\) and \(O \in \mathbb {V}(F)\). Let G be a basis of the ideal \(\langle F \cup E \rangle : {\mathfrak m}^\infty \) in \(\mathbb {C}(u)[x]\). Let \(\ell \) be the minimum number that satisfies

$$\begin{aligned} ``there \, exists \, g \in G \, \,such \, that\, g(O)\ne 0.'' \end{aligned}$$

Then, \(\dim _{O}(\mathbb {V}(F))= \ell \).

Proof

By Theorem 2, if there exists \(g \in G\) such that \(g(O)\ne 0\), then \(\dim _{O}(\mathbb {V}(F \cup E))=\dim _{O}(\mathbb {V}(F)\cap \mathbb {V}(E))=0\). Note that \(\mathbb {C}(u)\) is the fields of rational functions and E is a set of \(\ell \) linear polynomials with \(O \in \mathbb {V}(E)\) Hence, \(\dim _{O}(\mathbb {V}(E))=n-\ell \). Since \(\ell \) is the minimum number, it follows from the classical action lemma or the concept of Chevally dimension that \(\dim _{O}(\mathbb {V}(F))= \ell \).

By this proposition, we can construct an algorithm for computing \(\dim _{O}(\mathbb {V}(F))\) as follows.

figure d

We illustrate Algorithm 3 with the following examples.

Example 8

Let \(f=x_1^4+x_2^6+2x_1^2x_2^3 \in \mathbb {C}[x_1,x_2]\) and \(F=\{\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2}\}\). Let \(\succ \) be the total degree reverse lexicographic term order with \(x_1 \succ x_2\).

The reduced Gröbner basis of \(\langle F \rangle : \langle x_1,x_2\rangle ^\infty \) w.r.t. \(\succ \), in \(\mathbb {C}[x_1,x_2]\), is

$$\begin{aligned} \{x_1^2+x_2^3\}. \end{aligned}$$

Thus, \(\dim _O(\mathbb {V}(F))\ne 0\).

Next, let us consider the case \(\ell =1\). Let \(E=\{x_1+u_{11}x_2\}\). The reduced Gröbner basis of \(\langle F \cup E \rangle : \langle x_1,x_2\rangle ^\infty \) w.r.t. \(\succ \) is, \(\mathbb {C}(u_{11})[x_1,x_2]\) is

$$\begin{aligned} \{x_2+u_{11}^2,x_1-u_{11}^3\}. \end{aligned}$$

Hence, as \(\dim _O(\mathbb {V}(F\cup E))=0\), we obtain \(\dim _{O}(\mathbb {V}(F))=1\).

Example 9

Let \(f=x_1^3+x_2x_3^2+2x_1^2x_2^2+x_1x_2^4 \in \mathbb {C}[x_1,x_2,x_3]\) and \(F=\{\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2},\frac{\partial f}{\partial x_3}\}\). Let \(\succ \) be the total degree reverse lexicographic term order with \(x_1 \succ x_2 \succ x_3\).

The reduced Gröbner basis of \(\langle F \rangle : \langle x_1,x_2,x_3\rangle ^\infty \) w.r.t. \(\succ \), in \(\mathbb {C}[x_1,x_2,x_3]\), is

$$\begin{aligned} \{x_3,x_1+x_2^2\}. \end{aligned}$$

Thus, \(\dim _O(\mathbb {V}(F))\ne 0\).

Next, let us consider the case \(\ell =1\). Let \(E=\{x_1+u_{11}x_2+u_{12}x_3\}\). The reduced Gröbner basis of \(\langle F \cup E \rangle : \langle x_1,x_2,x_3\rangle ^\infty \) w.r.t. \(\succ \), in \(\mathbb {C}(u_{11},u_{12})[x_1,x_2,x_3]\) is

$$\begin{aligned} \{x_3,x_2-u_{11},x_1+u_{11}^2\}. \end{aligned}$$

Hence, as \(\dim _O(\mathbb {V}(F\cup E))=0\), we obtain \(\dim _{O}(\mathbb {V}(F))=1\).

Algorithm 3 can be generalized to parametric cases. The key of the generalized method is to compute comprehensive Gröbner systems in \((\mathbb {C}(u)[t])[x]\). We illustrate the method with the following example.

Example 10

Let \(f=x_1^3+x_1x_3^2+t_1x_1x_2^3+x_2^3x_3 \in \mathbb {C}[t_1][x_1,x_2,x_3]\) and \(F=\{\frac{\partial f}{\partial x_1},\frac{\partial f}{\partial x_2},\frac{\partial f}{\partial x_3}\}\) where \(t_1\) is a parameter. Let \(\succ \) be the total degree reverse lexicographic term order with \(x_1 \succ x_2 \succ x_3\).

  1. (i)

    Let us consider the case \(\ell =0\). A comprehensive Gröbner system of \(\langle F \rangle : \langle x_1,x_2,x_3\rangle ^\infty \) w.r.t. \(\succ \) is

    $$\begin{aligned} \{(\mathbb {C}\backslash \mathbb {V}(t_1^2+1), \{1\}), (\mathbb {V}(t_1^2+1),\{x_1-t_1x_3,x_2^3+2t_1x_3^2\})\}. \end{aligned}$$

    Hence, if the parameter \(t_1\) belongs to \(\mathbb {C}\backslash \mathbb {V}(t_1^2+1)\), then \(\dim _O(\mathbb {V}(F))=0\).

  2. (ii)

    Next, let us consider the case \(\ell =1\). Let \(E=\{x_1+u_{11}x_2+u_{12}x_3\}\). A comprehensive Gröbner system of \(\langle F \cup E \rangle : \langle x_1,x_2,x_3\rangle ^\infty \subset (\mathbb {C}(u_{11},u_{12})[t_1])[x_1,x_2,x_3]\) w.r.t. \(\succ \), on the stratum \(\mathbb {V}(t_1^2+1)\), is

    $$\begin{aligned}&\{(\mathbb {V}(t_1^2+1),\{(u_{12}^6+3u_{12}^4+3u_{12}^2+1)x_3+(-2u_{12}^3+6u_{12})u_{11}^3t_1+(-6u_{12}^2+2)u_{11}^3,(-u_{12}^4-2u_{12}^2-1)x_2\\&\quad +(-2u_{12}^2+2)u_{11}^2t_1-4u_{12}u_{11}^2,(u_{12}^6+3u_{12}^4+3u_{12}^2+1)x_1+(-6u_{12}^2+2)u_{11}^3t_1+(2u_{12}^3-6u_{12})u_{11}^3\})\}. \end{aligned}$$

    The first polynomial \((u_{12}^6+3u_{12}^4+3u_{12}^2+1)x_3+(-2u_{12}^3+6u_{12})u_{11}^3t_1+(-6u_{12}^2+2)u_{11}^3\) is not zero at the origin O. Hence, the local dimension of \(\mathbb {V}(F)\) is equal to 1 on the stratum \(\mathbb {V}(t_1^2+1)\).

5 Comparisons

Here we give results of the benchmark tests. All algorithms in this paper have been implemented in the computer algebra system Risa/Asir [16]. All tests presented in Table 1, have been performed on a machine [OS: Windows 10 (64bit), CPU: Intel(R) Core i9-7900 CPU @ 3.30 GHz, RAM: 128 GB] and the computer algebra system Risa/Asir version 20150126 [16]. The time is given in second (CPU time). In Table 1, “\(<0.0156\)” means it takes less than 0.0156 seconds, and “\(> 3h\)” means it takes more than 3 hours.

We use the total degree reverse lexicographic term order with \(x \succ y \succ z\) (or \(x \succ y\)) in the benchmark tests. Since there are no well-known collections in the area, we construct following 10 polynomials

$$\begin{aligned} f_1= & {} x^3+xz^2+axy^3+y^3z+xy^4\\ f_2= & {} x^3y+ay^{15}+bxy^{11}+xy^{12}\\ f_3= & {} x^4y+y^8+axy^8+bx^2y^4\\ f_4= & {} x^3y+ay^4+y^3+y^8x+by^6\\ f_5= & {} x^{4}+yz^5+y^4+ax^4z+y^2z^7+z^4\\ f_6= & {} x^5y^3+z^8+axz^8+y^6z+byz^5\\ f_7= & {} (x^2y+z^4+y^5)^2+ay^6z^4+y^4z^6 \\ f_8= & {} x^{10}+x^5y^3+ay^6+3y^{14}+bx^{10}y^5+xy^{14}\\ f_9= & {} x^{5}+yz^4+y^3+ax^5y+bx^2y^{7}+z^{4}\\ f_{10}= & {} x^{6}+yz^7+ax^3y^4+y^{10}+x^{2}y^5z^4 \end{aligned}$$

where xyz are variables and ab are parameters.

Table 1 Comparison of the three algorithms

As is evident from Table 1, in Problem 2, 3, 4, 5, 9, 10, 11, Algorithm 2-2 results in better performances in contrast to Algorithm 1 and Algorithm 2-1. In Problem 6, 7, 8, Algorithm 1 results in better performances in contrast to Algorithm 2-1 and Algorithm 2-2. Hence, we cannot say that which one is the best in general. However, as Algorithm 2-2 returns all results within 230 seconds, it is better to utilize Algorithm 2-2 in general.

If \(\mathbb {V}(F)\) has an irreducible component \(V_0=\{O\}\), then the ideal \(\langle F \rangle \) can be written as \(\langle F \rangle =Q_0 \cap Q_1 \cap \cdots \cap Q_{\nu }\) where \(Q_0, Q_1,\ldots ,Q_{\nu }\) are distinct primary ideals and \(\mathbb {V}(Q_0)=V_0\). Actually, Algorithm 1 computes the ideal \(Q_0\) and its dimension. In contrast, Algorithm 2-1 and 2-2 compute the ideal \(Q_1 \cap \cdots \cap Q_{\nu }\). Hence, if the structure of \(Q_0\) is complicated, then we can expect that the computation cost of Algorithm 2-2 is lower than that of Algorithm 1.

In the realm of symbolic computation, the standard basis is regarded as a classical or typical tool to handle ideals in local rings. However, to the best of our knowledge, no effective algorithm for computing standard bases of parametric ideals is known. In order to treat local dimensions for parametric cases, we utilize comprehensive Gröbner systems.

To conclude this paper, we emphasize again that even though the problems considered in the present paper are local in nature, the proposed algorithms resolve the problems in polynomial rings and they are free from standard bases and Mora’s reduction (Tangent cone algorithm [4, 8]).