I can't find a for $\{p,p\rightarrow (q\rightarrow r)\}\vdash (p\rightarrow q)\rightarrow r$ in HR
HR is the following system:
axioms:
$A\rightarrow A$
$(A\rightarrow B)\rightarrow ((B\rightarrow C)\rightarrow (A \rightarrow C))$
$(A\rightarrow (B\rightarrow C))\rightarrow (B\rightarrow (A\rightarrow C))$
$(A\rightarrow (A\rightarrow B))\rightarrow (A\rightarrow B)$
and the inference rule is MP.
I already proved that general claim that might help:
If $T,A\vdash B$ and $T\nvdash B$ than $T\vdash A\rightarrow B$
So here it's easy to prove that $\{p,p\rightarrow (q\rightarrow r),(p\rightarrow q)\}\vdash r$ ,
but I have know idea how to show that $\{p,p\rightarrow (q\rightarrow r)\}\nvdash r$
We assume that we do not have the resource of Deduction Theorem available.
(1) --- $p \rightarrow (q \rightarrow r)$ --- Assumption
(2) --- $p$ --- Assumption
(3) --- $(q \rightarrow r)$ --- from (1) and (2) by modus ponens
(4) --- $\vdash (p \rightarrow q) \rightarrow ((q \rightarrow r) \rightarrow (p \rightarrow r))$ --- Axiom 2
(5) --- $\vdash (q \rightarrow r) \rightarrow ((p \rightarrow q) \rightarrow (p \rightarrow r))$ --- from (4) and Axiom 3 by modus ponens
(6) --- $(p \rightarrow q) \rightarrow (p \rightarrow r)$ --- from (3) and (5) by modus ponens
Now we need the following form of Axiom 4 [$(A→(B→C))→(B→(A→C))$ - we use the substitution : $p \rightarrow q/A; p/B; r/C$ ] :
(8) --- $p \rightarrow ((p \rightarrow q) \rightarrow r)$ --- from (6) and (7) by modus ponens
Now, it's done : apply modus ponens using the Assumption $p$, and we will get :
The conclusion "depends" on the assumptions : $p$ and $p \rightarrow (q \rightarrow r)$.