Modus ponens: For any two formulas $F$ and $G$, if $F\Rightarrow G$ and $F$ are both known to be true then you may deduce (by modus ponens) that $G$ is also true. More precisely, under any interpretation in which $F\Rightarrow G$ is true and $F$ is true, $G$ is also true.
We saw two examples last class of modus ponens in action. Here's one more super-simple example to remind you:
| Given: $u \wedge \neg v \Rightarrow (w \vee z)$ and $u \wedge \neg v$, prove $w \vee z$. | ||
| Things I know are true | How I know they are true | |
| 1: | $(u \wedge \neg v) \Rightarrow (w \vee z)$ | [Given] |
| 2: | $u \wedge \neg v$ | [Given] |
| 4: | $w \vee z$ | [Modus ponens with 1 and 2] |
Given: x => ~y and x & (z|y), prove ~y. 1: x => ~y [Given] 2: x & (z|y) [Given] 3: x & (z|y) => x [Tautology A & B => A with A = x, B = z|y] 4: x [Modus ponens on 3 and 2] 5: ~y [Modus ponens on 1 and 3]
And-elimination: if $A \wedge B$ is known to be true, then $A$ is true. [This deduction rule is valid because $A \wedge B \Rightarrow A$ is a tautology (do a truth table check if you need to!).]
Or-introduction: if $A$ is known to be true, then $A \vee B$ is true. [This deduction rule is valid because $A \Rightarrow (A \vee B)$ is a tautology (do a truth table check if you need to!).]
And-introduction: if $A$ is known to be true and $B$ is known to be true, then $A \wedge B$ is true. [Yes this is very obvious!]
Warning There is no "Or-elimination" rule!
Here is a simple proof using some of our deduction rules:
Given: x => ~y and x & (z|y), prove ~y.
1: x => ~y [Given]
2: x & (z|y) [Given]
3: x [And-elimination on 2] Note: A&B=>A is the tatuology here, with A=x, B=(z|y)
4: ~y [Modus ponens on 1 and 3]
Given: b|d => c and ~(a|~b), prove c 1: b|d => c [Given] 2: ~(a | ~b) [Given] 3: ~a & ~~b [Rewriting with De Morgan's laws on 2] 4: ~~b [And-elimination on 3] 5: b [Rewriting using double negation on 4] 6: b|d [Or-introduction on 5] 7: c [Modus Ponens on 1 and 6]ACTIVITY
Given x => y, ~x => z, and ~z, prove y 1: x => y 2: ~x => z 3: ~z => ~~x 4: ~z 5: ~~x 6: x 7: y
Given y => z, x and x=>(y|w), prove z 1: x => (y|w) 2: x 3: y|w 4: y 5: y => z 6: z
EXAMPLE PROBLEM ABOUT LOGICAL ARGUMENT Suppose traffic law in a town states: LAW: if 20 more more mph over speed limit, then fine must be greater than or equal to $150 Consider the following two arguments (each is about a different scenario): ARG1: "My fine was less than $150, therefore I must not have been 20 or more mph over the limit!" ARG2: "Your fine was greater than or equal to $150, therefore you were speeding by 20 or more mph!" One of these arguments is logically sound, the other is flawed. Which? Why? How to convince others that one is logically sound and the other is not?ARG1: Now let's try to see if our understanding of deduction in propositional logic can help us here.
LAW: if 20 more more mph over speed limit, then fine must be greater than or equal to $150
let A = "20 more more mph over speed limit"
let B = "fine greater than or equal to $150"
ARG1 is that given the LAW (which in prop. logic is A => B) and that the
person's fine was less than $150 (which in prop. logic is ~B),
they want to deduce that they were not going 20 or more over
the limit (which in prop. logic is ~A). Here is their
argument:
1: A => B [given]
2: ~B [given]
3: ~A [?????]
The conclusion is valid if (A => B) ⇔ (~B => ~A) is a tautology
(i.e. that 1 and 2 imply 3). It is ... it is the equivalence
of the contrapositive (or you can check with truth table!),
so the argument is valid. The full argument is thus:
1: A => B [given]
2: ~B [given]
3: ~B => ~A [contrapositive of 1]
4: ~A [modus ponens on 3 and 2]
ARG2: Now let's try to see if our understanding of deduction in
propositional logic can help us with ARG2.
LAW: if 20 more more mph over speed limit, then fine must be greater than or equal to $150
let A = "20 more more mph over speed limit"
let B = "fine greater than or equal to $150"
ARG2 is that given the LAW (which in prop. logic is A => B) and that
your fine is greater than or equal to $150 (which in prop. logic is B),
they want to deduce that you were speeding by 20 or more mph
(which in prop. logic is A). So here is their argument:
1: A => B [given]
2: B [given]
3: A [?????]
The conclusion is valid if (A => B) & B => A is a tautology
(i.e. that 1 and 2 imply 3) ... but it is not! In fact, the
truth table for (A => B) & B => A shows us that A=false,B=true
is an interpretation under which (A => B) & B => A evaluates
to false. Thus, A is not a logical consequencde of A => B and
B, and ARG2 is an invalid argument!
Note: this is an example of a common mistake in logical
reasoning. Essentially this argument assumes that A=>B being
true implies that B=>A is true... which it is not! "B => A"
is called the "converse" of A=>B. And it is not true that a
statement implies its converse!