Let $L$ be a language and let $t(x_1, x_2, . . . , x_n)$ be a term over $L$. Let the language $L_1$ be obtained from $L$ by adding a new n-ary functional symbol $g$. For any algebra $A$ over $L$ we define the algebra $A^♯$ over $L_1$ with the same carrier set by defining the operation $g$ on $A^♯$ as follows: $g(a_1, a_2, . . . , a_n) = t(a_1, a_2, . . . , a_n).$ Conversely, if $A$ is an algebra over $L_1$ then the algebra $A^*$ over $L$ is obtained from $A$ by dropping the operation $g$.
Prove the following:
(a) If V is a variety of algebras over $L$ then the class $V^♯$ of algebras
consisting of all algebras $A^♯$ for $A ∈ V$, is a variety of algebras over $L_1$.
(b) If $W$ is a variety of algebras over $L_1$ then the class $W^*$ of algebras consisting of all algebras $A^*$ for $A ∈ W$, is a variety of algebras over $L$.
For part (a), I said that if $V$ is a variety then $\forall A \in V$ all of the identities hold over $L$ for all operations in $A$ so in $V^\#$, which consists of all identities from $V$ and the one additional identity $g(a_1, a_2, . . . , a_n) = t(a_1, a_2, . . . , a_n)$, $\forall A \in V$ the identities will still hold over $L_1$ and teh new identity will also hold over $L_1$ for $A^\#$ so $V^\#$ will be a variety over $L_1$.
Is that correct and is it missing any details?
For part (b), Let $W$ be a variety of algebras over $L_1$, then $\forall A \in W$ all of the identities hold over $L_1$, which means all but $g(a_1, a_2, . . . , a_n) = t(a_1, a_2, . . . , a_n)$ will hold over $L$ since thats how $L_1$ was built. This means that the class $W^*$ consisting of all algebras $A^*$ for $A \in W$ is a variety over $L$. Again, is this correct and is it too vague/completely missing the point? This is the first time I've seen varieties in my life so I am struggling a bit to get a grasp on them