5 Some Elementary Logic
5 Some Elementary Logic
5 Some Elementary Logic
1. Logical Connectives
2. Quantifiers
3. Negation
4. Variables
FUNDAMENTALS of LOGIC
Definition
A proposition P is a declarative statement that is
true or false but not both.
2
Examples of Propositions
1. It is raining.
3
The following are not propositions
1. Get out!
2. Logic is sweet.
3. x + 3 = 5
4
Which of the following are propositions?
6
Negation
T h e n eg a tio n o f a p ro p o stio n P ,
d en o ted b y P rea d a s " n o t P " ,
is th e p ro p o stio n w h o se tru th va lu e
d ep en d s o n P a s sh o w n b elo w .
T ru th T a b le
P P
1 0
0 1
7
Symbol Translation
Not P;
P It is not the case that P;
It is false that P;
It is not true that P
8
Logical Connectives
A logical connective is a word or symbol that joins
two sentences to produce a new one.
and
or
implies
Conjunction
10
Symbol Translation
P and Q;
P moreover Q;
P although Q;
P still Q;
PQ P furthermore Q;
P also Q;
P nevertheless Q;
P however Q;
P yet Q;
P but Q
11
T r u th T a b le
P Q P Q
1 1 1
1 0 0
0 1 0
0 0 0
Rule
For a conjunction to be true , both conjuncts
must be true. Otherwise , the conjunction is false.
12
Example
“He is the only begotten son yet He humbled Himself by
dying on the cross to save us.”
1. P Q
2. P Q
3. P Q
4. P Q
13
Disjunction
Let P and Q be propositions . The
disjunction of P and Q , denoted
by P Q read as " P or Q is the
proposition whose truth value
depends on P and Q .
We call each P and Q a disjunct .
14
Symbol Translation
P or Q;
PQ P unless Q;
15
T r u th T a b le
P Q P Q
1 1 1
1 0 1
0 1 1
Rule 0 0 0
For a disjunction to be true, at least one of the
disjuncts must be true and it is false when both
disjuncts are false.
16
Let P: 2 is prime.
Q: 2 is even.
1. P Q
2. P Q
3. P Q
4. P Q
17
Conditional
Let P and Q be propositions . The
conditional statement or implication
" if P then Q " denoted by P Q , is
the proposition whose truth value
depends on P and Q .
We call P the hypothesis or premise
and we call Q the conclusion .
18
Symbol Translation
If P then Q;
P implies Q;
P is a sufficient condition for Q;
P only if Q;
P Q Q is a necessary condition for P;
Q if P;
Q follows from P;
Q provided P;
Q whenever P;
Q is a logical consequence of P
19
“Buy one notebook, take one free pencil.”
P: I buy a notebook.
Q: I get a free pencil.
20
T r u th T a b le
P Q P Q
1 1 1
1 0 0
0 1 1
0 0 1
Rule
The implication is false only when the hypothesis /
premise is true and the conclusion is false.
Otherwise the implication is always true.
21
Express the following propositions in symbols, where P,
Q, R and S are defined as follows.
P: I understand logic.
Q: I am doing well in my class in Logic.
R: Logic is easy.
S: I will pass all my exams in Logic.
22
P: I understand logic.
Q: I am doing well in my class in Logic.
R: Logic is easy.
S: I will pass all my exams in Logic.
23
P: I understand logic.
Q: I am doing well in my class in Logic.
R: Logic is easy.
S: I will pass all my exams in Logic.
24
Remarks:
A parenthesis is used whenever the word
- “both” goes with “and”
- “either” goes with “or”
both P or Q and R P Q R
P or both Q and R P Q R
either P and Q or R P Q R
P and either Q or R P Q R
25
More on Conditional Statements
Implication: If P Then Q.
P: antecedent or hypothesis
Q: consequent or conclusion
Converse: If Q then P.
26
More on Conditional Statements
1. If you are more than 60 years old, then you are entitled
to a senior citizen card.
27
Quantification
A construct that specifies the quantity of specimens
in the domain of discourse that satisfy the open
formula.
• Universal Quantification
• Existential Quantification
Let U be the universe of discourse .
D efinition
30
E xa m p le L et U 1, 0,1
1. P x : x3 x
P 1 : 1
3
1 tru e
P 0 : 0 0
3
tru e
P 1 : 1 1
3
tru e
xP x is tru e
31
E xa m p le L et U 1, 0,1
2. Q x : x2 1
Q 1 : 1 1
2
tru e
Q 0 : 0 1
2
fa lse
Q 1 : 1 1
2
tru e
xQ x is fa lse b u t xQ x is tru e
32
E xa m p le L et U 1, 0,1
3. S x : 2x 0
S 1 : 2 1 2 0 fa lse
S 0 : 2 0 0 tru e
S 1 : 2 1 2 0 fa lse
xS x is tru e
33
E xercise
34
E xercise
Determine if each proposition is true or false.
1. E 1 6. xE x
2. S 2 M 1 7. xS x
3. E 1 P 1 8. xM x
4. P 1 M 4 9. x E x
5. xP x 10. xE x
U 1, 2, 4, 6,8
E x : x is even P x : x is positive
S x : x 1 4 M x : 2x 2 35
Workshop
Work in a small group and create constructively aligned lesson
activities and assessment methods with the following topics: (Choose
one topic only)
• Logical Connectives
• Converse, Inverse, Contrapositive
• Quantification
1. What are the three things that you expect your students to be
able to do at the end of the lesson? (Learning Outcomes)
2. How do you assess your students on doing these things?
(Assessment Tasks)
3. How do you teach your students to do these things? (Teaching
and Learning Activities)