HOME

TheInfoList



OR:

In
logic Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the study of deductively valid inferences or logical truths. It examines how conclusions follow from premises based on the structure o ...
and
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, contraposition, or ''transposition'', refers to the
inference Inferences are steps in logical reasoning, moving from premises to logical consequences; etymologically, the word '' infer'' means to "carry forward". Inference is theoretically traditionally divided into deduction and induction, a distinct ...
of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as . The contrapositive of a statement has its antecedent and consequent negated and swapped. Conditional statement P \rightarrow Q. In formulas: the contrapositive of P \rightarrow Q is \neg Q \rightarrow \neg P . 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. Contraposition ( \neg Q \rightarrow \neg P ) can be compared with three other operations: ; Inversion (the inverse), \neg P \rightarrow \neg Q:"If ''it is not raining,'' then ''I don't wear my coat''." Unlike the contrapositive, the inverse's
truth value In logic and mathematics, a truth value, sometimes called a logical value, is a value indicating the relation of a proposition to truth, which in classical logic has only two possible values ('' true'' or '' false''). Truth values are used in ...
is not at all dependent on whether or not the original proposition was true, as evidenced here. ; Conversion (the converse), Q \rightarrow P:"If ''I wear my coat,'' then ''it is raining''." The converse is actually the contrapositive of the inverse, and so always has the same truth value as the inverse (which as stated earlier does not always share the same truth value as that of the original proposition). ;
Negation In logic, negation, also called the logical not or logical complement, is an operation (mathematics), operation that takes a Proposition (mathematics), proposition P to another proposition "not P", written \neg P, \mathord P, P^\prime or \over ...
(the logical complement), \neg (P \rightarrow Q):"''It is not the case that'' if ''it is raining'' then ''I wear my coat''.", or equivalently, "''Sometimes, when it is raining, I don't wear my coat''." If the negation is true, then the original proposition (and by extension the contrapositive) is false. Note that if P \rightarrow Q is true and one is given that ''Q'' is false (i.e., \neg Q), then it can logically be concluded that ''P'' must be also false (i.e., \neg P). This is often called the ''law of contrapositive'', or the '' modus tollens''
rule of inference Rules of inference are ways of deriving conclusions from premises. They are integral parts of formal logic, serving as norms of the Logical form, logical structure of Validity (logic), valid arguments. If an argument with true premises follows a ...
.


Intuitive explanation

In the
Euler diagram An Euler diagram (, ) is a diagrammatic means of representing Set (mathematics), sets and their relationships. They are particularly useful for explaining complex hierarchies and overlapping definitions. They are similar to another set diagrammi ...
shown, if something is in A, it must be in B as well. So we can interpret "all of A is in B" as: :A \to B It is also clear that anything that is ''not'' within B (the blue region) ''cannot'' be within A, either. This statement, which can be expressed as: :\neg B \to \neg A is the contrapositive of the above statement. Therefore, one can say that :(A \to B) \leftrightarrow (\neg B \to \neg A). In practice, this equivalence can be used to make proving a statement easier. For example, if one wishes to prove that every girl in the United States (A) has brown hair (B), one can either try to directly prove A \to B by checking that all girls in the United States do indeed have brown hair, or try to prove \neg B \to \neg A by checking that all girls without brown hair are indeed all outside the US. In particular, if one were to find at least one girl without brown hair within the US, then one would have disproved \neg B \to \neg A, and equivalently A \to B. In general, for any statement where ''A'' implies ''B'', ''not B'' always implies ''not A''. As a result, proving or disproving either one of these statements automatically proves or disproves the other, as they are logically equivalent to each other.


Formal definition

A proposition ''Q'' is implicated by a proposition ''P'' when the following relationship holds: :(P \to Q) This states that, "if P, then Q", or, "if ''Socrates is a man'', then ''Socrates is human''." In a conditional such as this, P is the antecedent, and Q is the consequent. One statement is the contrapositive of the other only when its antecedent is the negated consequent of the other, and vice versa. Thus a contrapositive generally takes the form of: :(\neg Q \to \neg P). That is, "If not-Q, then not-P", or, more clearly, "If Q is not the case, then ''P'' is not the case." Using our example, this is rendered as "If ''Socrates is not human'', then ''Socrates is not a man''." This statement is said to be ''contraposed'' to the original and is logically equivalent to it. Due to their
logical equivalence In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending ...
, stating one effectively states the other; when one is true, the other is also true, and when one is false, the other is also false. Strictly speaking, a contraposition can only exist in two simple conditionals. However, a contraposition may also exist in two complex, universal conditionals, if they are similar. Thus, \forall(P \to Q), or "All Ps are Qs," is contraposed to \forall(\neg Q \to \neg P), or "All non-Qs are non-Ps."


