Lecture 2 Chapter 1 Lesson 1
Lecture 2 Chapter 1 Lesson 1
LECTURE 2
Chapter 1
The Foundations: Logic and Proofs
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Conditional Statement
Representation (Symbolic) Representation (Statement)
If p ,then q
q when p
If p, q
p is sufficient for q
q if p
𝑝→𝑞 A necessary condition for p is q
q unless¬ p
p implies q
p only if q
A sufficient condition for q is p
q whenever p
q is necessary for p
q follows from p
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
q when p Maria will find a good job when she (Maria) learns discrete mathematics
q p
q unless¬ p Maria will find a good job unless she doe not learns discrete mathematics
q ¬p
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Example 1: Let p be the statement "You can take the flight" and let q be the
statement "You buy a ticket. Then p q is the statement
Solution:
p= You can take the flight q= You buy a ticket
The Biconditional statement of p and q (p q ) = p if and only if q
= You can take the flight if and only if you buy a ticket
Or
The Biconditional statement of p and q (p q ) = p iff q
= You can take the flight iff you buy a ticket
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Question Solutions
d. p/\q
Solution: =Conjunction of p and q
=p and q
=I bought a lottery ticket this week and won the million dollar jackpot on
Friday.
e. 𝒑 →𝑞
Solution: =If p then q
= If I bought a lottery ticket this week then won the million dollar jackpot on
Friday.
f. p q
Solution: =p if and only if q
=I bought a lottery ticket this week if and only if I won the million dollar
jackpot on Friday.
g. 𝒑 → 𝑞
Solution: = If p then q
=If (Negation of p) then (Negation of q)
=If (I did not buy a lottery ticket this week) then (I will not win the million
dollar jackpot on Friday.)
= If I did not buy a lottery ticket this week then I will not win the million
dollar jackpot on Friday.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
h. 𝒑 /\𝑞
Solution: = (Negation of p) and (Negation of q) .
=I did not buy a lottery ticket this week and I did not win the million
dollar jackpot on Friday.
i. 𝒑 v (p/\q)
d. I bought a lottery ticket this week and won the million dollar jackpot on
Friday
Solution: =Conjunction of p and q
=p and q
=p/\q
e. If I bought a lottery ticket this week then won the million dollar jackpot
on Friday.
Solution: =If p then q
= 𝒑 →𝑞
f. I bought a lottery ticket this week if and only if I won the million dollar
jackpot on Friday
Solution: =p if and only if q
=p q
g. If I did not buy a lottery ticket this week then I will not win the million
dollar jackpot on Friday.
Solution: = If p then q
=If (Negation of p) then (Negation of q)
=𝒑 → 𝑞
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
h. I did not buy a lottery ticket this week and I did not win the million
dollar jackpot on Friday.
i. I did not buy a lottery ticket this week or (I bought a lottery ticket
this week and won the million dollar jackpot on Friday)
2.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
3.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
4.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
5.