Test 1 Sample - Spring 2016
Test 1 Sample - Spring 2016
Byblos
Name: ID:
(a) Write three propositional logic formulas that represent the three state-
ments above using A, B, C, D and logical connectives.
(b) We denote by the set of the three formulas of the preceding question.
Prove using three di↵erent methods (by contradiction, formal proof and
resolution proof) that ` ' where ' is the statement: If the fridge door
is open then the fridge light is on.
1
4. (30 pts) Find a resolution and a formal proof for the following:
(a) {a _ b ; s _ ¬a ; s _ ¬b} ` s
(b) ` (s ! (p ! ¬s)) ! (s ! ¬p)
(c) ` (¬p _ ¬q) ! ((p ! ¬q) ^ (q ! ¬p))
5. (18 pts) Find using Karnaugh maps a DNF and a CNF for the formula '
which has the following truth table:
p q r s φ
T T T T F
T T T F T
T T F T F
T F T T T
F T T T F
T T F F F
T F T F T
T F F T F
F F T T T
F T F T F
F T T F T
T F F F T
F T F F F
F F T F T
F F F T F
F F F F T