Tutorial 5. Boolean satisfiability
Exercise sheet
Truth-function representations
We looked at how to read off a Boolean expression from a truth-table. Apply the method to the following:
![]() |
![]() |
|
![]() |
Inspect the resulting Boolean expressions. Can you simplify them while remaining in DNF?
Circuit representations
We’ve observed that our relay circuits are essentially build up from relay implementations of NOT (default “on”) and AND (default “off”). Use the idea to represent the following circuits as Boolean expressions:
![]() |
![]() |
Are the resulting formulas in normal form (CNF or DNF)?
Equivalence
The XNOR function is special: it expresses that X
and Y
have the same value—just check the table!
-
Find the simplest representation of XNOR in terms of NOT and XOR.
Hint: Inspect XNOR and XOR’s function tables, how are they related?
-
Use this implementation to reduce the verification problem for a relay circuit from two
SAT
problems for different sets (as in the text) to a singleSAT
problem for a single expression.Hint: Think about when
X XNOR Y
is true and whenX XOR Y
is true.
Truth tables
Use the truth-table method to check whether the following claims are true:
-
The set of expressions
((NOT X) OR (NOT Y))
and(X AND Y)
isSAT
. -
The set formulas {
RAIN, (RAIN
(
WIND
RAIN) } is
SAT
.
Mystery formula
Determine the following “mystery formula” form its truth-table:

What’s the shortest representation of the formula you can find?
Normal Forms
Transform the following formulas into DNF and CNF:
- (RAIN
(SUN
RAIN))
- (
RAIN
(
RAIN
WIND))
- (RAIN
SUN)
(
RAIN
SUN)
Resolution
Use the resolution method to determine whether the following formulas are satisfiable:
- (SUN
RAIN
WIND)
(SUN
RAIN
WIND)
-
(SUN
RAIN)
(WIND
WIND)
- (SUN
RAIN)
(SUN
RAIN)
(
SUN
RAIN)
(
SUN
RAIN)
- (SUN
(SUN
RAIN))
(RAIN
(RAIN
SUN))
Valid inference
Determine whether the following inferences are valid using both the truth-table and the resolution method. Which one is faster?
-
RAIN
RAIN
(
RAIN
SUN)
-
RAIN
(RAIN
WIND)
RAIN
SUN