+ self._superalgebra = elt.parent()
+ category = self._superalgebra.category().Associative()
+ V = self._superalgebra.vector_space()
+ field = self._superalgebra.base_ring()
+
+ # A half-assed attempt to ensure that we don't collide with
+ # the superalgebra's prefix (ignoring the fact that there
+ # could be super-superelgrbas in scope). If possible, we
+ # try to "increment" the parent algebra's prefix, although
+ # this idea goes out the window fast because some prefixen
+ # are off-limits.
+ prefixen = [ 'f', 'g', 'h', 'a', 'b', 'c', 'd' ]
+ try:
+ prefix = prefixen[prefixen.index(self._superalgebra.prefix()) + 1]
+ except ValueError:
+ prefix = prefixen[0]
+
+ if elt.is_zero():
+ # Short circuit because 0^0 == 1 is going to make us
+ # think we have a one-dimensional algebra otherwise.
+ natural_basis = tuple()
+ mult_table = tuple()
+ rank = 0
+ self._vector_space = V.zero_subspace()
+ self._superalgebra_basis = []
+ fdeja = super(FiniteDimensionalEuclideanJordanElementSubalgebra,
+ self)
+ return fdeja.__init__(field,
+ mult_table,
+ rank,
+ prefix=prefix,
+ category=category,
+ natural_basis=natural_basis)
+