Difference between revisions of "ApCoCoA-1:NC.TruncatedGB"

From ApCoCoAWiki
m (replaced <quotes> tag by real quotes)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Version|1}}
 
<command>
 
<command>
 
<title>NC.TruncatedGB</title>
 
<title>NC.TruncatedGB</title>
 
<short_description>
 
<short_description>
DegreeBound-truncated Groebner basis of a finitely generated two-sided ideal over a free associative <tt>K</tt>-algebra.
+
Compute truncated Groebner bases of finitely generated homogeneous two-sided ideals in a non-commutative polynomial ring.
 
</short_description>
 
</short_description>
 
<syntax>
 
<syntax>
NC.TruncatedGB(G:LIST, DegreeBound:INT):LIST
+
NC.TruncatedGB(G:LIST, DB:INT[, Optimize:INT, OFlag:INT]):LIST
NC.TruncatedGB(G:LIST, DegreeBound:INT, LoopBound:INT, Flag:INT):LIST
 
 
</syntax>
 
</syntax>
 
<description>
 
<description>
 +
Given a word ordering and a homogeneous two-sided ideal <tt>I</tt>, a set of non-zero polynomials <tt>Gb</tt> is called a <em>Groebner basis</em> of <tt>I</tt> if the leading word set <tt>LW{Gb}</tt> generates the leading word ideal <tt>LW(I)</tt>. Note that it may not exist finite Groebner basis of the ideal <tt>I</tt>. Moreover, let <tt>D</tt> be a positive integer. Then the set <tt>{g in Gb | Deg(g)&lt;=D}</tt> is a Groebner basis of the ideal <tt>&lt;f in I | Deg(f)&lt;=D&gt;</tt> and is called a <em>D-truncated</em> Groebner basis of <tt>I</tt>.
 +
<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.
 
<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 ring environment coefficient field <tt>K</tt>, alphabet (or indeterminates) <tt>X</tt> and ordering through the functions <ref>NC.SetFp</ref>(Prime), <ref>NC.SetX</ref>(X) and <ref>NC.SetOrdering</ref>(Ordering), respectively, before calling the function. Default coefficient field is <tt>Q</tt>. Default ordering is length-lexicographic ordering (<quotes>LLEX</quotes>). For more information, please check the relevant functions.
+
Please set non-commutative polynomial ring (via the command <ref>ApCoCoA-1:Use|Use</ref>) and word ordering (via the function <ref>ApCoCoA-1:NC.SetOrdering|NC.SetOrdering</ref>) before calling this function. The default word ordering is the length-lexicographic ordering ("LLEX"). For more information, please check the relevant commands and functions.
 
<itemize>
 
<itemize>
<item>@param <em>G</em>: a LIST of non-zero homogeneous polynomials generating a two-sided ideal in <tt>K&lt;X&gt;</tt>. Each polynomial is represented as a LIST of LISTs, which are pairs of form [C, W] where C is a coefficient and W is a word (or term). Each term is represented as a STRING. For example, <tt>xy^2x</tt> is represented as <quotes>xyyx</quotes>, unit is represented as an empty string <quotes></quotes>. Then, polynomial <tt>F=xy-yx</tt> is represented as F:=[[1,<quotes>xy</quotes>], [-1, <quotes>yx</quotes>]]. <tt>0</tt> polynomial is represented as an empty LIST [].</item>
+
<item>@param <em>G</em>: a LIST of non-zero non-commutative homogeneous polynomials that generate a homogeneous two-sided ideal. Each polynomial is represented as a LIST of LISTs, and each element in every inner LIST involves only one indeterminate or none (a constant). For example, the polynomial <tt>f=2x[2]y[1]x[2]^2-9y[2]x[1]^2x[2]^3+5</tt> is represented as F:=[[2x[1],y[1],x[2]^2], [-9y[2],x[1]^2,x[2]^3], [5]]. The zero polynomial <tt>0</tt> is represented as the empty LIST [].</item>
<item>@param <em>DegreeBound:</em> a positive integer which is the truncated degree of Groebner basis.</item>
+
 
 +
<item>@param <em>DB:</em> a positive INT, which gives a degree bound of S-polynomials (or obstructions) during the Buchberger enumerating procedure. The procedure will discard S-polynomials (or obstructions) whose degrees are larger than DB.</item>
 +
 
 +
<item>@return: a LIST of non-zero non-commutative homogeneous polynomials, which form a DB-truncated Groebner basis of the homogeneous two-sided ideal generated by G.</item>
 
