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 $ϕ$: