(MH1812) - Topic 2.1 Propositional Logic I (Lesson Handout)
(MH1812) - Topic 2.1 Propositional Logic I (Lesson Handout)
MH1812
Topic 2.1 - Propositional Logic I
Dr. Gary Greaves
L ogical Operators
D e Morgan’s Laws
E quivalent Expressions
• Logic:
– Represents knowledge precisely
– Helps to extract information (inference)
Examples of propositions
• “1 + 1 = 2”. . . True
Compound
Propositions = Propositions Combined
with Logical Operator(s)
∧ Conjunction (and)
Disjunction (or) ∨
¬ Negation (not, alternatively ∼)
Means “equivalent”
MH1812: Discrete Mathematics 14
Logical Operators: Conjunction
• Conjunction (and) of p with q: p ∧ q ∧
p q p∧q q∧p
True only when “both” of
T T T T them are true
T F F F
F T F F
F F F F
Truth Table
¬ (p ∧ q) ≡ ¬ p ∨ ¬ q
¬ (p ∨ q) ≡ ¬ p ∧ ¬ q
p q ¬p ¬q p ∧ q ¬(p ∧ q) ¬p ∨ ¬q
TT F F T F F
TF F T F T T
FT T F F T T
Augustus De Morgan
FF T T F T T (1806 - 1871)
Example
This course is easy “and” this
p ¬p p ∧ ¬p
course is not easy.
T F F
p ∧ (¬p) ≡ F F T F
Example
p ∨ (¬p) ≡ T p ¬p p ∨ ¬p
T F T Always
F T T true!
¬h ∧ ¬b
¬b ∧ ¬h
Bob
¬(b ∨ h)
These three statements are equivalent.
¬h ∧ ¬b ≡ ¬b ∧ ¬h ≡ ¬(b ∨ h) Alice
bh ¬b ¬h b ∨ h ¬h ∧ ¬b ¬b ∧ ¬h ¬(b ∨ h)
TT F F T F F F
TF F T T F F F
FT T F T F F F
FF T T F T T T