Let f be a polynomial in the non-commutative polynomial ring K[[x1,..,xn]] in n variables. Define the K-linear map for an i with 1≤i≤n as di:K[[x1,..,xn]]→K[[x1,..,xn]] on monomials as di(f)=g if f=xig and di(f)=0 else, so that this operator simply strikes off the leftmost xi.
Define the K-linear operator for an i with 1≤i≤n as δi:K[[x1,..,xn]]→K[[x1,..,xn]] on monomials as δi(xi1⋯xit)=t∑j=1di(xijxij+1⋯xitxi1⋯xij−1).
Question: Is there an easy (or even already existing) way to obtain the result of applying δi to a non-commutative polynomial using Sage?