I am currently reading a book on natural deduction, and it states that for universal generalization or $\forall$-introduction, defined as:
$$\frac {\phi[t/x]} {\forall x \phi}$$
The following restrictions apply:
- The term $t$ cannot occur in any undischarged assumption of the derivation of $\phi[t/x]$
- The term $t$ cannot occur in $\phi$
The first of these restrictions is easy to understand, but for the second I just can't quite understand why it is needed? In the process of going from the top formula to the bottom, you replace all instances of t with x, so therefore $\phi$ should have no $t$'s in it. Therefore, what's the use of a restriction on a situation that can never occur? Can someone give me a (realistic) example of where this restriction may be needed?