Groebner(polys: MultiPoly[], vars: string[], order: MonomialOrder, reduced: boolean): MultiPoly[]

Computes a Groebner basis for an exact integer-coefficient ideal.

remarks

Variable indices in every MultiPoly must agree with

`vars`

. The Buchberger engine uses fraction-free reduction. With

`reduced: true`

, it interreduces, removes coefficient content, normalizes leading signs, and makes a polynomial monic only when exact integer division permits it. The returned basis is sorted deterministically, and the routine works from normalized copies rather than editing the supplied generators.

Parameters

NameTypeDescription
polysMultiPoly[]Ideal generators over integer coefficients.
varsstring[]Variable names aligned with exponent indices.
orderMonomialOrderMonomial order; defaults to `LEX`.
reducedbooleanReturn the normalized/interreduced basis; defaults to `true`.

Returns

MultiPoly[] — New basis polynomials in deterministic presentation order.