Propositional Logic Lecture Notes
Propositional Logic Lecture Notes
Example 1:
p: There are seven days in a week. - p is a simple
statement
Example 2:
q: 2 + 3 = 6. - q is a simple statement
2. Disjunction, “or”
If p and q are statements the disjunction of p and q is
“p or q”, denoted p ∨ q.
Example 1:
Given p: 2 + 3 = 5
q: 2 + 3 = 6
p ∨ q: 2 + 3 = 5 or 2 + 3 = 6
Alternatively: 2 + 3 = 5 or 6
Example 2:
3. Conjunction, “and”
“if p, then q”
“p implies q”
“if p, q”
“p only if q”
“p is sufficient for q”
“a sufficient condition for q is p”
“q if p”
“q whenever p”
“q when p”
“q is necessary for p”
Converse of a Conditional Proposition
Example:
Given p: Water boils, q: Water temperature is over 100°C
write down p ↔ q.
p ↔ q: “Water boils if, and only if, it’s temperature is
100°C.
p q p ↔ q
F F T
F T F
T F F
T T T
~ p ˅ q
~ p ˅ (q ˄ r)
~(p ˅ q)
~ p → q ˄ r
Tautologies, Contradictions and Contingencies
T F F F F
T T F T T
Laws
1. Commutative Laws:
(p ˅ q) ≡ (q ˅ p)
(p ˄ q) ≡ (q ˄ p)
(p ↔ q) ≡ (q ↔ p)
2. Associative Laws:
((p ˅ q) ˅ r) ≡ (p ˅ (q ˅ r))
((p ˄ q) ˄ r) ≡ (p ˄ (q ˄ r))
((p ↔ q) ↔ r) ≡ (p ↔ (q ↔ r))
3. Distributive Laws:
5. De Morgan’s Laws:
~(p ˅ q) ≡ ( ~ p ˄ ~ q)
~(p ˄ q) ≡ ( ~ p ˅ ~ q)
6. Implication Laws:
p → q ≡ ~p ˅ q
(p ↔ q) ≡ ( p → q) ˄ ( q → p)
7. Identity Laws:
p ˅ F ≡ p
p ˄ T ≡ p
8. Negation (Complement) Laws:
(p ˅ ~ p ) ≡ T
(p ˄ ~ p ) ≡ F
9. Dominance Laws:
p ˅ T ≡ T
p ˄ F ≡ F
10.Idempotent Laws:
p ˅ p ≡ p
p ˄ p ≡ p
11.Absorption Laws:
(p ˅ (p ˄ q)) ≡ p
(p ˄ (p ˅ q)) ≡ p
12.Property of Implication: