I'm currently studying universal algebra and I'm having trouble to prove the following statement:
Let $\Sigma$ be a many sorted signature and A and B be $\Sigma$-algebras. Prove that if there is a surjective homomorphism $h: A \rightarrow B$ and $A \vDash t \approx t'$, then $B \vDash t \approx t'$.
Just to make things clear:
- $t$ and $t'$ are both terms from the term algebra $T(\Sigma, X)$, where $X$ is a set of variables
- $A \vDash t \approx t'$ means that the equality $t \approx t'$ is valid in the algebra $A$. This in turn means that for every assignment $\alpha: X \rightarrow A$, we have $\bar{\alpha}(t) = \bar{\alpha}(t')$, where $\bar{\alpha}: T(\Sigma, X) \rightarrow A$ is the unique homomorphic extension of $\alpha$. Essentially, $\bar{\alpha}$ is the function that calculates the value of its parameter (a term) with regards to the assignment of variables $\alpha$.
For anyone that might end up struggling with this, I think I found a solution:
Let $\beta: X \rightarrow B$ be an assignment function. We want to prove that $\bar{\beta}(t) = \bar{\beta}(t')$. Notice that, given a function $\bar{\beta}$, we can define a new function $\gamma: T(\Sigma, X) \rightarrow B$ such that $\gamma(t) = h(\alpha(t))$, where $\alpha(t)$ is the element $a$ from $A$ such that $h(a) = \bar{\beta}(t)$ (we can do this because $h$ is surjective). It is very obvious that $\gamma = \bar{\beta}$. Other than that, since $A \vDash t \approx t'$, we know that $\alpha(t) = \alpha(t')$. Lastly, since $h$ is a well-defined function, we know that $h(\alpha(t)) = h(\alpha(t'))$, which means that $\bar{\beta}(t) = \bar{\beta}(t')$.
I don't know if every step I took was valid, but it's the best I could come up with.