| Version current |
Version 4 |
| In logic, an \emph{inference rule} is a rule whereby one may correctly |
In logic, an \emph{inference rule} is a rule whereby one may correctly |
| draw a conclusion from one or more premises. For example, the law of |
draw a conclusion from one or more premises. For example, the law of |
| the contrapositive allows one to conclude a statement of the form |
the contrapositive allows one to conclude a statement of the form |
| \[ \neg Q \Rightarrow \neg P \] |
\[ \neg Q \Rightarrow \neg P \] |
| from a premise of the form |
from a premise of the form |
| \[ P \Rightarrow Q. \] |
\[ P \Rightarrow Q. \] |
| Here, `$P$' and `$Q$' are propositional variables, which can stand for |
Here, `$P$' and `$Q$' are propositional variables, which can stand for |
| arbitrary propositions. A popular way to indicate applications of rules |
arbitrary propositions. A typical application of the law of |
| of inference is to list the premises above a line and write the |
|
| conclusions below the line. For instance, we might indicate the law |
|
| of the contrapositive thus: |
|
| \[ |
|
| {P \Rightarrow Q \over \neg Q \Rightarrow \neg P} |
|
| \] |
|
|
|
|
|
| A typical application of the law of |
|
| contrapositive would be to conclude "If my clothes are dry, then it is not |
contrapositive would be to conclude "If my clothes are dry, then it is not |
| raining", from "If it rains, then my clothes will be wet." which could be |
raining", from "If it rains, then my clothes will be wet." (In this |
| expressed as follows using the notation described above: |
|
| \[ |
|
| {\hbox{If it rains, then my clothes will be wet.} \over |
|
| \hbox{If my clothes are dry, then it is not raining.}} |
|
| \] |
|
| (In this |
|
| instance, $P$ is ``It is raining'' and $Q$ is ``My clothes are dry''. |
instance, $P$ is ``It is raining'' and $Q$ is ``My clothes are dry''. |
|
|
| An important feature of rules of inference is that they are purely formal, |
An important feature of rules of inference is that they are purely formal, |
| which means that all that matters is the form of the expression; |
which means that all that matters is the form of the expression; |
| meaning is not a consideration in applying a rule of inference. |
meaning is not a consideration in applying a rule of inference. |
| Thus, the following are equally valid applications of the rule of |
Thus, the following are equally valid applications of the rule of |
| the contrapositive: |
the contrapositive: |
| \[ |
|
| {\hbox{If the jabberwocky is mimsy, then the toves blithe.} \over |
From "If the jabberwocky is mimsy, then the toves blithe", conclude |
| \hbox{If the toves are not blithing, then the jabberwocky is not mimsy.}} |
if "The toves are not blithing, then the jabberwocky is not mimsy". |
| \] |
|
| \medskip |
From "If my cat has a tail, then my cat is a dog", conclude |
| \[ |
"If my cat is not a dog, then my cat does not have a tail". |
| {\hbox{If my cat has a tail, then my cat is a dog.} \over |
|
| \hbox{If my cat is not a dog, then my cat does not have a tail.}} |
|
| \] |
|
|
|
| In the first example, the statements are nonsense and in the second |
In the first example, the statements are nonsense and in the second |
| example, the statements are false, but this doesn't matter --- both |
example, the statements are false, but this doesn't matter --- both |
| examples constitute valid apllications of the rule of the contrapositive. |
examples constitute valid apllications of the rule of the contrapositive. |
| Of course, in order to draw valid conclusions, we need to start with |
Of course, in order to draw valid conclusions, we need to start with |
| valid premises, but the point of these examples is clarify the |
valid premises, but the point of these examples is clarify the |
| distinction between valid statements and valid applications of |
distinction between valid statements and valid applications of |
| rules of inference. |
rules of inference. |