I'm stuck solving the following problem from Goldrei's Propositional and Predicate Calculus (p. 131):
$L$ is a propositional language based on the connectives $\lnot$, $\lor$. A system $S$ for $L$ has the following (natural deduction) rules of inference:
(0) If $\phi$ $\in$ $\Gamma$ then $\Gamma \vdash \phi$
(1) If $\Gamma \vdash \phi$ then $\Gamma \vdash (\phi \lor \psi)$
(2) If $\Gamma \vdash \psi$ then $\Gamma \vdash (\phi \lor \psi)$
(3) If $\Gamma, \phi \vdash \theta$ and $\Gamma, \psi \vdash \theta$ then $\Gamma, (\phi \lor \psi) \vdash \theta$
(4) If $\Gamma, \phi \vdash \psi$ and $\Gamma, \phi \vdash \lnot \psi$ then $\Gamma \vdash \lnot \phi$
(5) If $\Gamma \vdash \lnot \lnot \phi$ then $\Gamma \vdash \phi$
Show that
$\phi, \psi \vdash \lnot (\lnot \phi \lor \lnot \psi)$
I think I need to somehow derive a contradiction and use inference rule number 4. One idea I have is to derive the disjunctive syllogism first and then assume $(\lnot \phi \lor \lnot \psi)$. But I can't seem to make any progress here either.
You are right. One way to approach this is by deriving a contradiction and use inference rule $(4)$. First of all, note that the inference rule $(0)$ implies that $\phi \vdash \phi$ as $\phi$ is part of the class of formulas composed solely by $\phi$. From this you can get other $\vdash$ relations. For example, $$\phi, \psi, \neg \phi \vee \neg \psi \vdash \phi.$$ So we are getting somewhere near to use inference rule $(4)$. “All” we have to do is to show that $\phi, \psi, \neg \phi \vee \neg \psi \vdash \neg \phi$ holds as well. To do this, we argue the following. Inference rule $(0)$ also allows you to conclude that $$\phi, \psi, \neg \phi \vdash \neg \phi.$$ But it also allows you to infere that $$\phi, \psi, \neg \psi, \phi \vdash \psi \quad\text{and} \quad \phi, \psi, \neg \psi, \phi \vdash \neg \psi.$$ Now, if we use inference rule $(4)$, we get $\phi, \psi, \neg \psi \vdash \neg \phi$. Hence, by inference rule $(3)$, applied to $\phi, \psi, \neg \phi \vdash \neg \phi$ and $\phi, \psi, \neg \psi \vdash \neg \phi$, we obtain $$\phi, \psi, \neg \phi \vee \neg \psi \vdash \neg \phi.$$ Therefore, since $\phi, \psi, \neg \phi \vee \neg \psi \vdash \phi$ and $\phi, \psi, \neg \phi \vee \neg \psi \vdash \neg \phi$, we conclude by inference rule $(4)$ that $$\phi, \psi \vdash \neg(\neg \phi \vee \neg \psi).$$ In this kind of proofs it may be fruitful to do what you have done: to look at where you want to get, and try to select the rules that will allow you to get there.