# Difference between revisions of "ApCoCoA-1:NCo.MRMB"

m (replaced <quotes> tag by real quotes) |
|||

(3 intermediate revisions by the same user not shown) | |||

Line 1: | Line 1: | ||

+ | {{Version|1}} | ||

<command> | <command> | ||

<title>NCo.MRMB</title> | <title>NCo.MRMB</title> | ||

Line 8: | Line 9: | ||

</syntax> | </syntax> | ||

<description> | <description> | ||

− | Given a two-sided ideal <tt>I</tt> in a finitely generated monoid ring <tt>P=K<X|R></tt>, we can consider the <tt>K</tt>-algebra <tt>P/I</tt> as a <tt>K</tt>-vector space. Moreover, let <tt>G</tt> be a Groebner basis of <tt>I</tt>, and let <tt>B</tt> be the set of all words which are not a multiple of any word in the leading word set <tt>MRLW{G}</tt>. Then the residue class of the words in <tt>B</tt> form a <tt>K</tt>-basis, called a <em>Macaulay's basis</em>, of <tt>P/I</tt>. For the sake of computing the values of the Hilbert function (see <ref>NCo.MRHF</ref>) of <tt>P/I</tt>, in this function we require that <tt>G</tt> has to be a Groebner basis with respect to a length compatible word ordering (see <ref>NCo.SetOrdering</ref>). | + | Given a two-sided ideal <tt>I</tt> in a finitely generated monoid ring <tt>P=K<X|R></tt>, we can consider the <tt>K</tt>-algebra <tt>P/I</tt> as a <tt>K</tt>-vector space. Moreover, let <tt>G</tt> be a Groebner basis of <tt>I</tt>, and let <tt>B</tt> be the set of all words which are not a multiple of any word in the leading word set <tt>MRLW{G}</tt>. Then the residue class of the words in <tt>B</tt> form a <tt>K</tt>-basis, called a <em>Macaulay's basis</em>, of <tt>P/I</tt>. For the sake of computing the values of the Hilbert function (see <ref>ApCoCoA-1:NCo.MRHF|NCo.MRHF</ref>) of <tt>P/I</tt>, in this function we require that <tt>G</tt> has to be a Groebner basis with respect to a length compatible word ordering (see <ref>ApCoCoA-1:NCo.SetOrdering|NCo.SetOrdering</ref>). |

<par/> | <par/> | ||

<em>Please note:</em> The function(s) explained on this page is/are using the <em>ApCoCoAServer</em>. You will have to start the ApCoCoAServer in order to use it/them. | |||

<par/> | <par/> | ||

− | Please set coefficient field via the function <ref>NCo.SetFp</ref> (or <ref>NCo.UnsetFp</ref>) before calling this function. The default coefficient field is the field of rational numbers, i.e. RAT in CoCoAL. For more information, please check the relevant functions. | + | Please set coefficient field via the function <ref>ApCoCoA-1:NCo.SetFp|NCo.SetFp</ref> (or <ref>ApCoCoA-1:NCo.UnsetFp|NCo.UnsetFp</ref>) before calling this function. The default coefficient field is the field of rational numbers, i.e. RAT in CoCoAL. For more information, please check the relevant functions. |

<itemize> | <itemize> | ||

<item>@param <em>X:</em> a finite alphabet (or set of indeterminates). It is of STRING type. Note that every letter in X MUST appear only once.The order of letters in X induces word orderings.</item> | <item>@param <em>X:</em> a finite alphabet (or set of indeterminates). It is of STRING type. Note that every letter in X MUST appear only once.The order of letters in X induces word orderings.</item> | ||

− | <item>@param <em>Ordering:</em> a length compatible word ordering induced by the order of letters in X. It is a STRING, which is a shortened-form of the name of corresponding word ordering. Note that the package currently supports two length compatible words orderings, i.e. | + | <item>@param <em>Ordering:</em> a length compatible word ordering induced by the order of letters in X. It is a STRING, which is a shortened-form of the name of corresponding word ordering. Note that the package currently supports two length compatible words orderings, i.e. "LLEX" (the length-lexicographic ordering) and "LRLEX" (the length-reverse-lexicographic ordering). See <ref>ApCoCoA-1:NCo.SetOrdering|NCo.SetOrdering</ref> for more details.</item> |

