Professional Documents
Culture Documents
Lecture 3
Lecture 3
Lecture Summery
• Propositions
• Logical Connectives
• Truth Tables
• Compound propositions
• Translating English to logic and logic to English.
Propositional Logic
3
Examples (Propositions Cont.)
5
Examples (Propositions Cont.)
x+ 4 > 9.
He is a college student.
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 : Today is Friday.
The negation is
p : It is not the case that today is Friday.
“6 is negative”.
The negation is
p p
true false
false true
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.
Examples
p : Today is Friday.
q : It is raining today.
The conjunction is
p q p q
true true true
true false false
false true false
false false false
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.
Examples
p : Today is Friday.
q : It is raining today.
The disjunction is
p q pq
true true true
true false true
false true true
false false false
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
24
Composite Statements
p q p q (p)(q)
true true false false false
true false false true true
false true true false true
false false true true true
25
Translating English to Logic
In logic form
p(pq)
Conditional Statements
Implication
Definition: Let p and q be propositions. The
conditional statement p q, is the
proposition “If p, then q”.
The conditional statement p q is false
when p is true and q is false and is true
otherwise.
P Q PQ
true true true
true false false
false true true
false false true
Conditional Statements
Biconditional Statements
Definition: Let p and q be propositions. The
biconditional statement pq, is the
proposition “p if and only if q”.
The biconditional (bi-implication)
statement p q is true when p and q
have same truth values and is false
otherwise.
Biconditional (if and only if)
P Q P Q (P)(Q)
true true false false false
true false false true true
false true true false true
false false true true true
Equivalent Statements
(PQ
P Q (P)(Q) (PQ)(P)(Q)
)
• Examples:
• R(R)
(PQ) (P)(Q)
• If S T is a tautology, we write S T.
• If S T is a tautology, we write S T.
Tautologies and Contradictions
Examples
• R(R)
((PQ)(P)(Q))
• The negation of any tautology is a contradiction,
and the negation of any contradiction is a
tautology.
Exercises
•We already know the following tautology:
(PQ) (P)(Q)
•Nice home exercise:
•Show that (PQ) (P)(Q).
•These two tautologies are known as De Morgan’s
laws.