Propositional Logic in Business
Propositional Logic in Business
Chapter 6
Propositional Logic I: Statements
and connectives
1
TABLE OF CONTENTS
Word-string and Sentence
Statement and Proposition
Atomic and Compound Stateme
nts
Logical Connectives
More Logical Connectives
Symbolization of Statements
Well-formedness
Propositional Relations
2
WORD-STRING AND SENTENCE
Word String – a number of words put together
sequentially
Take home examination
Home take examination
Examination home take
3
STATEMENT AND PROPOSITION
Statement – a sentence which asserts something
John is older than Tom.
Tom is younger than John.
The age of John is greater than the age of Tom.
The age of Tom is smaller than the age of John.
4
STATEMENT AND PROPOSITION
In the following statements, different words are used, but
they are the same propositions
John is a bachelor( 單身漢 ).
John is an unmarried man.
While different statements can mean the same proposition, the same
statement can also be used to mean different propositions.
“You are wrong” – the meaning will be different when saying by
different persons
5
ATOMIC AND COMPOUND
STATEMENTS
Atomic Statement – statement that cannot be further
broken down
6
LOGICAL CONNECTIVES
We use logical connectives to join atomic statements to
make compound statements
7
LOGICAL CONNECTIVES
CONJUNCTIVE STATEMENT
A conjunctive statement (conjunction) is a compound statement
formed by more than one simple statement(conjunct)
Example 1
•p = Giraffe is tall
q = Elephant is heavy
p & q
8
LOGICAL CONNECTIVES
CONJUNCTIVE STATEMENT
Example 2
•p = Lemon is sour
p & q
9
LOGICAL CONNECTIVES
CONJUNCTIVE STATEMENT
Rule in conjunction
p q p &q
T T T
T F F
F T F
F F F
10
LOGICAL CONNECTIVES
CONJUNCTIVE STATEMENT
Example 3
You are young You are successful You are young and
(p) (q) successful (p & q)
T T T
T F F
F T F
F F F
11
LOGICAL CONNECTIVES
CONJUNCTIVE STATEMENT
Note the difference between the logical connective “&” and the
English word “and”
The word "and“, in English, sometimes has another use, conveying
the meaning "and subsequently“
The following two statements are not equivalent:
12
LOGICAL CONNECTIVES
DISJUNCTIVE STATEMENT
A compound statement is connected by the word “EITHER …
OR/OR” (inclusive)
Example 1
13
LOGICAL CONNECTIVES
DISJUNCTIVE STATEMENT
“The applicant has to be a university graduate or a member of
the professional society.”
p = The applicant has to be a university graduate
pvq
14
LOGICAL CONNECTIVES
DISJUNCTIVE STATEMENT
p = Christie is drawing
q = Nick is playing
pvq
15
LOGICAL CONNECTIVES
DISJUNCTIVE STATEMENT (cont’d)
Rule in disjunction(inclusive)
Example 1
Mary is a student of the Faculty of Engineering or the Faculty of
Medicine
p = Mary is a student of the Faculty of Engineering
q = Mary is a student of the Faculty of Medicine
pvq
17
LOGICAL CONNECTIVES
DISJUNCTIVE STATEMENT
Example 2
18
LOGICAL CONNECTIVES
DISJUNCTIVE STATEMENT (cont’d)
Rule in disjunction(exclusive)
Sam
Sam is
is drawing
singing Sam is running Either Sam is
(p) (q) drawing
singing or
running(p v q)
T T F
T F T
F T T
F F F
19
LOGICAL CONNECTIVES
NEGATIVE STATEMENT
Negative statement is the opposite of positive statement
e.g. The Sun rises from the East The Sun does not rise
from the East
The negation of a statement can be formed by prefixing it with the
phrase "it is not the case“
An alternative way to form the negation of a statement is to insert a
"not" into the statement
The negation of "The Sun moves" is "The Sun does not move“
20
LOGICAL CONNECTIVES
NEGATIVE STATEMENT
Rule in negation
21
LOGICAL CONNECTIVES
CONDITIONAL STATEMENT
A conditional statement is an if-then statement
24
Exercise 1:
Evaluate each proposition for the truth values: p is True, q is False,
r is False.
a.p & q
b.( p q ) r
c. (p q ) & ( p r)
A True
B False
C Undetermined
25
Exercise 1:
Evaluate each proposition for the truth values: p is True, q is False,
r is False.
a.p & q
b.( p q ) r
c. (p q ) & ( p r)
A True
B False
C Undetermined
26
Exercise 1:
Evaluate each proposition for the truth values: p is True, q is False,
r is False.
a.p & q
b.( p q ) r
c. (p q ) & ( p r)
A True
B False
C Undetermined
27
LOGICAL CONNECTIVES
Exercise 1 (Solution)
a.p & q
p & ~ q
T T T F
1 4 3 2
28
LOGICAL CONNECTIVES
Exercise 1 (Solution)
b.(p q ) r
( ~ p ~ q ) r
F T T T F T F
4 1 6 5 2 7 3
29
LOGICAL CONNECTIVES
Exercise 1 (Solution)
c.(p q ) & (p r)
~ ( p q ) & ( ~ p r )
F T T F F F T F F
6 1 5 2 9 7 3 8 4
30
LOGICAL CONNECTIVES
Exercise 2:
b.( p q ) p
c. (p q ) & ( p r)
31
Exercise 2:
Create the truth table for the following propositions:
a.(p & q) & p p q (p & q ) & ~p
T T
b.( p q ) p T F
c. (p q ) & ( p r) F T
F F
A T B T C F D T
F T F F
F F F T
T F F T
32
LOGICAL CONNECTIVES
Exercise 2 (Solution)
a.(p & q) & p
p q (p & q) & ~ p
T T T T T F F T
TT
T F T F F F F TT
F T F F T F T FF
F F F F F F T FF
33
Exercise 2:
Create the truth table for the following propositions:
a.(p & q) & p p q (p q ) p
T T
b.( p q ) p T F
c. (p q ) & ( p r) F T
F F
A T B F C T D T
F F F T
T F F T
T T F T
34
LOGICAL CONNECTIVES
Exercise 2 (Solution)
b.(p q ) p
35
Exercise 2:
p q R (p q ) & ( p r)
T T F
T F F
b.( p q ) p F T T
c. (p q ) & ( p r) F
F
T
F
F
F F F
A T B F C T D F
F F F F
F F T F
F F T T
T F T F
T F F F
F T F F
F T F T
36
LOGICAL CONNECTIVES
Exercise 2 (Solution)
c.(p q ) & ( p r)
37
LOGICAL CONNECTIVES
Exercise 3:
Show that the propositions “(p q) & r” and “(p & r) (q & r)” are
logically equivalent. (i.e. whether they have the same truth table).
38
Exercise 3:
Show that the propositions “(p q) & r” and “(p & r) (q & r)” are
logically equivalent. (i.e. whether they have the same truth table).
(p & r) (q &
p q r (p q) & r
r)
T T T
C Undetermined F F T
F F F
39
LOGICAL CONNECTIVES
Exercise 3 (Solution)
40
MORE LOGICAL CONNECTIVES
Basic logical connectives:
and
or
not
If
41
MORE LOGICAL CONNECTIVES
Only If
Example:
You can graduate (G) only if you pay (P) the tuition fee.
~P ~G, or
GP
42
MORE LOGICAL CONNECTIVES
A only if B can be written as if A then B or if not B then not A
In other words, for instance,
I go only if you go the same as If I go then you go
Also be the same as, If you don’t go then I don’t go
43
A if B can be written as if B then A
In other words, I go if you go the same as if you go then I go
MORE LOGICAL CONNECTIVES A only if B can be written as if A then B or if not B then not A
In other words, I go only if you go the same as
If I go then you go
If you don’t go then I don’t go
“if x then y” F F T
“A if B” ; “if B then A” ; “B A”
A B A only if B AB ~B ~A
“x only if y” T T T T T
T F F F F
Alan will go to the party ONLY IF Betty goes
F T T T T
“A only if B” ; “A B” ; “~B ~A”
F F T T T
44
MORE LOGICAL CONNECTIVES
If And Only If
45
MORE LOGICAL CONNECTIVES
Example:
Nancy studies for a postgraduate degree if and only if she gets a scholarship
Short notation:
SG (may use symbol instead of )
46
B A ~B ~A
T F F T
F T T F
“x if and only if y”, the same as (“x if y” & “x only if y”) F F T T
“A if and only if B” ; (“A if B” & “A only if B”) ; (“B A” & “A B”) ; (“B A” & “~B ~A”)
47
MORE LOGICAL CONNECTIVES
Rules in bi-conditional statement
Thus, if one is true and the other is false then the bi-conditional statement is
false
p q pq
T T T
T F F
F T F
F F T
48
MORE LOGICAL CONNECTIVES
Alan goes to the party IF Betty goes A B BA
A if B ; if B then A ; B A T T T
T F T
F T F
F F T
A only if B ; A B ; ~B ~A T T T T
T F F F
F T T T
F F T T
49
MORE LOGICAL CONNECTIVES
Unless
Example:
The picnic (P) will be held unless it rains (R).
P unless R, or
~R P
50
MORE LOGICAL CONNECTIVES
Unless (con’t)
P R ~R ~R P
“P unless R” the same as saying “P if not R”
i.e. if not R then P T T F T
T F T T
F T F T
F F T F
51
MORE LOGICAL CONNECTIVES
Neither Nor
Example:
Mary is neither clever (C) nor pretty (P).
~(C P) or (~C ~P)
52
MORE LOGICAL CONNECTIVES
Not Both
“not both x and y” means “it is not the case that x and y”
~(x & y)
Example:
Mary is not both clever (C) and pretty (P).
~(C & P) or (~C ~P)
53
MORE LOGICAL CONNECTIVES
Truth Values of Logical Connectives
A ? B
neither A nor B not both A and B
A B ~(A B) ~(A B)
if only if if and only if unless ~A ~B ~A ~B
T T T T T T T T T T F F
T F F T F F T F F T F T
F T F T T F F T F T F T
F F F F T T T T T F T T
♣ ♥ ♥ ♣
54
ANALYSIS OF COMPLICATED
STATEMENTS
Academic treatises ( 學術論文 ) as well as legal documents,
sometimes we find statements with rather complicated
( 複雜 ) logical structure
55
SYMBOLIZATION OF
STATEMENTS
Use symbol to represent a statement
Example, the statement
I enroll AIM as well as MK
57
SYMBOLIZATION OF
STATEMENTS
Another example:
He is HARD-WORKING but he is not SUCCESSFUL
Symbolized as
H & ~S
58
SYMBOLIZATION OF
STATEMENTS
Another example:
If Mok has a rich WIFE or a rich FATHER, then he does
not HAVE to work
Symbolized as
(W F) ~H
59
WELL-FORMEDNESS
A well-formed formula in propositional logic can define as
follows:
Each atomic statement is well-formed
The negation of a well-formed formula is well-formed
The conjunction of any two well-formed formulae is well-formed. If "p"
and "q" are well-formed (where "p" and "q" stand for any proposition,
atomic or compound), then "p & q" is well-formed
The disjunction of any two well-formed formulae is well-formed. If "p"
and "q" are well-formed, then "p q" is well-formed
If "p" and "q" are well-formed, then "p q" is well-formed
Any statement defined in terms of a well-formed formula (as defined in
the above ways) is well-formed
No other formula is well-formed
60
PROPOSITIONAL RELATIONS
Propositional calculus: truth table demonstrating the
equivalence of ~p q and p q (i.e. (~p q) (p q))
p q ~p ~p q pq (~p q) (p q)
T T F T T T
T F F F F T
F T T T T T
F F T T T T
61
PROPOSITIONAL RELATIONS
Exercise 4: Proof of Equivalence
Use truth tables to prove the equivalence of:
(p q) (~p q)
~(p q) (~p ~q)
~(p q) (~p ~q)
p (q r) (p q) (p r)
p (q r) (p q) (p r)
(p q) (q p)
(p q) (q p)
((p q) r) (p (q r))
((p q) r) (p (q r))
(p q) (~q ~p)
62
PROPOSITIONAL RELATIONS
Exercise 4 (Solution)
~(p q) (~p ~q)
P
p q (p q) ~(p q) ~p ~q (~p ~q) ~(p q) (~p ~q)
T T T F F F F T
T F T F F T F T
F T T F T F F T
F F F T T T T T
63
PROPOSITIONAL RELATIONS
Exercise 4 (Solution)
p (q r) (p q) (p r)
p q r (q r) (p q) (p r) p (q r) (p q) (p r) LHS RHS
T T T T T T T T T
T T F F T T T T T
T F T F T T T T T
T F F F T T T T T
F T T T T T T T T
F T F F T F F F T
F F T F F T F F T
F F F F F F F F T
64
PROPOSITIONAL RELATIONS
Exercise 4 (Solution)
(p q) (~q ~p)
65
PROPOSITIONAL RELATIONS
Example 1:
1) Use the truth table to prove the equivalent of the following
statement
(p q) (~p q)
66
PROPOSITIONAL RELATIONS
Example 1: (Solution)
1) Use the truth table to prove the equivalent of the following
statement (p q) (~p q)
67
COMPLETE PROPOSITIONAL
RELATIONS
A? B
T if A B ~ ~ ~B ~ ~A ~ if ~ F
T T T T T T T T F F F F F F F F
T T T T F F F F T T T T F F F F
T T F F T T F F T T F F T T F F
T F T F T F T F T F T F T F T F
B
neither A nor B
either A or B but not both
A if and only if
A unless B
A only if B
68
PROPOSITION TRANSLATION
Exercise 5:
Symbolize each of the following English sentences in the
language of propositional logic. Use the variable “P” to
stand for “Patsy majors in AIM and use the variable “Q” to
stand for “Quincy majors in AIM”.
a) Quincy majors in AIM if Patsy majors in AIM
b) Quincy majors in AIM only if Patsy majors in AIM
c) Patsy majors in AIM unless Quincy majors in AIM
d) Neither Patsy nor Quincy majors in AIM
e) Not both Patsy and Quincy major in AIM
f) Either Quincy not major in AIM or Patsy major in AIM
69
Exercise 5:
Symbolize each of the following English sentences in the language
of propositional logic. Use the variable “P” to stand for “Patsy major
in AIM and use the variable “Q” to stand for “Quincy major in AIM”.
A Q P
B P Q
C ~Q ~P
D ~P ~Q
E ~Q P
F ~P Q
70
Exercise 5:
Symbolize each of the following English sentences in the language
of propositional logic. Use the variable “P” to stand for “Patsy major
in AIM and use the variable “Q” to stand for “Quincy major in AIM”.
A Q P
B P Q
C ~Q ~P
D ~P ~Q
E ~Q P
F ~P Q
71
Exercise 5:
Symbolize each of the following English sentences in the language
of propositional logic. Use the variable “P” to stand for “Patsy major
in AIM and use the variable “Q” to stand for “Quincy major in AIM”.
A Q P
B P Q
C ~Q P
D ~P ~Q
E ~Q P
F PQ
72
Exercise 5:
Symbolize each of the following English sentences in the language
of propositional logic. Use the variable “P” to stand for “Patsy major
in AIM and use the variable “Q” to stand for “Quincy major in AIM”.
A Q&P
B PQ
C ~(Q & P)
D ~P & ~Q
E ~(Q P)
F ~P ~Q
73
Exercise 5:
Symbolize each of the following English sentences in the language
of propositional logic. Use the variable “P” to stand for “Patsy major
in AIM and use the variable “Q” to stand for “Quincy major in AIM”.
A P ~Q
B P&Q
C ~(Q & P)
D ~P & ~Q
E ~Q ~P
F ~(P Q)
74
Exercise 5:
Symbolize each of the following English sentences in the language
of propositional logic. Use the variable “P” to stand for “Patsy major
in AIM and use the variable “Q” to stand for “Quincy major in AIM”.
A Q P
B P Q
C ~Q ~P
D ~P ~Q
E ~Q P
F ~P Q
75
PROPOSITION TRANSLATION
Exercise 6:
Determine the truth tables of the following propositions:
a) if p then q
b) p unless q
c) neither p nor q
d) not both p and q
e) p if and only of q
f) p if q
g) p only if q
76
Exercise 6:
a) if p then q
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
77
Exercise 6:
b) p unless q
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
78
Exercise 6:
c) neither p nor q
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
79
Exercise 6:
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
80
Exercise 6:
e) p if and only if q
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
81
Exercise 6:
f) p if q
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
82
Exercise 6:
g) p only if q
A 1
p q 1 2 3 4 5 6 7 8
B 2
C 3 T T T T T T T T F F
D 4
T F T T T F F F T F
E 5
F T T F F T F F T F
F 6
F F F T F T T F T T
G 7
H 8
83