Preprint
Article

This version is not peer-reviewed.

Computing a Maximal Independent Set Modulo an Ideal and a Gröbner Basis of the Ideal Simultaneously

A peer-reviewed article of this preprint also exists.

Submitted:

23 August 2025

Posted:

25 August 2025

You are already at the latest version

Abstract
To solve problems on a positive-dimensional ideal I k[X], a maximal independent set UX modulo I and a Gröbner basis of Ie, where Ie is the extension of I to k(U)[V] (V := X\U), are widely used. As far as we know, they are usually computed separately, i.e., U is calculated first and the Gröbner basis is computed after U is obtained. In this paper, we present an efficient algorithm for computing a maximal independent set U modulo I and a Gröbner basis of Ie simultaneously. Different from computing them separately, the algorithm takes full advantage of the polynomial information throughout the Gröbner basis computation to obtain U as soon as possible, hence it significantly improves the computing efficiency.
Keywords: 
;  ;  

1. Introduction

As a basic task in computer algebra, polynomial system solving plays an important role in many practical problems that can be described through polynomial systems, which can be divided into zero-dimensional and positive-dimensional ideals. Dealing with problems on a positive-dimensional ideal I k [ X ] , such as computing a primary decomposition of I [1] and Noetherian operators of I [2], requires computing a maximal independent set modulo I. Weispfenning presented an algorithm for computing a maximal independent set in 1993 [3], which needs to compute all strongly independent sets from a Gröbner basis of I. Zhang proposed a method for deciding whether an indeterminate set is a maximal independent set by computing a quasi-Gröbner basis of I in 1995 [4]. In 2023, Yang and Tan presented a method to compute maximal independent sets [5], and the complexity is reduced since the method turns a multivariate problem into a single-variable problem.
Gröbner bases of polynomial ideals, first proposed by Buchberger in 1965 [6], are one of the fundamental algorithmic tools for solving polynomial systems, and essential in a lot of computational tasks in polynomial algebra and algebraic geometry. Given the positive- dimensional ideal I, with a maximal independent set U X modulo I known, a Gröbner basis of I e , where I e is the extension of I to k ( U ) [ V ] ( V : = X U ) , is usually necessary for subsequent calculations [7,8]. According to [4], a Gröbner basis of I w.r.t. a block monomial order U , V ( U V ) is a Gröbner basis of I e . So it is equivalent to computing a Gröbner basis G of I w.r.t. U , V .
As far as we know, the maximal independent set and the Gröbner basis are generally computed separately. For example, to obtain Rational Representation Sets of the variety of I, Tan [9] computes U by Zhang’s method [4] while Shang [10] and Xiao [11] by Weispfenning’s method. After U is computed, they determine U , V without clear rules and compute a Gröbner basis G of I w.r.t. U , V . In this case, the connection between the calculations of U and G is not considered, which leads to a waste of intermediate calculations. Thus we present an algorithm for computing a maximal independent set U modulo I and a Gröbner basis G of I w.r.t. some block monomial order U , V simultaneously, i.e., U, U , V and G are simultaneously obtained. We compare our algorithm with two widely used methods which compute U and G separately. 1) Compute U, determine U , V artificially and directly compute a Gröbner basis of I w.r.t. U , V . It is referred to as the direct method; 2) Compute U from a Gröbner basis of I by Weispfenning’s algorithm, determine U , V artificially, and convert the Gröbner basis already computed for getting U to a Gröbner basis w.r.t. U , V by the Gröbner Walk [12]. It is referred to as the W-W method. Experiments show advantages of our algorithm compared with the direct and the W-W methods.
The paper is arranged as follows. In Section 2, we introduce relative notations, definitions and conclusions. In Section 3, we describe the subalgorithms and the main algorithm in detail. Experimental results are listed in Section 4.

2. Preliminaries

