Download Valid and Invalid Arguments - Discrete Mathematics - Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!
1
Valid and Invalid Arguments
2
Modus Ponens example
- Assume you are given the following two statements: - “you are in this class” - “if you are in this class, you will get a grade”
- Let p = “you are in this class”
- Let q = “you will get a grade”
- By Modus Ponens, you can conclude that you will get a grade
q
p q
p
∴
→
4
Modus Tollens
- Assume that we know: ¬q and p → q
- Recall that p → q = ¬q → ¬p
- Thus, we know ¬q and ¬q → ¬p
- We can conclude ¬p
p
p q
q
∴ ¬
→
¬
5
Modus Tollens example
- Assume you are given the following two statements: - “you will not get a grade” - “if you are in this class, you will get a grade”
- Let p = “you are in this class”
- Let q = “you will get a grade”
- By Modus Tollens, you can conclude that you are not in this class
p
p q
q
∴ ¬
→
¬
7
Example of proof
- We have the hypotheses:
- “It is not sunny this afternoon and it is colder than yesterday”
- “We will go swimming only if it is sunny”
- “If we do not go swimming, then we will take a canoe trip”
- “If we take a canoe trip, then we will be home by sunset”
- Does this imply that “we will be home by sunset”?
- “It is not sunny this afternoon and it is colder than yesterday”
- “We will go swimming only if it is sunny”
- “If we do not go swimming, then we will take a canoe trip”
- “If we take a canoe trip, then we will be home by sunset”
- Does this imply that “we will be home by sunset”?
- “It is not sunny this afternoon and it is colder than yesterday”
- “We will go swimming only if it is sunny”
- “If we do not go swimming, then we will take a canoe trip”
- “If we take a canoe trip, then we will be home by sunset”
- Does this imply that “we will be home by sunset”?
- “It is not sunny this afternoon and it is colder than yesterday”
- “We will go swimming only if it is sunny”
- “If we do not go swimming, then we will take a canoe trip”
- “If we take a canoe trip, then we will be home by sunset”
- Does this imply that “we will be home by sunset”?
- “It is not sunny this afternoon and it is colder than yesterday”
- “We will go swimming only if it is sunny”
- “If we do not go swimming, then we will take a canoe trip”
- “If we take a canoe trip, then we will be home by sunset”
- Does this imply that “we will be home by sunset”?
- “It is not sunny this afternoon and it is colder than yesterday”
- “We will go swimming only if it is sunny”
- “If we do not go swimming, then we will take a canoe trip”
- “If we take a canoe trip, then we will be home by sunset”
- Does this imply that “we will be home by sunset”?
p
q
r
s
t
¬p ∧ q
r → p
¬r → s
s → t
t
8
Example of proof
- ¬p ∧ q 1 st^ hypothesis
- ¬p Simplification using step 1
- r → p 2 nd^ hypothesis
- ¬r Modus tollens using steps 2 & 3
- ¬r → s 3 rd^ hypothesis
- s Modus ponens using steps 4 & 5
- s → t 4 th^ hypothesis
- t Modus ponens using steps 6 & 7
p
p q ∴
∧ q
p q
p
∴
→ p
p q
q
∴ ¬
→
¬
10
More rules of inference
- Conjunction: if p and q are true separately, then p∧q is true
- Elimination: If p∨q is true, and p is false, then q must be true
- Transitivity: If p→q is true, and q→r is true, then p→r must be true
p q
q
p
∴ ∧
q
p
p q
∴
¬
∨
p r
q r
p q
∴ →
→
→
11
Even more rules of inference
- Proof by division into cases: if at least one of p or q is true, then r must be true
- Contradiction rule: If ¬p→c is true, we can conclude p (via the contra-positive)
- Resolution: If p∨q is true, and ¬p∨r is true, then q∨r must be true - Not in the textbook
p q p r q r r
∨ → → ∴
p c p
¬ → ∴
q r
p r
p q
∴ ∨
¬ ∨
∨
13
Example of proof
- ¬t 3 rd^ hypothesis
- s → t 2 nd^ hypothesis
- ¬s Modus tollens using steps 2 & 3
- (¬r∨¬f)→(s∧l) 1 st^ hypothesis
- ¬(s∧l)→¬(¬r∨¬f) Contrapositive of step 4
- (¬s∨¬l)→(r∧f) DeMorgan’s law and double negation law
- ¬s∨¬l Addition from step 3
- r∧f Modus ponens using steps 6 & 7
- r Simplification using step 8
p
p q ∴
∧ q
p q
p
∴
→ p
p q
q
∴ ¬
→
¬
p q
p ∴ ∨ Docsity.com
14
Modus Badus
- Consider the following:
- Is this true?
p q p→q q∧(p→q)) (q∧(p→q)) → p
T T T T T T F F F T F T T T F F F T F T
Not a
valid
rule!
p
p q
q
∴
→ p
q p
q
∴
¬ → ¬
Fallacy of affirming the conclusion
16
Modus Badus
- Consider the following:
- Is this true?
p q p→q ¬p∧(p→q)) (¬p∧(p→q)) → ¬q
T T T F T
T F F F T
F T T T F
F F T T T
Not a
valid
rule!
q
p q
p
∴ ¬
→
¬
Fallacy of denying the hypothesis
17
Modus Badus example
- Assume you are given the following two statements: - “you are not in this class” - “if you are in this class, you will get a grade”
- Let p = “you are in this class”
- Let q = “you will get a grade”
- You CANNOT conclude that you will not get a grade - You could be getting a grade for another class
q
p q
p
∴ ¬
→
¬