Tutorial 6. Logical conditionals
Exercise sheet
Boolean conditional
We’ve interpreted the conditional symbol
using the Booleans NOT
and OR. But we could also have directly defined a Boolean function IF
with the following truth-table:

Note that X IF Y
is the conditional from the value of
X
to the value
of Y
to make the reading of the Boolean align with its natural reading.
Find a representation of this Boolean function using only NOT and AND. That is find a Boolean expression exp
in the two variables X
and Y
, which contains only the Boolean functions NOT and AND, and which meets the specification that for all values of X
and Y
, we have:
exp = X IF Y.
Verify your work! That is don’t just provide an expression, but show that for all values of X
and Y
the above equation holds.
Equivalence
Remember the truth-table for XNOR from the last exercises set:

Find a formula representation of this Boolean truth-function using only the
propositional variables p and q and the connectives
and
! That is, find such formula satisfying these constraints, which meets
the assignments v of truth-values to p and q, we have:
Verify your work! That is don’t just provide a formula, but show that for each assignment the above equation holds.
Conditional inferences

Check the following conditional inferences for deductive validity using
SAT
-solving. You can use truth-tables or resolution, as you prefer.
-
(RAIN
WIND),
RAIN
()
WIND
-
(RAIN
WIND)
(
WIND
RAIN)
-
(
RAIN
RAIN)
RAIN
-
(RAIN
( SUN
RAINBOW))
((RAIN
SUN)
RAINBOW)
-
(RAIN
WIND)
RAIN
Document your work carefully, that is explain each step you’re carrying out,
and why the work you did shows that the inference in question is valid or invalid.
Valid inference and conditionals
There’s a deep connection between deductively valid inference in Boolean logic and material conditionals, which is given by the following important equivalence:




-
A logical formula A is called a logical truth iff for all assignments v of truth-values to its propositional variables, the formula is true, i.e. v(A) = 1. Verify that the simple formula
(RAINis a logical truth in this sense.RAIN)
-
Rephrase the right-hand side of above equivalence in terms of the logical truth rather than unsatisfiability.
-
Give an argument that the above equivalence is true.
Hint: To do so, you need to use the general form of the reduction of valid inference to unsatisfiability, which we’ve discussed in the lecture
P₁, P₂, …Think about what the latter condition means for the truth of the corresponding conditional.C if and only if not-SAT { P₁, P₂, … ,
C }
Chaining
Consider the following KB:
- RAIN
CLOUDS
- (CLOUDS
SNOW)
STORM
- RAIN
PUDDLES
- PUDDLES
HUMID
- HUMID
CLOUDS
- SUN
DRY
- (WIND
SNOW)
DRIFTING
We add to this KB the following two facts:
-
Run the forward-chaining and the backward-chaining algorithm to show that we can derive STORM from the KB. That is, describe the steps you’d take for each algorithm one-by-one, and why at some point you hit the termination condition.
-
Use the example to illustrate how forward-chaining can find shorter derivations than backward-chaining.
-
Use both forward and backward-chaining to show that we can’t derive DRIFTING from the KB using the facts. Does one algorithm outperform the other?
Planning
We’ve made things a more difficult for IA by introducing a third block into the puzzle:

Adjust our planning solution to accommodate the more complicated setup. That is:
-
Determine how we need to adjust the language to accommodate the third block.
-
Which rules do we need to add to our a KB to accommodate the third block.
-
Represent the initial setup state and the goal state in the language.
-
Find a model that satisfies the KB, as well as the setup and goal state. Then read off a course o action. You don’t need to do this formally—using resolution or chaining—but just find such a model using human intelligence.
Discussion
Check out the Wason selection task on Wikipedia.
Some researchers have argued that the experiment shows that people don’t reason with the material conditional in this case. Do you agree? Why?