Lecture 4: Redundancy Elimination and Equality
Laura Kovács
Subsumption and Tautology Deletion
A clause is a propositional tautology if it is of the form , that is, it contains a pair of complementary literals.
There are also equational tautologies, for example:
A clause subsumes any clause , where is non-empty.
It was known since 1965 that subsumed clauses and propositional tautologies can be removed from the search space
Problem
- How can we prove that completeness is preserved if we remove subsumed clauses and tautologies from the search space?
- Solution: general theory of redundancy.
Bag Extension of an Ordering
Bag = finite multiset. Let be any (strict) ordering on a set . The bag extension of is a binary relation , on bags over , defined as the smallest transitive relation on bags such that
where .
Idea: a bag becomes smaller if we replace an element by any finite number of smaller elements.
The following results are known about the bag extensions of orderings:
- is an ordering;
- If is total, then so is ;
- If is well-founded, then so is .
Clause Orderings
From now on consider clauses also as bags of literals. Note:
- we have an ordering for comparing literals;
- a clause is a bag of literals.
Hence
- we can compare clauses using the bag extension of .
For simpicity we often denote the multiset ordering also by .
Example
Let be a total well-founded ordering on the ground atoms such that .
Consider the bag extension of ; for simplicity, denote the bag extension of also by .
Using , compare and order the following three clauses:
Redundancy
A clause is called redundant in if it is a logical consequence of clauses in strictly smaller than .
Examples
A tautology is a logical consequence of the empty set of formulas:
therefore it is redundant.
We know that subsumes . Note
therefore subsumed clauses are redundant.
If , then all non-empty other clauses in are redundant.
Redundant Clauses Can be Removed
In (and in all calculi we will consider later) redundant clauses can be removed from the search space.
Inference Process with Redundancy
Let be an inference system. Consider an inference process with two kinds of step :
- Adding the conclusion of an -inference with premises in .
- Deletion of a clause redundant in , that is
where is redundant in .
Fairness: Persistent Clauses and Limit
Consider an inference process
A clause is called persistent if
The limit of the inference process is the set of all persistent clauses:
Fairness
The process is called -fair if every inference with persistent premises in has been applied, that is, if
is an inference in and , then for some .
Completeness of
Completeness Theorem. Let be a well-founded ordering and a well-behaved selection function. Let also
- be a set of clauses;
- be a fair -inference process.
Then is unsatisfiable if and only if for some .
Saturation up to Redundancy
A set of clauses is called saturated up to redundancy if for every -inference
with premises in , either
- ; or
- is redundant w.r.t. , that is, .
Saturation up to Redundancy and Satisfiability Checking
Lemma. A set of clauses saturated up to redundancy is unsatisfiable if and only if .
Therefore, if we built a set saturated up to redundancy, then the initial set is satisfiable. This is a powerful way of checking redundancy: one can even check satisfiability of formulas having only infinite models.
The only problem with this characterisation is that there is no obvious way to build a model of out of a saturated set.
Binary Resolution with Selection
- One of the key properties to satisfy this lemma is the following:
- the conclusion of every rule is strictly smaller that the rightmost premise of this rule.
- Binary resolution,
- Positive factoring,
First-order logic with equality
- Equality predicate: .
- Equality: .
The order of literals in equalities does not matter, that is, we consider an equality as a multiset consisting of two terms , and so consider and equal.
Equality. An Axiomatisation (Recap)
-
reflexivity axiom: ;
-
symmetry axiom: ;
-
transitivity axiom: ;
-
function substitution (congruence) axioms: , for every function symbol ;
-
predicate substitution (congruence) axioms: , for every predicate symbol .
Inference systems for logic with equality
We will define a resolution and superposition inference system. This system is complete. One can eliminate redundancy.
We will first define it only for ground clauses. On the theoretical side,
- Completeness is first proved for ground clauses only.
- It is then “lifted” to arbitrary first-order clauses using a technique called lifting.
- Moreover, this way some notions (ordering, selection function) can first be defined for ground clauses only and then it is relatively easy to see how to generalise them for non-ground clauses.
Simple Ground Superposition Inference System
Superposition: (right and left)
Equality Resolution:
Equality Factoring:
Example
Can this system be used for efficient theorem proving?
Not really. It has too many inferences. For example, from the clause we can derive any clause of the form
where . Worst of all, the derived clauses can be much larger than the original clause .
The recipe is to use the previously introduced ingredients:
- Ordering;
- Literal selection;
- Redundancy elimination.