Contraposition
In logic and mathematics, contraposition, or transposition, refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as § Proof by contrapositive. The contrapositive of a statement has its antecedent and consequent inverted and flipped.
Conditional statement . In formulas: the contrapositive of is .[1]
If P, Then Q. — If not Q, Then not P. "If it is raining, then I wear my coat" — "If I don't wear my coat, then it isn't raining."
The law of contraposition says that a conditional statement is true if, and only if, its contrapositive is true.[2]
The contrapositive () can be compared with three other statements:
Note that if is true and one is given that is false (i.e., ), then it can logically be concluded that must be also false (i.e., ). This is often called the law of contrapositive, or the modus tollens rule of inference.[3]
Proofs[edit]
Simple proof by definition of a conditional[edit]
In first-order logic, the conditional is defined as:
In nonclassical logics[edit]
Intuitionistic logic[edit]
In intuitionistic logic, the statement cannot be proven to be equivalent to . We can prove that implies , but the reverse implication, from to , requires the law of the excluded middle or an equivalent axiom.
Subjective logic[edit]
Contraposition represents an instance of the subjective Bayes' theorem in subjective logic expressed as:
where denotes a pair of binomial conditional opinions given by source . The parameter denotes the base rate (aka. the prior probability) of . The pair of derivative inverted conditional opinions is denoted . The conditional opinion generalizes the logical statement , i.e. in addition to assigning TRUE or FALSE the source can assign any subjective opinion to the statement. The case where is an absolute TRUE opinion is equivalent to source saying that is TRUE, and the case where is an absolute FALSE opinion is equivalent to source saying that is FALSE. In the case when the conditional opinion is absolute TRUE the subjective Bayes' theorem operator of subjective logic produces an absolute FALSE derivative conditional opinion and thereby an absolute TRUE derivative conditional opinion which is equivalent to being TRUE. Hence, the subjective Bayes' theorem represents a generalization of both contraposition and Bayes' theorem.[17]