In this paper, k denotes a field of characteristic 0, X : = { x 1 , x 2 , , x n } is an indeterminate set, k [ X ] is the polynomial ring over k in X, and T ( X ) denotes the set of all monomials in X. p l e x ( x 1 , x 2 , , x n ) and g r l e x ( x 1 , x 2 , , x n ) denote the pure lexicographic and the graded reverse lexicographic monomial orders on T ( X ) with x 1 x 2 x n , respectively. Let I k [ X ] be an ideal, F k [ X ] be a polynomial set and ≺ be a monomial order on T ( X ) . Then L M ( I ) and L M ( F ) denote the sets of leading monomials of all polynomials in I and F w.r.t. ≺, respectively. For U X , k [ U ] is the polynomial ring over k in U, k ( U ) denotes the rational function field over k in U, and T ( U ) denotes the set of all monomials in U. Suppose V : = X U . Then k ( U ) [ V ] denotes the polynomial ring over k ( U ) in V, and I e denotes the extension of I to k ( U ) [ V ] . Given F k [ X ] and f k [ X ] , F V and f V denote F and f as a polynomial set of k ( U ) [ V ] and a polynomial in k ( U ) [ V ] , respectively.
Moreover, the cardinality of a set S is written as S , and the i-th element of a list or an ordered set L is denoted by L i . N is the non-negative integer set, N + is the positive integer set and R + is the non-negative real number set. We denote e i the vector of which the i-th element is 1 and the others are 0.
Definition 1
([3]). Let I k [ X ] be a proper ideal. U X is calledindependentmodulo I if
I k [ U ] = { 0 } .
Otherwise, U is calleddependentmodulo I. Moreover, U is calledmaximally independentmodulo I if it is independent modulo I and not properly contained in any other independent set modulo I.
Definition 2
([3]). Let I k [ X ] be a proper ideal and ≺ be a monomial order on T ( X ) . U X is calledstrongly independentmodulo I w.r.t. ≺ if
L M ( I ) T ( U ) = .
Furthermore, U is calledmaximally strongly independentmodulo I w.r.t. ≺ if it is strongly independent modulo I w.r.t. ≺ and not properly contained in any other strongly independent set modulo I w.r.t. ≺.
Proposition 1
([3]). Let I k [ X ] be a proper ideal, ≺ be a monomial order on T ( X ) and G k [ X ] be a Gröbner basis of I w.r.t. ≺. Then U X is strongly independent modulo I w.r.t. ≺ iff
L M ( G ) T ( U ) = .
Definition 3
([3]). Let U X , and V : = X U . Let V and U be monomial orders on T ( V ) and T ( U ) , respectively. Any monomial t T ( X ) can be written uniquely as t = t 1 t 2 , where t 1   T ( V ) , t 2 T ( U ) . Thena block monomial orderon T ( X ) with U V , denoted by U , V , is defined by r s iff
r 1 V s 1 , or r 1 = s 1 and r 2 U s 2 .
V and U are calledthe restrictionsof U , V to T ( V ) and T ( U ) , respectively. Particularly, we denote U , V g r l the block monomial order of which V   = g r l e x ( V ) and U = g r l e x ( U ) .
Given a positive-dimensional ideal I, according to [13], a strongly independent set modulo I is independent modulo I. However, a maximal strongly independent set modulo I is not always maximally independent modulo I. For example, let I : = z x x 2 , z y x y k [ x , y , z ] and : = p l e x ( z , y , x ) . Then G : = { z x x 2 , z y x y } is a Gröbner basis of I w.r.t. ≺. Since L M ( G ) = { z x , z y } , { z } is a maximal strongly independent set modulo I w.r.t. ≺. By a simple calculation, we have { y , z } is independent modulo I, thus { z } is not maximally independent modulo I. Fortunately, the situation differs for block monomial orders.
Lemma 1.
Let I k [ X ] be a positive-dimensional ideal, U X , V : = X U and U , V be a block monomial order on T ( X ) . If U is a maximal strongly independent set modulo I w.r.t. U , V , then U is maximally independent modulo I.
Proof. 
Suppose U : = { u 1 , u 2 , , u r } , V : = { v 1 , v 2 , , v n r } , where 1 r < n , and G is a Gröbner basis of I w.r.t. U , V . Since U is maximally strongly independent modulo I w.r.t. U , V , by Definition 2, U is strongly independent modulo I w.r.t. U , V , and U { v i } is not strongly independent modulo I w.r.t. U , V , i = 1 , 2 , , n r . So according to Proposition 1, we have L M U , V ( G ) T ( U ) = and L M U , V ( G ) T ( U , v i ) for i = 1 , 2 , ,   n r . These two facts imply that G contains polynomials of the form
f 1 : = c 1 · v 1 a 1 · u 1 b 1 , 1 u 2 b 1 , 2 u r b 1 , r + lower terms w . r . t . U , V , f 2 : = c 2 · v 2 a 2 · u 1 b 2 , 1 u 2 b 2 , 2 u r b 2 , r + lower terms w . r . t . U , V , f n r : = c n r · v n r a n r · u 1 b n r , 1 u 2 b n r , 2 u r b n r , r + lower terms w . r . t . U , V ,
where a i N + , b i , j N , and c i 0 is the leading coefficient of f i w.r.t. U , V , i = 1 , 2 , ,   n r , and j = 1 , 2 , , r . Let V be the restriction of U , V to T ( V ) . By Lemma 8.93 from [3], G k ( U ) [ V ] is a Gröbner basis of I e w.r.t. V . Denote t i a non-leading monomial of f i w.r.t. U , V , written as t i = t i , V t i , U , where t i , V T ( V ) , t i , U T ( U ) for i = 1 , 2 , , n r . According to Definition 3, t i , V V v i a i . So L M V ( ( f i ) V ) = v i a i . Let F : = { f 1 , f 2 , , f n r } . Then L M V ( F V ) = { v 1 a 1 , v 2 a 2 , , v n r a n r } . By Finiteness Theorem [14], I e is zero-dimensional. According to Proposition 1.2.8 from [4], U is maximally independent modulo I. □
It is necessary to generalize the concepts and conclusions modulo an ideal to the case modulo a polynomial set since subsequent calculations are performed on polynomial sets.
Definition 4.
Let F k [ X ] be a polynomial set and ≺ be a monomial order on T ( X ) . U X is calledstrongly quasi-independentmodulo F w.r.t. ≺ if
L M ( F ) T ( U ) = .
Furthermore, U is calledmaximally strongly quasi-independentmodulo F w.r.t. ≺ if it is strongly quasi-independent modulo F w.r.t. ≺ and not properly contained in any other strongly quasi-independent set modulo F w.r.t. ≺. For simplicity, a (maximal) strongly quasi-independent set is written as an (M)SQIS.
Particularly, (M)SQIS’s U w.r.t. ≺ have certain properties if ≺ is a block monomial order “with U V ”. Firstly, let us discuss such SQIS’s through Propositions 2 and 3.
Proposition 2.
Let F k [ X ] be a polynomial set, U X , V : = X U and U , V be a block monomial order on T ( X ) . Then U is an SQIS modulo F w.r.t. U , V , i.e., L M U , V ( F ) T ( U ) = , iff F k [ U ] = .
Proof 
Necessity: Since L M U , V ( F ) T ( U ) = , for each f F , we have L M U , V ( f ) T ( U ) . So f k [ U ] , and F k [ U ] = .
Sufficiency: Aiming for a contradiction, suppose L M U , V ( F ) T ( U ) . Then there exists f F , s.t. L M U , V ( f ) T ( U ) . Thus by Definition 3, for each non-leading monomial t of f w.r.t. U , V , written as t = t 1 t 2 , where t 1 T ( V ) , t 2 T ( U ) , we have t 1 V 1 , i.e., t T ( U ) . So f k [ U ] , and F k [ U ] . This contradiction shows that L M U , V ( F ) T ( U ) = . □
Proposition 3.
Let F k [ X ] be a polynomial set, U X , V : = X U and U , V be a block monomial order on T ( X ) . If U is an SQIS modulo F w.r.t. U , V , then for each block monomial order U , V U , V with U V , U is also an SQIS modulo F w.r.t. U , V .
Proof. 
Since U is an SQIS modulo F w.r.t. U , V , by Definition 4, we have L M U , V ( F ) T ( U ) = . According to Proposition 2, F k [ U ] = and moreover, L M U , V ( F ) T ( U ) = . So U is an SQIS modulo F w.r.t. U , V . □
Secondly, we discuss such MSQIS’s in the rest of this section. The following Theorem 1 reveals the relation between an MSQIS U modulo F w.r.t. a block monomial order U , V and the dependent sets modulo the ideal I, where F I .
Theorem 1.
Let I k [ X ] be a positive-dimensional ideal and F I be a polynomial set. Let U X , V : = X U and U , V be a block monomial order on T ( X ) . If U is an MSQIS modulo F w.r.t. U , V , then for any U ¯ U , U ¯ is dependent modulo I.
Proof. 
On one hand, if U is dependent modulo I, by Definition 1, I k [ U ] { 0 } . Since U ¯ U , I k [ U ¯ ] { 0 } . So U ¯ is dependent modulo I.
On the other hand, if U is independent modulo I, I k [ U ] = { 0 } , i.e., for each f I , f   k [ U ] . According to Proposition 2, L M U , V ( f ) T ( U ) . Thus L M U , V ( I ) T ( U ) = , and U is strongly independent modulo I w.r.t. U , V . Since U is an MSQIS modulo F w.r.t. U , V , we have L M U , V ( F ) T ( U ¯ ) . Then L M U , V ( I ) T ( U ¯ ) since F I , and it means U is maximally strongly independent modulo I w.r.t. U , V . By Lemma 1, U is maximally independent modulo I, and U ¯ is dependent modulo I since U ¯ U . □
Definition 5 and Proposition 4 provide a way to compute an MSQIS.
Definition 5.
Let F k [ X ] be a polynomial set. Thelabelof x X on F is defined as
l b l x , F : = { f F | f contains x } .
Moreover, the label list [ l b l x 1 , F , l b l x 2 , F , , l b l x n , F ] is written as L b l X , F .
Remark 1.
We propose a new kind of indeterminate order on L b l X , F : x i x j if l b l x i , F < l b l x j , F for 1 i , j n . Throughout the paper, as long as F is updated, L b l X , F will be modified, and the indeterminates of X will be reordered in descending order. Experiments show that such indeterminate order can improve the efficiency of the main algorithm (Algorithm Section 3.5).
Proposition 4.
Let F k [ X ] be a polynomial set, U X , and V : = X U . If v V l b l v , F = F and v ˜ V ˜ l b l v ˜ , F F for any V ˜ V , then for each block monomial order U , V on T ( X ) with U V , U is an MSQIS modulo F w.r.t. U , V .
Proof. 
Since v V l b l v , F = F , for each f F , there exists v V , s.t. f l b l v , F . So f contains v by Definition 5, i.e., F k [ U ] = . According to Proposition 2, L M U , V ( F ) T ( U ) = . Thus U is an SQIS modulo F w.r.t. U , V . Moreover, let V ˜ : = X U ˜ for each U ˜ U . Then V ˜ V . Since v ˜ V ˜ l b l v ˜ , F F , there exists f F , s.t. f l b l v ˜ , F for each v ˜ V ˜ , i.e., f does not contain any indeterminate of V ˜ . So f k [ U ˜ ] and F k [ U ˜ ] . Thus by Proposition 2, L M U , V ( F ) T ( U ˜ ) , and U is an MSQIS modulo F w.r.t. U , V . □
Proposition 5 ensures the construction of the main algorithm (Algorithm Section 3.5).
Proposition 5.
Let F 1 , F 2 k [ X ] be polynomial sets with F 2 F 1 and H : = F 2 F 1 . Let U X , V : = X U and U , V be a block monomial order on T ( X ) . Suppose U is an SQIS modulo F 1 w.r.t. U , V . Then
1) U is not an SQIS modulo F 2 w.r.t. U , V iff H k [ U ] , which is calledthe altering condition .
2) If the altering condition is true, then for any block monomial order U , V U , V , U is not an MSQIS modulo F 2 w.r.t. U , V .
Proof. 
1) Necessity: Since U is an SQIS modulo F 1 w.r.t. U , V but not an SQIS modulo F 2 w.r.t. U , V , by Definition 4, L M U , V ( F 1 ) T ( U ) = and L M U , V ( F 2 ) T ( U ) . Since H : = F 2 F 1 , we have L M U , V ( H ) T ( U ) . According to Proposition 2, H k [ U ] .
Sufficiency: Since H k [ U ] , we have L M U , V ( H ) T ( U ) by Proposition 2, and L M U , V ( F 2 ) T ( U ) since F 2 H . Thus U is not an SQIS modulo F 2 w.r.t. U , V .
2) Since the altering condition holds, U is not an SQIS modulo F 2 w.r.t. U , V from 1). By Proposition 3, U is not an SQIS modulo F 2 w.r.t. U , V . So according to Definition 4, U is certainly not an MSQIS modulo F 2 w.r.t. U , V . □

