Could someone verify that the following alternative attempts are both correct in the proof of the problem?
$$\{P \lor \neg Q , R \rightarrow \neg P \} \vdash Q \rightarrow \neg R $$
Attempt:
$$\cfrac{\cfrac{format}{P \lor \neg Q} \qquad \cfrac{\cfrac{\cfrac{[R] \quad R \rightarrow \neg P}{\neg P} \qquad \cfrac{format}{[P]}}{\neg R}}{Q \rightarrow \neg R} \qquad \cfrac{\cfrac{[Q] \quad [\neg Q]}{\neg R}}{Q \rightarrow \neg R}}{Q \rightarrow \neg R}$$
Alternative attempt: $$\cfrac{\cfrac{\cfrac{format}{P \lor \neg Q} \qquad {\cfrac{\cfrac{format}{[P]} \quad \cfrac{[R] \quad R \rightarrow \neg P}{\neg P}}{\neg R}} \qquad \cfrac{[Q] \quad [ \neg Q]}{\neg R}}{\neg R}}{Q \rightarrow \neg R}$$
I had to add the word 'format' in the 'fractions' because i could not get the formatting to display correctly,sorry.I know the first attempt is correct and i was wondering if the alternative is correct too.
Thank you for your help.
You shouldn't have any statements with a blank line over them, like $$\dfrac{}{P \lor \lnot Q}$$ Every line represents an invocation of a rule of inference, and there is no general rule of inference to infer $P \lor \lnot Q$. It is just an assumption. Instead it should just be
$$\dfrac{[P \lor \lnot Q] \qquad \dots}{\dots}$$
Same for the other blank lines. Otherwise both proofs are correct.
Just to be clear, it is sometimes appropriate to have blank lines. For example, if you have "the law of the excluded middle", then it would be appropriate to have
$$\dfrac{\dfrac{}{Z \lor \lnot Z} \qquad \dots}{\dots}$$
Because $Z \lor \lnot Z$ is axiomatic, it isn't some arbitrary assumption.