default order in FreeAlgebra

asked 2017-01-24 00:41:56 -0500

GA316 gravatar image

updated 2017-01-24 23:28:07 -0500

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 08:53:09 -0500 )edit