In propositional logic, for the contradiction rule:
$\neg P \rightarrow Q \text{ (Q is a contradiction)}$
$\therefore P$
Why could $\neg P \rightarrow Q$ be possible if $\neg P$ is false? Because P and Q are independent, only when we firstly assume $\neg P$ is true can we imply a contradiction. But actually, $\neg P$ is false and how can we conclude a contradiction when $\neg P$ is false?
For example, the precondition is x = 2. Let P be x is an even number. The presumption $\neg P$ that x is not an even number would lead to a contradiction. But actually this would not happen because Q can only happen when $\neg P$ is true. However, the precondition x = 2 makes Q never happen.
The proof of the contradiction rule in the textbook says because we need to make the condition statement here true to infer the conclusion P to be true, thus due to the contradiction Q, $\neg P$ must be false. But the truth of P or Q only have something to do with the real situation, which means Q cannot hold, so why does the proof make sense?