In mathematical logic and automated theorem proving, resolution is a rule of inference leading to a sound and 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); 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.
The clause produced by a resolution rule is sometimes called a resolvent.
Contents
Resolution in propositional logic
Resolution rule
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,
¬c is taken to be the complement to c). The resulting clause contains all the literals that do not have complements.
Formally:
a1∨a2∨⋯∨c,b1∨b2∨⋯∨¬ca1∨a2∨⋯∨b1∨b2∨⋯
where
all ai, bi, and c are literals,
the dividing line stands for "entails".
The above may also be written as:
(¬a1∧¬a2∧⋯)→c,c→(b1∨b2∨⋯)(¬a1∧¬a2∧⋯)→(b1∨b2∨⋯)
Or schematically as:
Γ1∪{ℓ}Γ2∪{ℓ‾}Γ1∪Γ2|ℓ|
We have the following terminology:
The clauses Γ1∪{ℓ} and Γ2∪{ℓ‾} are the inference's premises
Γ1∪Γ2 (the resolvent of the premises) is its conclusion.
The literal ℓ is the left resolved literal,
The literal ℓ‾ is the right resolved literal,
|ℓ| is the resolved atom or pivot.
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.
A resolution technique
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. The steps are as follows.
All sentences in the knowledge base and the negation of the sentence to be proved (the conjecture) are conjunctively connected.
The resulting sentence is transformed into a conjunctive normal form with the conjuncts viewed as elements in a set, S, of clauses.
For example, (A1∨A2)∧(B1∨B2∨B3)∧(C1) gives rise to the set S={A1∨A2,B1∨B2∨B3,C1}.
The resolution rule is applied to all possible pairs of clauses that contain complementary literals. After each application of the resolution rule, the resulting sentence is simplified by removing repeated literals. If the clause contains complementary literals, it is discarded (as a tautology). If not, and if it is not yet present in the clause set S, it is added to S, and is considered for further resolution inferences.
If after applying a resolution rule the empty clause is derived, the original formula is unsatisfiable (or contradictory), and hence it can be concluded that the initial conjecture follows from the axioms.
If, on the other hand, the empty clause cannot be derived, and the resolution rule cannot be applied to derive any more new clauses, the conjecture is not a theorem of the original knowledge base.
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.
Resolution in first-order logic
Resolution rule can be generalized to first-order logic to:
Γ1∪{L1}Γ2∪{L2}(Γ1∪Γ2)ϕϕ
where ϕ is a most general unifier of L1 and L2‾, and Γ1 and Γ2 have no common variables.
Example
The clauses P(x),Q(x) and ¬P(b) can apply this rule with [b/x] as unifier.
Here x is a variable and b is a constant.
P(x),Q(x)¬P(b)Q(b)[b/x]
Here we see that
The clauses P(x),Q(x) and ¬P(b) are the inference's premises
Q(b) (the resolvent of the premises) is its conclusion.
The literal P(x) is the left resolved literal,
The literal ¬P(b) is the right resolved literal,
P is the resolved atom or pivot.
[b/x] is the most general unifier of the resolved literals.
Informal explanation
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:
All Greeks are Europeans.
Homer is a Greek.
Therefore, Homer is a European.
Or, more generally:
∀x.P(x)⇒Q(x)
P(a)
Therefore, Q(a)
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.
¬P(x)∨Q(x)
P(a)
Therefore, Q(a)
So the question is, how does the resolution technique derive the last clause from the first two? The rule is simple:
Find two clauses containing the same predicate, where it is negated in one clause but not in the other.
Perform a unification on the two predicates. (If the unification fails, you made a bad choice of predicates. Go back to the previous step and try again.)
If any unbound variables which were bound in the unified predicates also occur in other predicates in the two clauses, replace them with their bound values (terms) there as well.
Factoring
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, 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:
(1):P(u)∨P(f(u))(2):¬P(v)∨P(f(w))(3):¬P(x)∨¬P(f(x))
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:
(4):P(u)∨P(f(w))by resolving (1) and (2), with v=f(u)(5):P(f(w))by factoring (4), with u=f(w)(6):¬P(f(f(w′)))by resolving (5) and (3), with w=w′,x=f(w′)(7):falseby resolving (5) and (6), with w=f(w′)
Non-clausal resolution
Generalizations of the above resolution rule have been devised that do not require the originating formulas to be in clausal normal form.
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, and sometimes save resolution steps.
Non-clausal resolution in propositional logic
For propositional logic, Murray and Manna and Waldinger use the rule
F[p]G[p]F[𝑡𝑟𝑢𝑒]∨G[𝑓𝑎𝑙𝑠𝑒],
where p denotes an arbitrary formula. Here F[p] and G[p] denote formulas containing p as a subformula. F[𝑡𝑟𝑢𝑒] is built by replacing every occurrence of p in F[p] by 𝑡𝑟𝑢𝑒. Similarly, G[𝑓𝑎𝑙𝑠𝑒] is built by replacing every occurrence of p in G[p] by 𝑓𝑎𝑙𝑠𝑒.
The resolvent F[𝑡𝑟𝑢𝑒]∨G[𝑓𝑎𝑙𝑠𝑒] is intended to be simplified using rules like q∧𝑡𝑟𝑢𝑒⟹q, etc.
In order to prevent generating useless trivial resolvents, the rule is applied only when p has at least one "negative" and "positive" occurrence in F and G, respectively. Murray has shown that this rule is complete if augmented by appropriate logical transformation rules.
Traugott uses a rule that can be similarly expressed as
F[p+,p−]G[p]F[G[𝑡𝑟𝑢𝑒],¬G[𝑓𝑎𝑙𝑠𝑒]],
where the exponents of p indicate the polarity of its occurrences. While G[𝑡𝑟𝑢𝑒] and G[𝑓𝑎𝑙𝑠𝑒] are built as before, the formula F[G[𝑡𝑟𝑢𝑒],¬G[𝑓𝑎𝑙𝑠𝑒]] is obtained by replacing each positive occurrence of p in F with G[𝑡𝑟𝑢𝑒] and each negative occurrence with G[𝑓𝑎𝑙𝑠𝑒]. Similar to Murray's approach, appropriate simplifying transformations are to be applied to the resolvent. Traugott proved his rule to be complete, provided ∧,∨,→,¬ are the only connectives used in formulas.
Traugott's resolvent is stronger than Murray's. Moreover, it does not introduce new binary connectives, thus avoiding a tendency towards clausal form in repeated resolution. However, formulas may grow longer when a small p is replaced multiple times with a larger G[𝑡𝑟𝑢𝑒] and/or G[𝑓𝑎𝑙𝑠𝑒].
Propositional non-clausal resolution example
As an example, starting from the user-given assumptions
(1):a→b∧c(2):c→d(3):b∧d→e(4):¬(a→e)
the Murray rule can be used as follows to infer a contradiction:
(5):(𝑡𝑟𝑢𝑒→d)∨(a→b∧𝑓𝑎𝑙𝑠𝑒)⟹d∨¬afrom (2) and (1), with p=c(6):(b∧𝑡𝑟𝑢𝑒→e)∨(𝑓𝑎𝑙𝑠𝑒∨¬a)⟹(b→e)∨¬afrom (3) and (5), with p=d(7):((𝑡𝑟𝑢𝑒→e)∨¬a)∨(a→𝑓𝑎𝑙𝑠𝑒∧c)⟹e∨¬a∨¬afrom (6) and (1), with p=b(8):(e∨¬𝑡𝑟𝑢𝑒∨¬𝑡𝑟𝑢𝑒)∨¬(𝑓𝑎𝑙𝑠𝑒→e)⟹efrom (7) and (4), with p=a(9):¬(a→𝑡𝑟𝑢𝑒)∨𝑓𝑎𝑙𝑠𝑒⟹𝑓𝑎𝑙𝑠𝑒from (4) and (8), with p=e
For the same purpose, the Traugott rule can be used as follows :
(10):a→b∧(𝑡𝑟𝑢𝑒→d)⟹a→b∧dfrom (1) and (2), with p=c(11):a→(𝑡𝑟𝑢𝑒→e)⟹a→efrom (10) and (3), with p=(b∧d)(12):¬𝑡𝑟𝑢𝑒⟹𝑓𝑎𝑙𝑠𝑒from (11) and (4), with p=(a→e)
From a comparison of both deductions, the following issues can be seen:
Traugott's rule may yield a sharper resolvent: compare (5) and (10), which both resolve (1) and (2) on p=c.
Murray's rule introduced 3 new disjunction symbols: in (5), (6), and (7), while Traugott's rule did not introduce any new symbol; in this sense, Traugott's intermediate formulas resemble the user's style more closely than Murray's.
Due to the latter issue, Traugott's rule can take advantage of the implication in assumption (4), using as p the non-atomic formula a→e in step (12). Using Murray's rules, the semantically equivalent formula e∨¬a∨¬a was obtained as (7), however, it could not be used as p due to its syntactic form.
Non-clausal resolution in first-order logic
For first-order predicate logic, Murray's rule is generalized to allow distinct, but unifiable, subformulas p1 and p2 of F and G, respectively. If ϕ is the most general unifier of p1 and p2, then the generalized resolvent is Fϕ[𝑡𝑟𝑢𝑒]∨Gϕ[𝑓𝑎𝑙𝑠𝑒]. While the rule remains sound if a more special substitution ϕ is used, no such rule applications are needed to achieve completeness.
Traugott's rule is generalized to allow several pairwise distinct subformulas p1,…,pm of F and pm+1,…,pn of G, as long as p1,…,pn have a common most general unifier, say ϕ. The generalized resolvent is obtained after applying ϕ 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; it is not clear whether his rule would remain complete if restricted to p1=⋯=pm and pm+1=⋯=pn.
Paramodulation
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.
Implementations
CARINE
GKC
Otter
Prover9
SNARK
SPASS
Vampire
Logictools online prover



