Difference between revisions of "Category:ApCoCoA-1:Package gbmr"

From ApCoCoAWiki
Line 1: Line 1:
Package gbmr is designed to provide basic operations (addition, subtraction, multiplication) over monoid rings and Groebner basis computations for finite generated (one and two-sided) ideals.
+
Package gbmr is designed to enable us to do basic operations (addition, subtraction, multiplication, normal remainder, leading term, etc.) over finitely presented monoid rings, compute (partial) Groebner bases of finitely generated (one-sided/two-sided) ideals, and experiment on applications of Groebner bases.
  
Let Q be rational field and M=<X, R> be a finited presented monoid, where X is a finite set of letters and R is a finite set of relations. A monoid ring of M over Q, denoted by Q[M], is a ing of all finite formal sums (called polynomials) a_{1}*w_{1}+ a_{2}*w_{2} +...+a_{n}*w_{n} with coefficients a_{i} in Q\{0} and terms w_{i} in M.
+
Generally, a finitely presented monoid ring is defined by P=K<X|R>=K<X>/(R), where K is a field, X is an alphabet or a finite set of letters, and R is a finite set of relations. If R is empty, then P becomes a free associative K-algebra.
  
Note that
 
  
(i) X is of STRING type. Every letters in X MUST appear only once. The order of letters in X is very important, since it induces a term ordering later. For example, X:="abc"; Order:="LLEX"; means a length-lexicographic ordering induced by a>b>c.
+
Things to know about this package.
  
(ii) R is of LIST type. Each element in R has form [w_{l}, w_{r}], where w_{l} and w_{r} are terms in M. Each term in M is represented as a STRING. For example, xy^2x is represented as "xyyx", identity element is represented as an empty STRING "", and relation (yx, xy) is represented as ["yx", "xy"].
+
(a) K is field of rational number by default. It can be set to a finite field through the functions
  
(iii) Each polynomial in Q[M] is represented as a LIST of LISTs, which are pairs of form [a_{i}, w_{i}]. For example, polynomial F:=xy-y+1 is represented as F:=[[1,"xy"], [-1, "y"], [1,""]]. Zero polynomial is represented as an empty LIST [].
+
NC.SetFp(); and NC.SetFp(P);
 +
 
 +
where P should be a prime number, the prevouse one sets finite field to F(2) and the later to F(P). And K can be reset to field of rational number through the function
 +
 
 +
NC.UnsetFp();
 +
 
 +
 
 +
(b) X (or Alphabet) is presented as a STRING of letters. Every letter in X should occurrence only once. And the order of letters in X is important since it induces an admissible ordering indicated later. X can be set through the function
 +
 
 +
NC.SetX(X)
 +
 
 +
where X is a STRING of letters. And X can be reset to empty through the function
 +
 
 +
NC.UnsetX();
 +
 
 +
however, for the time being, I fail to find a proper situation to use it.
 +
 
 +
 
 +
(c) Ordering is a STRING indicating which ordering we are working with. In the package we use admissible orderings. Currently, the package only supports length-lexicographic ordering ("LLEX") and elimination ordering ("ELIM") induced from the order of letters in X. For example,
 +
 
 +
X:="abc"; Ordering:="ELIM";
 +
 
 +
means elimination ordering induced from a>b>c. Since for most situations ordering is very important, the default Ordering "LLEX" is set. Ordering can be set through the function
 +
 
 +
NC.SetOrdering(Ordering);
 +
 
 +
where Ordering is the ordering supported by the package. And Ordering can be reset to  "LLEX" through the function
 +
 
 +
NC.UnsetOrdering();
 +
 
 +
 
 +
(d) Relations, which is a finite generating set, is presented as a LIST of relations. Each relation of Relations is presented as a LIST (pair) composted of two words over X*.
 +
 
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(d0) Each word over X* is presented as a STRING with all letters coming from X. For example, X := "abc"; W := "ba"; means w=ba. Note that unit in X* is empty word "".
 +
 
 +
For example,
 +
 
 +
X := "abc"; Relations := [["ba","ab"], ["ca","ac"], ["cb","bc"]];
 +
 
 +
means Relations generated by {ba=ab, ca=ac, cb=bc}. Relations can be set through the function
 +
 
 +
NC.SetRelations(Relations);
 +
 
 +
where Relations is a properly presented Relations. And Relations can be reset to empty through the function
 +
 
 +
NC.UnsetRelations();
 +
 
 +
which might be very useful for forcing a ring to be a free associated K algebra.
 +
 
 +
 
 +
