Logic Slides Part 2
Logic Slides Part 2
p q p˄q
T T T
T F F
F T F
F F F
2
Conjunction
The statement p ^ q is true if both p and q are
true; otherwise p ^ q is false
p q p˄q
T T T
So if statement “p” is: “It is Sunday”, and
T F F
“q” is: “John is working.”
F T F
Then p q is equivalent to the statement, It F F F
is Sunday, and John is working.
p q pq
T T T
T F F Note, if p is false, the p q statement
F T T really makes no claims whatsoever about
F F T q. Hence, it cannot be said to be false, so
it is deemed true.
6
Condition or Implication
p q pq
T T T Note, if p is false, the p q statement
T F F really makes no claims whatsoever about
q. Hence, it cannot be said to be false, so
F T T
it is deemed true.
F F T
Example: if statement “p” is: “You invest…”, and “q” is: “You get rich”
Then p q is saying (If you invest in Widget, then you’ll get rich).
However, if you don’t invest in Widget in the first place (p is false), then
you’ve got nothing to say about p q.
If you can’t say for sure it’s false, it’s deemed true. 7
Condition or Implication
If I win the lottery, then I will travel
around the world.
p: I win the lottery
I win the lottery (T) and I travel
q: I travel around the world
around the world (T): p q (T)
pq
p q pq I win the lottery (T) and I travel
T T T around the world (F): p q (F)
T F F
I win the lottery (F) and I travel
F T T
around the world (T): p q (T)
F F T
I win the lottery (F) and I travel
around the world (F): p q (T)
8
1) If you invest in Widget Incorporated, then you get rich.
2) You didn't invest in Widget Incorporated.
Therefore, you didn’t get rich.
Step 1) Break the premises into several statements (usually denoted by p, q, r, etc….)
p: You invest in Widget Incorporated.
q: You get rich.
Step 2) You express the premises and conclusion symbolically
pq
~p
\ ~q
• the premises are written above the line, the conclusion below
• p q means “If p, then q” …called a “conditional statement”
• ~ q (or ¬q) means “not q” …..a “negation statement”
• \ means “therefore”
Step 3) Construct a truth table
Step 4) Interpret the truth table
1) If you invest in Widgets Incorporated, then you get rich. pq
2) You didn't invest in Widgets Incorporated. ~p Premises
Therefore, you didn’t get rich.
\ ~q Conclusion
p: You invest in Widgets Incorporated.
q: You get rich.
Write a symbolic statement of the form:
[(premise 1)˄(premise 2)] Conclusion In this case, the argument is
invalid !!!
p q p q ~p ~q [(p q)˄(~p)] [(p q)˄(~p)] ~q
T T T F F F T
T F F F T F T
F T T T F T F
F F T T T T T
Table Interpretation
1) If you invest in Widgets Incorporated, then you get rich.
pq
2) You didn't invest in Widgets Incorporated.
~p
Therefore, you didn’t get rich.
p: You invest in Widgets Incorporated. \ ~q
q: You get rich.
p q p q ~p ~q
T T T F F
T F F F T In this case,
F T T T F the argument
F F T T T is invalid !!!
If there is any row for which all the premises are true, but the
conclusion is false, then the argument is invalid.
Section 3.7
In Exercises 15-42, page 194, translate each argument into
symbolic form. Then determine whether the argument is valid or
invalid.
15.
• If it is cold, my motorcycle will not start.
• My motorcycle started.
• \ It is not cold.
If it is cold, my motorcycle will not start.
My motorcycle started. p ~q
q Premises
\ It is not cold.
p: It is cold \ ~p Conclusion
q: My motorcycle will start
p q ~q p~q ~p
T T F F F
T F T T F The argument
F T F T T is valid !!!
F F T T T
If there is any row for which all the premises are true, but the conclusion is false, then the
argument is invalid. I cannot find such a row, therefore the argument is valid.
If it is cold, my motorcycle will not start.
My motorcycle started. p ~q
q Premises
\ It is not cold.
p: It is cold \ ~p Conclusion
q: My motorcycle will start
p q ~q p~q ~p
T T F F F
T F T T F The argument
F T F T T is valid !!!
F F T T T
If there is any row for which all the premises are true, but the conclusion is false, then the
argument is invalid. I cannot find such a row, therefore the argument is valid.
Or:
If it is cold, my motorcycle will not start. p ~q
q Premises
My motorcycle started.
\ It is not cold. \ ~p Conclusion
p: It is cold
q: My motorcycle will start
T T F F F F T
T F T T F F T
F T F T T T T
F F T T T F T
p q r ~q (~q ^ r) p (~ q ^ r)
T T T F F F
T T F F F F
T F T T T T
T F F T F F
F T T F F T
F T F F F T
F F T T T T
F F F T F T
One final note, if you have a complicated premise
Example: p (~q r )
To build the truth table, you would build it in several steps.
Eg. 1) Start with columns p, q, and r
2) Add a column for ~q
3) Add a column for (~q r)
4) Then finally add a column for p (~q r )
p q r ~q (~q ^ r) p (~ q ^ r)
T T T F F F
T T F F F F
T F T T T T
T F F T F F
F T T F F T
F T F F F T
F F T T T T
F F F T F T
Question
Tire is not flat. Therefore, I will not remove it and I will not take it to the gas
station.
Step 1: Break the premises into several statements
p: The tire is flat.
q: I have to remove the tire.
r: I have to take the tire to the gas station.
\ ~q ^ ~r Conclusion
• Step 3: Construct a truth table
• Step 4: Interpret the truth table
Premises Conclusion
p q r q^r p (q ^ r) ~p ~q ~r ~q ^ ~r
T T T T T F F F F
T T F F F F F T F
T F T F F F T F F
T F F F F F T T T
F T T T T T F F F
F T F F T T F T F
F F T F T T T F F
F F F F T T T T T
If there is any row for which all the premises are true, but the conclusion is false,
then the argument is invalid. This argument is INVALID.
• Step 3: Construct a truth table
• Step 4: Interpret the truth table
Premises Conclusion
p q r q^r p (q ^ r) ~p ~q ~r ~q ^ ~r
T T T T T F F F F
T T F F F F F T F
T F T F F F T F F
T F F F F F T T T
F T T T T T F F F
F T F F T T F T F
F F T F T T T F F
F F F F T T T T T
If there is any row for which all the premises are true, but the conclusion is false,
then the argument is invalid. This argument is INVALID.
Take home Question
I did not remove the tire or I did not take it to the gas
station. Therefore, the tire is not flat.
Biconditional
Truth table for the biconditional statement p ↔ q (if and only if)
p q p↔q
T T T
T F F A biconditional is true only when
F T F the component statements have the
F F T same truth value.
26
Logically Equivalent Statements
Assume that you have discount coupons for restaurants and other leisure
activities. Do the following two statements say the same thing?
a) It is not true that: the Pasta Bar accepts coupons and the Deli accepts
coupons
b) The Pasta Bar doesn’t accept coupons or the Deli does not accept
coupons.
Logically Equivalent Statements
Assume that you have discount coupons for restaurants and other
leisure activities. Do the following two statements say the same
thing?
a) It is not true that: the Pasta Bar accepts coupons and the Deli
accepts coupons
~ (p ^ q)
b) The Pasta Bar doesn’t accept coupons or the Deli does not accept
coupons.
(~p) (~q)
Logically Equivalent Statements
a) It is not true that: the Pasta Bar accepts coupons and the
Deli accepts coupons
~ (p ^ q)
b) The Pasta Bar doesn’t accept coupons or the Deli does not
accept coupons.
(~p) (~q)
p q p ^ q ~(p ^ q) p q ~p ~q ~p~q
T T T F T T F F F
T F F T T F F T T
F T F T F T T F T
F F F T F F T T T
Truth Tables: Rules
T T F F T T T T
T F F T F T F F
F T T F F T T F
F F T T F F T T
Do the following two statements say the same thing?
• If you enter Rasha’s office then you need to pet her cat
(Mango). p → q
• You enter Rasha’s office and you don’t pet her cat
(Mango). p ^ ~q
• If you enter Rasha’s office then you need to pet her cat
(Mango). p → q
• You enter Rasha’s office and you don’t pet her cat (Mango).
p ^ ~q
p q p→q ~q p ^ ~q
T T T F F
T F F T T
F T T F F
F F T T F
Exercises 16-42, page 194, translate each argument into symbolic
form. Then determine whether the argument is valid or invalid.