Sequent notation

The ''transposition'' rule may be expressed as a sequent: : (P \to Q) \vdash (\neg Q \to \neg P), where \vdash is a metalogical symbol meaning that (\neg Q \to \neg P) is a syntactic consequence of (P \to Q) in some logical system; or as a rule of inference: : \frac, where the rule is that wherever an instance of "P \to Q" appears on a line of a proof, it can be replaced with "\neg Q \to \neg P"; or as the statement of a truth-functional tautology or
theorem In mathematics and formal logic, a theorem is a statement (logic), statement that has been Mathematical proof, proven, or can be proven. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to esta ...
of propositional logic. The principle was stated as a theorem of propositional logic by Russell and Whitehead in ''
Principia Mathematica The ''Principia Mathematica'' (often abbreviated ''PM'') is a three-volume work on the foundations of mathematics written by the mathematician–philosophers Alfred North Whitehead and Bertrand Russell and published in 1910, 1912, and 1 ...
'' as : (P \to Q) \to (\neg Q \to \neg P), where P and Q are propositions expressed in some
formal system A formal system is an abstract structure and formalization of an axiomatic system used for deducing, using rules of inference, theorems from axioms. In 1921, David Hilbert proposed to use formal systems as the foundation of knowledge in ma ...
.


Proofs


Simple proof by definition of a conditional

In first-order logic, the conditional is defined as: :A \to B \, \leftrightarrow \, \neg A \lor B which can be made equivalent to its contrapositive, as follows: : \begin \neg A \lor B \,& \, \leftrightarrow B \lor \neg A \\ \, & \, \leftrightarrow \neg B \to \neg A \end


Simple proof by contradiction

Let: :(A \to B)\land \neg B It is given that, if A is true, then B is true, and it is also given that B is not true. We can then show that A must not be true by contradiction. For if A were true, then B would have to also be true (by
Modus Ponens In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
). However, it is given that B is not true, so we have a contradiction. Therefore, A is not true (assuming that we are dealing with bivalent statements that are either true or false): :(A \to B) \to (\neg B \to \neg A) We can apply the same process the other way round, starting with the assumptions that: :(\neg B \to \neg A)\land A Here, we also know that B is either true or not true. If B is not true, then A is also not true. However, it is given that A is true, so the assumption that B is not true leads to a contradiction, which means that it is not the case that B is not true. Therefore, B must be true: :(\neg B \to \neg A) \to (A \to B) Combining the two proved statements together, we obtain the sought-after logical equivalence between a conditional and its contrapositive: :(A \to B) \equiv (\neg B \to \neg A)


More rigorous proof of the equivalence of contrapositives

Logical equivalence between two propositions means that they are true together or false together. To prove that contrapositives are logically equivalent, we need to understand when material implication is true or false. :P \to Q This is only false when P is true and Q is false. Therefore, we can reduce this proposition to the statement "False when P and not-Q" (i.e. "True when it is not the case that P and not-Q"): :\neg(P \land \neg Q) The elements of a conjunction can be reversed with no effect (by commutativity): :\neg(\neg Q \land P) We define R as equal to "\neg Q", and S as equal to \neg P (from this, \neg S is equal to \neg\neg P, which is equal to just P): :\neg(R \land \neg S) This reads "It is not the case that (''R'' is true and ''S'' is false)", which is the definition of a material conditional. We can then make this substitution: :R \to S By reverting ''R'' and ''S'' back into P and Q, we then obtain the desired contrapositive: :\neg Q \to \neg P


In classical propositional calculus system

