Lecture-7 Normal Forms
Lecture-7 Normal Forms
Normal Forms
Lecture-7
09-09-2020
Topic covered
1. Introduction to FoLT (Completed)
2. What are Logic- Propositional (Completed)
3. Types of operators for Logic (Completed)
4. Fuzzy Logic(Completed)
5. Propositional Equivalences(Completed)
6. Predicates and Quantifiers (Completed)
7. Rules of Inference (Completed)
8. Introduction to proofs (Completed)
9. Normal forms
2
Induction
Revision on Proofs
Normal Forms
Logical Operators
(p q)
(p q) Double negation (2)
(pq ) DeMorgan
Find an expression equivalent to p q
that uses only conjunctions and negations.
p q pq
How many minterms in
T T T the DNF?
T F F
F T T
F F T
The DNF of p q is (pq) (p q) (p q).
Then, applying DeMorgan’s Law, we get that this is
equivalent to
[(pq) (p q) (p q)].
Now can we write an equivalent statement to p q
that uses only disjunctions and negations?
pq
[(pq) (p q) (p q)] From Before
[(pq) (pq) (p q)] DeMorgan
[(pq) (pq) (pq)] Doub. Neg.
[(pq) (pq) (pq)] DeMorgan
Conjunctive Normal Form
Conjunctive Normal Form
The conjunctive normal form of a proposition is
another “canonical form” that may occasionally be
useful, but not to the same degree as the
disjunctive normal form. As the name should
suggests after our discussion above, the conjunctive
normal form of a proposition is the equivalent form
that consists of a “conjunction of disjunctions.” It is
easily constructed indirectly using disjunctive
normal forms by observing that if you negate a
disjunctive normal form you get a conjunctive
normal form. For example,
Practice Problems
Solution 1.2a
Hard Practice Problem
• You can also use a truth table to see if your
solution is equivelant
SAT
• Boolean Satisfiability Problem
– Satisfiable : If the Boolean variables can be
assigned values such that the formula turns out to
be TRUE, then we say that the formula is
satisfiable.
– Unsatisfiable : If it is not possible to assign such
values, then we say that the formula is
unsatisfiable.
• Boolean satisfiability problem is NP-complete
2SAT
– Input :
– Output : The given expression is satisfiable. (for x1 =
FALSE, x2 = TRUE)
– Input :
– Output : The given expression is unsatisfiable. (for all
possible combinations of x1 and x2)
Hardness