3. The Idea and Algorithms

In this section, we present an algorithm for computing a maximal independent set U modulo a positive-dimensional ideal I : = F k [ X ] and a Gröbner basis of I w.r.t. a block monomial order U , V simultaneously.

3.1. The Idea

Let us describe the procedure of the algorithm briefly.
Step 1: Compute U X , s.t. there exists a block monomial order U , V , w.r.t. which U is an MSQIS modulo F. Then
a) By Definition 4 and Proposition 3, U is an SQIS modulo F w.r.t. U , V g r l .
b) By Theorem 1, any U ¯ U is dependent modulo I.
Step 2: Execute the Buchberger operations on F w.r.t. U , V g r l . Let S : = { ( f , g ) | f , g F , f g } be the critical pair set of F. Then select a prior subset S ˜ of S with a certain strategy and compute the normal form set H of the S-polynomials of all s S ˜ modulo F w.r.t. U , V g r l .
Step 3: Let F : = F H and check whether the altering condition H k [ U ] is true. If it is not true, then go to Step 2 and continue to execute the Buchberger operations on F w.r.t. U , V g r l . Otherwise, compute U X , s.t. there exists a block monomial order U , V , w.r.t. which U is an MSQIS modulo F . In this case, a) and b) hold for U , F and U , V g r l . Then go to Step 2 and switch to execute the Buchberger operations on F w.r.t. U , V g r l . U and U are called the “old" and the “new" MSQIS’s, respectively.
If the algorithm terminates in finite steps, then we denote by U ^ , F ^ and U ^ , V ^ g r l the final indeterminate set, polynomial set and block monomial order, respectively. It can be proved that U ^ is a maximal independent set modulo I and F ^ is a Gröbner basis of I w.r.t. U ^ , V ^ g r l . The algorithm is referred to as “the main algorithm".
The above procedure shows that the idea of the main algorithm is adjusting MSQIS’s continuously according to the results of the S-polynomial calculations.
Note that the key issue of the main algorithm is computing U ( U ) X , s.t. there exists a block monomial order U , V   ( U , V ) , w.r.t. which U ( U ) is an MSQIS modulo F ( F ) . Next we give an algorithm for resolving this issue.

