[VARIABLE]
If T, produce debugging and tracing output.
[VARIABLE]
A variable holding the predicate used to sort critical pairs in the order of decreasing priority for the Buchberger algorithm.
[VARIABLE]
A variable holding the predicate used to sort critical pairs in the order of decreasing priority for the GebauerMoeller algorithm
[VARIABLE]
The name of the function used to calculate Grobner basis
[FUNCTION]
Select one of the several implementations of the Grobner basis algorithm.
[FUNCTION]
Return Grobner basis of an ideal generated by polynomial list F. Assume that the monomials of each polynomial are ordered according to the admissible monomial order PRED. The result will be a list of polynomials ordered as well according to PRED. The polynomials from 0 to START1 in the list F are assumed to be a Grobner basis, and thus certain critical pairs do not have to be calculated. If TOPREDUCTIONONLY is not NIL then only top reductions will be performed, instead of full division, and thus the returned Grobner basis will have its polynomials only topreduced with respect to the preceding polynomials. RING should be set to the RING structure (see COEFFICIENTRING package) corresponding to the coefficients of the polynomials in the list F. This function is currently just an interface to several algorithms which fine Grobner bases. Use SELECTGROBNERALGORITHM in order to change the algorithm.
[MACRO]
This macro is used in printing debugging and tracing messages and its arguments are analogous to the FORMAT function, except that the stream argument is omitted. By default, the output is sent to *traceoutput*, which can be set to produce output in a file.
[FUNCTION]
Return the Spolynomial of F and G, which should be two polynomials with terms ordered by PRED and coefficients in a ring whose operations are the slots of the RING structure.
[FUNCTION]
Divide polynomial P with integer coefficients by gcd of its coefficients and return the result. Use the RING structure from the COEFFICIENTRING package to perform the operations on the coefficients.
[FUNCTION]
Greatest common divisor of the coefficients of the polynomial P. Use the RING structure to compute the greatest common divisor.
[FUNCTION]
Calculate the normal form of the polynomial F with respect to the polynomial list FL. Destructive to F; thus, copytree should be used where F needs to be preserved. It returns multiple values. The first value is the polynomial R which is reduced (or topreduced if TOPREDUCTIONONLY is not NIL). The second value is an integer which is the number of reductions actually performed. The third value is the coefficient by which F needs to be multiplied in order to be able to perform the division without actually having to divide in the coefficient ring (a form of pseudodivision is used). All operations on the coefficients are performed using the RING structure from the COEFFICIENTRING package.
[FUNCTION]
An implementation of the Buchberger algorithm. Return Grobner basis of the ideal generated by the polynomial list F. The terms of each polynomial are ordered by the admissible monomial order PRED. Polynomials 0 to START1 are assumed to be a Grobner basis already, so that certain critical pairs will not be examined. If TOPREDUCTIONONLY set, top reduction will be preformed. The RING structure is used to perform operations on coefficents (see COEFFICIENTRING package).
[FUNCTION]
Perform a calculation equivalent to (POLY (SCALARTIMESPOLY C2 A) (SCALARTIMESPOLY C1 (MONOMTIMESPOLY M B)) PRED) but more efficiently; it destructively modifies A and stores the result in it; A is returned.
[FUNCTION]
Sort critical pairs B by the function which is the value of the vairable *buchbergermergepairs*. G is the list of polynomials which the elemnts of B point into. PRED is the admissible monomial order. The RING structure holds operations on the coefficients as described in the COEFFICIENTRING package.
[FUNCTION]
Returns an upperbound on the leading monomial of the Spolynomial of F and G, which are two polynomials sorted by the admissible monomial order PRED.
[FUNCTION]
Merges lists of critical pairs B and C into one list. The pairs are assumed to be ordered according to the increasing value of MOCKSPOLY, as determined by the admissible monomial order PRED. G is the list of polynomials which the pairs of integers in B and C point into, and RING is the ring structure defined in the COEFFICIENTRING package.
[FUNCTION]
Merges lists of critical pairs B and C into a single ordered list. Implements a strategy of ordering pairs according to the smallest lcm of the leading monomials of the two polynomials so called normal strategy.
[FUNCTION]
Mergest lists B and C of critical pairs. This strategy is based on ordering the pairs according to the smallest degree of the lcm of the leading monomials of the two polynomials.
[FUNCTION]
Mergest lists B and C of critical pairs. This strategy is based on ordering the pairs according to the smallest total length of the two polynomials, where length is the number of terms.
[FUNCTION]
Mergest lists B and C of critical pairs. This strategy is based on ordering the pairs according to the smallest combined length of the coefficients of the two polynomials.
[FUNCTION]
Simply sets the variable *buchbergermergepairs* to the heuristic function STRATEGYFN implementing one of several strategies introduces before of selecting the most promising. METHOD should be one of the listed keywords.
[FUNCTION]
Returns T if the leading monomials of the two polynomials in G pointed to by the integers in PAIR have disjoint (relatively prime) monomials. This test is known as the first Buchberger criterion.
[FUNCTION]
Returns T if the leading monomial of some element P of G divides the LCM of the leading monomials of the two polynomials in the polynomial list G, pointed to by the two integers in PAIR, and P paired with each of the polynomials pointed to by the the PAIR has already been treated, as indicated by the hash table M, which stores value T for every treated pair so far.
[FUNCTION]
Divide a polynomial by its leading coefficient. It assumes that the division is possible, which may not always be the case in rings which are not fields. The exact division operator is assumed to be provided by the RING structure of the COEFFICIENTRING package.
[FUNCTION]
Divide every polynomial in a list PLIST by its leading coefficient. Use RING structure to perform the division of the coefficients.
[FUNCTION]
Reduce a list of polynomials P, so that non of the terms in any of the polynomials is divisible by a leading monomial of another polynomial. Return the reduced list.
[FUNCTION]
Return the reduced Grobner basis of the ideal generated by a polynomial list F. This combines calls to two functions: GROBNER and REDUCTION. The parameters have the same meaning as in GROBNER or BUCHBERGER.
[FUNCTION]
Return T if the monomial M depends on variable number K.
[FUNCTION]
Return T if the term TERM depends on variable number K.
[FUNCTION]
Return T if the term polynomial P depends on variable number K.
[FUNCTION]
This function assumes that polynomial list PLIST is a Grobner basis and it calculates the intersection with the ring R[x[k+1],...,x[n]], i.e. it discards polynomials which depend on variables x[0], x[1], ..., x[k].
[FUNCTION]
Returns the Kth elimination ideal of the ideal generated by polynomial list FLIST. Thus, a Grobner basis of the ideal generated by FLIST is calculated and polynomials depending on variables 0K are discarded. The monomial order in the calculation is an elimination order formed by combining two orders: PRIMARYORDER used on variables 0K and SECONDARYORDER used on variables starting from variable K+1. Thus, if both orders are set to the lexicographic order #'LEX then the resulting order is simply equivalent to #'LEX. But one could use arbitrary two orders in this function, for instance, two copies of #'GREVLEX (see ORDER package). When doing so, the caller must ensure that the same order has been used to sort the terms of the polynomials FLIST.
[FUNCTION]
Return the Grobner basis of the intersection of the ideals generated by the polynomial lists F and G. PRED is an admissible monomial order with respect to which the terms of F and G have been sorted. This order is going to be used in the Grobner basis calculation. If TOPREDUCTIONONLY is not NIL, internally the Grobner basis algorithm will perform top reduction only. The RING parameter, as usual, should be set to a structure defined in the package COEFFICIENTRING, and it will be used to perform all operations on coefficients.
[FUNCTION]
Return a polynomial obtained from polynomial F by dropping the first K variables, if F does not depend on them. Note that this operation makes the polynomial incompatible for certain arithmetical operations with the original polynomial F. Calling this function on a polynomial F which does depend on variables 0K will result in error.
[FUNCTION]
Return LCM (least common multiple) of two polynomials F and G. The polynomials must be ordered according to monomial order PRED and their coefficients must be compatible with the RING structure defined in the COEFFICIENTRING package.
[FUNCTION]
Return GCD (greatest common divisor) of two polynomials F and G. The polynomials must be ordered according to monomial order PRED and their coefficients must be compatible with the RING structure defined in the COEFFICIENTRING package.
[FUNCTION]
Returns T if two lists of polynomials G1 and G2, assumed to be Grobner bases, generate the same ideal, and NIL otherwise.
[FUNCTION]
Returns T if a list of polynomials G1 generates an ideal contained in the ideal generated by a polynomial list G2, both G1 and G2 assumed to be Grobner bases. Returns NIL otherwise.
[FUNCTION]
Returns T if a polynomial P belongs to the ideal generated by the polynomial list G, which is assumed to be a Grobner basis. Returns NIL otherwise.
[FUNCTION]
Returns T if two ideals generated by polynomial lists F1 and F2 are identical. Returns NIL otherwise.
[FUNCTION]
Returns T if the ideal spanned by the polynomial list F1 is contained in the ideal spanned by the polynomial list F2. Returns NIL otherwise.
[FUNCTION]
Returns T if the polynomial P belongs to the ideal spanned by the polynomial list PLIST, and NIL otherwise.
[FUNCTION]
Returns the reduced Grobner basis of the saturation of the ideal generated by a polynomial list F in the ideal generated by a single polynomial P. The saturation ideal is defined as the set of polynomials H such for some natural number n (* (EXPT P N) H) is in the ideal F. Geometrically, over an algebraically closed field, this is the set of polynomials in the ideal generated by F which do not identically vanish on the variety of P.
[FUNCTION]
Add N new variables, adn the first N variables, to every polynomial in polynomial list PLIST. The resulting polynomial will not depend on these N variables.
[FUNCTION]
Returns polynomial list {U1*P1', U2*P2', ... , UK*PK'} where Ui are new variables and PLIST={P1, P2, ... , PK} is a polynomial list. PI' is obtained from PI by adding new variables U1, U2, ..., UN UK as the first K variables. Thus, the resulting list is consists of polynomials whose terms are ordered by the lexicographic order on variables UI, with ties resolved by the monomial order which was used to order the terms of the polynomials in PLIST. We note that the monomial order does not explicitly participate in this calculation, and neither do the variable names.
[FUNCTION]
Returns F' union {U1*P11,U2*P21,...,UK*PK1} where Ui are new variables and F' is a polynomial list obtained from F by adding variables U1, U2, ..., Uk as the first K variables to each polynomial in F. Thus, the resulting list is consists of polynomials whose terms are ordered by the lexicographic order on variables Ui, with ties resolved by the monomial order which was used to order the terms of the polynomials in F. We note that the monomial order does not explicitly participate in this calculation, and neither do the variable names.
[FUNCTION]
Returns F' union {U1*P1+U2*P2+UK*PK1} where Ui are new variables and F' is a polynomial list obtained from F by adding variables U1, U2, ..., Uk as the first K variables to each polynomial in F. Thus, the resulting list is consists of polynomials whose terms are ordered by the lexicographic order on variables Ui, with ties resolved by the monomial order which was used to order the terms of the polynomials in F. We note that the monomial order does not explicitly participate in this calculation, and neither do the variable names.
[FUNCTION]
Return the list F' union {U*P1} where U is a new variable, where F' is obtained from the polynomial list F by adding U as the first variable. The variable U will be added as the first variable, so that it can be easily eliminated.
[FUNCTION]
Returns the reduced Grobner basis of the ideal obtained by a sequence of successive saturations in the polynomials of the polynomial list PLIST of the ideal generated by the polynomial list F.
[FUNCTION]
Returns the reduced Grobner basis of the saturation of the ideal generated by a polynomial list F in the ideal generated a polynomial list G The saturation ideal is defined as the set of polynomials H such for some natural number n and some P in the ideal generated by G the polynomial P**N * H is in the ideal spanned by F. Geometrically, over an algebraically closed field, this is the set of polynomials in the ideal generated by F which do not identically vanish on the variety of G.
[FUNCTION]
Returns the reduced Grobner basis of the ideal obtained by a successive applications of IDEALSATURATIONS to F and lists of polynomials in the list IDEALLIST.
[FUNCTION]
Returns T if G is a Grobner basis, by using the Buchberger criterion: for every two polynomials h1 and h2 in G the Spolynomial S(h1,h2) reduces to 0 modulo G.
[FUNCTION]
Test whether G is a Grobner basis and F is contained in G. Return T upon success and NIL otherwise.
[FUNCTION]
Returns a sublist of the polynomial list P spanning the same monomial ideal as P but minimal, i.e. no leading monomial of a polynomial in the sublist divides the leading monomial of another polynomial.
[FUNCTION]
Adds a polynomial f to GRED, reduced Grobner basis, preserving the property described in the documentation for MINIMIZATION.
[FUNCTION]
Returns the reduced Grobner basis of the colon ideal Id(F):Id(G), where F and G are two lists of polynomials. The colon ideal I:J is defined as the set of polynomials H such that there is a polynomial W in J for which W*H belongs to I.
[FUNCTION]
Returns the reduced Grobner basis of the colon ideal Id(F):Id({G}), where F is a list of polynomials and G is a polynomial.
[FUNCTION]
Pseudodivide a polynomial F by the list of polynomials FL. Return multiple values. The first value is a list of quotients A. The second value is the remainder R. The third value is an integer count of the number of reductions performed. Finally, the fourth argument is a scalar coefficient C, such that C*F can be divided by FL within the ring of coefficients, which is not necessarily a field. The resulting objects satisfy the equation: C*F= sum A[i]*FL[i] + R
[FUNCTION]
Compute Grobner basis by using the algorithm of Gebauer and Moeller. This algorithm is described as BUCHBERGERNEW2 in the book by BeckerWeispfenning entitled ``Grobner Bases''
[FUNCTION]
An implementation of the auxillary UPDATE algorithm used by the GebauerMoeller algorithm. G is a list of polynomials, B is a list of critical pairs and H is a new polynomial which possibly will be added to G. The naming conventions used are very close to the one used in the book of BeckerWeispfenning.
[FUNCTION]
The merging strategy used by the GebauerMoeller algorithm, based on MOCKSPOLY; see the documentation of BUCHBERGERMERGEPAIRSUSEMOCKSPOLY.
[FUNCTION]
The merging strategy based on the smallestlcm (normal strategy); see the documentation of BUCHBERGERMERGEPAIRSSMALLESTLCM.
[FUNCTION]
The merging strategy based on the smallestlcm (normal strategy); see the documentation of BUCHBERGERMERGEPAIRSUSESMALLESTDEGREE.
[FUNCTION]
[FUNCTION]
The merging strategy based on the smallestlcm (normal strategy); see the documentation of BUCHBERGERMERGEPAIRSUSESMALLESTCOEFFICIENTLENGTH.
[FUNCTION]
[FUNCTION]
Calculate the ``sugar'' of the Spolynomial of two polynomials with sugar. A polynomial with sugar is simply a pair (P . SUGAR) where SUGAR is an integer constant defined according to the following algorighm: the sugar of sum or difference of two polynomials with sugar is the MAX of the sugars of those two polynomials. The sugar of a product of a term and a polynomial is the sum of the degree of the term and the sugar of the polynomial. The idea is to accumulate sugar as we perform the arithmetic operations, and that polynomials with small (little) sugar should be given priority in the calculations. Thus, the ``sugar strategy'' of the critical pair selection is to select a pair with the smallest value of sugar of the resulting Spolynomial.
[FUNCTION]
The Spolynomials of two polynomials with SUGAR strategy.
[FUNCTION]
Normal form of the polynomial with sugar F with respect to a list of polynomials with sugar FL. Assumes that FL is not empty. Parameters PRED, TOPREDUCTIONONLY and RING have the same meaning as in NORMALFORM. The parameter SUGARLIMIT should be set to a positive integer. If the sugar limit of the partial remainder exceeds SUGARLIMIT then the calculation is stopped and the partial remainder is returned, although it is not fully reduced with respect to FL.
[FUNCTION]
Returns a Grobner basis of an ideal generated by a list of ordinary polynomials FNOSUGAR. Adds initial sugar to the polynomials and performs the Buchberger algorithm with ``sugar strategy''. It returns an ordinary list of polynomials with no sugar. One of the most effective algorithms for Grobner basis calculation.
[FUNCTION]
Merges lists of critical pairs. It orders pairs according to increasing sugar, with ties broken by smaller MOCKSPOLY value of the two polynomials. In this function B must already be sorted.
[FUNCTION]
Sorts critical pairs C according to sugar strategy.
[FUNCTION]
An implementation of Buchberger's first criterion for polynomials with sugar. See the documentation of BUCHBERGERCRITERION1.
[FUNCTION]
An implementation of Buchberger's first criterion for polynomials with sugar. See the documentation of BUCHBERGERCRITERION2.
[FUNCTION]
Compute Grobner basis by using the algorithm of Gebauer and Moeller. This algorithm is described as BUCHBERGERNEW2 in the book by BeckerWeispfenning entitled ``Grobner Bases''
[FUNCTION]
An implementation of the auxillary UPDATE algorithm used by the GebauerMoeller algorithm. G is a list of polynomials, B is a list of critical pairs and H is a new polynomial which possibly will be added to G. The naming conventions used are very close to the one used in the book of BeckerWeispfenning. Operates on polynomials with sugar.
[FUNCTION]
Merges lists of critical pairs. It orders pairs according to increasing sugar, with ties broken by smaller lcm of head monomials In this function B must already be sorted. Operates on polynomials with sugar.
[FUNCTION]