Pf of substitution lemma of terms in terms