Chapter1.1 Propositional Logic (Stud)
Chapter1.1 Propositional Logic (Stud)
Chapter1.1 Propositional Logic (Stud)
my
MTK3013
DISCRETE STRUCTURES
http://fskik.upsi.edu.my
Logic
• Crucial for mathematcal reasoning
• Important for program design
• Used for designing electronic circuitry
“y > 5”
Is this a statement?
Is this a proposition?
Is this a statement?
Is this a proposition?
Is this a statement?
Is this a proposition?
Is this a statement?
Is this a proposition?
Is this a statement?
Is this a proposition?
Is this a proposition?
Combining Propositions
Negation (NOT)
Unary Operator, Symbol:
p p
true false
false true
http://fskik.upsi.edu.my
Conjunction (AND)
Binary Operator, Symbol:
p q pq
true true true
true false false
false true false
false false false
http://fskik.upsi.edu.my
Disjunction (OR)
Binary Operator, Symbol:
p q pq
true true true
true false true
false true true
false false false
http://fskik.upsi.edu.my
Exclusive Or (XOR)
Binary Operator, Symbol:
p q pq
true true false
true false true
false true true
false false false
http://fskik.upsi.edu.my
p q pq
true true true
true false false
false true true
false false true
http://fskik.upsi.edu.my
http://fskik.upsi.edu.my
Converse
Inverse
Contrapositve
http://fskik.upsi.edu.my
http://fskik.upsi.edu.my
Converse
• The ________
converse of a conditional statement is
for med by switch ing the hypothesis and the
conclusion.
• Example:
(Conditional) If I am sleeping, then I am
breathing.
(Converse) If I am breathing, then I am
sleeping.
http://fskik.upsi.edu.my
http://fskik.upsi.edu.my
Inverse
http://fskik.upsi.edu.my
• The _______
inverse of a conditional statement is
formed by negating (inserting “not”) the
hypothesis and the conclusion.
• Example:
(Conditional) If I am sleeping, then I am
breathing.
(Converse) If I am not sleeping, then
I am not breathing.
Contrapositive
• The contrapositive of a conditional
statement is formed by negating the
hypothesis and the conclusion of the
converse.
• Example:
(Converse) If I am breathing, then I am
sleeping.
Practice :
Conditional If m<A = 30°, then <A is
acute.
Inverse
(insert not)
Converse
(switch)
Contrapositive
(switch then
insert not)
http://fskik.upsi.edu.my
http://fskik.upsi.edu.my
Conclusion
The conditional statement and its contrapositive
have the same truth value.
A. hypothesis
B. Conclusion
C. neither
http://fskik.upsi.edu.my
A. hypothesis
B. Conclusion
C. neither
http://fskik.upsi.edu.my
P Q PQ
true true true
true false false
false true false
false false true
http://fskik.upsi.edu.my
P Q P Q (P)(Q)
true true false false false
true false false true true
false true true false true
false false true true true
http://fskik.upsi.edu.my
http://fskik.upsi.edu.my
Equivalent Statements
P Q (PQ) (P)(Q) (PQ)(P)(Q)