3.2. Computing an MSQIS U w.r.t. Each Block Monomial Order with U V

According to Proposition 4, we present Subalgorithm 1 for computing U, which is an MSQIS modulo F w.r.t. each block monomial order with U V .
Subalgorithm 1.(MSQIS_Alg 1)
   Input: F I a polynomial set, where I k [ X ] is a positive-dimensional ideal
   Output: U X an MSQIS modulo F w.r.t. each block monomial order with U V
   Line 1:Compute L b l X , F , and reorder X in descending order and L b l X , F on the order of X.
   Line 2: V : = , and V l b l : = .
   Line 3: while V l b l F do
   Line 4: V : = V { X 1 } , X : = X { X 1 } and V l b l : = V l b l ( L b l X , F ) 1 .
   Line 5:Remove ( L b l X , F ) 1 from L b l X , F .
   Line 6: d : = V .
   Line 7: forifrom d 1 to1by 1 do
   Line 8: if v V , v V i l b l v , F = F then
   Line 9: V : = V { V i } , and turn back to Line 6.
   Line 10: U : = X V , andreturnU.
Theorem 2.
Let I k [ X ] be a positive-dimensional ideal and F I be a polynomial set. Then Subalgorithm 1 computes an MSQIS U modulo F w.r.t. each block monomial order with U V .
Proof 
Termination: Since x X l b l x , F = F , Lines 3-5 terminate. Moreover, the repetitive running of Line 9 gives rise to a strictly descending chain of sets, so the algorithm terminates.
Correctness: If the algorithm terminates, we have v V l b l v , F = F and v V , v V i l b l v , F F , i = 1 , 2 , , V . We prove V X by contradiction. Suppose V = X . Then x X , x x i l b l x , F F , i = 1 , 2 , , n . So for each x i X , there exists f i F , s.t. f i l b l x i , F and f i l b l x j , F with j i . It means f i only contains x i , i.e., f i k [ x i ] , i = 1 , 2 , , n . Then I is zero-dimensional, which contradicts with the condition, thus V X , and U . So according to Proposition 4, U is an MSQIS modulo F w.r.t. each block monomial order with U V . □
Although Subalgorithm 1 computes an MSQIS U w.r.t. each block monomial order with U V , which certainly means that there exists U , V , w.r.t. which U is an MSQIS, experiments show that the cardinality of the “new” MSQIS obtained with Subalgorithm 1 may be not smaller than the “old” one, and it affects the efficiency of the main algorithm: From the procedure of the main algorithm, it contains two aspects of calculations: a series of MSQIS’s and corresponding S-polynomial computations. Moreover, experiments show that the cost of the latter is dominant. By Theorem 1, if U is verified to be an MSQIS w.r.t. U , V , then we exclude all the dependent sets U ¯ U modulo I. In this sense, to avoid redundant S-polynomial computations corresponding to U ¯ , MSQIS’s with smaller cardinalities are preferred. To make up for such defect of Subalgorithm 1, we present another algorithm for computing a new MSQIS with strictly smaller cardinality than the old MSQIS.

3.3. Computing a New MSQIS with Smaller Cardinality Than the Old

