Logic in Math With Connectives
Logic in Math With Connectives
Example of sentence
1. Wash your hand.
2. I like climbing.
3. The sky looks blue.
4. We watched TV shows last night.
5. I love my new bag.
6. I just completed my assignment.
7. Where do you live?
8. Oh, the child is falling!
9. 1 + 4 = 9.
10. X + 3 = 6.
If x = 3, true.
If x ≠3, false.
Negation
Statement that negates the given.
P P
T F
F T
Connectives
1. Conjunction (˄) “and” – let p
and q be propositions, p ˄ q is
true if p and q are both true
otherwise false.
p q p˄q
T T T
T F F
F T F
F F F
Ex.
1. p: 2 is an even integer.
q: 3 is an odd integer.
(p˄q): Two is an even integer and
3 is an odd integer.
2. p: 3 divides 9
q: 3 divides 15
(p˄q):3 divides 9 and 3
divides 15.
2. Disjunction (˅) “or” – Let p and q
be propositions, p v q is true if either
p or q are true and both, otherwise
false.
p q p˅q
T T T
T F T
F T T
F F F
Example:
P: Students who had taken Algebra
can take Discrete Math.
Q: Students who have taken
Computer Science can take Discrete
Math.
p˅q: Students who had taken
Algebra or Computer Science, but
not both, can take discrete math.
1. {p v [ p →( p˄q)]}
p q p˄q [ pv [
p p→
( p˄q p →
)] ( p˄
q)]
T F T T T T
T F F F T T
F T T F F F
F T F F F F
2. [(pvq) → (qvr)] ˄ p
P q r pvq qvr [(pvq [(pvq)
)→ →
(qvr)] (qvr)]
˄p
T T T T T T T
T T F T T T T
T F T T T T T
T F F T F F F
F T T T T T F
F T F T T T F
F F T F T T F
F F F F F T F
q p→q
P q
p q→
p
T T F F T T
T F F T F F
F T T F T T
F F T T T T
- Logically Equivalent
Universe of Discourse
Rules of Quantification
∀ P(x) ≅ ∃ x P (x)
∀
= Universal
∃
= Existential
No integer is a rational number.
There exists at least an integer that is
not a rational number.
Nested Quantification
P(x, y)
Let P(x, y) be x likes y. x and y are
people
1. ∀
x∀yP(x,y) =Everyone likes
everyone.
2. y xP(x,y) = Everyone is liked
∀ ∀
by everyone.
3. x yP(x,y) = Someone likes
∃ ∀
everyone.
4. y x P(x,y)= Everyone is liked
∀ ∃
by someone.
5. x yP(x,y) = Someone likes
∃ ∃
someone.
6. ∃y∃
xP(x,y)= Someone is liked
by someone.
7. ∀x∃ y P(x,y)= Everyone likes
someone.
8. ∃ y ∀x P(x,y)= Someone is liked
by everyone.