Professional Documents
Culture Documents
Prepared by
Mrs.S.Alagusala,
Sr.Asst Prof,
Department of Matheatics.
Topics
• Logic
• Proposition
• Logical operators and truth table
• Well Formed Formula
• Tautology
• Contradiction
Discrete Mathematics
It considers objects that vary in a discrete way.
Example: digital wristwatch.
On a digital watch, there are only finitely
many possible different times between 1 :25 P.M.
and 1:27 P.M. A digital watch does not show split
seconds: - no time between 1 :25:03 and 1 :25:04.
The watch moves from one time to the next.
computer science – computers are digital!
(numbers as finite bit strings; data
structures, all discrete! Historical aside:
earliest computers were analogue.)
Answer the following questions orally.
Ex.
• R(R)
• (PQ)(P)(Q)
If ST is a tautology, we write ST.
If ST is a tautology, we write ST.
Contradiction
Definition:
A contradiction is a statement that is always
false.
Ex.
• R(R)
• ((PQ)(P)(Q))
The negation of any tautology is a contra-
diction, and the negation of any contradiction is
a tautology.
Logical Equivalence
Theorem:
If a formula A is equivalent to a formula B
then A↔B
Proving Equivalence via Truth Tables
• Ex. Prove that p∨q ↔ ¬(¬p ∧¬q).
Logical Equivalences
• Identity Laws: p T p and p F p.
• Commutative Laws:
(p q) (q p) and (p q) (q p).
• Associative Laws:
(p q) r p (q r) and (p q) r p (q r).
• Distributive Laws:
p (q r) (p q) (p r) and
p (q r) (p q) (p r).
• DeMorgan’s Laws:
(p q) ( p q) and
(p q) ( p q).
• Absorption Laws:
p (p q) p and p (p q) p.
• Negation Laws: p p T and p p F.
• Implication conversion law: 𝑝 → 𝑞 ⇔ ¬𝑝 ∨ 𝑞
• Contra positive: 𝑝 → 𝑞 ⇔ ¬𝑞 → ¬𝑝
• 𝑝→𝑞 ∧ 𝑝→𝑟 ⟺𝑝→ 𝑞∧𝑟
• 𝑝→𝑟 ∧ 𝑞 →𝑟 ⟺ 𝑝∨𝑞 →𝑟
• 𝑝→𝑟 ∨ 𝑞 →𝑟 ⟺ 𝑝∧𝑞 →𝑟
• (𝑝 ⟷ 𝑞) ⇔ (𝑝 → 𝑞) ∧ (𝑞 → 𝑝)
• (𝑝 ⟷ 𝑞) ⇔ ¬𝑝 → ¬𝑞
• 𝑝 ⟷ 𝑞 ⇔ 𝑝 ∧ 𝑞 ∨ ¬𝑝 ∧ ¬𝑞
• ¬ 𝑝 ⟷ 𝑞 ⇔ 𝑝 ↔ ¬𝑞