Let U 0 be an MSQIS modulo F 0 w.r.t. U 0 , V 0 , H be the normal form set obtained by executing the Buchberger operations on F 0 w.r.t. U 0 , V 0 g r l and F : = F 0 H . Suppose that the altering condition H k [ U 0 ] holds. Now we think about computing a new MSQIS from a different point of view. Let U m a x : = { U ˜ U 0 | U ˜ = U 0 1 } . Then we try to find U from U m a x , s.t. there exists U , V , w.r.t. which U is an MSQIS modulo F.
Proposition 6.
Let F k [ X ] be a polynomial set, U X , V : = X U , and F k [ U ] = . There exists U , V on T ( X ) , s.t. U is an MSQIS modulo F w.r.t. U , V , iff there exists V on T ( V ) , s.t. L M V ( F V ) T ( v ) for each v V .
Proof 
Necessity: Since U is an MSQIS modulo F w.r.t. U , V , by Definition 4, for each v V , we have L M U , V ( F ) T ( U ) = and L M U , V ( F ) T ( U , v ) , i.e., there exists f F , s.t. L M U , V ( f ) T ( U ) and L M U , V ( f ) T ( U , v ) . According to Proposition 2, we have f k [ U ] and f k [ U , v ] . Thus f V k [ v ] . Let V be the restriction of U , V to T ( V ) . Then L M V ( f V ) T ( v ) , i.e., L M V ( F V ) T ( v ) for each v V .
Sufficiency: Let U , V be a block monomial order of which the restriction to T ( V ) is V . Since F k [ U ] = , L M U , V ( F ) T ( U ) = by Proposition 2. So U is an SQIS modulo F w.r.t. U , V . Since L M V ( F V ) T ( v ) , there exists f V F V , s.t. L M V ( f V ) T ( v ) for each v V . Write L M U , V ( f ) = t V t U , where t V T ( V ) , t U T ( U ) . By Definition 3, t V = L M V ( f V ) . Thus t V T ( v ) , and L M U , V ( f ) T ( U , v ) , i.e., L M U , V ( F ) T ( U , v ) for each v V . So U is an MSQIS modulo F w.r.t. U , V . □
Based on Proposition 6, we transfer the work from k [ X ] to k [ V ] . We first simplify F V : For f V F V , we collect similar monomials, assign coefficients to 1 and drop the monomials that are factors of others. Let V : = [ v 1 , v 2 , ,   v n r ] and γ : = ( γ 1 , γ 2 , , γ n r ) . Then V γ is defined as v 1 γ 1 v 2 γ 2 v n r γ n r . We check the existence of V in two steps. 1) Check whether there exists F ˜ F V (maybe not unique) consisting of n r polynomials of the form
f V , i = V α ( i ) + β V β ,
where α ( i ) = m i e i , m i N + , and β ( N ) n r , i = 1 , 2 , , n r . If F ˜ does not exist, there does not exist V , s.t. L M V ( F V ) T ( v ) for each v V . If F ˜ exists, we go to the next step. 2) For each F ˜ , we check whether there exists V , s.t. L M V ( f V , i ) = V α ( i ) , i = 1 , 2 , ,   n r . If V exists, then L M V ( F V ) T ( v ) for each v V . If V does not exist for all F ˜ , then there does not exist V , s.t. L M V ( F V ) T ( v ) for each v V .
However, it is difficult to check the existence of such a monomial order. According to the relation between a monomial order and a regular matrix in [15], we give a sufficient condition for that.
Proposition 7.
Let U X , V : = X U : = [ v 1 , v 2 , , v n r ] , F ˜ k ( U ) [ V ] be a polynomial set of the form (2) andw ( R + ) n r be a vector. Define
C F ˜ : = { w ( R + ) n r | ( α ( i ) β ) · w > 0 , i = 1 , 2 , , n r } .
If C F ˜ , then there exists V on T ( V ) , s.t. L M V ( f V , i ) = V α ( i ) , i = 1 , 2 ,   , n r .
Proof. 
According to [15], a regular n × n matrix A over R + determines a monomial order ≺ as follows. Each row A i of A is actually a weight vector, i = 1 , 2 , , n , and monomials t 1 t 2 is determined by comparing the A i -degrees of them until the first inequality is found. So if C F ˜ , there exists V on T ( V ) determined by an ( n r ) × ( n r ) matrix of which the first row is a vector w C F ˜ , s.t. L M V ( f V , i ) = V α ( i ) , i = 1 , 2 , , n r . □
Moreover, C F ˜ is regarded as the feasible region of a linear programming problem, and the work is done at a smallcost. Details are referred to [16].
We next present Subalgorithm 2 for seeking U from U m a x , s.t. there exists U , V , w.r.t. which U is an MSQIS modulo F.
Subalgorithm 2.(MSQIS_Alg 2)
   Input: F k [ X ] a polynomial set
   U 0 X an indeterminate set
   Output: U there exists U , V , w.r.t. which U is an MSQIS modulo F or
   ∅ if we find none
   Line 1: U m a x : = { U ˜ U 0 | U ˜ = U 0 1 } .
   Line 2: forifrom1to U m a x do
   Line 3: if F k [ ( U m a x ) i ] = then
   Line 4: V : = X ( U m a x ) i , and for each f V F V , collect similar monomials, assign
   coefficients to 1 and drop the monomials that are factors of others.
   Line 5: F ( 2 ) : = { F ˜ F V | F ˜ is a polynomial set of the form ( 2 ) } .
   Line 6: if F ( 2 ) then
   Line 7: F ˜ : = ( F ( 2 ) ) 1 , and F ( 2 ) : = F ( 2 ) { F ˜ } .
  Line 8: if C F ˜ (through linear programming theory)then
   Line 9: return ( U m a x ) i .
   Line 10: else
   Line 11:
   Turn back to Line 6.
   Line 12: return ∅.
The case that Subalgorithm 2 fails to obtain an MSQIS will be illustrated by Example 1. Furthermore, the finiteness of U m a x and F ( 2 ) plus the linear programming theory guarantee the termination of Subalgorithm 2, and the correctness of it follows from Proposition 7.
Example 1.
Consider the polynomial set F 0 = { f 1 = x y 2 x z 2 , f 2 = y z u v , f 3 = y 2 w + z w ,   f 4 = u 2 v u w 2 } k [ x , y , z , u , v , w ] .
First, let U 0 , V 0 : = [ u , z , y ] , [ x , w , v ] with U 0 = g r l e x ( u , z , y ) and V 0 = p l e x ( x , w , v ) . Then U 0 =   { u , z , y } is an MSQIS modulo F 0 w.r.t. U 0 , V 0 .
Second, we execute the Buchberger operations on F 0 w.r.t. [ u , z , y ] , [ x , w , v ] g r l . The critical pair set S : = { ( f i , f j ) | 1 i , j 4 , i < j } . Let S ˜ : = { ( f 3 , f 4 ) } be a prior subset of S. The normal form set
H of the S-polynomial of ( f 3 , f 4 ) modulo F 0 w.r.t. [ u , z , y ] , [ x , w , v ] g r l is { f 5 = u z y 3 + u z 2 y } .
Third, let F : = F 0 H : = { f 1 , f 2 , , f 5 } . Note that H k [ U 0 ] , we try to find U from U m a x with Subalgorithm 2, where U m a x : = { { z , y } , { u , y } , { u , z } } , s.t. there exists U , V , w.r.t. which U is an MSQIS modulo F. It requires us to check each U ˜ U m a x in turn.
{ z , y } : simplified F [ x , w , v , u ] : = { x , v u , w , v u 2 + w 2 u , u } , thus there does not exist a power of v in F [ x , w , v , u ] , and there does not exist F ˜ F [ x , w , v , u ] consisting of polynomials of the form (2).
{ u , y } : simplified F [ x , w , v , z ] : = { x z 2 , v + z , w z , w 2 + v , z 2 } , thus there does not exist a power of x in F [ x , w , v , z ] , and there does not exist F ˜ F [ x , w , v , z ] consisting of polynomials of the form (2).
{ u , z } : simplified F [ x , w , v , y ] : = { x y 2 , v + y , w y 2 , w 2 + v , y 3 } , thus there does not exist a power of x in F [ x , w , v , y ] , and there does not exist F ˜ F [ x , w , v , y ] consisting of polynomials of the form (2).
In this case, Subalgorithm 2 fails to return U , s.t. there exists U , V , w.r.t. which U is an MSQIS modulo F.
Example 1 shows that Subalgorithm 2 does not always work, even though it returns a new MSQIS with smaller cardinality than the old if it succeeds. We can now describe the alternative application of Subalgorithms 1 and 2 to obtain a not bad MSQIS. At the start of the main algorithm, since we have no MSQIS, we need to compute one with Subalgorithm 1. In other cases, we will try with Subalgorithm 2 at first if the altering condition holds, and then we can compute an MSQIS with Subalgorithm 1 if Subalgorithm 2 fails. In 96% of more than 100 examples we have experimented, MSQIS’s are obtained with Subalgorithm 2. In the rest, Subalgorithm 2 fails, and MSQIS’s are computed with Subalgorithm 1.
Furthermore, we need to make some explanation for the choice of U m a x . First, since H k [ U 0 ] , U 0 is dependent modulo I. It means that at least one indeterminate of U 0 has to be moved into V 0 . So we give priority to U U 0 rather than other indeterminate sets with smaller cardinalities than U 0 . Second, generally speaking, the greater the cardinality of U is, the greater the possibility of U becoming an MSQIS is, so we only check the proper subsets of maximal cardinality of U 0 .