− | <item>@param <em>Relations:</em> a finite set of relations. It is of LIST type. Each element in Relations is of the form [W1, W2], where W1 and W2 are words in <tt><X></tt>. Each word is represented as a STRING. For example, the word <tt>xy^2x</tt> is represented as | + | <item>@param <em>Relations:</em> a finite set of relations. It is of LIST type. Each element in Relations is of the form [W1, W2], where W1 and W2 are words in <tt><X></tt>. Each word is represented as a STRING. For example, the word <tt>xy^2x</tt> is represented as "xyyx", and the identity is represented as the empty string "". Thus, the relation <tt>(yx, xy)</tt> is represented as ["yx", "xy"], and the set of relations <tt>{(yx, xy),(zx,xz),(zy,yz)}</tt> is represented as [["yx", "xy"],["zx", "xz"],["zy", "yz"]].</item> |

− | <item>@param <em>G:</em> a LIST of non-zero polynomials forming a Groebner basis with respect to the length compatible word ordering Ordering. Each polynomial is represented as a LIST of monomials, which are pairs of the form [C, W] where W is a word in <tt><X></tt> and C is the coefficient of W. For example, the polynomial <tt>f=xy-y+1</tt> is represented as F:=[[1, | + | <item>@param <em>G:</em> a LIST of non-zero polynomials forming a Groebner basis with respect to the length compatible word ordering Ordering. Each polynomial is represented as a LIST of monomials, which are pairs of the form [C, W] where W is a word in <tt><X></tt> and C is the coefficient of W. For example, the polynomial <tt>f=xy-y+1</tt> is represented as F:=[[1,"xy"], [-1, "y"], [1,""]]. <em> Warning:</em> users should take responsibility to make sure that G is indeed a Groebner basis with respect to a length compatible word ordering!</item> |

<item>@return: a LIST of words forming a Macaulay's basis of the <tt>K</tt>-algebra <tt>K<X>/<G,Relations></tt>.</item> | <item>@return: a LIST of words forming a Macaulay's basis of the <tt>K</tt>-algebra <tt>K<X>/<G,Relations></tt>.</item> | ||

Line 29: | Line 30: | ||

</itemize> | </itemize> | ||

<example> | <example> | ||

− | X := | + | X := "xyzt"; |

− | Ordering := | + | Ordering := "LLEX"; |

Relations := []; | Relations := []; | ||

− | G:= [[[1, | + | G:= [[[1, "yt"], [-1, "ty"]], [[1, "xt"], [-1, "tx"]], [[1, "xy"], [-1, "ty"]], [[1, "xx"], [-1, "yx"]], |

− | [[1, | + | [[1, "tyy"], [-1, "tty"]], [[1, "yyx"], [-1, "tyx"]]]; |

NCo.MRMB(X, Ordering, Relations, G, 3); | NCo.MRMB(X, Ordering, Relations, G, 3); | ||

− | [[ | + | [[""], ["t", "z", "y", "x"], ["tt", "tz", "ty", "tx", "zt", "zz", "zy", "zx", "yz", "yy", "yx", "xz"], |

− | [ | + | ["ttt", "ttz", "tty", "ttx", "tzt", "tzz", "tzy", "tzx", "tyz", "tyx", "txz", "ztt", "ztz", "zty", |

− | + | "ztx", "zzt", "zzz", "zzy", "zzx", "zyz", "zyy", "zyx", "zxz", "yzt", "yzz", "yzy", "yzx", "yyz", | |

− | + | "yyy", "yxz", "xzt", "xzz", "xzy", "xzx"]] | |

------------------------------- | ------------------------------- | ||

</example> | </example> | ||

</description> | </description> | ||

<seealso> | <seealso> | ||

− | <see>NCo.MRHF</see> | + | <see>ApCoCoA-1:NCo.MRHF|NCo.MRHF</see> |

− | <see>NCo.MRIsGB</see> | + | <see>ApCoCoA-1:NCo.MRIsGB|NCo.MRIsGB</see> |

− | <see>NCo.MRLW</see> | + | <see>ApCoCoA-1:NCo.MRLW|NCo.MRLW</see> |

− | <see>NCo.SetFp</see> | + | <see>ApCoCoA-1:NCo.SetFp|NCo.SetFp</see> |

− | <see>NCo.SetOrdering</see> | + | <see>ApCoCoA-1:NCo.SetOrdering|NCo.SetOrdering</see> |

− | <see>NCo.UnsetFp</see> | + | <see>ApCoCoA-1:NCo.UnsetFp|NCo.UnsetFp</see> |

− | <see>Introduction to CoCoAServer</see> | + | <see>ApCoCoA-1:Introduction to CoCoAServer|Introduction to CoCoAServer</see> |

</seealso> | </seealso> | ||

<types> | <types> | ||

Line 60: | Line 61: | ||

<key>NCo.MRMB</key> | <key>NCo.MRMB</key> | ||

<key>MRMB</key> | <key>MRMB</key> | ||

− | <wiki-category>Package_gbmr</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_gbmr</wiki-category> |

</command> | </command> |

## Latest revision as of 13:42, 29 October 2020

This article is about a function from ApCoCoA-1. |

## NCo.MRMB

Enumerate a Macaulay's basis of a finitely generated `K`-algebra.

### Syntax

NCo.MRMB(X:STRING, Ordering:STRING, Relations:LIST, G:LIST[, DB:INT]):LIST

### Description

Given a two-sided ideal `I` in a finitely generated monoid ring `P=K<X|R>`, we can consider the `K`-algebra `P/I` as a `K`-vector space. Moreover, let `G` be a Groebner basis of `I`, and let `B` be the set of all words which are not a multiple of any word in the leading word set `MRLW{G}`. Then the residue class of the words in `B` form a `K`-basis, called a *Macaulay's basis*, of `P/I`. For the sake of computing the values of the Hilbert function (see NCo.MRHF) of `P/I`, in this function we require that `G` has to be a Groebner basis with respect to a length compatible word ordering (see NCo.SetOrdering).

*Please note:* The function(s) explained on this page is/are using the *ApCoCoAServer*. You will have to start the ApCoCoAServer in order to use it/them.

Please set coefficient field via the function NCo.SetFp (or NCo.UnsetFp) before calling this function. The default coefficient field is the field of rational numbers, i.e. RAT in CoCoAL. For more information, please check the relevant functions.

@param

*X:*a finite alphabet (or set of indeterminates). It is of STRING type. Note that every letter in X MUST appear only once.The order of letters in X induces word orderings.@param

*Ordering:*a length compatible word ordering induced by the order of letters in X. It is a STRING, which is a shortened-form of the name of corresponding word ordering. Note that the package currently supports two length compatible words orderings, i.e. "LLEX" (the length-lexicographic ordering) and "LRLEX" (the length-reverse-lexicographic ordering). See NCo.SetOrdering for more details.@param

*Relations:*a finite set of relations. It is of LIST type. Each element in Relations is of the form [W1, W2], where W1 and W2 are words in`<X>`. Each word is represented as a STRING. For example, the word`xy^2x`is represented as "xyyx", and the identity is represented as the empty string "". Thus, the relation`(yx, xy)`is represented as ["yx", "xy"], and the set of relations`{(yx, xy),(zx,xz),(zy,yz)}`is represented as [["yx", "xy"],["zx", "xz"],["zy", "yz"]].@param

*G:*a LIST of non-zero polynomials forming a Groebner basis with respect to the length compatible word ordering Ordering. Each polynomial is represented as a LIST of monomials, which are pairs of the form [C, W] where W is a word in`<X>`and C is the coefficient of W. For example, the polynomial`f=xy-y+1`is represented as F:=[[1,"xy"], [-1, "y"], [1,""]].*Warning:*users should take responsibility to make sure that G is indeed a Groebner basis with respect to a length compatible word ordering!@return: a LIST of words forming a Macaulay's basis of the

`K`-algebra`K<X>/<G,Relations>`.

Optional parameter:

@param

*DB:*a positive INT which is a degree bound of the lengths of words. Note that we set DB=32 by default. Thus, in the case that`K<X>/<G,Relations>`has a finite Macaulay's basis, it is necessary to set DB to a large enough INT in order to compute the whole Macaulay's basis.

#### Example

X := "xyzt"; Ordering := "LLEX"; Relations := []; G:= [[[1, "yt"], [-1, "ty"]], [[1, "xt"], [-1, "tx"]], [[1, "xy"], [-1, "ty"]], [[1, "xx"], [-1, "yx"]], [[1, "tyy"], [-1, "tty"]], [[1, "yyx"], [-1, "tyx"]]]; NCo.MRMB(X, Ordering, Relations, G, 3); [[""], ["t", "z", "y", "x"], ["tt", "tz", "ty", "tx", "zt", "zz", "zy", "zx", "yz", "yy", "yx", "xz"], ["ttt", "ttz", "tty", "ttx", "tzt", "tzz", "tzy", "tzx", "tyz", "tyx", "txz", "ztt", "ztz", "zty", "ztx", "zzt", "zzz", "zzy", "zzx", "zyz", "zyy", "zyx", "zxz", "yzt", "yzz", "yzy", "yzx", "yyz", "yyy", "yxz", "xzt", "xzz", "xzy", "xzx"]] -------------------------------

### See also