1 | initial version |
Good question. There is a (very) ambitious ticket to implement Lie algebras themselves (and many examples) at Trac 14901. Probably basing on this would be a bit of overkill, but perusing this might give you some good ideas. Essentially, you would be starting from scratch, but there is infrastructure already in place such as categories that would enable these to become part of a broader part of Sage, should you be interested in contributing your work back in.