MMW Elementary Logic 1
MMW Elementary Logic 1
What is Logic?
Crucial for mathematical reasoning
Definition
A proposition P is a declarative statement
that is true or false but not both.
7
Examples of Propositions
1. It is raining.
8
The following are not propositions
1. Get out!
2. Logic is sweet.
3. x + 3 = 5
9
Logical Connectives
12
Definition
1. PQ
2. P Q
3. P Q
4. P Q
15
Definition
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.
16
Symbol Translation
P or Q;
PQ P unless Q;
17
Let P: 2 is prime.
Q: 2 is even.
1. PQ
2. P Q
3. P Q
4. P Q
18
CONDITIONAL STATEMENTS
CONDITIONAL STATEMENTS
Conditional Statement/ Implication
Let p and q be a proposition. The
implication is the proposition that is
FALSE when p is true, q is false.
Otherwise is TRUE.
p = hypothesis/antecedent/premise
pq
q = conclusion/consequence
Express: “ if p, then q”, “q when p”, “p
implies q”
Eg: If Joseph got 100% in logic then he is
smart.
CONDITIONAL STATEMENTS
p ( q
The Truth Table for the Implication )
p q
pq
T T T
T F F
F T T
F F T
Definition
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.
22
Symbol Translation
If P then Q;
P implies Q;
P is a sufficient condition for Q;
P only if Q;
PQ 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
23
Example Conditional Statement
Hypothesis, Conclusion
This conditional is false because there are many things you see
that you do not eat.
28
Symbol Translation
P if and only if Q;
P is equivalent to Q;
PQ
P is a necessary and sufficient
condition for Q;
29
More on Propositions
Domain
Hypothesis
Conclusions
30
proposition
More on Conditional Statements
Implication: If P Then Q.
P: antecedent or hypothesis
Q: consequent or conclusion
Conditional If P then Q.
Inverse: If not P then not Q.
Converse: If Q then P.
Contrapositive: If not Q then not P.
34
More on Conditional Statements
35
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.
Definition
38
Re mark
Let P x denote a propositional function and let U be
the universe for x. The general proposition xP x is
true if and only if P c is true for all objects c in U .
39
Re mark
Let P x denote a propositional function and let U be
the universe for x. The general proposition xP x is
true if and only if P c is true for at least one object
c in U .
40
Example Let U 1, 0,1
1. P x : x3 x
P 1 : 1 1
3
true
P 0 : 0 0
3
true
P 1 : 1 1
3
true
xP x is true
41
Example Let U 1, 0,1
2. Q x : x2 1
Q 1 : 1 1
2
true
Q 0 : 0 1
2
false
Q 1 : 1 1
2
true
xQ x is false but xQ x is true
42
Example Let U 1, 0,1
3. S x : 2x 0
43
Let’s Wrap it up…….
Logic Helps Develop Clear and Precise Ideas.
1. It is sunny day.
2. Stand up!
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.
T: Logic is difficult
1. Logic is easy or it is difficult.
2. I understand Logic if and only if it is easy.
3. Although I am doing well in my class in
Logic, I won’t pass all my exams.
4. Logic is easy and I understand it. 47
1. P^Q
2. P √ -Q
3. –P ^ Q
4. P Q
5. P Q
Rewrite the statement in
Conditional, Inverse, converse,
contrapositive
P Square has four equal sides.
Q Square has four equal angles.
Thank you