Tensors can be used to define algebraic structures such as groups and algebras.
Returns the Heisenberg algebra A induced by the bilinear tensor B. If B=: U x V ↣ W is a bilinear map of K-vector spaces, and U, V, and W are isomorphic, then A is the algebra over U with the given product. If U and V are isomorphic but not with W, then A is the algebra over U direct-sum W with the given product. If U is not isomorphic to V, then it creates a new bilinear map
:(U direct-sum V) x (U direct-sum V) ↣ W, where (u, v)
(u', v') = u
v'.
Returns the Heisenberg Lie algebra with Lie bracket given by the alternating bilinear tensor induced by B.
Returns the class 2, exponent p, Heisenberg p-group with commutator given by the alternating bilinear tensor induced by B. This uses the pQuotient functions to convert a finitely presented group into a polycyclic group.
> T := RandomTensor(GF(3),[10,10,4]); > V := Domain(T)[1]; > V.1*T*V.2; (0 0 1 0) > A := HeisenbergAlgebra(T); > A; Algebra of dimension 14 with base ring GF(3) > A.1*A.2; (0 0 0 0 0 0 0 0 0 0 0 0 1 0)Now we create the Lie algebra. The tensor T is not alternating, so it will induce an alternating tensor form which to create the Lie algebra.
> L := HeisenbergLieAlgebra(T); > L.1*L.2; (0 0 0 0 0 0 0 0 0 0 2 0 1 0) > T2 := AlternatingTensor(T); > V.1*T2*V.2; (2 0 1 0)Now we create the Heisenberg 3-group G from T. Because this algorithm uses the p-quotient algorithms, the commutator on G will not be identical to the induced alternating tensor T2. Instead, it will be pseudo-isometric to the T2.
> G := HeisenbergGroup(T); > (G.2,G.1); // Defining word for 1st gen in Frattini G.11