Mathematical Logic: Algebra and Geometry
Mathematical Logic: Algebra and Geometry
Mathematical Logic: Algebra and Geometry
Mathematical Logic
Prof.Nashat Faried
http://e-learning.bue.edu.eg
Lecture 1: Logic. Truth Tables.
The truth table of the conjunction “ or “
T T T
and
implication
T F T Negation
F T T
F F F
The truth table of the conjunction “ or “
p q p q
T T T
T F T
F T T
F F F
The truth tables of the conjunction “ and “
T T T
T F F
F T F
F F F
The truth table for the implication
T T T
T F F
F T T
F F T P P
T F
F T
p q pq
T T T
T F F
F T F
F F T
Example
p q pq q p ( q) ) p)
T T T F F T
T F F T F F
F T T F T T
F F T T T T
Example
Prove that :
p q (p )q
p q pq p (p) q
T T T F T
T F F F F
F T T T T
F F T T T
Example
p q pq ¬q ¬p (¬ q) (¬ p)
T T T F F T
T F F T F F
F T T F T T
F F T T T T
Example
Find the truth table for p (p q(:
p q pq (p q) p( p q)
T T T F F
T F T F F
F T T F T
F F F T T
Example
Construct a truth table for (p q)[( (p)r) (q r) ]
p q r p (p)r q r (p)r q r p q
*
T T T F F T T T T
T T F F F F T T T
T F T F F F T T T
T F F F F F T T T
F T T T T T T T T
F T F T F F T T T
F F T T T F F F T
F F F T F F T F F