There are many tools to deal with subalgebras (see
normaliz), so it would make sense to design a nice interface choosing the best tool for a given problem.
It it worth designing a
subalgebra class in cocoalib? Probably yes, but that's a delicate work.