X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Feja%2Feja_subalgebra.py;h=2318d12bfd0ebbfc765ca74766af9ab0e73ce02c;hb=723fd0f50c7997768c3d098c707df30197b88afd;hp=e39792a91732724b5fc7bc8b352e8fd977c80940;hpb=0fd07263cc543e345f3cd7668938f8a0de70641f;p=sage.d.git diff --git a/mjo/eja/eja_subalgebra.py b/mjo/eja/eja_subalgebra.py index e39792a..2318d12 100644 --- a/mjo/eja/eja_subalgebra.py +++ b/mjo/eja/eja_subalgebra.py @@ -313,6 +313,18 @@ class FiniteDimensionalEuclideanJordanElementSubalgebra(FiniteDimensionalEuclide return self.monomial(self.one_basis()) + def natural_basis_space(self): + """ + Return the natural basis space of this algebra, which is identical + to that of its superalgebra. + + This is correct "by definition," and avoids a mismatch when the + subalgebra is trivial (with no natural basis to infer anything + from) and the parent is not. + """ + return self.superalgebra().natural_basis_space() + + def superalgebra(self): """ Return the superalgebra that this algebra was generated from.