3 - Propositional Logic II
3 - Propositional Logic II
Introduction
Discrete Mathematics
Andrei Bulatov
Discrete Mathematics – Propositional Logic II 3-2
Previous Lecture
Example
`You can access the Internet from campus if you are a computer
science major or if you are not a freshman.’
Tautologies
(p → q) ∨ (q → p)
p q (p → q) ∨ (q → p)
0 0 1
0 1 1
1 0 1
1 1 1
Contradictions
(p ⊕ q) ∧ (p ⊕ ¬q)
“Black is white and
p q (p ⊕ q) ∧ (p ⊕ ¬q) black is not white”
0 0 0
0 1 0
1 0 0
1 1 0
Discrete Mathematics – Propositional Logic II 3-6
An Example
p → (¬q ∨ p)
Discrete Mathematics – Propositional Logic II 3-7
Another Example
Web Search
discrete mathematics
OR mathematics
Web Search
Discrete Mathematics – Propositional Logic II 3-10
Web Search
lady tiger
the other room
door sign
insane
Logic Equivalences
Example Equivalences
p q p→q ¬q → ¬p
0 0 1 1
0 1 1 1
1 0 0 0
1 1 1 1
Q.E.D.
Discrete Mathematics – Propositional Logic II 3-16
Homework