How do you do universal generalization on a statement with free variables introduced by both universal and existential specification/instantiation? Consider a formal proof in natural deduction of the form:
- Start of proof
$~~~~~~~~~\vdots$
- $x$ is introduced (fresh) by universal specification ($\forall$-Elimination)
$~~~~~~~~~\vdots$
- $y$ is introduced by existential specification ($\exists$-Elimination)
$~~~~~~~~~\vdots$
$Q(x,y)$ is derived at this point
Can we now infer that $\forall a: \exists b: Q(a,b)$? What is the rule/s?
Assume no free variables other than x and y. And that no assumptions were introduced or discharged after line 10.
EDIT
More concretely, suppose we have...
- $\forall a: P(a)~~~$ (Premise)
- $\exists b:Q(a)~~~$ (Premise)
- $P(x)~~~$ ($\forall$-Elim, 1)
- $Q(y)~~~$ ($\exists$-Elim, 2)
Can I now use natural deduction (FOL) to obtain: $\forall a: \exists b: (P(a) \land Q(b))$? Are there any "side conditions," "dependencies," etc. introduced by $\exists$-Elim here that must be taken into consideration?