For a finite-dimensional $\mathbb{C}$-algebra $A$ with basis $\{e_1,...,e_n\}$ (structure of algebra encoded by structural constants $\{c_{ij}^k\}_{i,j,k=1}^n$ such that $e_ie_j = \sum_{k=1}^n c_{ij}^k e_k$), the differential of Hochschild complex is the map $T(A) \to T(A)$ where $T(A)=\oplus_{i=0}^\infty A^{\otimes i}$ is a tensor algebra. The map is defined on irreducible tensors such that:
$$d(a_0 \otimes ... \otimes a_n) = \sum_{i=0}^{n-1} (-1)^n a_0 \otimes ... \otimes a_i a_{i+1} \otimes ... \otimes a_n$$ $$d(a_0) = 0, d(\operatorname{const})=0$$
I have a couple questions.
Question 1
Let's say I have a set $S = \{e_1,e_2\}$ and some complex numbers $\{c_{ij}^k\}_{i,j,k=1}^2$ such that $e_ie_j = \sum_{k=1}^n c_{ij}^k e_k$. How can I code this? To be a little more concrete, I want to insert something in:
S = {a,b};
c111=0; c112=0; c211=0; c212=0; c221=0; c222=0; c121=2; c122=3;
(*INSERT SOMETHING*)
(a+3*b)**b== 2*a + 3*b
Replace "(INSERT SOMETHING)" such that the last equation is true.
Question 2
I want to code the Hochschild differential in such a framework. So, i want to realize a function hochschildD in such a way, that:
hochschildD[TensorProduct[a,b,a]] == TensorProduct[a**b,a] - TensorProduct[a,b**a]
will be true. Hope for your help!