How this calculation works
Rewrite a noncommutative word into an ordered Poincare–Birkhoff–Witt basis for a validated rational Lie algebra.
ba=ab+[b, a] for b>a; ordered monomials form a PBW basis when the structure constants satisfy Jacobi.A worked example
For the default sl2-style brackets, the word e2 e1 e0 reduces to e0 e1 e2−e2².
Good to know
Rational structure constants in dimension 1–4, one word of length≤6,20000 rewrite-call cap. Validate antisymmetric entry convention and Jacobi exactly. Ordered indices 0<1<…; none denotes no nonzero brackets or the unit word. No arbitrary associative relations.
Reference: SageMath: PBW basis for universal enveloping algebras (opens in a new tab) ↗
A Lie bracket becomes an associative relation
A universal enveloping algebra contains associative products of Lie basis elements while preserving the original bracket as a commutator. In this setting multiplication is not generally commutative. Reordering two adjacent factors therefore introduces a correction term determined by their Lie bracket.
The Poincare–Birkhoff–Witt theorem gives an ordered monomial basis when the supplied structure constants define a Lie algebra. This calculator validates that prerequisite and reduces one finite word into that basis. It does not treat a collection of arbitrary noncommutative relations as if PBW automatically applied.
Compare this with the Clifford multivector geometric product calculator with metric signature. Rewrite noncommutative words under supplied Lie brackets and an ordered PBW basis; Clifford anticommutator relations define another algebra.
Supplying rational brackets
Declare the finite basis dimension, then enter nonzero rows i, j, k, c for bracket e_i with e_j equal to c times e_k. Only i less than j is entered; the reversed bracket is derived by antisymmetry. Several target components can describe one bracket, but duplicate coefficient positions are rejected.
Coefficients are exact rationals. Empty brackets are zero, and the word none represents the multiplicative unit rather than an unknown basis index. The ordered PBW convention is index zero before one and onward, so a word is in normal order when its indices never decrease.
The default three-factor calculation
The default brackets are e0 with e1 equal to e2, e0 with e2 equal to minus twice e0, and e1 with e2 equal to twice e1. These satisfy the Jacobi identity. The entered word is e2 followed by e1 followed by e0.
Moving the larger indices rightward introduces the corresponding commutator corrections. Combining all exact terms leaves e0 e1 e2 minus e2 squared. The second term has lower word degree, showing why ordinary sorting without bracket terms would lose information even though the final leading monomial looks familiar.
Jacobi is checked before rewriting
The implementation expands the Jacobi expression for every basis triple and checks each resulting coefficient. All must vanish exactly. A failed coefficient means the supplied bracket data do not meet the Lie-algebra assumption needed for the claimed PBW normal form.
Antisymmetry alone is insufficient. Many arrays of pairwise antisymmetric constants fail Jacobi, and different rewrite paths can then produce incompatible answers. Rejecting invalid constants is therefore part of the mathematical calculation, not just a formatting check on the input table.
A terminating order-reduction rule
For the first inverted adjacent pair ba, the rule replaces it by ab plus bracket b with a. The swapped term reduces the inversion count at the same degree. Every bracket correction replaces two factors by one and therefore lowers degree, so repeated reduction terminates for the bounded word.
Memoization stores previously reduced words, and exact rational coefficients combine equal ordered monomials. A hard call cap bounds computation. If that cap is reached, no partial list is labeled a completed normal form, even when some intermediate ordered terms have already been produced.
Reading ordered monomials
Each returned word is a list of basis indices in nondecreasing order. Repetitions indicate powers, so two-two means e2 squared. An empty list is the unit. Its coefficient is still an exact rational and should not be confused with an absent output term.
The count of final terms is not a vector-space dimension of the enveloping algebra, which is generally infinite-dimensional. Nor is the original Lie dimension an upper bound on word degree. The finite limits belong to this requested computation and its displayed expansion, not to a truncation imposed on the mathematical algebra.
Checks and applications
For an abelian bracket table, the output should reduce to simple ordered commutative monomials with no correction. For a single inverted pair, compare the returned expression directly with the defining relation. More elaborate checks can evaluate both words in a faithful compatible representation when one is known.
Keep the basis order and structure constants with exported coefficients. Another order gives another valid normal form, and representation-specific relations can collapse terms further after substitution. This calculator returns the universal PBW expression before those additional quotient or representation constraints are introduced.
A few questions, answered
Can I just sort the indices?
Only for an abelian Lie algebra. In general every inverted pair adds a bracket correction.
Why check Jacobi?
It verifies that the constants define a Lie algebra, which is required for the stated PBW normal-form interpretation.
Does term count measure algebra dimension?
No. It counts monomials in one reduced expression; the enveloping algebra is generally infinite-dimensional.
What does an empty word mean?
It is the multiplicative unit, entered as none in this interface.