</itemize>
 
</itemize>
About the optional parameters: For most cases we do not know whether there exists a finite Groebner basis. Instead of forcing computer yelling and informing nothing valuable, the function has 2 optional parameters to control the computation. Note that at the moment <em>all</em> of the following 2 additional optional parameters must be used at the same time.
+
About 2 optional parameters:
 
<itemize>
 
<itemize>
<item>@param <em>LoopBound:</em> a positive integer which gives a bound for the main loop of Groebner basis computation. When it runs through the main loop LoopBound times, the function stops the loop and returns a partial Groebner basis.</item>
+
<item>@param <em>Optimize:</em> an INT between 0 and 31. The value of Optimize indicates which criteria are used in the Buchberger procedure. For the time being, the function supports 5 criteria as follows.
<item>@param <em>Flag:</em> a non-negative integer which is a multi-switch for the output of ApCoCoAServer. If Flag=0, the server prints nothing on the screen. If Flag=1, the server prints basic information about computing procedure, such as number of S-elements has been checked and to be checked. If Flag=2, the server additionally prints current partial Groebner basis before each loop as well as the information when Flag=1. Note that the initial idea of Flag is to use it as a tool for debugging and tracing the computing process.</item>
+
  The multiply criterion: Optimize=1;
<item>@return: a LIST of polynomials, which is a DegreeBound-truncated Groebner basis if (1)finite Groebner basis of degree no more than DegreeBound exists or (2)the computation reach the DegreeBound, and which and is a partial Groebner basis otherwise.</item>
+
  The leading word criterion: Optimize=2;
 +
  The tail reduction criterion: Optimize=4;
 +
  The backward criterion: Optimize=8;
 +
  Discarding redundant generators: Optimize=16;
 +
  (Reference: M. Kreuzer and X. Xiu, Non-Commutative Gebauer-Moeller Criteria, 2013.)
 +
One can choose none, one, or more than one criterion in the function. For instance, Optimize=0 means no criterion is used, Optimize=1 means applying the multiply criterion, Optimize=3 (1+2) means applying the multiply and the leading word criteria, etc. By default, Optimize=31, i.e. the function applies all criteria.</item>
 +
 
 +
<item>@param <em>OFlag:</em> an INT that indicates which information will be output by the ApCoCoAServer during the Buchberger enumerating procedure. If OFlag=1, the server outputs basic information, such as the number of enumerating steps that has been proceeded, the number of elements in partial Groebner basis, the degree of current selected obstruction, the number of unselected obstructions, the total number of obstructions, the number of selected obstructions, and the number of unnecessary obstructions. If OFlag=2, besides the information as OFlag=1, the server also displays explicitly the elements in partial Groebner basis and the current selected S-polynonial. Otherwise, the server outputs nothing during the procedure.</item>
 
</itemize>
 
</itemize>
 
<example>
 
<example>
NC.SetX("xyz");
+
Use QQ[x,y,z];
F1:=[[1,"yxy"],[-1,"zyz"]];
+
F1:=[[y,x,y],[-z,y,z]];
F2:=[[1,"xyx"],[-1,"zxy"]];
+
F2:=[[x,y,x],[-z,x,y]];
F3:=[[1,"zxz"],[-1,"yzx"]];
+
F3:=[[z,x,z],[-y,z,x]];
F4:=[[1,"xxx"],[1,"yyy"],[1,"zzz"],[1,"xyz"]];
+
F4:=[[x,x,x],[y,y,y],[z,z,z],[x,y,z]];
 
G:=[F1,F2,F3,F4];
 
G:=[F1,F2,F3,F4];
 
NC.TruncatedGB(G,6);
 
NC.TruncatedGB(G,6);
  
