Lecture 2 Exercises
Laura Kovács
Problem 2.1
Let be the following set of clauses:
Consider the binary resolution inference system . Show that there exists an infinite number of different derivations of the empty clause from the clauses of .
🎬 Related animation: Review resolution visually before working through the derivation.
Solution
One concrete derivation of from is obtained by resolving the clauses in the following sequence (numbers refer to the clauses as they appear in ):
- From and derive .
- From and derive .
- Factor to obtain .
- Resolve with to get .
- Resolve the second copy of with to obtain .
To build infinitely many different derivations, insert the following detour any number of times just before the last resolution step:
- Use (derived in step 3) together with to obtain .
- Resolve with to derive again.
Repeating this detour an arbitrary number of times yields infinitely many distinct resolution derivations that still end in .
Problem 2.2
Consider a well-founded strict ordering on atoms. Prove that the induced ordering on literals, as defined in the lecture, is also well-founded.
Solution
Let be a literal and define to be if is either or . By construction of the induced ordering, whenever we also have .
Suppose, for contradiction, that the literal ordering is not well-founded. Then there is an infinite descending chain . Applying the observation above yields an infinite descending chain on atoms:
contradicting the assumption that the atom ordering is well-founded. Hence the induced literal ordering is well-founded.
Problem 2.3
Let be boolean atoms and let be the following set of ground formulas:
Take any ordering such that and any selection function over such that
a.) Is a well-behaved selection function over ? Justify your answer.
b.) How many inferences of are applicable to ? Justify your answer.
Solution
a.) A selection function is well-behaved if, for every clause, either a negative literal is selected or all maximally ordered literals are selected. In the first three clauses of , selects a negative literal, so the condition holds. In the last clause, selects , which is the unique maximal literal because . Therefore, is well-behaved on .
b.) No factoring inference applies, since no clause contains the same positive literal twice. A binary resolution step in must resolve on selected literals of opposite polarity. The only such pair is and , yielding
Thus exactly one inference is applicable.
Problem 2.4
Give an example of a non-tautological ground clause with at least one selected literal such that the selection is not well-behaved for any ordering.
Solution
Take . The maximal literal must be under any ordering, but only one occurrence is selected, so the selection can never satisfy the “select all maximal literals” requirement.
Problem 2.5
Let
- Prove is unsatisfiable using .
- Encode in TPTP and use Vampire (run with
-av off) to prove unsatisfiability.
Solution (sketch)
- Use binary resolution to derive unit clauses: resolve with to obtain , then propagate to derive and , eventually leading to a contradiction when resolving with clauses containing their negations. Any complete derivation is acceptable.
- Translate each clause into TPTP CNF syntax, run
vampire -av off input.tptp, and inspect the proof output to confirm the empty clause is produced.