PolynomialIdeals[PolynomialIdeal] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : PolynomialIdeals/PolynomialIdeal

PolynomialIdeals[PolynomialIdeal]

construct a polynomial ideal

convert/PolynomialIdeal

convert to a polynomial ideal

type/PolynomialIdeal

test for a polynomial ideal

mod

convert ideal to a different characteristic

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

PolynomialIdeal(generators, options)

PolynomialIdeal(J, options)

<generators, (options)>

convert(a, PolynomialIdeal)

type(a, PolynomialIdeal)

J mod p

Parameters

generators

-

sequence, set, or list of polynomials generating the ideal

options

-

(optional) properties of the ideal and polynomial ring

J

-

polynomial ideal

a

-

arbitrary object

p

-

prime

Description

• 

The PolynomialIdeal command constructs a polynomial ideal from a sequence of generators and properties.  The ideal generators must be entered as polynomials and the properties of the ideal or its polynomial ring are input as equations of the form keyword=value.  A shortcut <...> notation is also available whenever the package has been loaded using with(PolynomialIdeals).

• 

The two most common properties are characteristic=nonnegint, used to specify the ring characteristic, and variables=set(name), used to specify the variables of the polynomial ring when there are also parameters.  The default characteristic is zero, while the variables default to every name not appearing inside of a RootOf or radical expression.  All other names are considered parameters. You can also specify the parameters with parameters=set(name), which the constructor converts to a corresponding variables option.

• 

The Maple precedence rules for binary operators require that options (which are specified with equations) be enclosed in parentheses when using the <...> form of this command.

• 

An especially useful feature: the constructor also accepts polynomial ideals as input.  A typical use of this is to add a generator to an ideal.  The new ideal "inherits" generators and properties from any ideals that are input, in a left to right fashion.  Lists and sets are broken down and processed similarly.  Explicitly given properties are also processed left to right, and override any inherited defaults.

• 

The data structure representation of a polynomial ideal is an inert function of the form POLYNOMIALIDEAL....  The command type(a, PolynomialIdeal) can be used to test whether a is a polynomial ideal.  The data structure contains the generators of the ideal, variables, characteristic, and known Groebner bases.  This information can be accessed through the IdealInfo subpackage.

• 

The mod operator can be used to convert ideals to different characteristics.  J mod p is equivalent to PolynomialIdeal(J, 'characteristic'=p).  The characteristic must be zero or a prime.

• 

In addition to the characteristic and variables, polynomial ideals also store all their known Groebner bases in a table.  Behind the scenes, the system associates this Groebner basis table with a particular set of generators and a characteristic. It uses these associations to recognize identical ideals.  When you load a polynomial ideal from an previous Maple session, it still contains all the Groebner bases, but Maple does not store any associations.  You can refresh the Maple memory by passing your ideal to the constructor with no additional arguments.  For example, after loading the ideal J from a file, executing J := <J> updates the associations.

• 

Attempting to add a custom Groebner basis to the Groebner basis table either directly or by way of this constructor may introduce errors. Many routines, particularly HilbertDimension, assume that all Groebner bases are reduced.  If you have computed a Groebner basis outside Maple, it is strongly recommended that you form an ideal generated by the basis and call Groebner[Basis] on it.  Otherwise, the known_grobner_bases option can be used to add Groebner bases to the table.  The syntax is known_grobner_bases=&lsqb;order1=gb1,order2=gb2,...&rsqb;.

• 

The polynomial ideal constructor automatically adds the characteristic, variables, and known_grobner_bases options to every ideal, so identical ideals are recognized by Maple directly.

Examples

We construct an ideal J in Qx&comma;y&comma;z in two ways, test if it is an ideal, and then inspect the data representation of J used by Maple.

withPolynomialIdeals&colon;

PolynomialIdealx2&plus;y21&comma;x&plus;y&comma;z22

x&plus;y&comma;z22&comma;x2&plus;y21

(1)

Jx2&plus;y21&comma;x&plus;y&comma;z22

J:=x&plus;y&comma;z22&comma;x2&plus;y21

(2)

typeJ&comma;PolynomialIdeal

true

(3)

lprintJ

POLYNOMIALIDEAL(x+y,z^2-2,x^2+y^2-1,variables = {x, y, z},characteristic = 0,known_groebner_bases = (table([])))

The next three lines construct the ideal J in Z3x&comma;y. We verify that the results are the same ideal. Then we test if the polynomial f is in J. This test implicitly constructs a Groebner basis for J. This is apparent when we inspect the ideal.

JPolynomialIdealx2&plus;y2x&plus;1&comma;y21&comma;characteristic&equals;3

J:=y2&plus;2&comma;x2&plus;y2&plus;2x&plus;1

(4)

Kx2&plus;y2x&plus;1&comma;y21&comma;characteristic&equals;3

K:=y2&plus;2&comma;x2&plus;y2&plus;2x&plus;1

(5)

Lx2&plus;y2x&plus;1&comma;y21mod3

L:=y2&plus;2&comma;x2&plus;y2&plus;2x&plus;1

(6)

evalbJ&equals;KandJ&equals;L

true

(7)

fx2y2

f:=x2y2

(8)

f&in;J

false

(9)

lprintJ

POLYNOMIALIDEAL(y^2+2,x^2+y^2+2*x+1,variables = {x, y},characteristic = 3,known_groebner_bases = (table([(tdeg(x,y))=[[1, y^2, y^2+2], [1, x^2, x^2+2*x+2]]])))

The new ideal K below inherits characteristic=3 and variables={x, y} from J.  Therefore, it does not add z to the set of variables, despite the fact that z appears in the new polynomial.  To add z to the set of variables, explicitly add variables={x, y, z} to the input, or equivalently parameters={}. The Add command is also appropriate.

KJ&comma;xz1

K:=y2&plus;2&comma;xz&plus;2&comma;x2&plus;y2&plus;2x&plus;1

(10)

IdealInfo&lsqb;Characteristic&rsqb;K

3

(11)

IdealInfo&lsqb;Variables&rsqb;K

x&comma;y

(12)

LJ&comma;xz1&comma;parameters&equals;

L:=y2&plus;2&comma;xz&plus;2&comma;x2&plus;y2&plus;2x&plus;1

(13)

IdealInfo&lsqb;Variables&rsqb;L

x&comma;y&comma;z

(14)

See Also

evalb

Groebner[Basis]

lprint

PolynomialIdeals

PolynomialIdeals[Add]

PolynomialIdeals[IdealInfo]

PolynomialIdeals[IdealMembership]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam