1. Propositional Logic (Part 1)
1. Propositional Logic (Part 1)
▪ x+1=y
• An equation. Neither true or false.
More examples:
a = Argentina won the world cup
b = Brazil lost to Germany
e = Emi Martinez plays well
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
𝑝→𝑞
• P is called premise/hypothesis
• Q is called conclusion/consequence Hypothesis Conclusion
Hypothesis Conclusion
The if clause is called the hypothesis / premise, and the remaining clause is
called the conclusion/consequence
We assume that the hypothesis is true in order to verify the validity of the
conclusion
The conclusion is the outcome of the hypothesis.
Fail
• Even though you have studied, you may not pass for a variety of reasons
• So if you do not pass, that does not violate any condition
• So if you do not pass, the sentence is true whether you have studied or
not
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
sufficient Necessary
p only if q
sufficient Necessary
If you have a ticket, and the ticket checker still refused to take you
OR
If you don’t have a ticket, and you board the train anyway
p q 𝑝 𝑞
T T T
T F F
F T F
F F T
Example:
p: "The number is divisible by 2"
q: "The number is even"
Statement: “The number being divisible by 2 is necessary and sufficient for
the number to be even.”