[[[1, "yzx"], [-1, "zxz"]], [[1, "yxy"], [-1, "zyz"]], [[1, "xyx"], [-1, "zxy"]], [[1, "xxx"], [1, "xyz"], [1, "yyy"], [1, "zzz"]],  
+
[[[y, z, x], [-z, x, z]], [[y, x, y], [-z, y, z]], [[x, y, x], [-z, x, y]], [[x^3], [x, y, z], [y^3], [z^3]],  
[[1, "zxzy"], [-1, "zzxz"]], [[1, "xzyz"], [-1, "zxyy"]], [[1, "xxyz"], [1, "xyyy"], [-1, "xzxz"], [1, "xzzz"], [-1, "yyyx"],  
+
[[z, x, z, y], [-z^2, x, z]], [[x, z, y, z], [-z, x, y^2]], [[x^2, y, z], [x, y^3], [-x, z, x, z], [x, z^3],  
[-1, "zzzx"]], [[1, "zzxyy"], [-1, "zzxzz"]], [[1, "yzzxz"], [-1, "zxzzy"]], [[1, "yzzxy"], [-1, "zzxzx"]], [[1, "yzyyy"],  
+
[-y^3, x], [-z^3, x]], [[z^2, x, y^2], [-z^2, x, z^2]], [[y, z^2, x, z], [-z, x, z^2, y]], [[y, z^2, x, y],  
[1, "yzzzz"], [1, "zxzxx"], [1, "zzxzz"]], [[1, "yxzxz"], [-1, "zyzzx"]], [[1, "xzzxz"], [-1, "zxyyx"]], [[1, "xyyyy"], [1, "xyzzz"],  
+
[-z^2, x, z, x]], [[y, z, y^3], [y, z^4], [z, x, z, x^2], [z^2, x, z^2]], [[y, x, z, x, z], [-z, y, z^2, x]],  
[1, "zxyyz"], [1, "zzzxy"]], [[1, "xxzxz"], [1, "xyyyx"], [-1, "xzxzx"], [1, "xzzzx"], [-1, "yyyxx"], [-1, "zzzxx"]], [[1, "xxzxy"],  
+
[[x, z^2, x, z], [-z, x, y^2, x]], [[x, y^4], [x, y, z^3], [z, x, y^2, z], [z^3, x, y]], [[x^2, z, x, z],  
[1, "xyzyx"], [1, "yyyyx"], [1, "zzzyx"]], [[1, "xxyyy"], [1, "xxzzz"], [-1, "xyzyz"], [-1, "xzxzx"], [-1, "yyyxx"], [-1, "yyyyz"],  
+
[x, y^3, x], [-x, z, x, z, x], [x, z^3, x], [-y^3, x^2], [-z^3, x^2]], [[x^2, y^3], [x^2, z^3],  
[-1, "zzzxx"], [-1, "zzzyz"]], [[1, "zxzzyz"], [-1, "zzxzxy"]], [[1, "yzzzxz"], [-1, "zxzzyy"]], [[1, "yzzzxy"], [-1, "zzxzxx"]],  
+
[-x, y, z, y, z], [-x, z, x, z, x], [-y^3, x^2], [-y^4, z], [-z^3, x^2], [-z^3, y, z]], [[x^2, z, x, y],  
[[1, "xzzzxz"], [-1, "zxyzyz"]], [[1, "xyyzyz"], [1, "xzxyyx"], [-1, "xzxzxy"], [1, "xzzzxy"], [-1, "yyyxxy"], [-1, "zzzxxy"]],  
+
[x, y, z, y, x], [y^4, x], [z^3, y, x]], [[z, x, z^2, y, z], [-z^2, x, z, x, y]], [[y, z^3, x, z], [-z, x, z^2, y^2]],  
[[1, "xxzzzy"], [1, "xyyyzz"], [-1, "xyzyzy"], [-1, "xzxyyz"], [-1, "xzxzxy"], [-1, "xzxzzz"], [-1, "xzzzxy"], [1, "xzzzzz"],  
+
[[y, z^3, x, y], [-z^2, x, z, x^2]], [[x, z^3, x, z], [-z, x, y, z, y, z]], [[x, y^2, z, y, z], [x, z, x, y^2, x],  
[-1, "yyyxxy"], [-1, "yyyxzz"], [-1, "yyyyzy"], [-1, "zzzxxy"], [-1, "zzzxzz"], [-1, "zzzyzy"]], [[1, "xxzzxy"], [1, "xyzyxx"],  
+
[-x, z, x, z, x, y], [x, z^3, x, y], [-y^3, x^2, y], [-z^3, x^2, y]], [[x^2, z^2, x, y], [x, y, z, y, x^2],  
[1, "yyyyxx"], [1, "zzzyxx"]]]
+
[y^4, x^2], [z^3, y, x^2]], [[x^2, z^3, y], [x, y^3, z^2], [-x, y, z, y, z, y], [-x, z, x, y^2, z],  
 +
[-x, z, x, z, x, y], [-x, z, x, z^3], [-x, z^3, x, y], [x, z^5], [-y^3, x^2, y], [-y^3, x, z^2], [-y^4, z, y],  
 +
[-z^3, x^2, y], [-z^3, x, z^2], [-z^3, y, z, y]]]
 
-------------------------------
 
-------------------------------
 
</example>
 
</example>
 
