Skip to main content

Lecture 2 Lab

Laura Kovács

Problem 2.1

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 ppp \lor \underline{p}. The maximal literal must be pp under any ordering, but only one occurrence is selected, so the selection can never satisfy the “select all maximal literals” requirement.

Problem 2.2

Let

S={¬qr, ¬pq, ¬r¬q, ¬q¬p, ¬p¬r, ¬rp, rqp}.S = \{\neg q \lor r,\ \neg p \lor q,\ \neg r \lor \neg q,\ \neg q \lor \neg p,\ \neg p \lor \neg r,\ \neg r \lor p,\ r \lor q \lor p\}.
  1. Prove SS is unsatisfiable using BR\mathbb{BR}.
  2. Encode SS in TPTP and use Vampire (run with -av off) to prove unsatisfiability.
Solution (sketch)
  1. Use binary resolution to derive unit clauses: resolve ¬qr\neg q \lor r with ¬r¬q\neg r \lor \neg q to obtain ¬q\neg q, then propagate to derive pp and rr, eventually leading to a contradiction when resolving with clauses containing their negations. Any complete derivation is acceptable.
  2. 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.