I have an exercise about proving statements:
Suppose that P is true. Prove that Q → ¬(Q → ¬P ) is true
Givens:
$P$
$Q \rightarrow \neg P$
Goal:
$\neg Q$
which I simply prove by contrapositive in this way:
$Q \rightarrow \neg P$ is equivalent to $P \rightarrow \neg Q$, which is what we wanted to prove, right?
I see that you are proving $Q → ¬(Q → ¬P )$ by contrapositive, given $P$ as a premise.
So you are trying to prove, along with the premise $P$, $\lnot\lnot (Q\rightarrow \lnot P) \rightarrow \lnot Q \iff (Q\rightarrow \lnot P) \rightarrow \lnot Q$
You're almost there.
Assuming $P\rightarrow \lnot Q$ is certainly equivalent to assuming $ Q \rightarrow \lnot P$.
But we need something more to conclude, therefore $\lnot Q$.
Specifically, assuming $P\rightarrow \lnot Q$,
to use along with the given premise $P$,
by modus ponens, give us $\lnot Q, as desired.