How this calculation works
In a free associative algebra, x y and y x are different monomials. A polynomial is a finite linear combination of words, and multiplying monomials concatenates them without sorting letters. Commutative exponent vectors would erase the central structure this calculator is meant to handle.
Fixeddegreelexorder,largerletterlabelslarger; canonicalfieldcoefficients,querysingleword. Completeallinclusionandoverlapambiguitiesbefore returningcompletedbasisandnormalform. Degree,work,basis,termorqueuecapthrowsunresolvederror; no partialbasis/truncatednormalform returned.A worked example
With the prefilled inputs, completed = Yes. Relations are arrays of {word:[zeroBasedLetters...],coefficient:fieldInteger}. Empty word is1.
Good to know
Exact prime-field two-sided free-associative ideal,degree-lex order with larger letter label larger. All inclusion/overlap ambiguities processed before completed=true; degree/work cap throws unresolved rather than returning a truncated certificate.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
Words preserve multiplication order
In a free associative algebra, x y and y x are different monomials. A polynomial is a finite linear combination of words, and multiplying monomials concatenates them without sorting letters. Commutative exponent vectors would erase the central structure this calculator is meant to handle.
The submitted relations generate a two-sided ideal, so a relation may be multiplied by arbitrary words on its left and right. Reductions therefore search for leading words as contiguous subwords. Testing only prefixes or only suffixes would miss legitimate ideal reductions.
Compare with the Groebner basis calculator for polynomial ideals. Reduce wordpolynomials with order-sensitive multiplication and overlap/inclusionambiguities; commutativepolynomial exponentsidentify xywithyx and cannotsolvethis.
Fix an admissible order before choosing leading words
Relations are arrays of {word:[zeroBasedLetters...],coefficient:fieldInteger}. Empty word is1.The page uses a stated degree-lexicographic word order and a declared letter order. A leading monomial depends on those conventions, so every basis and normal form belongs to that choice. Changing the letter order can change the output without changing the ideal itself.
Coefficients must be canonical integers from zero through p−1 for one of the supported primes 2,3,5,7. Negative coefficients are rejected, so a minus-one coefficient must be entered as p−1. Normalize nonzero relations by their leading coefficient. The empty word represents the scalar monomial; duplicate terms combine using field arithmetic rather than concatenating their text.
Critical ambiguities test competing reductions
Two leading words can overlap or one can occur inside the other. Such an ambiguity can permit different first reductions of the same larger word. Form the corresponding composition polynomial and reduce its difference to see whether the competing routes are compatible.
When a nonzero remainder remains, add it as a new relation and process the new critical pairs it creates. Completion may continue indefinitely for some finitely presented free-algebra ideals. A finite input list does not guarantee a finite completed Gröbner basis.
Commute y past x in a small quotient
Take the relation y x minus x y over the field with three elements and order y above x. Its leading word is y x, giving the rewrite y x to x y. The word y x y therefore reduces to x y y.
The leading word has no proper self-overlap because its prefix y differs from its suffix x. With the single relation, the relevant ambiguity check completes, so this simple basis is certified. The example demonstrates quotient commutation while preserving noncommutative word handling before reduction.
A remainder is not always a unique normal form
The implementation completes all queued inclusion and overlap ambiguities before reducing the query word and returning completed=true. If completion exceeds the supplied degree cap, work cap, basis-size cap or term limit, it throws an unresolved error and returns no basis or query normal form. It does not expose an unfinished diagnostic remainder as a certified output.
For a completed basis, the returned query remainder is the unique normal-form representative under the declared order. The query here is one word with coefficient one, not a separately entered arbitrary polynomial. A zero normal form establishes ideal membership, but the result does not return a tracked linear combination of input relations as a membership certificate.
Show the ambiguity and its two reduction routes
A meaningful static figure should show a word with overlapping leading subwords highlighted, then the two reduction routes and their common remainder when resolved. For the commuting example, a simple word-rewrite diagram can explain how y x y becomes x y y without sorting all input words prematurely.
The output table contains the completed basis, query normal form and the count of processed nonzero relations. It does not expose every critical pair or a two-route trace for arbitrary input. The fixed word-rewrite figure illustrates the method independently; the term order remains degree-lexicographic with larger numeric letter labels considered larger, rather than a selectable menu of orders.
Bounds limit computation rather than the mathematics
The input supports two or three zero-based letter labels, one to five relations with at most thirty supplied terms each, and a degree cap from one to twelve. If forming or reducing a critical composition exceeds that degree, completion stops with an unresolved error. No degree-truncated certificate is returned. Additional work, basis-size and queue limits likewise prevent a global completion claim.
Test a commuting relation with no self-overlap, a relation pair with a genuine nonzero overlap remainder and a case exceeding the cap. Replaying every claimed resolved composition independently checks confluence work more effectively than verifying only one easy polynomial remainder. The public prefill uses GF(2), numeric letters zero and one, and the relation coefficient pair one and one. In characteristic two that sum represents the same commuting relation as yx minus xy. Query (1,0,1) reduces to (0,1,1). The separate GF(3) explanation must use coefficient two for minus one if entered into the actual canonical-field form. Exact prime-field two-sided free-associative ideal,degree-lex order with larger letter label larger. All inclusion/overlap ambiguities processed before completed=true; degree/work cap throws unresolved rather than returning a truncated certificate.
A few questions, answered
Can monomials be stored as sorted powers of x and y?
No. Word order matters in the free noncommutative algebra; x y and y x are distinct before quotient relations are applied.
Does a degree cap produce a truncated basis result?
No. A cap error stops the calculation as unresolved. A successful returned basis is marked completed only after all queued ambiguities are processed.
Does a nonzero remainder prove nonmembership?
Only with a completed Gröbner basis under the stated conventions, not with an arbitrary unfinished relation list.
Why can changing letter order change the normal form?
Leading words depend on the term order, so the certified normal-form representative can change while the underlying quotient algebra remains the same.