Proof by contrapositive
A proof by contrapositive is an indirect proof that proves a theorem is true by showing that the negation of its conclusion implies the negation of its hypotheses. Proving the contrapositive \(\lnot q \rightarrow \lnot p\) of a conditional statement \(p \rightarrow q\) is the same as proving the conditional statement itself, because they are logically equivalent.
This kind of proof is preferred over a direct proof when the negation of the conclusion is a much simpler assumption than the hypotheses. When I say "much simpler," I mean that assuming the negation of the conclusion should provide you with either a less complicated expression to work with, or an expression to work with in the first place.
Proofs by contrapositive especially shine when dealing with irrational numbers. The statement "\(r\) is irrational" does not give you a clear expression to work with, but its negation allows you to use the definition of a rational number.
To negate the hypotheses and conclusion, you'll probably need to use De Morgan's laws.
With multiple hypotheses
If you want to use a proof by contrapositive to prove a theorem that has multiple hypotheses, you need to show that the negation of one of the hypotheses results from assuming the other hypotheses (not their negations!) and the negation of the conclusion. Since this can quickly get complicated, it is best to write out exactly what you are assuming and what you are trying to prove.
In a direct proof with multiple hypotheses, you assume the hypotheses \(h_1 ... h_n\) and show the conclusion \(c\):
In a proof by contrapositive, you assume the negation of the conclusion and show the negation of the hypotheses:
By De Morgan's law:
As you can see, proving the contrapositive with multiple hypotheses means showing that the negation of the conclusion implies that at least one of the negated hypotheses are true. (Remember that just one proposition in a disjunction has to be true for the whole disjunction to be true!) In other words, you are allowed to assume all but one hypothesis is true. This statement then becomes:
In this statement, \(h_1\) is the hypothesis you have chosen to prove the negation of. It could be any of the hypotheses. Just make sure you assume the rest are true.