Advanced maths

Principal toric ideal calculator from a rank one exponent relation

An exponent matrix defines a monomial map: the jth polynomial variable is sent to a monomial whose exponent vector is column j.

Your numbers

Exact input in the convention explained below.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

An exponent matrix defines a monomial map: the jth polynomial variable is sent to a monomial whose exponent vector is column j. Different source monomials can land on the same target monomial. Their difference belongs to the toric ideal. This page constructs that relation from the exponent matrix itself; a generic Gröbner-basis calculation instead begins after equations have already been supplied. The initial scope is the principal case where the rational kernel has dimension exactly one.

THE FORMULAker_Z(A)=Z w, w primitive; I_A=(x^(w+)−x^(w−)).

A worked example

The default columns are (1,0), (1,1) and (1,2). Their primitive relation is (1,−2,1), so the toric generator is x0 x2−x1². Both monomials map to target degree (2,2). This equality is displayed as a zero signed substitution degree in every matrix row. Multiplying the relation by −1 changes the written sign but not the generated ideal. The implementation chooses the sign by making its first nonzero coordinate positive.

Good to know

Nonnegative integer exponent matrix1–3 rows,2–5 columns, entries0–8, no zero columns, exactly one-dimensional rational kernel. Exact primitive relation and principal toric ideal only; higher-kernel saturation unsupported.

What this calculation determines

An exponent matrix defines a monomial map: the jth polynomial variable is sent to a monomial whose exponent vector is column j. Different source monomials can land on the same target monomial.

Their difference belongs to the toric ideal. This page constructs that relation from the exponent matrix itself; a generic Gröbner-basis calculation instead begins after equations have already been supplied. The initial scope is the principal case where the rational kernel has dimension exactly one.

Toric ideal worked example from an integer exponent matrix(1,0)(1,1)(1,2)first + third = twice middlex0 x2 − x1² maps to zero
Scroll across to see the full diagram.
The default columns are (1,0), (1,1) and (1,2). Their primitive relation is (1,−2,1), so the toric generator is x0 x2−x1². Both monomials map to target degree (2,2). This equality is displayed as a zero signed substitution degree in every matrix row. Multiplying the relation by −1 changes the written sign but not the generated ideal. The implementation chooses the sign by making its first nonzero coordinate positive.

Compare this with the Groebner basis calculator for polynomial ideals. Construct relations among a supplied monomial map by elimination; computing a Groebner basis of already supplied equations skips this construction.

Enter the data in the stated convention

Rows correspond to target exponent coordinates and columns correspond to source variables. All entries are nonnegative integers, and a zero column is excluded in this version.

The matrix may have redundant rows, but its kernel must be one-dimensional. Entering columns as rows changes the map and usually its kernel dimension. The rank test is exact over the rational numbers, so a rejection is based on algebraic dimension rather than a floating threshold selected for a nearly dependent numeric matrix.

How the mathematics works

Exact row reduction finds a rational kernel vector. Clearing denominators produces an integer vector, and dividing by the greatest common divisor makes it primitive.

Split its positive and negative coordinates to obtain u and v with disjoint support. Because Au=Av, the binomial x^u−x^v vanishes under the monomial substitution. Primitivity is essential: a multiple such as (2,−4,2) would give a factorizable relation and would not be the generator of the full principal toric ideal.

Work through the default example

The default columns are (1,0), (1,1) and (1,2). Their primitive relation is (1,−2,1), so the toric generator is x0 x2−x1². Both monomials map to target degree (2,2).

This equality is displayed as a zero signed substitution degree in every matrix row. Multiplying the relation by −1 changes the written sign but not the generated ideal. The implementation chooses the sign by making its first nonzero coordinate positive.

Read the returned certificate

The output provides separate positive and negative exponent vectors so that the relation can be reconstructed without parsing a symbolic expression. A kernel rank of one here means one independent rational relation, not that the exponent matrix itself has rank one.

For example, the default matrix has rank two and three columns. The certificate identifies a principal toric ideal, rather than merely a lattice-basis ideal with an unperformed saturation step; that distinction becomes important when several independent kernel vectors are present.

Assumptions and supported limits

Higher-dimensional kernels are deliberately rejected instead of returning a misleading handful of lattice relations. With several independent relations, saturating by the product of variables can create additional generators, and a naïve integer-kernel basis need not generate the toric ideal.

The rank-one theorem avoids that problem. This page also does not compute a toric variety's singular locus, degree or triangulations. Those are useful consequences of toric equations, but they require further algorithms and assumptions beyond one primitive relation.

Use the result with related calculations

Use the result to check monomial parametrizations or construct a small binomial equation before passing it to a more general ideal tool. Duplicate columns are allowed: they correctly produce a relation identifying two source variables.

Nonnegative columns keep the interpretation within ordinary polynomial monomials rather than Laurent monomials with negative exponents. Save the entire matrix and its column order with the relation, because renaming or permuting source variables permutes every coordinate of the primitive kernel vector. For the default parametrization, source variables map to u, uv and uv². The relation u·uv²−(uv)² vanishes by direct multiplication, without any numerical evaluation of u or v. This symbolic equality shows why testing the proposed binomial at a few numeric parameter values would be weaker than checking its exponent images. A polynomial can vanish accidentally at selected samples, but equal target exponent vectors establish the relation for every parameter value.

A few questions, answered

Why reject a kernel of dimension two?

Several lattice relations may need saturation and additional generators; the supported principal theorem requires rank-one kernel.

Why divide a kernel vector by its gcd?

The primitive relation generates the full kernel lattice; a nonprimitive multiple can miss the toric ideal generator.

Are negative matrix entries supported?

No. The initial page models ordinary monomial maps using nonnegative exponents rather than Laurent parametrizations.

Can duplicate columns be entered?

Yes. They express equal target monomials and correctly yield a relation between distinct source variables.

Find your calculator

Start typing to explore the library.