In Hilbert-style deductive systems for propositional logic, only one side of the transposition is taken as an axiom, and the other is a theorem. We describe a proof of this theorem in the system of three axioms proposed by
Jan Łukasiewicz Jan Łukasiewicz (; 21 December 1878 – 13 February 1956) was a Polish logician and philosopher who is best known for Polish notation and Łukasiewicz logic. His work centred on philosophical logic, mathematical logic and history of logi ...
: :A1. \phi \to \left( \psi \to \phi \right) :A2. \left( \phi \to \left( \psi \rightarrow \xi \right) \right) \to \left( \left( \phi \to \psi \right) \to \left( \phi \to \xi \right) \right) :A3. \left ( \lnot \phi \to \lnot \psi \right) \to \left( \psi \to \phi \right) (A3) already gives one of the directions of the transposition. The other side, ( \psi \to \phi ) \to ( \neg \phi \to \neg \psi), is proven below, using the following lemmas proven here: : (DN1) \neg \neg p \to p - Double negation (one direction) : (DN2) p \to \neg \neg p - Double negation (another direction) : (HS1) (q \to r) \to ((p \to q) \to (p \to r)) - one form of Hypothetical syllogism : (HS2) (p \to q) \to ((q \to r) \to (p \to r)) - another form of Hypothetical
syllogism A syllogism (, ''syllogismos'', 'conclusion, inference') is a kind of logical argument that applies deductive reasoning to arrive at a conclusion based on two propositions that are asserted or assumed to be true. In its earliest form (defin ...
. We also use the method of the hypothetical syllogism metatheorem as a shorthand for several proof steps. The proof is as follows: # q \to \neg\neg q       (instance of the (DN2)) # (q \to \neg\neg q) \to ((p \to q) \to (p \to \neg\neg q))       (instance of the (HS1) # (p \to q) \to (p \to \neg\neg q)       (from (1) and (2) by modus ponens) # \neg\neg p \to p       (instance of the (DN1)) # (\neg\neg p \to p) \to ((p \to \neg\neg q) \to (\neg\neg p \to \neg\neg q))       (instance of the (HS2)) # (p \to \neg\neg q) \to (\neg\neg p \to \neg\neg q)       (from (4) and (5) by modus ponens) # (p \to q) \to (\neg\neg p \to \neg\neg q)       (from (3) and (6) using the hypothetical syllogism metatheorem) # (\neg\neg p \to \neg\neg q) \to (\neg q \to \neg p)       (instance of (A3)) # (p \to q) \to (\neg q \to \neg p)       (from (7) and (8) using the hypothetical syllogism metatheorem)


Comparisons


Examples

Take the statement "''All red objects have color.''" This can be equivalently expressed as "''If an object is red, then it has color.''" * The contrapositive is "''If an object does not have color, then it is not red.''" This follows logically from our initial statement and, like it, it is evidently true. * The inverse is "''If an object is not red, then it does not have color.''" An object which is blue is not red, and still has color. Therefore, in this case the inverse is false. * The converse is "''If an object has color, then it is red.''" Objects can have other colors, so the converse of our statement is false. * The negation is "''There exists a red object that does not have color.''" This statement is false because the initial statement which it negates is true. In other words, the contrapositive is logically equivalent to a given conditional statement, though not sufficient for a biconditional. Similarly, take the statement "''All quadrilaterals have four sides,''" or equivalently expressed "''If a polygon is a quadrilateral, then it has four sides.''" * The contrapositive is "''If a polygon does not have four sides, then it is not a quadrilateral.''" This follows logically, and as a rule, contrapositives share the
truth value In logic and mathematics, a truth value, sometimes called a logical value, is a value indicating the relation of a proposition to truth, which in classical logic has only two possible values ('' true'' or '' false''). Truth values are used in ...
of their conditional. * The inverse is "''If a polygon is not a quadrilateral, then it does not have four sides.''" In this case, unlike the last example, the inverse of the statement is true. * The converse is "''If a polygon has four sides, then it is a quadrilateral.''" Again, in this case, unlike the last example, the converse of the statement is true. * The negation is "''There is at least one quadrilateral that does not have four sides.''" This statement is clearly false. Since the statement and the converse are both true, it is called a biconditional, and can be expressed as "A polygon is a quadrilateral ''if, and only if,'' it has four sides." (The phrase ''if and only if'' is sometimes abbreviated as ''iff''.) That is, having four sides is both necessary to be a quadrilateral, and alone sufficient to deem it a quadrilateral.


Truth

* If a statement is true, then its contrapositive is true (and vice versa). * If a statement is false, then its contrapositive is false (and vice versa). * If a statement's inverse is true, then its converse is true (and vice versa). * If a statement's inverse is false, then its converse is false (and vice versa). * If a statement's negation is false, then the statement is true (and vice versa). * If a statement (or its contrapositive) and the inverse (or the converse) are both true or both false, then it is known as a
logical biconditional In logic and mathematics, the logical biconditional, also known as material biconditional or equivalence or bidirectional implication or biimplication or bientailment, is the logical connective used to conjoin two statements P and Q to form th ...
.


Traditional logic

In
traditional logic In logic and formal semantics, term logic, also known as traditional logic, syllogistic logic or Aristotelian logic, is a loose name for an approach to formal logic that began with Aristotle and was developed further in ancient history mostly by ...
, contraposition is a form of immediate inference in which a
proposition A proposition is a statement that can be either true or false. It is a central concept in the philosophy of language, semantics, logic, and related fields. Propositions are the object s denoted by declarative sentences; for example, "The sky ...
is inferred from another and where the former has for its subject the contradictory of the original logical proposition's predicate. In some cases, contraposition involves a change of the former's quality (i.e. affirmation or negation). For its symbolic expression in modern logic, see the rule of transposition. Contraposition also has philosophical application distinct from the other traditional
inference Inferences are steps in logical reasoning, moving from premises to logical consequences; etymologically, the word '' infer'' means to "carry forward". Inference is theoretically traditionally divided into deduction and induction, a distinct ...
processes of conversion and
obversion In traditional logic, obversion is a "type of immediate inference in which from a given proposition another proposition is inferred whose subject is the same as the original subject, whose predicate is the contradictory of the original predicate, ...
where equivocation varies with different proposition types. In
traditional logic In logic and formal semantics, term logic, also known as traditional logic, syllogistic logic or Aristotelian logic, is a loose name for an approach to formal logic that began with Aristotle and was developed further in ancient history mostly by ...
, the process of contraposition is a schema composed of several steps of inference involving
categorical proposition In logic, a categorical proposition, or categorical statement, is a proposition that asserts or denies that all or some of the members of one category (the ''subject term'') are included in another (the ''predicate term''). The study of arguments ...
s and classes. A categorical proposition contains a subject and predicate where the existential impact of the copula implies the proposition as referring to a class ''with at least one member'', in contrast to the conditional form of hypothetical or materially implicative propositions, which are compounds of other propositions, e.g. "If P, then Q" (P and Q are both propositions), and their existential impact is dependent upon further propositions where quantification existence is instantiated (existential instantiation), not on the hypothetical or materially implicative propositions themselves. ''Full contraposition'' is the simultaneous interchange and
negation In logic, negation, also called the logical not or logical complement, is an operation (mathematics), operation that takes a Proposition (mathematics), proposition P to another proposition "not P", written \neg P, \mathord P, P^\prime or \over ...
of the subject and predicate, and is valid only for the type "A" and type "O" propositions of
Aristotelian logic In logic and formal semantics, term logic, also known as traditional logic, syllogistic logic or Aristotelian logic, is a loose name for an approach to formal logic that began with Aristotle and was developed further in ancient history mostly b ...
, while it is conditionally valid for "E" type propositions if a change in quantity from universal to particular is made (''partial contraposition''). Since the valid obverse is obtained for all the four types (A, E, I, and O types) of traditional propositions, yielding propositions with the contradictory of the original predicate, (full) contraposition is obtained by converting the obvert of the original proposition. For "E" statements, partial contraposition can be obtained by additionally making a change in quantity. Because ''nothing is said in the definition of contraposition with regard to the predicate of the inferred proposition'', it can be either the original subject, or its contradictory, resulting in two contrapositives which are the obverts of one another in the "A", "O", and "E" type propositions. By example: from an original, 'A' type categorical proposition, : ''All residents are voters'', which presupposes that all classes have members and the existential import presumed in the form of categorical propositions, one can derive first by
obversion In traditional logic, obversion is a "type of immediate inference in which from a given proposition another proposition is inferred whose subject is the same as the original subject, whose predicate is the contradictory of the original predicate, ...
the 'E' type proposition, :''No residents are non-voters''. The contrapositive of the original proposition is then derived by conversion to another 'E' type proposition, :''No non-voters are residents''. The process is completed by further obversion resulting in the 'A' type proposition that is the obverted contrapositive of the original proposition, :''All non-voters are non-residents''. The schema of contraposition: Notice that contraposition is a valid form of immediate inference only when applied to "A" and "O" propositions. It is not valid for "I" propositions, where the obverse is an "O" proposition which has no valid converse. The contraposition of the "E" proposition is valid only with limitations (''per accidens''). This is because the obverse of the "E" proposition is an "A" proposition which cannot be validly converted except by limitation, that is, contraposition plus a change in the quantity of the proposition from universal to particular. Also, notice that contraposition is a method of inference which may require the use of other rules of inference. The contrapositive is the product of the method of contraposition, with different outcomes depending upon whether the contraposition is full, or partial. The successive applications of conversion and obversion within the process of contraposition may be given by a variety of names. The process of the
logical equivalence In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending ...
of a statement and its contrapositive as defined in traditional class logic is ''not'' one of the axioms of
propositional logic The propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. Sometimes, it is called ''first-order'' propositional logic to contra ...
. In traditional logic there is more than one contrapositive inferred from each original statement. In regard to the "A" proposition this is circumvented in the symbolism of modern logic by the rule of transposition, or the law of contraposition. In its technical usage within the field of philosophic logic, the term "contraposition" may be limited by logicians (e.g. Irving Copi, Susan Stebbing) to traditional logic and categorical propositions. In this sense the use of the term "contraposition" is usually referred to by "transposition" when applied to hypothetical propositions or material implications.


Form of transposition

In the inferred proposition, the consequent is the contradictory of the antecedent in the original proposition, and the antecedent of the inferred proposition is the contradictory of the consequent of the original proposition. The symbol for material implication signifies the proposition as a hypothetical, or the "if–then" form, e.g. "if ''P'', then ''Q''". The biconditional statement of the rule of transposition (↔) refers to the relation between hypothetical (→) ''propositions'', with each proposition including an antecedent and consequential term. As a matter of logical inference, to transpose or convert the terms of one proposition requires the conversion of the terms of the propositions on both sides of the biconditional relationship, meaning that transposing or converting to requires that the other proposition, to be transposed or converted to Otherwise, converting the terms of one proposition and not the other renders the rule invalid, violating the sufficient condition and necessary condition of the terms of the propositions, where the violation is that the changed proposition commits the fallacy of denying the antecedent or affirming the consequent by means of illicit conversion. The truth of the rule of transposition is dependent upon the relations of sufficient condition and necessary condition in logic.


Sufficient condition

In the proposition "If ''P'', then ''Q''", the occurrence of ''P'' is sufficient reason for the occurrence of ''Q''. ''P'', as an individual or a class, materially implicates ''Q'', but the relation of ''Q'' to ''P'' is such that the converse proposition "If ''Q'', then ''P''" does not necessarily have sufficient condition. The rule of inference for sufficient condition is ''
modus ponens In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
'', which is an argument for conditional implication: # Premise (1): If ''P'', then ''Q'' # Premise (2): ''P'' # Conclusion: Therefore, ''Q''


Necessary condition

Since the converse of premise (1) is not valid, all that can be stated of the relationship of ''P'' and ''Q'' is that in the absence of ''Q'', ''P'' does not occur, meaning that ''Q'' is the necessary condition for ''P''. The rule of inference for necessary condition is '' modus tollens'': # Premise (1): If ''P'', then ''Q'' # Premise (2): not ''Q'' # Conclusion: Therefore, not ''P''


Necessity and sufficiency example

An example traditionally used by logicians contrasting sufficient and necessary conditions is the statement "If there is fire, then oxygen is present". An oxygenated environment is necessary for fire or combustion, but simply because there is an oxygenated environment does not necessarily mean that fire or combustion is occurring. While one can infer that fire stipulates the presence of oxygen, from the presence of oxygen the converse "If there is oxygen present, then fire is present" cannot be inferred. All that can be inferred from the original proposition is that "If oxygen is not present, then there cannot be fire".


Relationship of propositions

The symbol for the biconditional ("↔") signifies the relationship between the propositions is both necessary and sufficient, and is verbalized as "
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
", or, according to the example "If ''P'', then ''Q'' 'if and only if' if not ''Q'', then not ''P''". Necessary and sufficient conditions can be explained by analogy in terms of the concepts and the rules of immediate inference of traditional logic. In the categorical proposition "All ''S'' is ''P''", the subject term ''S'' is said to be distributed, that is, all members of its class are exhausted in its expression. Conversely, the predicate term ''P'' cannot be said to be distributed, or exhausted in its expression because it is indeterminate whether every instance of a member of ''P'' as a class is also a member of ''S'' as a class. All that can be validly inferred is that "Some ''P'' are ''S''". Thus, the type "A" proposition "All ''P'' is ''S''" cannot be inferred by conversion from the original type "A" proposition "All ''S'' is ''P''". All that can be inferred is the type "A" proposition "All non-''P'' is non-''S''" (note that (''P'' → ''Q'') and (¬''Q'' → ¬''P'') are both type "A" propositions). Grammatically, one cannot infer "all mortals are men" from "All men are mortal". An type "A" proposition can only be immediately inferred by conversion when both the subject and predicate are distributed, as in the inference "All bachelors are unmarried men" from "All unmarried men are bachelors".


Distinguished from transposition

While most authors use the terms for the same thing, some authors distinguish transposition from contraposition. In
traditional logic In logic and formal semantics, term logic, also known as traditional logic, syllogistic logic or Aristotelian logic, is a loose name for an approach to formal logic that began with Aristotle and was developed further in ancient history mostly by ...
the reasoning process of transposition as a rule of inference is applied to categorical propositions through contraposition and
obversion In traditional logic, obversion is a "type of immediate inference in which from a given proposition another proposition is inferred whose subject is the same as the original subject, whose predicate is the contradictory of the original predicate, ...
, a series of immediate inferences where the rule of obversion is first applied to the original categorical proposition "All ''S'' is ''P''"; yielding the obverse "No ''S'' is non-''P''". In the obversion of the original proposition to a type "E" proposition, both terms become distributed. The obverse is then converted, resulting in "No non-''P'' is ''S''", maintaining distribution of both terms. The "No non-''P'' is ''S''" is again obverted, resulting in the ontrapositive"All non-''P'' is non-''S''". Since nothing is said in the definition of contraposition with regard to the predicate of the inferred proposition, it is permissible that it could be the original subject or its contradictory, and the predicate term of the resulting type "A" proposition is again undistributed. This results in two contrapositives, one where the predicate term is distributed, and another where the predicate term is undistributed. Contraposition is a type of immediate inference in which from a given categorical proposition another categorical proposition is inferred which has as its subject the contradictory of the original predicate. Since nothing is said in the definition of contraposition with regard to the predicate of the inferred proposition, it is permissible that it could be the original subject or its contradictory. This is in contradistinction to the form of the propositions of transposition, which may be material implication, or a hypothetical statement. The difference is that in its application to categorical propositions the result of contraposition is two contrapositives, each being the obvert of the other, i.e. "No non-''P'' is ''S''" and "All non-''P'' is non-''S''". The distinction between the two contrapositives is absorbed and eliminated in the principle of transposition, which presupposes the "mediate inferences" of contraposition and is also referred to as the "law of contraposition".


Proof by contrapositive

Because the contrapositive of a statement always has the same truth value (truth or falsity) as the statement itself, it can be a powerful tool for proving mathematical
theorem In mathematics and formal logic, a theorem is a statement (logic), statement that has been Mathematical proof, proven, or can be proven. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to esta ...
s (especially if the truth of the contrapositive is easier to establish than the truth of the statement itself). A proof by contrapositive is a direct proof of the contrapositive of a statement. However, indirect methods such as
proof by contradiction In logic, proof by contradiction is a form of proof that establishes the truth or the validity of a proposition by showing that assuming the proposition to be false leads to a contradiction. Although it is quite freely used in mathematical pr ...
can also be used with contraposition, as, for example, in the proof of the irrationality of the
square root of 2 The square root of 2 (approximately 1.4142) is the positive real number that, when multiplied by itself or squared, equals the number 2. It may be written as \sqrt or 2^. It is an algebraic number, and therefore not a transcendental number. Te ...
. By the definition of a
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example, The set of all ...
, the statement can be made that "''If \sqrt is rational, then it can be expressed as an
irreducible fraction An irreducible fraction (or fraction in lowest terms, simplest form or reduced fraction) is a fraction in which the numerator and denominator are integers that have no other common divisors than 1 (and −1, when negative numbers are considered). ...
''". This statement is true because it is a restatement of a definition. The contrapositive of this statement is "''If \sqrt cannot be expressed as an irreducible fraction, then it is not rational''". This contrapositive, like the original statement, is also true. Therefore, if it can be proven that \sqrt cannot be expressed as an irreducible fraction, then it must be the case that \sqrt is not a rational number. The latter can be proved by contradiction. The previous example employed the contrapositive of a definition to prove a theorem. One can also prove a theorem by proving the contrapositive of the theorem's statement. To prove that ''if a positive integer ''N'' is a non-square number, its square root is irrational'', we can equivalently prove its contrapositive, that ''if a positive integer ''N'' has a square root that is rational, then ''N'' is a square number.'' This can be shown by setting equal to the rational expression ''a/b'' with ''a'' and ''b'' being positive integers with no common prime factor, and squaring to obtain ''N'' = ''a''2/''b''2 and noting that since ''N'' is a positive integer ''b''=1 so that ''N'' = ''a''2, a square number. In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, proof by contrapositive, or proof by contraposition, is a
rule of inference Rules of inference are ways of deriving conclusions from premises. They are integral parts of formal logic, serving as norms of the Logical form, logical structure of Validity (logic), valid arguments. If an argument with true premises follows a ...
used in proofs, where one infers a conditional statement from its contrapositive. In other words, the conclusion "if ''A'', then ''B''" is inferred by constructing a proof of the claim "if not ''B'', then not ''A''" instead. More often than not, this approach is preferred if the contrapositive is easier to prove than the original conditional statement itself. Logically, the validity of proof by contrapositive can be demonstrated by the use of the following
truth table A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, Boolean functions, and propositional calculus—which sets out the functional values of logical expressions on each of their functional arg ...
, where it is shown that ''p'' → ''q'' and ''\lnotq'' → ''\lnotp'' share the same truth values in all scenarios:


Difference with proof by contradiction

Proof by contradiction In logic, proof by contradiction is a form of proof that establishes the truth or the validity of a proposition by showing that assuming the proposition to be false leads to a contradiction. Although it is quite freely used in mathematical pr ...
: Assume (for contradiction) that \neg A is true. Use this assumption to prove a contradiction. It follows that \neg A is false, so A is true. Proof by contrapositive: To prove A \to B, prove its contrapositive statement, which is \neg B \to \neg A.


Example

Let x be an integer. :To prove: ''If ''x^2 ''is even, then ''x'' is even. Although a direct proof can be given, we choose to prove this statement by contraposition. The contrapositive of the above statement is: :''If ''x'' is not even, then ''x^2 ''is not even.'' This latter statement can be proven as follows: suppose that ''x'' is not even, then ''x'' is odd. The product of two odd numbers is odd, hence x^2=x\cdot x is odd. Thus x^2 is not even. Having proved the contrapositive, we can then infer that the original statement is true.


In nonclassical logics


Intuitionistic logic

In intuitionistic logic, the statement P \to Q cannot be proven to be equivalent to \lnot Q \to \lnot P. We can prove that P \to Q implies \lnot Q \to \lnot P (see below) without additional assumptions, but the reverse implication, from \lnot Q \to \lnot P to P \to Q, requires knowing \lnot \lnot Q \to Q, which follows from the law of the excluded middle or an equivalent axiom.
Assume P \to Q (initial assumption) : Assume Q \to \bot :: From P \to Q and Q \to \bot, conclude P \to \bot : Discharge assumption; conclude (Q \to \bot) \to (P \to \bot) : Turning (A \to \bot) into \lnot A, conclude \lnot Q \to \lnot P Discharge assumption; conclude (P \to Q) \to (\lnot Q \to \lnot P).


Subjective logic

''Contraposition'' represents an instance of the subjective Bayes' theorem in subjective logic expressed as: :(\omega^_,\omega^_) = (\omega^_,\omega^_)\,\widetilde\, a_\,, where (\omega^_,\omega^_) denotes a pair of binomial conditional opinions given by source A. The parameter a_ denotes the
base rate In probability and statistics, the base rate (also known as prior probabilities) is the class of probabilities unconditional on "featural evidence" ( likelihoods). It is the proportion of individuals in a population who have a certain characte ...
(aka. the
prior probability A prior probability distribution of an uncertain quantity, simply called the prior, is its assumed probability distribution before some evidence is taken into account. For example, the prior could be the probability distribution representing the ...
) of P. The pair of derivative inverted conditional opinions is denoted (\omega^_,\omega^_). The conditional opinion \omega^_ generalizes the logical statement P \to Q, i.e. in addition to assigning TRUE or FALSE the source A can assign any subjective opinion to the statement. The case where \omega^_ is an absolute TRUE opinion is equivalent to source A saying that P\to Q is TRUE, and the case where \omega^_ is an absolute FALSE opinion is equivalent to source A saying that P\to Q is FALSE. In the case when the conditional opinion \omega^_ is absolute TRUE the subjective Bayes' theorem operator \widetilde of subjective logic produces an absolute FALSE derivative conditional opinion \omega^_ and thereby an absolute TRUE derivative conditional opinion \omega^_ which is equivalent to \lnot Q \to \lnot P being TRUE. Hence, the subjective Bayes' theorem represents a generalization of both ''contraposition'' and
Bayes' theorem Bayes' theorem (alternatively Bayes' law or Bayes' rule, after Thomas Bayes) gives a mathematical rule for inverting Conditional probability, conditional probabilities, allowing one to find the probability of a cause given its effect. For exampl ...
.


In probability theory

''Contraposition'' represents an instance of
Bayes' theorem Bayes' theorem (alternatively Bayes' law or Bayes' rule, after Thomas Bayes) gives a mathematical rule for inverting Conditional probability, conditional probabilities, allowing one to find the probability of a cause given its effect. For exampl ...
which in a specific form can be expressed as: :\Pr(\lnot P\mid \lnot Q) = \frac. In the equation above the
conditional probability In probability theory, conditional probability is a measure of the probability of an Event (probability theory), event occurring, given that another event (by assumption, presumption, assertion or evidence) is already known to have occurred. This ...
\Pr(\lnot Q\mid P) generalizes the logical statement P \to \lnot Q, i.e. in addition to assigning TRUE or FALSE we can also assign any probability to the statement. The term a(P) denotes the
base rate In probability and statistics, the base rate (also known as prior probabilities) is the class of probabilities unconditional on "featural evidence" ( likelihoods). It is the proportion of individuals in a population who have a certain characte ...
(aka. the
prior probability A prior probability distribution of an uncertain quantity, simply called the prior, is its assumed probability distribution before some evidence is taken into account. For example, the prior could be the probability distribution representing the ...
) of P. Assume that \Pr(\lnot Q \mid P) = 1 is equivalent to P\to \lnot Q being TRUE, and that \Pr(\lnot Q \mid P) = 0 is equivalent to P \to \lnot Q being FALSE. It is then easy to see that \Pr(\lnot P \mid \lnot Q) = 1 when \Pr(Q\mid P) = 1 i.e. when P \to Q is TRUE. This is because \Pr(\lnot Q\mid P) = 1 - \Pr(Q\mid P) = 0 so that the fraction on the right-hand side of the equation above is equal to 1, and hence \Pr(\lnot P\mid \lnot Q) = 1 which is equivalent to \lnot Q \to \lnot P being TRUE. Hence,
Bayes' theorem Bayes' theorem (alternatively Bayes' law or Bayes' rule, after Thomas Bayes) gives a mathematical rule for inverting Conditional probability, conditional probabilities, allowing one to find the probability of a cause given its effect. For exampl ...
represents a generalization of ''contraposition''.Audun Jøsang 2016:2


See also

* ''
Reductio ad absurdum In logic, (Latin for "reduction to absurdity"), also known as (Latin for "argument to absurdity") or ''apagogical argument'', is the form of argument that attempts to establish a claim by showing that the opposite scenario would lead to absur ...
'' *
Logical equivalence In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending ...


References

* * * * * * * * *


Sources

* Audun Jøsang, 2016, ''Subjective Logic; A formalism for Reasoning Under Uncertainty'' Springer, Cham, * Blumberg, Albert E. "Logic, Modern". ''Encyclopedia of Philosophy'', Vol.5, Macmillan, 1973. * Brody, Bobuch A. "Glossary of Logical Terms". Encyclopedia of Philosophy. Vol. 5-6, p. 61. Macmillan, 1973. * Copi, Irving. ''Introduction to Logic''. MacMillan, 1953. * Copi, Irving. ''Symbolic Logic''. MacMillan, 1979, fifth edition. * Prior, A.N. "Logic, Traditional". ''Encyclopedia of Philosophy'', Vol.5, Macmillan, 1973. * Stebbing, Susan. ''A Modern Introduction to Logic''. Cromwell Company, 1931.


External links

*
Improper Transposition
(Fallacy Files) {{Mathematical logic Mathematical logic Theorems in propositional logic