Let $P$ be a formula with two variables. Given the premises:
- $\forall x \exists y P(x,y)$
- $\forall x \forall x' \forall y \forall y' (P(x, y) \land P(x',y') \to y = y')$
I would like to derive $\exists y \forall x P(x,y)$.
Informally, the idea is to introduce a function $(f(x) = y) \leftrightarrow P(x,y)$ using the premises and then show that $f$ is a constant function. However, as I am new to formal logic, I struggle to construct a formal proof using the rules of inference of a natural deduction system (e.g. the Fitch system). Therefore I would like to ask for a formal proof of this result.
My question is not that I don't understand the quantifier rules mentioned in What set of formal rules can we use to safely apply Universal/Existential Generalizations and Specifications?, but it's rather that I don't know how to formalize the idea I have presented above into a formal proof, as it requires introducing a function in the middle of the proof and derive further statements from it. And maybe the proof should not proceed in the way I proposed after all, in that case, what should be done to construct a proof of this statement?