Lecture 4 Lab
Laura Kovács
Problem 4.1
Apply the unification algorithm to the atoms and . Determine whether an mgu exists and show the intermediate steps of the algorithm.
Solution
Distinguish the unary and binary occurrences of (write them as and ) to avoid ambiguity:
The algorithm rewrites as
and then into
Substituting with yields
which simplifies to
The resulting substitution
is the most general unifier of the original atoms.
Problem 4.7
Show that the inverse of a dense order is dense. Outline a TPTP formalisation and the key steps in Vampire’s refutation (-av off).
Solution
Encode strict total order axioms and density for , plus clauses asserting iff . Negate density for by adding a clause stating that there exist with no such that and . Running Vampire (-av off) produces a refutation: the proof repeatedly superposes the inverse-direction axioms with the negated density clause until it forces a contradiction with density of . Recording the premises, substitutions, and derived clauses from those superposition steps shows precisely how the contradiction—and therefore the density of the inverse relation—arises.
Problem 4.8
Using the group axioms (associativity, left identity, inverses), prove that the left identity element is also a right identity. Provide a TPTP encoding (axioms plus negated goal) and describe the main superposition steps in Vampire’s refutation (-av off).
Solution
Encode the axioms:
- Associativity: .
- Left identity: .
- Inverses: .
Add the negated goal . Vampire refutes the set by chaining superposition steps: for example, superposing the inverse axiom with the negated goal yields clauses equating with , which then rewrite to contradictions with the left-identity clause. Documenting the key superposition inferences (premises, mgus, conclusions) explains how the empty clause is ultimately derived, establishing that must also be a right identity.