Hi, I wonder if currently there's a cleaner way to do xv⋅xw=xv+w in Sage, where v,w are some vectors in a vector space?
Once a basis v1,⋯vn for the vector space is chosen, this can be done by identifying xi with xvi, and use the multivariate ring R[x1,⋯,xn]. However, I would like to do this in an intrinsic manner, i.e. not choosing a basis.
More generally, I think for any element m in any magma M, we should be able to define an algebra R[xm|m∈M] over any given ring R. Notice that this is not the same as FreeAbelianMonoid
generated over M, as in this case xmxn is not the same as xmn.
Question
Is R[xm|m∈M$ currently doable? If not, I might work on writing it.
Application
A reason why I think it would be helpful: it can help calculating generalized characters of representations of quantum groups.