3.4. Strategy for Selecting a Prior Subset of the Critical Pair Set

Weispfenning proposed the normal strategy for selecting prior critical pairs from the critical pair set for the normal form computation in [3]. Similarly, we present a strategy for our problem, in order to compute fewer S-polynomials to arrive at the altering condition, and furthermore, reduce the number of critical pairs calculated before we get a maximal independent set.
From the procedure of the main algorithm, if the altering condition H k [ U ] is true, we will compute a new MSQIS U and switch to execute the Buchberger operations w.r.t. U , V g r l . So the Buchberger operations w.r.t. one block monomial order can be regarded as eliminating the indeterminates of V. To compute the S-polynomial of ( f , g ) , f and g will be multiplied by s and t, respectively. Generally speaking, the smaller the degrees of s and t w.r.t. V are, the sooner the elements of V will be eliminated. To accelerate the elimination, we give priority to such critical pairs. Note that in Subalgorithm 3, for a monomial m and U X , C o e f f ( m , U ) returns the coefficient of m w.r.t. U and D e g r e e ( m ) computes the total degree of m w.r.t. X.
Subalgorithm 3.(SelCritPairs)
  
Input:P a critical pair set
  
U , V a block monomial order
  
Output: P p r i a critical pair set
  
Line 1: D e g V : = [ ] .
  
Line 2: forifrom1to P do
  
Line 3: L c m P : = l c m ( L M U , V ( ( P i ) 1 ) , L M U , V ( ( P i ) 2 ) ) .
  
Line 4: q 1 : = L c m P / L M U , V ( ( P i ) 1 ) , q 2 : = L c m P / L M U , V ( ( P i ) 2 ) .
  
Line 5: D e g P : = D e g r e e ( C o e f f ( q 1 , U ) ) + D e g r e e ( C o e f f ( q 2 , U ) ) .
  
Line 6:Append D e g P to D e g V .
  
Line 7: P p r i : = { P i P | ( D e g V ) i = m i n ( D e g V ) } .
  
Line 8: return P p r i .
Termination and correctness of Subalgorithm 3 are obvious, and we omit the proofs.

3.5. The Main Algorithm

