First time here? Check out the FAQ!
answered 2019-12-05 20:04:01 +0100
I suggest to take inspiration from
src/sage/combinat/free_prelie_algebra.py:class FreePreLieAlgebra(CombinatorialFreeModule):
which define another kind of non-associative algebra on a vector space spanned by trees.