Lets say I have the sentence
$$\phi=(p(x)\wedge(q(y)\supset R(z))) \supset (\forall u.\exists w.(T(u.w) \vee \neg(u=w)))$$
I am trying to find the sub formulae of this.
Is $$(\forall u.\exists w.(T(u.w) \vee \neg(u=w)))$$ a sub formula?
In the example I was given, substitutions had been made and they were also deemed to be sub formulae which is correct, but why would you make a substitution when finding the sub formulae?