Comprehension and Pair come from ZFC and Pair# is a proposed alternate axiom to Pair. We want to show that {Cmpr, Pair} $\vdash$ Pair# in ZFC.
Cmpr $$ \forall x \forall w_1 \ldots \forall w_n \exists y \forall z (z \in y \leftrightarrow (z \in x \wedge \phi(z, w_1, \ldots, w_n)))$$
Pair $$\forall x \forall y \exists z (x \in z \wedge y \in z).$$
Pair# $$\forall x \forall y \exists p \forall u (u \in p \leftrightarrow (u = x \vee u = y)).$$
Here is my informal proof.
Let $x$ and $y$ be sets. By Pair, $\forall x \forall y \exists z (x \in z \wedge y \in z),$ meaning that there exists a set $z$ which has $x$ and $y$ as members (and possibly more other members). Let $\phi$ be the set property that $\{u \in z : u = x \vee u = y\}$. By Comprehension, given the set $z$ and the property $\phi$, there is a set $p$ whose elements are precisely those elements of $z$ which satisfy $\phi$. Thus, we have that $p = \{x, y\}$, showing that Pair# is satisfied.
First, is my description for $\phi$ a valid way to specify a "property of sets"? I am not entirely sure what this means.
Second, how do I translate this into a formal proof? I suspect this will involve a lot of coming up with tautologies and using MP, but I honestly don't even know where to get started. Any help is greatly appreciated.
Given any unary predicate $\phi(u)$, comprehension implies $\exists p\forall u (u\in p\iff u\in z\land\phi(u))$, with $z$ defined as per your usage of pair. For this inference to coincide with pair#, it suffices by modus ponens to take $\phi(u)$ to be $u=x\lor u=y$. Of course, any $\phi$ that suffices could be replaced with $u\in z\land\phi(u)$, but this is an unnecessary complication. This is what I imagine you intended when you wrote, "Let $\phi$ be the set property that $\{u\in z:u=x\lor u=y\}$" (i.e. I think you were defining $\phi(u)$ as $u\in z\land (u=x\lor u=y)$).