CH 1 1 Introduction and Propositional Logic
CH 1 1 Introduction and Propositional Logic
𝑝 ¬𝑝
Table 1: The truth table for the
T F
negation of a proposition
F T
p q p⊕q
T T F Table 4: The truth table for the
T F T exclusive or of two propositions
F T T
F F F
“if p, q” “p only if q”
“q if p” “q whenever p”
“q unless ¬p”
Example:
What are the contrapositive, the converse and the inverse of the
conditional statement
“The home team wins whenever it is raining.”?
Solution:
(Done on the board)
b) p v q f) ¬p → ¬q
c) p → q g) ¬p ᴧ ¬q
d) p ᴧ q h) ¬p v (p ᴧ q)
Solution:
p q ¬q p v ¬q pᴧq (p v ¬q) → (p ᴧ q)
T T F T T T
T F T T F F
F T F F F T
F F T T F F
Operator Precedence
¬ 1 highest
ᴧ 2
v 3
→ 4
↔ 5 lowest
01 1011 0110
11 0001 1101