03 Proposition
03 Proposition
LOGIC
CSE 2213 – Discrete Mathematics
Course teacher: Md. Rayhan Ahmed
11/08/2024
CONDITIONAL
PROPOSITIONS
11/08/2024
If today is Friday, then elephants fly in the sky.
Is this statement true?
It is true
everyday
I don’t know. Is it?except Friday.
11/08/2024 3
CONSIDER THIS SENTENCE
If it rains, I will stay home.
11/08/2024 4
IF IT RAINS, I WILL STAY
HOME
11/08/2024 5
WHAT IF IT DOESN’T
RAIN?
11/08/2024
IF IT RAINS, I WILL STAY
HOME
If it does not rain, you might still stay home
(probably because you are sick)
11/08/2024 7
IF IT RAINS, I WILL STAY
HOME
The sentence does not say anything about what if it does not rain
So if it does not rain, we can say you have not broken any condition
So if it does not rain, the sentence is true whether you stay home
or not
11/08/2024 8
SO WHEN IS THIS
SENTENCE FALSE?
11/08/2024
IF IT RAINS, I WILL STAY
HOME
The sentence is false if it
rains,
and you go out anyway
11/08/2024 10
CONDITIONAL STATEMENTS
If it rains, I will stay home.
We can also say “It is raining implies
that I will stay home”
T T T
T F F
If then F T T
implies
F F T
if
11/08/2024 11
SUFFICIENT CONDITION
Note that while you may stay home for any reason, if it rains we
know that we will find you home
In other words, knowing that it is raining is sufficient to know that
you are home
Generally, for the proposition , is the sufficient condition for
11/08/2024 12
NOW TELL ME AGAIN …
If today is Friday, elephants fly in the sky.
Is this statement true?
11/08/2024 13
NOW CONSIDER THIS
SENTENCE
You will pass only if you study.
11/08/2024 14
YOU WILL PASS ONLY IF YOU
STUDY
11/08/2024 15
WHAT IF YOU DON’T STUDY?
YOU FAIL
11/08/2024 16
WHAT IF YOU DON’T
PASS?
11/08/2024
YOU WILL PASS ONLY IF YOU
STUDY
11/08/2024 19
NECESSARY CONDITION
Note that while you may fail for any possible reason, you must
study in order to pass
In another word, in order to pass, it is necessary that you study
11/08/2024 20
NECESSARY CONDITION
only if
T T T
T F F
F T T
F F T
!!!
11/08/2024 21
NECESSARY CONDITION AND
SUFFICIENT CONDITION
Generally, for the proposition , is the necessary condition for ,
and is the sufficient condition for
In our first example (If it rains, I will stay home), staying home is
necessary for you if it rains
It is raining only if I stay home
In our second example (You will pass only if you study), passing is
sufficient to realize that you have studied
If you have passed, you have studied
11/08/2024 22
দুইটা জিনিস মনে রাখবেন
11/08/2024 24
YOU CAN TAKE THE TRAIN IF
AND ONLY IF YOU BUY
TICKET
If you have a ticket, and you take the
train
OR
If you don’t have a ticket, and the TTE
throws you out
11/08/2024 25
WHEN IS THIS
SENTENCE FALSE?
11/08/2024
YOU CAN TAKE THE TRAIN IF
AND ONLY IF YOU BUY
TICKET
If you have a ticket, and the TTE still
refuses to take you
OR
If you don’t have a ticket, and you take
the train anyway
11/08/2024 27
BICONDITIONAL STATEMENT
You can take the train if and
only if you buy ticket
T T T
T F F
and are necessary and
F T F
sufficient conditions for each
other F F T
11/08/2024 28
CONVERSE,
CONTRAPOSITIVE AND
INVERSE
If it rains, I will stay home.
Converse: If I stay home, it is raining.
Contrapositive: If I do not stay home, it is not
raining.
Inverse: If it does not rain, I will not stay home.
Which of these are equivalent?
11/08/2024 29