(e) Rules, which is also a finite generating set, is presented as a LIST of (rewriting) rules. Each rule of Rules is presented as a LIST (pair) consisted of one word over X* and one polynomial over  K<X|R>.
 +
 
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(e0) Each polynomial over K<X|R> is presented as a LIST of monomials. Each monomial of polynomial is presented as a LIST (pair) consist of one coefficient over K and one word (term) over X*. For example, X := "abc"; P := [[1,"ab"], [1,""]]; means P=ab+1. Note that 0 polynomial is an empty LIST [].
 +
 
 +
For example,
 +
 
 +
X := "ab"; Rules := [["ba",  [[1,"ab"], [1,""]]]];
 +
 
 +
means Rules generated by {ba=ab+1}. Rules can be set through the function
 +
 
 +
NC.SetRules(Rules);
 +
 
 +
where Rules is a properly presented Rules. And Rules can be reset to empty through the function
 +
 
 +
NC.UnsetRules();
 +
 
 +
 
 +
(f) There is a function to get general information about ring.
 +
 
 +
NC.RingEnv();
  
(iv) Ordering is of STRING type, which is an abbreviated name of a term ordering. For exapme, "LLEX" stands for a length-lexicographic ordering and "ELIM" stands for an elimination ordering. These two term orderings are the only orderings supported by the package currently.
 
  
 
{{ApCoCoAServer}}
 
{{ApCoCoAServer}}
 
[[Category:ApCoCoA_Manual]]
 
[[Category:ApCoCoA_Manual]]

Revision as of 19:45, 13 July 2010

Package gbmr is designed to enable us to do basic operations (addition, subtraction, multiplication, normal remainder, leading term, etc.) over finitely presented monoid rings, compute (partial) Groebner bases of finitely generated (one-sided/two-sided) ideals, and experiment on applications of Groebner bases.

Generally, a finitely presented monoid ring is defined by P=K<X|R>=K<X>/(R), where K is a field, X is an alphabet or a finite set of letters, and R is a finite set of relations. If R is empty, then P becomes a free associative K-algebra.


Things to know about this package.

(a) K is field of rational number by default. It can be set to a finite field through the functions

NC.SetFp(); and NC.SetFp(P);

where P should be a prime number, the prevouse one sets finite field to F(2) and the later to F(P). And K can be reset to field of rational number through the function

NC.UnsetFp();


(b) X (or Alphabet) is presented as a STRING of letters. Every letter in X should occurrence only once. And the order of letters in X is important since it induces an admissible ordering indicated later. X can be set through the function

NC.SetX(X)

where X is a STRING of letters. And X can be reset to empty through the function

NC.UnsetX();

however, for the time being, I fail to find a proper situation to use it.


(c) Ordering is a STRING indicating which ordering we are working with. In the package we use admissible orderings. Currently, the package only supports length-lexicographic ordering ("LLEX") and elimination ordering ("ELIM") induced from the order of letters in X. For example,

X:="abc"; Ordering:="ELIM";

means elimination ordering induced from a>b>c. Since for most situations ordering is very important, the default Ordering "LLEX" is set. Ordering can be set through the function

NC.SetOrdering(Ordering);

where Ordering is the ordering supported by the package. And Ordering can be reset to "LLEX" through the function

NC.UnsetOrdering();


(d) Relations, which is a finite generating set, is presented as a LIST of relations. Each relation of Relations is presented as a LIST (pair) composted of two words over X*.

      (d0) Each word over X* is presented as a STRING with all letters coming from X. For example, X := "abc"; W := "ba"; means w=ba. Note that unit in X* is empty word "".

For example,

X := "abc"; Relations := [["ba","ab"], ["ca","ac"], ["cb","bc"]];

means Relations generated by {ba=ab, ca=ac, cb=bc}. Relations can be set through the function

NC.SetRelations(Relations);

where Relations is a properly presented Relations. And Relations can be reset to empty through the function

NC.UnsetRelations();

which might be very useful for forcing a ring to be a free associated K algebra.


(e) Rules, which is also a finite generating set, is presented as a LIST of (rewriting) rules. Each rule of Rules is presented as a LIST (pair) consisted of one word over X* and one polynomial over K<X|R>.

      (e0) Each polynomial over K<X|R> is presented as a LIST of monomials. Each monomial of polynomial is presented as a LIST (pair) consist of one coefficient over K and one word (term) over X*. For example, X := "abc"; P := [[1,"ab"], [1,""]]; means P=ab+1. Note that 0 polynomial is an empty LIST [].

For example,

X := "ab"; Rules := [["ba", [[1,"ab"], [1,""]]]];

means Rules generated by {ba=ab+1}. Rules can be set through the function

NC.SetRules(Rules);

where Rules is a properly presented Rules. And Rules can be reset to empty through the function

NC.UnsetRules();


(f) There is a function to get general information about ring.

NC.RingEnv();


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.