Chapter 1.3
Chapter 1.3
1
The Foundations:
Logic and Proofs
Chapter 1
2
The Foundations:
Logic and Proofs
Propositional Equivalences
3
Tautologies, Contradictions, and
Contingencies
Logical Equivalence
Propositional Satisfiability
4
Tautologies,
1 Contradictions,
and Contingencies
5
Tautologies, Contradictions, and
Contingencies
A tautology is a compound proposition that is true no matter
what the truth values of its atomic propositional variables
that occur in it
pp
A contradiction is a compound proposition that is false no
matter what the truth values of its atomic propositions are
pp
A compound proposition that’s neither a tautology nor a
contradiction is called a contingency.
P ¬p p ∨¬p p ∧¬p
T F T F
F T T F
6
Logical Equivalence
Show that (pq)(pq) is a tautology using truth table.
F F F F T
F T F T T
T F F T T
T T T T T
7
2
Logical Equivalences
8
Proving Logical Equivalences
Compound propositions p and q are logically equivalent to each other IFF p and
q contain the same truth values as each other in all rows of their truth tables.
logical equivalence
Note and are not logical operators (connectives). Rather, they indicate a
kind of logical equality.
9
Proving Equivalence via Truth Tables
Prove that:
p q (p q).
p q p q p q p q ( p q)
F F F T T T F
F T T T F F T
T F T F T F T
T T T F F F T
11
Important Equivalences
12
Using De Morgan’s
2
Laws
13
De Morgan’s Laws
14
De Morgan’s Laws
Let p be “Mohamed has a cellphone” and
q be “Mohamed has a laptop computer.”
Then “Mohamed has a cellphone and he has a laptop computer” can be represented by p ∧ q.
De Morgan’s laws: (p q) p q
15
Constructing New Logical
4
Equivalences
16
Defining Operators via Equivalences
Implication:
p q p q
Biconditional:
p q (p q) (q p)
17
Example 1
[p (p q)] q
[p (p q)] q Implication law
[(p p) (p q)] q Distributive law
[ F (p q)] q Negation law
(p q) q Identity law
(p q) q Implication law
(p q) q DeMorgan’s law
p (q q ) Associative law
p T Negation law
T Domination
19
Exercise 1
Show that
(pq) (p)(q)
20
Solution
p q (p q) ( p)( q) (p q) ( p)( q)
F F T T T
F T F F T
T F F F T
T T F F T
21
Exercise2
22
Propositional
5
Satisfiability
23
Propositional Satisfiability
24
Propositional Satisfiability
When we find a particular assignment of truth values that makes a compound proposition true, we have shown that it is satisfiable; such an assignment is called a solution of this particular satisfiability problem.
However, to show that a compound proposition is unsatisfiable, we need to show that every assignment of truth values to its variables makes it false.
We can use a truth table to study the satisfiability problem, however, it is often more efficient not to.
25
Example 1
Determine whether each of the compound propositions:
(p ↔ q) ∧ ( ¬ p ↔ q)
is satisfiable??
It is Not Satisfiable.
26
Example 2
Determine the satisfiability of the following compound propositions:
Note: instead of using a truth table to solve the problem, we will reason about
the truth values
Satisfiable. Assign T to p, q, and r (or assign F to all) i.e. all variables have the same truth values
Satisfiable. Assign T to p and F to q (at least one is true and at least one is false)
Not satisfiable. Check each possible assignment of truth values to the propositional variables and none will make the proposition true.
27
Applications of Satisfiability (self-
learning)
28
Summary
1
Tautologies, Contradictions, and Contingencies
1
Logical equivalences
1
Using De Morgan’s laws
1
Constructing new logical equivalences
1
Propositional satisfiability
29
Reference
30