Lecture 2
Lecture 2
Lecture # 2
1
Compound Propositions
Produced from existing propositions by combining them
using logical operators.
Logical Operators or Connectives
1. Not
2. And ˄
3. Or ˅
4. Exclusive or
5. Implication
6. Biconditional
Compound Propositions
Negation of a proposition
Let p be a proposition. The negation of p, denoted by
p (also denoted by ~p), is the statement
p : It is below freezing
The negation is
“it is not the case that it is below freezing”
which can be more simply expressed by
“6 is negative”.
The negation is
p p
T(1) F(0)
F(0) T(1)
Conjunction (AND)
Definition
Let p and q be propositions. The conjunction
of p and q, denoted by p˄q, is the proposition
“p and q”.
The conjunction p˄q is true when p and q are
both true and is false otherwise.
The value of p˄q =min(p,q)
Examples
p q pq p q pq
T T T 1 1 1
T F F 1 0 0
F T F 0 1 0
F F F 0 0 0
Disjunction (OR)
Definition
Let p and q be propositions. The disjunction
of p and q, denoted by p˅q, is the proposition
“p or q”.
The disjunction p˅q is false when both p and
q are false and is true otherwise.
The value of p ˅ q =max(p,q)
Examples
p q pq p q pq
T T T 1 1 1
T F T 1 0 1
F T T 0 1 1
F F F 0 0 0
Exclusive OR (XOR)
Definition
Let p and q be propositions. The exclusive or
of p and q, denoted by pq, is the proposition
“pq”.
The exclusive or, p q, is true when exactly
one of p and q is true and is false otherwise.
Examples
p q pq p q pq
T T F 1 1 0
T F T 1 0 1
F T T 0 1 1
F F F 0 0 0
Examples (OR vs XOR)
The following proposition uses the (English) connective
“or”. Determine from the context whether “or” is intended
to be used in the inclusive or exclusive sense.
T T F F F 1 1 0 0 0
T F F T T 1 0 0 1 1
F T T F T 0 1 1 0 1
F F T T T 0 0 1 1 1
Try as much as you can from…