default order in FreeAlgebra

asked 2017-01-24 07:41:56 +0200

GA316 gravatar image

updated 2017-01-25 06:28:07 +0200

In this link : I am interested in the method lie_polynomial(w), which takes word from a FreeMonoid as input and give the output, the corresponding Lie monomial. But All these things depends on the order in the FreeAlgebra elements. Theoretically this is the lex order induced from the order on the alphabets, but in sage, the order in FreeAlgebra is it same as lex or different order?

F = FreeAlgebra(QQ, 3, 'x,y,z') 

M.<x,y,z> = FreeMonoid(3)

w = x*y*z

print F.lie_polynomial(w)

w = w.to_word()


This code giving me the output :

x*y*z - y*z*x


Since, w is Lyndon, the associated Lie monomial is [x [y z]] = xyz - xzy - yzx + zyx which is different from the above output, where am I making mistake. please tell.

The method of associating monomial to a word can be seen here :

Edit : There is a ticket regarding lie_polynomial( ) method. Please see here :

Thanks a lot once again.

edit retag flag offensive close merge delete


kcrisman gravatar imagekcrisman ( 2017-01-24 15:53:09 +0200 )edit