How to prove $p∨q, q∨r, p\to ¬r ⊢ q$ using natural deduction?
I don't really know how to go about it since I have 2 or statements, but here is my try.
$p∨q$ premise
$q∨r$ premise
$p\to ¬r$ premise
$p$ Assumption 1
$¬r$ $\to e 3,4$
$q$ Assumption 2
I am kinda lost and don't know if I have done right so far and how to continue.
Edit: I am only allowed to use the basic natural deduction rules such as elemination and introduction for disjunction, conjunction, implication and negation.
Heavens! If I'd been setting this as a natural deduction exercise, I'd have expected to see this as the most obvious derivation:
$$ \begin{array}{llll} 1)&p\lor q&&\text{Premise}\\ 2)&q\lor r&&\text{Premise}\\ 3)&p\to\neg r&&\text{Premise}\\ 4)&& p & \text{Assumption)}\\ 5)&& \neg r &\text{From 3, 4 by modus ponens}\\ 6)&& q&\text{From 2, 5, by however your system handles disjunctive syllogism)}\\ && --\\ 7)&& q &\text{Assumption}\\ 8)&q& &\text{From 1, 4-6, 7-7 by $\lor$-Elimination}\\ \end{array} $$ With the fine details depending, as noted, on how your preferred system delivers disjunctive syllogism and also on how exactly it handles $\lor$-Elimination. If disjunctive syllogism isn't basic in your system, you need to plug in whatever works from the basic rules you are allowed.
And not only is this the obvious proof strategy, there is a deeper reason to prefer something like this. For the argument is intuitionistically valid. So you shouldn't want to go via the intuitionistically unacceptable double negation rule as in @RyRy's proof, or by the equivalent rule used at the last step by Camelot, or by the intuitionistically unacceptable rule used in getting from 7 to 8 in @manoooh's proof.