Proof (coincidence lemma in predicate logic)
The statement about terms follows from induction on $\mathrm{Term}^a$ and the recursive definition of interpretations.
For the statement about formulas, we check the following cases of $ϕ$:
-
$\top$ or $\bot$ is trivial.
-
$t = t'$ and $r_j t_0 \ldots t_{n-1}$ follows from part 1.
-
$(χ \wedge ψ)$, $(χ \vee ψ)$, $(χ \Rightarrow ψ)$ and $\neg χ$ follow from inductive hypothesis.
-
For $\exists v ψ$, suppose $\mathfrak{I}|_{\op{free}(\exists vψ)} = \mathfrak{J}|_{\op{free}(\exists vψ)}$ and $\mathbf{X}, \mathfrak{I} \vDash \exists v ψ$. This means there is $x\in X$ such that $\mathbf{X}$ such that $\mathbf{X}, \mathfrak{I}\frac{x}{v} \vDash ψ$. Now $\mathfrak{I}\frac{x}{v}|_{\op{free}(ψ)} = \mathfrak{J}\frac{x}{v}|_{\op{free}(ψ)}$, so we can apply induction hypothesis and get $\mathbf{X}, \mathfrak{J}^x_v \vDash ψ$. By definition $\mathbf{X}, \mathfrak{J}\vDash \exists vψ$. The other direction is the same.
-
$\forall vψ$ follows from duality.