</description>
 
</description>
 
<seealso>
 
<seealso>
<see>NC.Add</see>
+
<see>ApCoCoA-1:Use|Use</see>
<see>NC.Deg</see>
+
<see>ApCoCoA-1:NC.GB|NC.GB</see>
<see>NC.FindPolynomials</see>
+
<see>ApCoCoA-1:NC.IsGB|NC.IsGB</see>
<see>NC.GB</see>
+
<see>ApCoCoA-1:NC.LW|NC.LW</see>
<see>NC.HF</see>
+
<see>ApCoCoA-1:NC.RedGB|NC.RedGB</see>
<see>NC.Intersection</see>
+
<see>ApCoCoA-1:NC.SetOrdering|NC.SetOrdering</see>
<see>NC.IsGB</see>
+
<see>ApCoCoA-1:Introduction to CoCoAServer|Introduction to CoCoAServer</see>
<see>NC.KernelOfHomomorphism</see>
 
<see>NC.LC</see>
 
<see>NC.LT</see>
 
<see>NC.LTIdeal</see>
 
<see>NC.MinimalPolynomial</see>
 
<see>NC.Multiply</see>
 
<see>NC.NR</see>
 
<see>NC.ReducedGB</see>
 
<see>NC.SetFp</see>
 
<see>NC.SetOrdering</see>
 
<see>NC.SetRelations</see>
 
<see>NC.SetRules</see>
 
<see>NC.SetX</see>
 
<see>NC.Subtract</see>
 
<see>NC.TruncatedGB</see>
 
<see>NC.UnsetFp</see>
 
<see>NC.UnsetOrdering</see>
 
<see>NC.UnsetRelations</see>
 
<see>NC.UnsetRules</see>
 
<see>NC.UnsetX</see>
 
<see>Introduction to CoCoAServer</see>
 
 
</seealso>
 
</seealso>
 
<types>
 
<types>
 
<type>apcocoaserver</type>
 
<type>apcocoaserver</type>
 +
<type>ideal</type>
 
<type>groebner</type>
 
<type>groebner</type>
 
<type>non_commutative</type>
 
<type>non_commutative</type>
<type>ideal</type>
 
 
</types>
 
</types>
<key>gbmr.TruncatedGB</key>
+
<key>ncpoly.TruncatedGB</key>
 
<key>NC.TruncatedGB</key>
 
<key>NC.TruncatedGB</key>
 
<key>TruncatedGB</key>
 
<key>TruncatedGB</key>
<wiki-category>Package_gbmr</wiki-category>
+
<wiki-category>ApCoCoA-1:Package_ncpoly</wiki-category>
 
</command>
 
</command>

Latest revision as of 13:36, 29 October 2020

This article is about a function from ApCoCoA-1.

NC.TruncatedGB

Compute truncated Groebner bases of finitely generated homogeneous two-sided ideals in a non-commutative polynomial ring.

Syntax

NC.TruncatedGB(G:LIST, DB:INT[, Optimize:INT, OFlag:INT]):LIST

Description

Given a word ordering and a homogeneous two-sided ideal I, a set of non-zero polynomials Gb is called a Groebner basis of I if the leading word set LW{Gb} generates the leading word ideal LW(I). Note that it may not exist finite Groebner basis of the ideal I. Moreover, let D be a positive integer. Then the set {g in Gb | Deg(g)<=D} is a Groebner basis of the ideal <f in I | Deg(f)<=D> and is called a D-truncated Groebner basis of I.

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 non-commutative polynomial ring (via the command Use) and word ordering (via the function NC.SetOrdering) before calling this function. The default word ordering is the length-lexicographic ordering ("LLEX"). For more information, please check the relevant commands and functions.

  • @param G: a LIST of non-zero non-commutative homogeneous polynomials that generate a homogeneous two-sided ideal. Each polynomial is represented as a LIST of LISTs, and each element in every inner LIST involves only one indeterminate or none (a constant). For example, the polynomial f=2x[2]y[1]x[2]^2-9y[2]x[1]^2x[2]^3+5 is represented as F:=[[2x[1],y[1],x[2]^2], [-9y[2],x[1]^2,x[2]^3], [5]]. The zero polynomial 0 is represented as the empty LIST [].

  • @param DB: a positive INT, which gives a degree bound of S-polynomials (or obstructions) during the Buchberger enumerating procedure. The procedure will discard S-polynomials (or obstructions) whose degrees are larger than DB.

  • @return: a LIST of non-zero non-commutative homogeneous polynomials, which form a DB-truncated Groebner basis of the homogeneous two-sided ideal generated by G.

