Lecture 2 Propositional Logic
Lecture 2 Propositional Logic
p ¬p
The statement “It is not the case that
p” is also a proposition, called the T F
“negation of p” or ¬p (read “not p”)
F T
p = The sky is blue.
p = The sky is not blue.
C2. Conjunction (AND)
Let p and q be propositions. Table 2. The Truth Table for
the Conjunction of two
propositions
The proposition “p and q,” denoted by pq
is true when both p and q are true and is p q pq
false otherwise.
T T T
T F F
This is called the conjunction of p and q. F T F
F F F
C3. Disjunction (OR)
Let p and q be propositions. Table 3. The Truth Table for
the Disjunction of two
propositions
•Example 1: “If you make more than $25,000, then you must file a tax return.”
This says nothing about someone who makes less than $25,000. So the
implication is true no matter what someone making less than $25,000 does.
•Example 2:
p: Bill Gates is poor.
q: Cows can fly.
p→q is always true because Bill Gates is not poor. Another way of saying the
implication is “Cows can fly whenever Bill Gates is poor” which is true since
neither p nor q is true.
C6. Equivalence - XNOR
Let p and q be propositions.
Table 6. The Truth Table for
the biconditional pq.
• If you learn the simple things well then the difficult things become easy. p→q
• If you do not learn the simple things well, then the difficult things will not
become easy. p → q
• The difficult things become easy or you did not learn the simple things well.
q p
• You learn the simple things well and the difficult things did not become easy.
p q
PL Terminologies
• User defines the semantics of each propositional symbol:
– P means “It is hot”
– Q means “It is humid”
– R means “It is raining”
• Example:
– (P Q) → R
“If it is hot and humid, then it is raining”
–Q→P
“If it is humid, then it is hot”
13
Logical Equivalence
• An important technique in proofs is to replace a statement
with another statement that is “logically equivalent.”