Descrete Lec# 1
Descrete Lec# 1
Lec # 01
• Requirements
– Overall Class Attitude
– Things to Avoid (Referencing, Cut-Copy-Paste Culture,
Carelessness, leg-pulling)
– Things to do (Confidence, Work Attitude)
– Sense of Maturity and continuous learning
Example: Example:
• x=1 • Bill Gates is an American
• x>2 • He is very rich
• x > 2 is a statement with • He is very rich is a statement
truth-value FALSE. with truth-value TRUE.
Example:
x + 2 is positive. Not a statement
May I come in? Not a statement
Logic is interesting. A statement
It is hot today. A statement
-1 > 0 A statement
x + y = 12 Not a statement
• EXAMPLES:
EXAMPLES:
• p = “Islamabad is the capital of Pakistan”
• q = “17 is divisible by 3”
w = “Zia is wealthy”
s = “Zia is wise”
Let
• m = “Ali is good in Mathematics”
• c = “Ali is a Computer Science student”
• ~c
• Ali is not a Computer Science student
05/12/2024 Sami Ullah khan 27
TRANSLATING FROM SYMBOLS TO ENGLISH
Let
• m = “Ali is good in Mathematics”
• c = “Ali is a Computer Science student”
• cm
• Ali is a Computer Science student or good in Maths.
• m ~c
• Ali is good in Maths but not a Computer Science student
Example
Solution:
Let p = “I am happy”
then ~ p = “I am not happy”
and ~(~ p) = “It is not true that I am not happy”
Since ~(~p) p
Hence the given statement is equivalent to:
05/12/2024 “I am happy” Sami Ullah khan 43
~(pq) and ~p ~q are not logically equivalent