About 2 optional parameters:

  • @param Optimize: an INT between 0 and 31. The value of Optimize indicates which criteria are used in the Buchberger procedure. For the time being, the function supports 5 criteria as follows.

     The multiply criterion: Optimize=1;
     The leading word criterion: Optimize=2;
     The tail reduction criterion: Optimize=4;
     The backward criterion: Optimize=8;
     Discarding redundant generators: Optimize=16;
     (Reference: M. Kreuzer and X. Xiu, Non-Commutative Gebauer-Moeller Criteria, 2013.)
    

    One can choose none, one, or more than one criterion in the function. For instance, Optimize=0 means no criterion is used, Optimize=1 means applying the multiply criterion, Optimize=3 (1+2) means applying the multiply and the leading word criteria, etc. By default, Optimize=31, i.e. the function applies all criteria.

  • @param OFlag: an INT that indicates which information will be output by the ApCoCoAServer during the Buchberger enumerating procedure. If OFlag=1, the server outputs basic information, such as the number of enumerating steps that has been proceeded, the number of elements in partial Groebner basis, the degree of current selected obstruction, the number of unselected obstructions, the total number of obstructions, the number of selected obstructions, and the number of unnecessary obstructions. If OFlag=2, besides the information as OFlag=1, the server also displays explicitly the elements in partial Groebner basis and the current selected S-polynonial. Otherwise, the server outputs nothing during the procedure.

Example

Use QQ[x,y,z];
F1:=[[y,x,y],[-z,y,z]];
F2:=[[x,y,x],[-z,x,y]];
F3:=[[z,x,z],[-y,z,x]];
F4:=[[x,x,x],[y,y,y],[z,z,z],[x,y,z]];
G:=[F1,F2,F3,F4];
NC.TruncatedGB(G,6);

[[[y, z, x], [-z, x, z]], [[y, x, y], [-z, y, z]], [[x, y, x], [-z, x, y]], [[x^3], [x, y, z], [y^3], [z^3]], 
[[z, x, z, y], [-z^2, x, z]], [[x, z, y, z], [-z, x, y^2]], [[x^2, y, z], [x, y^3], [-x, z, x, z], [x, z^3], 
[-y^3, x], [-z^3, x]], [[z^2, x, y^2], [-z^2, x, z^2]], [[y, z^2, x, z], [-z, x, z^2, y]], [[y, z^2, x, y], 
[-z^2, x, z, x]], [[y, z, y^3], [y, z^4], [z, x, z, x^2], [z^2, x, z^2]], [[y, x, z, x, z], [-z, y, z^2, x]], 
[[x, z^2, x, z], [-z, x, y^2, x]], [[x, y^4], [x, y, z^3], [z, x, y^2, z], [z^3, x, y]], [[x^2, z, x, z], 
[x, y^3, x], [-x, z, x, z, x], [x, z^3, x], [-y^3, x^2], [-z^3, x^2]], [[x^2, y^3], [x^2, z^3], 
[-x, y, z, y, z], [-x, z, x, z, x], [-y^3, x^2], [-y^4, z], [-z^3, x^2], [-z^3, y, z]], [[x^2, z, x, y], 
[x, y, z, y, x], [y^4, x], [z^3, y, x]], [[z, x, z^2, y, z], [-z^2, x, z, x, y]], [[y, z^3, x, z], [-z, x, z^2, y^2]], 
[[y, z^3, x, y], [-z^2, x, z, x^2]], [[x, z^3, x, z], [-z, x, y, z, y, z]], [[x, y^2, z, y, z], [x, z, x, y^2, x], 
[-x, z, x, z, x, y], [x, z^3, x, y], [-y^3, x^2, y], [-z^3, x^2, y]], [[x^2, z^2, x, y], [x, y, z, y, x^2], 
[y^4, x^2], [z^3, y, x^2]], [[x^2, z^3, y], [x, y^3, z^2], [-x, y, z, y, z, y], [-x, z, x, y^2, z], 
[-x, z, x, z, x, y], [-x, z, x, z^3], [-x, z^3, x, y], [x, z^5], [-y^3, x^2, y], [-y^3, x, z^2], [-y^4, z, y], 
[-z^3, x^2, y], [-z^3, x, z^2], [-z^3, y, z, y]]]
-------------------------------

See also

Use

NC.GB

NC.IsGB

NC.LW

NC.RedGB

NC.SetOrdering

Introduction to CoCoAServer