In mathematical logic and automated theorem proving, resolution is a rule of inference leading to a refutation-complete theorem-proving technique for sentences in propositional logic and first-order logic. For propositional logic, systematically applying the resolution rule acts as a decision procedure for formula unsatisfiability, solving the (complement of the) Boolean satisfiability problem. For first-order logic, resolution can be used as the basis for a semi-algorithm for the unsatisfiability problem of first-order logic, providing a more practical method than one following from Gödel's completeness theorem.
The resolution rule can be traced back to Davis and Putnam (1960);[1] however, their algorithm required trying all ground instances of the given formula. This source of combinatorial explosion was eliminated in 1965 by John Alan Robinson's syntactical unification algorithm, which allowed one to instantiate the formula during the proof "on demand" just as far as needed to keep refutation completeness.[2]
The clause produced by a resolution rule is sometimes called a resolvent.
The resolution rule in propositional logic is a single valid inference rule that produces a new clause implied by two clauses containing complementary literals. A literal is a propositional variable or the negation of a propositional variable. Two literals are said to be complements if one is the negation of the other (in the following, [math]\displaystyle{ \lnot c }[/math] is taken to be the complement to [math]\displaystyle{ c }[/math]). The resulting clause contains all the literals that do not have complements. Formally:
where
The above may also be written as:
Or schematically as:
We have the following terminology:
The clause produced by the resolution rule is called the resolvent of the two input clauses. It is the principle of consensus applied to clauses rather than terms.[3]
When the two clauses contain more than one pair of complementary literals, the resolution rule can be applied (independently) for each such pair; however, the result is always a tautology.
Modus ponens can be seen as a special case of resolution (of a one-literal clause and a two-literal clause).
is equivalent to
When coupled with a complete search algorithm, the resolution rule yields a sound and complete algorithm for deciding the satisfiability of a propositional formula, and, by extension, the validity of a sentence under a set of axioms.
This resolution technique uses proof by contradiction and is based on the fact that any sentence in propositional logic can be transformed into an equivalent sentence in conjunctive normal form.[4] The steps are as follows.
One instance of this algorithm is the original Davis–Putnam algorithm that was later refined into the DPLL algorithm that removed the need for explicit representation of the resolvents.
This description of the resolution technique uses a set S as the underlying data-structure to represent resolution derivations. Lists, Trees and Directed Acyclic Graphs are other possible and common alternatives. Tree representations are more faithful to the fact that the resolution rule is binary. Together with a sequent notation for clauses, a tree representation also makes it clear to see how the resolution rule is related to a special case of the cut-rule, restricted to atomic cut-formulas. However, tree representations are not as compact as set or list representations, because they explicitly show redundant subderivations of clauses that are used more than once in the derivation of the empty clause. Graph representations can be as compact in the number of clauses as list representations and they also store structural information regarding which clauses were resolved to derive each resolvent.
[math]\displaystyle{ \frac{a \vee b, \quad \neg a \vee c} {b \vee c} }[/math]
In plain language: Suppose [math]\displaystyle{ a }[/math] is false. In order for the premise [math]\displaystyle{ a \vee b }[/math] to be true, [math]\displaystyle{ b }[/math] must be true. Alternatively, suppose [math]\displaystyle{ a }[/math] is true. In order for the premise [math]\displaystyle{ \neg a \vee c }[/math] to be true, [math]\displaystyle{ c }[/math] must be true. Therefore, regardless of falsehood or veracity of [math]\displaystyle{ a }[/math], if both premises hold, then the conclusion [math]\displaystyle{ b \vee c }[/math] is true.
Resolution rule can be generalized to first-order logic to:[5]
where [math]\displaystyle{ \phi }[/math] is a most general unifier of [math]\displaystyle{ L_1 }[/math] and [math]\displaystyle{ \overline{L_2} }[/math], and [math]\displaystyle{ \Gamma_1 }[/math] and [math]\displaystyle{ \Gamma_2 }[/math] have no common variables.
The clauses [math]\displaystyle{ P(x),Q(x) }[/math] and [math]\displaystyle{ \neg P(b) }[/math] can apply this rule with [math]\displaystyle{ [b/x] }[/math] as unifier.
Here x is a variable and b is a constant.
Here we see that
In first-order logic, resolution condenses the traditional syllogisms of logical inference down to a single rule.
To understand how resolution works, consider the following example syllogism of term logic:
Or, more generally:
To recast the reasoning using the resolution technique, first the clauses must be converted to conjunctive normal form (CNF). In this form, all quantification becomes implicit: universal quantifiers on variables (X, Y, ...) are simply omitted as understood, while existentially-quantified variables are replaced by Skolem functions.
So the question is, how does the resolution technique derive the last clause from the first two? The rule is simple:
To apply this rule to the above example, we find the predicate P occurs in negated form
in the first clause, and in non-negated form
in the second clause. X is an unbound variable, while a is a bound value (term). Unifying the two produces the substitution
Discarding the unified predicates, and applying this substitution to the remaining predicates (just Q(X), in this case), produces the conclusion:
For another example, consider the syllogistic form
Or more generally,
In CNF, the antecedents become:
(Note that the variable in the second clause was renamed to make it clear that variables in different clauses are distinct.)
Now, unifying Q(X) in the first clause with ¬Q(Y) in the second clause means that X and Y become the same variable anyway. Substituting this into the remaining clauses and combining them gives the conclusion:
The resolution rule, as defined by Robinson, also incorporated factoring, which unifies two literals in the same clause, before or during the application of resolution as defined above. The resulting inference rule is refutation-complete,[6] in that a set of clauses is unsatisfiable if and only if there exists a derivation of the empty clause using only resolution, enhanced by factoring.
An example for an unsatisfiable clause set for which factoring is needed to derive the empty clause is:
Since each clause consists of two literals, so does each possible resolvent. Therefore, by resolution without factoring, the empty clause can never be obtained. Using factoring, it can be obtained e.g. as follows:[7]
Generalizations of the above resolution rule have been devised that do not require the originating formulas to be in clausal normal form.[8][9][10][11][12][13]
These techniques are useful mainly in interactive theorem proving where it is important to preserve human readability of intermediate result formulas. Besides, they avoid combinatorial explosion during transformation to clause-form,[10]:98 and sometimes save resolution steps.[13]:425
For propositional logic, Murray[9]:18 and Manna and Waldinger[10]:98 use the rule
where [math]\displaystyle{ p }[/math] denotes an arbitrary formula, [math]\displaystyle{ F[p] }[/math] denotes a formula containing [math]\displaystyle{ p }[/math] as a subformula, and [math]\displaystyle{ F[\textit{true}] }[/math] is built by replacing in [math]\displaystyle{ F[p] }[/math] every occurrence of [math]\displaystyle{ p }[/math] by [math]\displaystyle{ \textit{true} }[/math]; likewise for [math]\displaystyle{ G }[/math]. The resolvent [math]\displaystyle{ F[\textit{true}] \lor G[\textit{false}] }[/math] is intended to be simplified using rules like [math]\displaystyle{ q \land \textit{true} \implies q }[/math], etc. In order to prevent generating useless trivial resolvents, the rule shall be applied only when [math]\displaystyle{ p }[/math] has at least one "negative" and "positive"[14] occurrence in [math]\displaystyle{ F }[/math] and [math]\displaystyle{ G }[/math], respectively. Murray has shown that this rule is complete if augmented by appropriate logical transformation rules.[10]:103
Traugott uses the rule
where the exponents of [math]\displaystyle{ p }[/math] indicate the polarity of its occurrences. While [math]\displaystyle{ G[\textit{true}] }[/math] and [math]\displaystyle{ G[\textit{false}] }[/math] are built as before, the formula [math]\displaystyle{ F[G[\textit{true}],\lnot G[\textit{false}]] }[/math] is obtained by replacing each positive and each negative occurrence of [math]\displaystyle{ p }[/math] in [math]\displaystyle{ F }[/math] with [math]\displaystyle{ G[\textit{true}] }[/math] and [math]\displaystyle{ G[\textit{false}] }[/math], respectively. Similar to Murray's approach, appropriate simplifying transformations are to be applied to the resolvent. Traugott proved his rule to be complete, provided [math]\displaystyle{ \land, \lor, \rightarrow, \lnot }[/math] are the only connectives used in formulas.[12]:398–400
Traugott's resolvent is stronger than Murray's.[12]:395 Moreover, it does not introduce new binary junctors, thus avoiding a tendency towards clausal form in repeated resolution. However, formulas may grow longer when a small [math]\displaystyle{ p }[/math] is replaced multiple times with a larger [math]\displaystyle{ G[\textit{true}] }[/math] and/or [math]\displaystyle{ G[\textit{false}] }[/math].[12]:398
As an example, starting from the user-given assumptions
the Murray rule can be used as follows to infer a contradiction:[15]
For the same purpose, the Traugott rule can be used as follows :[12]:397
From a comparison of both deductions, the following issues can be seen:
For first-order predicate logic, Murray's rule is generalized to allow distinct, but unifiable, subformulas [math]\displaystyle{ p_1 }[/math] and [math]\displaystyle{ p_2 }[/math] of [math]\displaystyle{ F }[/math] and [math]\displaystyle{ G }[/math], respectively. If [math]\displaystyle{ \phi }[/math] is the most general unifier of [math]\displaystyle{ p_1 }[/math] and [math]\displaystyle{ p_2 }[/math], then the generalized resolvent is [math]\displaystyle{ F\phi[\textit{true}] \lor G\phi[\textit{false}] }[/math]. While the rule remains sound if a more special substitution [math]\displaystyle{ \phi }[/math] is used, no such rule applications are needed to achieve completeness.[citation needed]
Traugott's rule is generalized to allow several pairwise distinct subformulas [math]\displaystyle{ p_1, \ldots, p_m }[/math] of [math]\displaystyle{ F }[/math] and [math]\displaystyle{ p_{m+1}, \ldots, p_n }[/math] of [math]\displaystyle{ G }[/math], as long as [math]\displaystyle{ p_1, \ldots, p_n }[/math] have a common most general unifier, say [math]\displaystyle{ \phi }[/math]. The generalized resolvent is obtained after applying [math]\displaystyle{ \phi }[/math] to the parent formulas, thus making the propositional version applicable. Traugott's completeness proof relies on the assumption that this fully general rule is used;[12]:401 it is not clear whether his rule would remain complete if restricted to [math]\displaystyle{ p_1 = \cdots = p_m }[/math] and [math]\displaystyle{ p_{m+1} = \cdots = p_n }[/math].[16]
Paramodulation is a related technique for reasoning on sets of clauses where the predicate symbol is equality. It generates all "equal" versions of clauses, except reflexive identities. The paramodulation operation takes a positive from clause, which must contain an equality literal. It then searches an into clause with a subterm that unifies with one side of the equality. The subterm is then replaced by the other side of the equality. The general aim of paramodulation is to reduce the system to atoms, reducing the size of the terms when substituting.[17]
Original source: https://en.wikipedia.org/wiki/Resolution (logic).
Read more |