Based on Subalgorithms 1, 2 and 3, we present the main algorithm (Algorithm 1). We apply into it the Buchberger Criteria [3] and the F 4 technique [17]. Note that in Algorithm 1, the function U p d a t e ( G , P , H , ) plays a role in updating the ideal basis G and the critical pair set P w.r.t. a polynomial set H and a monomial order ≺. It also leads to the fact that Algorithm 1 computes the reduced Gröbner basis of I[3]. The function F 4 R e d u c e ( P , G , ) computes the normal form set of a critical pair set P modulo G w.r.t. ≺.
(ComputeUandG)
Input: I : = F 0 k [ X ] a positive-dimensional ideal
Output:U a maximal independent set modulo I
G the reduced Gröbner basis of I w.r.t. U , V g r l ( V : = X U )
Line 1: F a l l : = F 0 , U : = M S Q I S _ A l g 1 ( F a l l ) and V : = X U .
Line 2: ( G , P ) : = U p d a t e ( , , F 0 , U , V g r l ) , P p : = S e l C r i t P a i r s ( P , U , V g r l ) and P r : = P P p .
Line 3: while P p do
Line 4: H : = F 4 R e d u c e ( P p , G , U , V g r l ) , and F a l l : = F a l l H .
Line 5: if H k [ U ] then
Line 6: U : = M S Q I S _ A l g 2 ( F a l l , U ) .
Line 7: if U = then
Line 8: U : = M S Q I S _ A l g 1 ( F a l l ) , V : = X U , and turn back to Line 2.
Line 9: else
Line 10: ( G , P ) : = U p d a t e ( G , P r , H , U , V g r l ) , P p : = S e l C r i t P a i r s ( P , U , V g r l ) and
P r : = P P p .
Line 11: returnU, G.
Theorem 3.
Let I k [ X ] be a positive-dimensional ideal. Then Algorithm 1 computes a maximal independent set U modulo I and a Gröbner basis of I w.r.t. U , V g r l .
Proof 
Termination: Since Subalgorithms 1, 2 and 3, Functions U p d a t e and F 4 R e d u c e all terminate, we only need to prove the termination of the while loop. First we consider Lines 6-8. Let Y : = { X ˜ X | X ˜ } . If H k [ U ] , then Lines 6-8 run, and they compute U (distinguishing from U), s.t. there exists U , V , w.r.t. which U is an MSQIS modulo F a l l . Furthermore, according to 2) of Proposition 5, U is not an MSQIS modulo F a l l w.r.t. any block monomial order with U V , so U U . Denote Y 1 : =   Y { U } . The repetitive running of Lines 6-8 gives rise to a strictly descending chain of sets: Y Y 1 Y 2 . Since Y is finite, Lines 6-8 terminate. Suppose Lines 6-8 terminate with U : = U ^ and V : = V ^ . Then after they terminate, the while loop are just the execution of the Buchberger operations on F 0 w.r.t. U ^ , V ^ g r l . Algorithm 1 terminates since the Buchberger’s Algorithm terminates.
Correctness: If the algorithm terminates, it returns a Gröbner basis G of I w.r.t. U ^ , V ^ g r l , where U ^ is an SQIS modulo F a l l w.r.t. U ^ , V ^ g r l by Proposition 3. Since F a l l G , F a l l is also a Gröbner basis of I w.r.t. U ^ , V ^ g r l . By Proposition 1, U ^ is strongly independent modulo I w.r.t. U ^ , V ^ g r l . Thus U ^ is independent modulo I. Furthermore, according to Theorem 1, any U ¯ U ^ is dependent modulo I, so U ^ is maximally independent modulo I. □
The cyclic 4 problem illustrates Algorithm 1 and the advantage of Subalgorithm 2.
Example 2.
Consider the ideal I : = F 0 k [ a , b , c , d ] , where F 0 = { f 1 = a + b + c + d , f 2 = a b + b c + a d + c d , f 3 = a b c + a b d + a c d + b c d , f 4 = a b c d 1 } .
Initialization:
F a l l = { f 1 , f 2 , f 3 , f 4 } , U = [ c , b , a ] and V = [ d ] .
G = { f 1 } , P p = P = { { f 1 , f 2 } , { f 1 , f 3 } , { f 1 , f 4 } } and P r = .
The while loop runs for the 1st time:
H = { f 5 = a 2 b c + a b 2 c + a b c 2 + 1 , f 6 = a 2 b + a 2 c + a b 2 + 2 a b c + a c 2 + b 2 c + b c 2 , f 7 = a 2 + 2 a c + c 2 } , and F a l l = { f 1 , f 2 , , f 7 } . Since H k [ c , b , a ] , Lines 6-8 run, and Function M S Q I S _ A l g 2 ( F a l l , [ c , b , a ] ) returns U = [ b , a ] . Then V = [ d , c ] , and back to Line 2, G = { f 1 } , P p = P = { { f 1 , f 2 } , { f 1 , f 3 } ,   { f 1 , f 4 } } and P r = .
If we remove Subalgorithm 2, M S Q I S _ A l g 1 will return U = [ d , b , a ] , V = [ c ] . However, since { b , a } is an MSQIS modulo F a l l w.r.t. [ b , a ] , [ d , c ] g r l , by Theorem 1, { d , b , a } is dependent modulo I, and the computation of the S-polynomials w.r.t. [ d , b , a ] , [ c ] g r l will be redundant.
The while loop runs for the 2nd time:
H = { f 5 , f 6 , f 7 } and F a l l remains unchanged. Since H k [ b , a ] = , Line 10 runs, and it returns G = { f 1 , f 7 } , P p = P = { { f 5 , f 6 } , { f 6 , f 7 } } and P r = .
The while loop runs for the 3rd time:
H = { f 8 = a 4 + a 3 b a 3 c + a 2 b 2 + a 2 b c 1 , f 9 = a 3 a 2 c + a b 2 + b 2 c } , and F a l l = { f 1 , f 2 , , f 9 } . Since H k [ b , a ] = , Line 10 runs and returns G = { f 1 , f 7 , f 8 , f 9 } , P = { { f 7 , f 8 } , { f 7 , f 9 } , { f 8 , f 9 } } , P p = { { f 8 , f 9 } } and P r = { { f 7 , f 8 } , { f 7 , f 9 } } .
The while loop runs for the 4th time:
H = { f 10 = a 3 b 2 + a 2 b 3 a b } , and F a l l = { f 1 , f 2 , , f 10 } . Since H k [ b , a ] , Lines 6-8 run, and M S Q I S _ A l g 2 ( F a l l , [ b , a ] ) returns U = [ a ] , then V = [ d , b , c ] . Back to Line 2, G = { f 1 } , P = { { f 1 , f 2 } , { f 1 , f 3 } , { f 1 , f 4 } } , P p = { { f 1 , f 2 } } and P r = { { f 1 , f 3 } , { f 1 , f 4 } } .
In fact, { a } is a maximal independent set modulo I. We skip remaining calculations and give the final results. After the while loop runs for the 10th time, P p = and the algorithm terminates. It returns U = { a } as a maximal independent set modulo I and G = { a + b + c + d , a 2 + 2 a c + c 2 , a 4 + a 3 b a 3 c + a 2 b 2 + a 2 b c 1 , a 3 a 2 c + a b 2 + b 2 c , a 5 + a 4 c a c } as the reduced Gröbner basis of I w.r.t. [ a ] , [ d , b , c ] g r l .

4. Experiments

We have compared Algorithm 1 with the direct method and the W-W method, and both of them use Weispfenning’s algorithm to compute a maximal independent set from a Gröbner basis w.r.t. a graded reverse lexicographic monomial order. It should be mentioned that the Buchberger Criteria and the F 4 technique are also applied to these two methods. Table 1 shows the final maximal independent set (U), the numbers of critical pairs (Number) and the CPU times (Time) of 18 examples, which are referred to [18]. Experiments were conducted on a Dell notebook, which is configured with Intel Core i5-8250U, 8G memory. The development environment is Windows 10 Professional, Maple 2020.
As is evident from Table 1, our algorithm generally computes fewer critical pairs and our CPU times are usually less than the other two methods. Precisely speaking, in 14 of 18 examples, our algorithm computes the fewest critical pairs, and especially in Examples Horrocks, De Jong and Mikro, our algorithm computes critical pairs several times fewer than the other two methods. In 17 of 18 examples except Wang2, our CPU times are all less than the other two approaches. Especially in Example Mikro, our algorithm is thousands of times faster than the direct method. In Example De Jong, our CPU time is dozens of times less than the other two methods.

5. Conclusions

