I am a beginner in Natural Deduction currently reading the book "Logic in Computer Science" and got stuck at proving: $$ P\land Q\to P\Leftrightarrow R\lor\lnot R$$
The latter formula is clearly a LEM, which I think $R$ should be obtained by getting a contradiction in the former formula. Any help will be much appreciated.
See :
(A) LEM is a $0$-premise rule in the system; thus, we have a $1$-line proof of :
(B) $p \land q \to p$ is a tautology, thus it must be provable :
1) $p \land q$ --- assumed [a]
2) $p$ --- from 1) by $\land$-e
Now, we can use the (obvious) property of the derivability relation : $\vdash \ $ [not present in the book; we can see it in : Dirk van Dalen, Logic and Structure (5th ed - 2013), page 37] :
to add to the above proofs the "unnecessary" premises, getting from (A) :
and from (B) :
Now we can conclude with :