Task: prove the Pierce's law by the natural deduction or by the system LK:
$\vdash ((P \Rightarrow Q) \Rightarrow P) \Rightarrow P ?$
$((P \Rightarrow Q) \Rightarrow P) \vdash P ?$
$¬P, ((P \Rightarrow Q) \Rightarrow P) \vdash ?$
I tried to find proof:
$\vdash P \Rightarrow P !$
$P \vdash P !$
$P, (P \Rightarrow Q) \Rightarrow P \vdash P !$
$P \vdash ((P \Rightarrow Q) \Rightarrow P) \Rightarrow P !$
and
$(P \Rightarrow Q) \Rightarrow P \vdash (P \Rightarrow Q) \Rightarrow P$
$(P \Rightarrow Q), (P \Rightarrow Q) \Rightarrow P \vdash P !$
$(P \Rightarrow Q) \vdash ((P \Rightarrow Q) \Rightarrow P) \Rightarrow P !$
But there are formulas on the left.
Note: only implication and negation should be used.
The Natural Deduct proof in Gentzen's style:
$$\dfrac{\dfrac{\dfrac{\dfrac{\dfrac{}{(P\to Q)\to P\vdash (P\to Q)\to P}{\small\sf Ass}}{(P\to Q)\to P, (P\to Q)\vdash P}{\small{\to}\sf E}~~\dfrac{\dfrac{\dfrac{}{P,\neg Q\vdash P}{\small\sf Ass}~~\dfrac{}{\neg P,\neg Q\vdash\neg P}{\small\sf Ass}}{P,\neg P\vdash Q}{\small\sf RAA}}{\neg P\vdash P\to Q}{\small\sf{\to}I}}{(P\to Q)\to P, \neg P\vdash P}{\small\sf Cut}~~\dfrac{}{\neg P\vdash \neg P}{\small\sf Ass}}{(P\to Q)\to P\vdash P}{\small\sf RAA}}{\vdash ((P\to Q)\to P)\to P}{\small\sf{\to}I}$$