I have defined a function G such that G(alpha) is in QSym = QuasisymmetricFunctions(K) for alpha in Compositions.
Is there a way to declare G as a basis of QSym, so that I can access functions like G(f) to give me the G-expansion of f where f is in QSym?