In this paper, we have presented an efficient algorithm to compute a maximal independent set U modulo a positive-dimensional ideal I and a Gröbner basis of I w.r.t. a block monomial order U , V simultaneously. It is based on a new concept we proposed: the maximal strongly quasi-independent set modulo a polynomial set. As a “local” concept, it reveals some information about the independent sets modulo I in advance, thus our algorithm considerably reduces the number of critical pairs calculated compared with existing methods which compute the maximal independent set and the Gröbner basis separately. Experiments verify the good performance of our algorithm.

References

  1. Gianni, P.; Trager, B.; Zacharias, G. Groebner bases and primary decomposition of polynomial ideals. J. Symb. Comput. 1988, 6:2–3, 149–167. [CrossRef]
  2. Nabeshima, K.; Tajima, S. Effective algorithm for computing Noetherian operators of positive dimensional ideals. In Proceedings of the CASC 2023; pp. 272–291. [CrossRef]
  3. Becker, T.; Weispfenning, V. In Gröbner bases: a computational approach to commutative algebra; Springer-Verlag: New York, 1993. .
  4. Zhang, C.L. Application of the eigenvalue method in a high-dimensional algebraic cluster computation. Ph.D. Thesis, Jilin University, Changchun, 1995.
  5. Yang, Z.R.; Tan, C. Computing Independent Variable Sets for Polynomial Ideals. J Math-UK. 2022, 2022, 1–6.
  6. Buchberger B. Ein algorithmus zum auffinden der basiselemente des restklassenringes nach einem nulldimensionalen polynomideal. Ph.D. Thesis, Innsbruck, 1965.
  7. Fortuna, E.; Gianni, P.; Trager, B. Derivations and radicals of polynomial ideals over fields of arbitrary characteristic. J. Symb. Comput. 2002, 33:5, 609–625. [CrossRef]
  8. Eisenbud, D.; Huneke, C.; Vasconcelos, W. Direct methods for primary decomposition. Invent. Math. 1992, 110:1, 207–235. [CrossRef]
  9. Tan, C; Zhang, S.G. Computation of the rational representation for solutions of high-dimensional systems. Comm. Math. Res. 2010, 26:2, 119–130.
  10. Shang, B.X.; Zhang, S.G.; Tan, C.; Xia, P. A simplified rational representation for positive-dimensional polynomial systems and SHEPWM equation solving. J Syst Sci Complex. 2017, 30:6, 1470–1482. [CrossRef]
  11. Xiao F.H.; Lu, D.; Ma, X.D.; Wang, D.K. An improvement of the rational representation for high-dimensional systems. J Syst Sci Complex. 2021, 34:6, 2410–2427. [CrossRef]
  12. Collart, S.; Kalkbrenner, M.; Mall, D. Converting bases with the Gröbner walk. J. Symb. Comput. 1997, 24:3–4, 465–469. [CrossRef]
  13. Kredel, H.; Weispfenning, V. Computing dimension and independent sets for polynomial ideals. J. Symb. Comput. 1988, 6:2–3, 231–247. [CrossRef]
  14. Cox, D.A.; Little, J.; O’Shea, D. In Using algebraic geometry, 2nd Edition; Springer Science+Business Media; New York, 2005. [CrossRef]
  15. Weispfenning, V. Admissible orders and linear forms. ACM Sigsam Bull. 1987, 21:2, 16–18. [CrossRef]
  16. Zhang, G.Z. In Linear programming, 2nd Edition; Wuhan University Press; Wuhan, 2004.
  17. Faugere, J.C. A new efficient algorithm for computing Gröbner bases (F4). J. Pure Appl. Algebra. 1999, 139:1–3, 61–88. [CrossRef]
  18. Decker, W.; Greuel, G.M.; Pfister, G. Primary decomposition: algorithms and comparisons. In: Algorithmic Algebra and Number Theory; Springer, Berlin, Heidelberg, 1998; pp. 187–220. [CrossRef]
Table 1. Comparison with the direct method and the W-W method.
Table 1. Comparison with the direct method and the W-W method.
Example U Number Time (sec)
Direct/W-W, Ours Direct, W-W, Ours Direct, W-W, Ours
Chemistry { j , h , e } , { b , f , g } 168, 202, 81 7542.234, 354.578, 180.375
Sturmfels and Eisenbud { z , y , x } , { b , u , t } 104, 158, 62 1.484, 2.906, 0.359
Schimoyama / Yokoyama 1 { z , y } , { x } 35, 37, 17 0.203, 0.219, 0.125
Schimoyama / Yokoyama 2 { x , t , z , b , w , u } , { y , w , u , s , v } 48, 72, 26 0.313, 0.641, 0.109
Horrocks { d , e , f } , { e , f , c } 513, 1057, 285 78.140, 191.250, 18.281
Schwarz { c } , { c } 80, 119, 90 63.735, 60.985, 6.125
Cyclic roots 4 { b } , { a } 27, 33, 17 0.141, 0.172, 0.078
Cyclic roots 5 homog { h } , { a } 228, 334, 167 44.360, 65.453, 22.016
De Jong { c , b , g , f , l , k , h , d } , { l , k , d , a , e , j } 326, 449, 62 191.406, 415.000, 5.266
mat 3 2 { h , g , e , a } , { c , b , e , a } 131, 173, 100 7.687, 10.547, 5.937
Schimoyama / Yokoyama 3 { b , c , d , e , f , g , h , j , l } , { b , c , d , e , f , g , h , j , l } 72, 108, 36 51.844, 45.719, 7.047
Riemenschneider { y , p , q , z , s , w , t , v } , { p , w , t , x } 92, 97, 44 0.984, 0.765, 0.187
Mikro { b , g , f , e , c } , { c , d } 848, 1114, 319 178650.985, 625.438, 111.828
Buchberger { x , c , t , d } , { c , a , t , d } 7, 11, 7 0.094, 0.172, 0.078
Lanconelli { l , k , j , h , e , g , c } , { j , h , f , d , e , g , c } 5, 8, 2 0.719, 0.610, 0.078
Wang2 { y } , { z } 2, 9, 5 0.016, 0.079, 0.032
Siebert { y , x } , { z } 239, 306, 398 101.640, 116.172, 34.422
Macaulay { d , c } , { c , b } 55, 84, 40 0.656, 1.203, 0.297
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated