Groebner
ToricIdealBasis
compute Groebner bases of toric ideals
Calling Sequence
Parameters
Description
Examples
References
ToricIdealBasis(A, v, T, opts)
A
-
integer Matrix defining a toric ideal
v
list of variables
T
a MonomialOrder or ShortMonomialOrder
opts
optional arguments of the form keyword=value
The ToricIdealBasis command computes a reduced Groebner basis of the toric ideal defined by the integer matrix A with respect to the monomial order T. Let a[i] denote the i-th column of A. Then ToricIdealBasis(A, v, T) computes the reduced Groebner basis with respect to T of the elimination ideal <v[1] - x^(a[1]), ..., v[n] - x^(a[n])> intersected with K[v].
The first argument A must be a Matrix with integer entries. Otherwise an error is returned.
The optional argument method=hs or du specifies the algorithm to be used by ToricIdealBasis. 'hs' denotes the algorithm of Hosten and Sturmfels (GRIN), while 'du' denotes the algorithm by Di Biase and Urbanke. The default algorithm is 'hs'.
The optional argument grading=table([v[1]=w[1], ..., v[n]=w[n]]) is used to specify a system of weights for the variables v. The Hosten and Sturmfels algorithm assumes that the toric ideal is homogeneous with respect to a grading that has a positive weight on each variable. An obvious weight system is given by a row of A containing all positive entries. The 'hs' algorithm will detect and use this weight system automatically, however you can also specify your own weights using this option. The weights w[i] must all be positive integers.
Primitive partition identities by Groebner basis of Lawrence lifting:
with⁡Groebner:
A≔Matrix⁡6,8,1,1,1,1,0,0,0,0,1,2,3,4,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1
A≔111100001234000010001000010001000010001000010001
zs≔seq⁡zi,i=1..8
zs≔z1,z2,z3,z4,z5,z6,z7,z8
grd≔table⁡seq⁡zsi=1,i=1..8
grd≔table⁡z3=1,z2=1,z1=1,z8=1,z7=1,z6=1,z4=1,z5=1
ToricIdealBasis⁡A,zs,plex⁡op⁡zs,method=hs,grading=grd
z2⁢z4⁢z72−z32⁢z6⁢z8,z1⁢z4⁢z6⁢z7−z3⁢z5⁢z8⁢z2,z1⁢z42⁢z73−z33⁢z5⁢z82,z1⁢z3⁢z62−z22⁢z5⁢z7,z12⁢z4⁢z63−z23⁢z52⁢z8
To demonstrate, we recompute this basis using F4 and the Groebner walk.
sys≔seq⁡zsi−mul⁡xjAj,i,j=1..6,i=1..8
sys≔−x1⁢x2⁢x3+z1,−x1⁢x22⁢x4+z2,−x1⁢x23⁢x5+z3,−x1⁢x24⁢x6+z4,z5−x3,z6−x4,z7−x5,z8−x6
X≔seq⁡xj,j=1..6
X≔x1,x2,x3,x4,x5,x6
G≔remove⁡has,Basis⁡sys,lexdeg⁡X,zs,method=direct,X
G≔z2⁢z4⁢z72−z32⁢z6⁢z8,z1⁢z4⁢z6⁢z7−z3⁢z5⁢z8⁢z2,z1⁢z3⁢z62−z22⁢z5⁢z7,z1⁢z42⁢z73−z33⁢z5⁢z82,z12⁢z4⁢z63−z23⁢z52⁢z8
Walk⁡G,tdeg⁡op⁡zs,plex⁡op⁡zs
Example 12.7 in Sturmfels' Groebner Bases and Convex Polytopes:
B≔Matrix⁡4,8,1,2,3,4,0,1,4,5,2,3,4,1,1,4,5,0,3,4,1,2,4,5,0,1,4,1,2,3,5,0,1,4
B≔12340145234114503412450141235014
ToricIdealBasis⁡B,zs,plex⁡op⁡zs
z44−z6⁢z83,z34−z5⁢z73,z2⁢z82−z43,z2⁢z4−z6⁢z8,z22⁢z8−z6⁢z42,z23−z62⁢z4,z1⁢z72−z33,z1⁢z3−z5⁢z7,z12⁢z7−z32⁢z5,z13−z3⁢z52
Di Biase, Fausto, and Urbanke, Rudiger. "An Algorithm to Calculate the Kernel of Certain Polynomial Ring Homomorphisms." Experimental Mathematics, (1995): 227-234.
Hosten, Serkan, and Shapiro, Jay. "Primary Decomposition of Lattice Basis Ideals." Journal of Symbolic Computation, (May 2000): 625-639.
Sturmfels, B. "Groebner Bases and Convex Polytopes." University Lecture Series, No. 8. Providence, Rhode Island: American Mathematical Society, 1996.
See Also
algcurves[implicitize]
Basis
IntegerRelations[LLL]
LinearAlgebra[HermiteForm]
Walk
Download Help Document