Chapter01 Propositional Logic
Chapter01 Propositional Logic
MATHEMATICS
AND
ITS APPLICATIONS
Book: Discrete Mathematics and Its
Applications
Author: Kenneth H. Rosen
Sixth Edition
McGraw-Hill International Edition
Chapter 1
The Foundations:
Logic and Proofs
Objectives
Explain what makes up a correct
mathematical argument
Introduce tools to construct
arguments
Contents
1.1-Propositional Logic
1.2-Propositonal Equivalences
1.3-Predicates and Quantifiers
1.4-Nested Quantifiers
1.5-Rules of Inference
1.1- Propositional
Logic
Truth table
2+2=4
p
True/ T / 1
False / F / 0
1.1.1- Definitions and
Truth Table
Example
1.1.1- Definitions…
Solution:
p q p^q
F F F
F T F
T F F
T T T
1.1.1-
Definitions…
p q p^q
0 0 0
0 1 0
1 0 0
1 1 1
1.1.1- Definitions…
Example
1.1.1- Definitions…
p q pvq
0 0 0
0 1 1
1 0 1
1 1 1
1.1.1- Definitions…
p q pq
0 0 0
0 1 1
q 1 0 1
1 1 0
1.1.1- Definitions…
Implication: p → q (p implies q)
p: hypothesis / antecedent / premise
q: conclusion / consequence
p → q can be expressed as:
1.1.1-
Definitions…
Implication: p → q (p implies q)
p: hypothesis / antecedent / premise
q: conclusion / consequence
p → q can be expressed as:
- q if p
- If p, then q
- p is sufficient condition for q
- q is necessary condition for p
p q p→q
“If 1 + 1 = 3, then dogs can fly”
0 0 1 TRUE
(p q)
0 1 1
p=0, q=0 ,
1 0 0 so (pq) is true.
1 1 1
1.1.1- Definitions…
Equivalence Name
p^T≡p pvF≡p Identity laws
pvT≡ T p^F ≡ F Domination Laws
pvp≡ p p^p ≡ p Idempotent Laws
¬(¬p) ≡ p Double Negation Laws
pvq≡qvp p^q ≡q^p Commutative Laws
(p v q) v r ≡ p v (q v r) Associative Laws
(p ^ q) ^ r ≡p^(q^r)
pv (q^r) ≡ (pvq) ^ (pvr) Distributive Laws
p^ (qvr) ≡ (p^q) v (p^r)
1.2.2- Logical Equivalences…
x, y
Example: Given , then:
2 x y 3 and 4 x 2
e 1 2 x y 3
y
p T p
1.2.2- Logical
Equivalences…
Equivalence Name
¬ (p^q) ≡ ¬pv¬q ¬(pvq) ≡ ¬p^¬q De Morgan Laws
Example
C " 3a 8 1"
:
C "3a 8 0 and 3a 8 1"
Example:
The negation of the statement:
“The summer in Maine is hot and sunny”
Is the statement:
“The summer in Maine is NOT hot OR NOT
sunny.”
1.2.2- Logical
Equivalences…
Example:
The negation of the statement:
“Tom has a cellphone AND he has a laptop
computer”
Is the statement:
“Tom does NOT have a cellphone OR he does
NOT have a laptop computer.”
1.2.2- Logical
Equivalences…
Equivalences Equivalences
p→q ≡ ¬pvq p↔q ≡ (p→q) ^ (q→p)
p→q ≡ ¬q → ¬p p↔q ≡ ¬p ↔ ¬q
pvq ≡ ¬ p → q p↔q ≡ (p ^ q) v (¬p ^ ¬q)
p^q ≡ ¬ (p → ¬q) ¬ p↔q ≡ p↔ ¬q
¬(p→q) ≡ p^¬q
(p→q) ^(p→r) ≡ p → (q^r)
(p→r) ^ (q→r) ≡ (pvq) → r
(p→q) v (p→r) ≡ p→ (qvr)
(p→r) v (q→r) ≡ (p^q) → r
1.2.2- Logical
Equivalences…
Example:
E
Show that p p q q is a
tautology.
E p p q q
Solution:
p p p q q
0 p q q
p q q
p q q
p 1
1.
1.3- Predicates and
Quantifiers
Introduction
Predicates
Quantifiers
1.3.1-
Introduction
Predicate
Logic
o X>0
o P(X)=“X is a prime number” ,
called propositional function at X.
o P(2)=”2 is a prime number” ≡True
o P(4)=“4 is a prime number” ≡False
1.3.2- Predicates
Example
1.3.2- Predicates
Example
Example
1.3.7- Translating
Example
1.4 Negating nested
quantifiers
Definitions
Rules of Inferences
1.5.1-
Definitions
If you do every problem in this book then you will learn discrete
mathematic
You learned mathematic
(p → q) ^q
=(¬ p v q) ^ q
(absorption law)
=q
No information for p
p can be true or false You may learn discrete mathematic but
you might do some problems only.
1.5.3- Fallacies
Rule Name
xP(x) Universal Instantiation
P(c)
P(c) for arbitrary c Universal generalization
xP(x)
xP(x) Existential instantiation
P(c) for some element c
P(c) for some element c Existential generalization
xP(x)
Rules of Inference for Quantified
Statements…
“All
student are in this class had taken the
course PFC”
“Harry is in this class”
“Had Harry taken PFC?”
x(P(x) → Q(x))
P(Harry) → Q(Harry)
P(Harry)
Q(Harry) // conclusion
Rules of Inference for Quantified
Statements…
“All
student are in this class had taken the
course PFC”
“Harry is in this class”
“Harry had taken PFC”. CORRECT
x(P(x) → Q(x)) Premise
Q(Harry) // conclusion
Rules
Inferences…
Incorrect.
Rules
Inferences…
fruit.
Rules
Inferences…
VALID
Rules
Inferences…
Propositional Logic
Propositional Equivalences
Predicates and Quantifiers
Nested Quantifiers
Rules and Inference
THANK YOU