Lecture 8 Exercises
Laura Kovács
Problem 8.1
Let be unary, binary, constants, and variables. The weight function satisfies for every symbol and variable, and the precedence is . Using KBO (extended to literals/clauses), answer:
- Do and make redundant?
- Does make redundant?
- Does make redundant?
Solution
- Yes. Clause is ground. Instantiating with yields , and together with ground these clauses entail . Both supporting clauses are strictly smaller than under KBO, so every ground instance of (namely itself) is redundant.
- Yes. The ground instance of lies in , is unsatisfiable, and is smaller than any ground instance of . Therefore each ground instance of is redundant with respect to .
- Yes. Renaming to shows is an instance of . For any ground instance of , the literal is implied by the corresponding ground instance of and is strictly smaller than the full clause, so renders redundant.
Problem 8.2
Consider the inference (in , no ):
with predicate symbol , function symbols , constants , and variables .
- Prove the inference is sound.
- Is it a simplifying inference of for some KBO? Justify.
Solution
-
Let satisfy both premises. If , the conclusion is immediate. Otherwise the second premise forces , which combined with the first premise yields , again making the conclusion true. Hence the inference is sound.
-
No. A simplifying inference would make at least one premise redundant given the other premise and the conclusion. However:
- Model with domain , interpreting as false everywhere and all results as , satisfies and the conclusion but not .
- Model with domain , interpreting as the entire domain and assigning as in the LaTeX solution, satisfies and the conclusion but not .
Therefore neither premise becomes redundant, so the inference is not simplifying for any KBO.
Problem 8.3
Consider the superposition inference (with and selected):
subject to , , , , , and a well-behaved selection function.
- Is always true?
- Does necessarily become redundant after applying the inference?
Solution
- No. Because is a simplification ordering, implies . Since , we obtain . Multiset extension then gives , so the conclusion is strictly smaller, not larger.
- No. Redundancy would require that every ground instance of be entailed by smaller ground instances from the premises. When are ground, we have and, because is smaller, . Hence is not larger than , contradicting the ordering requirement for redundancy. Thus the premise need not become redundant.
Problem 8.4
In (with ), consider
where are function symbols, variables, and constants.
- Prove the inference is sound.
- Is it simplifying for any KBO? Justify.
Solution
- Instantiate both premises with . Binary resolution yields . Two applications of equality factoring generate and then . Two equality-resolution steps reduce this to . Therefore the conclusion follows by sound rules, so the inference is sound.
- No. A simplifying inference would make at least one premise redundant. Consider:
- Model with domain , interpreting , , and . Then and , so satisfies the second premise and the conclusion, but for ; hence the first premise is not redundant.
- Model with domain , interpreting and . Then satisfies the first premise and the conclusion but falsifies the second premise for . Therefore the second premise is not redundant either.
Thus the inference is not simplifying under any KBO.
Problem 8.5 (Hands-on Vampire)
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 8.6 (Hands-on Vampire)
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.