fbpx
Wikipedia

Resolution (logic)

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.

Resolution in propositional logic edit

Resolution rule edit

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,   is taken to be the complement to  ). The resulting clause contains all the literals that do not have complements. Formally:

 

where

all  ,  , and   are literals,
the dividing line stands for "entails".

The above may also be written as:

 

Or schematically as:

 

We have the following terminology:

  • The clauses   and   are the inference's premises
  •   (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.[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

 

A resolution technique edit

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.

  • 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.[4]
    • For example,   gives rise to the set  .
  • 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.

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.

A simple example edit

 

In plain language: Suppose   is false. In order for the premise   to be true,   must be true. Alternatively, suppose   is true. In order for the premise   to be true,   must be true. Therefore, regardless of falsehood or veracity of  , if both premises hold, then the conclusion   is true.

Resolution in first-order logic edit

Resolution rule can be generalized to first-order logic to:[5]

 

where   is a most general unifier of   and  , and   and   have no common variables.

Example edit

The clauses   and   can apply this rule with   as unifier.

Here x is a variable and b is a constant.

 

Here we see that

  • The clauses   and   are the inference's premises
  •   (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.
  •   is the most general unifier of the resolved literals.

Informal explanation edit

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:

 
 
Therefore,  

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.

 
 
Therefore,  

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.
  • Discard the unified predicates, and combine the remaining ones from the two clauses into a new clause, also joined by the "∨" operator.

To apply this rule to the above example, we find the predicate P occurs in negated form

¬P(X)

in the first clause, and in non-negated form

P(a)

in the second clause. X is an unbound variable, while a is a bound value (term). Unifying the two produces the substitution

Xa

Discarding the unified predicates, and applying this substitution to the remaining predicates (just Q(X), in this case), produces the conclusion:

Q(a)

For another example, consider the syllogistic form

All Cretans are islanders.
All islanders are liars.
Therefore all Cretans are liars.

Or more generally,

X P(X) → Q(X)
X Q(X) → R(X)
Therefore, ∀X P(X) → R(X)

In CNF, the antecedents become:

¬P(X) ∨ Q(X)
¬Q(Y) ∨ R(Y)

(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:

¬P(X) ∨ R(X)

Factoring edit

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]

 

Non-clausal resolution edit

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 

Non-clausal resolution in propositional logic edit

For propositional logic, Murray[9]: 18  and Manna and Waldinger[10]: 98  use the rule

 ,

where   denotes an arbitrary formula,   denotes a formula containing   as a subformula, and   is built by replacing in   every occurrence of   by  ; likewise for  . The resolvent   is intended to be simplified using rules like  , etc. In order to prevent generating useless trivial resolvents, the rule shall be applied only when   has at least one "negative" and "positive"[14] occurrence in   and  , 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   indicate the polarity of its occurrences. While   and   are built as before, the formula   is obtained by replacing each positive and each negative occurrence of   in   with   and  , respectively. 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.[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   is replaced multiple times with a larger   and/or  .[12]: 398 

Propositional non-clausal resolution example edit

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:

  • Traugott's rule may yield a sharper resolvent: compare (5) and (10), which both resolve (1) and (2) on  .
  • Murray's rule introduced 3 new disjunction symbols: in (5), (6), and (7), while Traugott's rule didn't 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   the non-atomic formula   in step (12). Using Murray's rules, the semantically equivalent formula   was obtained as (7), however, it could not be used as   due to its syntactic form.

Non-clausal resolution in first-order logic edit

For first-order predicate logic, Murray's rule is generalized to allow distinct, but unifiable, subformulas   and   of   and  , respectively. If   is the most general unifier of   and  , then the generalized resolvent is  . While the rule remains sound if a more special substitution   is used, no such rule applications are needed to achieve completeness.[citation needed]

Traugott's rule is generalized to allow several pairwise distinct subformulas   of   and   of  , as long as   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;[12]: 401  it is not clear whether his rule would remain complete if restricted to   and  .[16]

Paramodulation edit

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]

Implementations edit

See also edit

Notes edit

  1. ^ Davis, Martin; Putnam, Hilary (1960). "A Computing Procedure for Quantification Theory". J. ACM. 7 (3): 201–215. doi:10.1145/321033.321034. S2CID 31888376. Here: p. 210, "III. Rule for Eliminating Atomic Formulas".
  2. ^ Robinson 1965
  3. ^ D.E. Knuth, The Art of Computer Programming 4A: Combinatorial Algorithms, part 1, p. 539
  4. ^ a b Leitsch 1997, p. 11 "Before applying the inference method itself, we transform the formulas to quantifier-free conjunctive normal form."
  5. ^ Arís, Enrique P.; González, Juan L.; Rubio, Fernando M. (2005). Lógica Computacional. ISBN 9788497321822.
  6. ^ Russell, Stuart J.; Norvig, Peter (2009). Artificial Intelligence: A Modern Approach (3rd ed.). Prentice Hall. p. 350. ISBN 978-0-13-604259-4.
  7. ^ Duffy, David A. (1991). Principles of Automated Theorem Proving. Wiley. ISBN 978-0-471-92784-6. See p. 77. The example here is slightly modified to demonstrate a not-trivial factoring substitution. For clarity, the factoring step, (5), is shown separately. In step (6), the fresh variable   was introduced to enable unifiability of (5) and (6), needed for (7).
  8. ^ Wilkins, D. (1973). QUEST: A Non-Clausal Theorem Proving System (Master's Thesis). University of Essex.
  9. ^ a b Murray, Neil V. (February 1979). A Proof Procedure for Quantifier-Free Non-Clausal First Order Logic (Technical report). Electrical Engineering and Computer Science, Syracuse University. 39. (Cited from Manna, Waldinger, 1980 as: "A Proof Procedure for Non-Clausal First-Order Logic", 1978)
  10. ^ a b c d Manna, Zohar; Waldinger, Richard (January 1980). "A Deductive Approach to Program Synthesis". ACM Transactions on Programming Languages and Systems. 2: 90–121. doi:10.1145/357084.357090. S2CID 14770735.
  11. ^ Murray, N.V. (1982). "Completely Non-Clausal Theorem Proving". Artificial Intelligence. 18: 67–85. doi:10.1016/0004-3702(82)90011-x.
  12. ^ a b c d e f Traugott, J. (1986). "Nested Resolution". 8th International Conference on Automated Deduction. CADE 1986. LNCS. Vol. 230. Springer. pp. 394–403. doi:10.1007/3-540-16780-3_106. ISBN 978-3-540-39861-5.
  13. ^ a b Schmerl, U.R. (1988). "Resolution on Formula-Trees". Acta Informatica. 25 (4): 425–438. doi:10.1007/bf02737109. S2CID 32702782. Summary
  14. ^ These notions, called "polarities", refer to the number of explicit or implicit negations found above  . For example,   occurs positive in   and in  , negative in   and in  , and in both polarities in  .
  15. ^ " " is used to indicate simplification after resolution.
  16. ^ Here, " " denotes syntactical term equality modulo renaming
  17. ^ Nieuwenhuis, Robert; Rubio, Alberto (2001). "7. Paramodulation-Based Theorem Proving" (PDF). In Robinson, Alan J.A.; Voronkov, Andrei (eds.). Handbook of Automated Reasoning. Elsevier. pp. 371–444. ISBN 978-0-08-053279-0.

References edit

  • Robinson, J. Alan (1965). "A Machine-Oriented Logic Based on the Resolution Principle". Journal of the ACM. 12 (1): 23–41. doi:10.1145/321250.321253. S2CID 14389185.
  • Leitsch, Alexander (1997). The Resolution Calculus. Texts in Theoretical Computer Science. An EATCS Series. Springer. ISBN 978-3-642-60605-2.
  • Gallier, Jean H. (1986). Logic for Computer Science: Foundations of Automatic Theorem Proving. Harper & Row.
  • Lee, Chin-Liang Chang, Richard Char-Tung (1987). Symbolic logic and mechanical theorem proving. Academic Press. ISBN 0-12-170350-9.{{cite book}}: CS1 maint: multiple names: authors list (link)

External links edit

resolution, logic, mathematical, logic, automated, theorem, proving, resolution, rule, inference, leading, refutation, complete, theorem, proving, technique, sentences, propositional, logic, first, order, logic, propositional, logic, systematically, applying, . 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 Godel 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 Contents 1 Resolution in propositional logic 1 1 Resolution rule 1 2 A resolution technique 1 2 1 A simple example 2 Resolution in first order logic 2 1 Example 2 2 Informal explanation 2 3 Factoring 3 Non clausal resolution 3 1 Non clausal resolution in propositional logic 3 2 Propositional non clausal resolution example 3 3 Non clausal resolution in first order logic 4 Paramodulation 5 Implementations 6 See also 7 Notes 8 References 9 External linksResolution in propositional logic editResolution rule edit 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 displaystyle lnot c nbsp is taken to be the complement to c displaystyle c nbsp The resulting clause contains all the literals that do not have complements Formally a 1 a 2 c b 1 b 2 c a 1 a 2 b 1 b 2 displaystyle frac a 1 lor a 2 lor cdots lor c quad b 1 lor b 2 lor cdots lor neg c a 1 lor a 2 lor cdots lor b 1 lor b 2 lor cdots nbsp where all a i displaystyle a i nbsp b i displaystyle b i nbsp and c displaystyle c nbsp are literals the dividing line stands for entails The above may also be written as a 1 a 2 c c b 1 b 2 a 1 a 2 b 1 b 2 displaystyle frac neg a 1 land neg a 2 land cdots rightarrow c quad c rightarrow b 1 lor b 2 lor cdots neg a 1 land neg a 2 land cdots rightarrow b 1 lor b 2 lor cdots nbsp Or schematically as G 1 ℓ G 2 ℓ G 1 G 2 ℓ displaystyle frac Gamma 1 cup left ell right Gamma 2 cup left overline ell right Gamma 1 cup Gamma 2 ell nbsp We have the following terminology The clauses G 1 ℓ displaystyle Gamma 1 cup left ell right nbsp and G 2 ℓ displaystyle Gamma 2 cup left overline ell right nbsp are the inference s premises G 1 G 2 displaystyle Gamma 1 cup Gamma 2 nbsp the resolvent of the premises is its conclusion The literal ℓ displaystyle ell nbsp is the left resolved literal The literal ℓ displaystyle overline ell nbsp is the right resolved literal ℓ displaystyle ell nbsp 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 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 p q p q displaystyle frac p rightarrow q quad p q nbsp is equivalent to p q p q displaystyle frac lnot p lor q quad p q nbsp A resolution technique edit 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 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 4 For example A 1 A 2 B 1 B 2 B 3 C 1 displaystyle A 1 lor A 2 land B 1 lor B 2 lor B 3 land C 1 nbsp gives rise to the set S A 1 A 2 B 1 B 2 B 3 C 1 displaystyle S A 1 lor A 2 B 1 lor B 2 lor B 3 C 1 nbsp 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 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 A simple example edit a b a c b c displaystyle frac a vee b quad neg a vee c b vee c nbsp In plain language Suppose a displaystyle a nbsp is false In order for the premise a b displaystyle a vee b nbsp to be true b displaystyle b nbsp must be true Alternatively suppose a displaystyle a nbsp is true In order for the premise a c displaystyle neg a vee c nbsp to be true c displaystyle c nbsp must be true Therefore regardless of falsehood or veracity of a displaystyle a nbsp if both premises hold then the conclusion b c displaystyle b vee c nbsp is true Resolution in first order logic editResolution rule can be generalized to first order logic to 5 G 1 L 1 G 2 L 2 G 1 G 2 ϕ ϕ displaystyle frac Gamma 1 cup left L 1 right Gamma 2 cup left L 2 right Gamma 1 cup Gamma 2 phi phi nbsp where ϕ displaystyle phi nbsp is a most general unifier of L 1 displaystyle L 1 nbsp and L 2 displaystyle overline L 2 nbsp and G 1 displaystyle Gamma 1 nbsp and G 2 displaystyle Gamma 2 nbsp have no common variables Example edit The clauses P x Q x displaystyle P x Q x nbsp and P b displaystyle neg P b nbsp can apply this rule with b x displaystyle b x nbsp as unifier Here x is a variable and b is a constant P x Q x P b Q b b x displaystyle frac P x Q x neg P b Q b b x nbsp Here we see that The clauses P x Q x displaystyle P x Q x nbsp and P b displaystyle neg P b nbsp are the inference s premises Q b displaystyle Q b nbsp the resolvent of the premises is its conclusion The literal P x displaystyle P x nbsp is the left resolved literal The literal P b displaystyle neg P b nbsp is the right resolved literal P displaystyle P nbsp is the resolved atom or pivot b x displaystyle b x nbsp is the most general unifier of the resolved literals Informal explanation edit 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 displaystyle forall x P x Rightarrow Q x nbsp P a displaystyle P a nbsp Therefore Q a displaystyle Q a nbsp 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 displaystyle neg P x vee Q x nbsp P a displaystyle P a nbsp Therefore Q a displaystyle Q a nbsp 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 Discard the unified predicates and combine the remaining ones from the two clauses into a new clause also joined by the operator To apply this rule to the above example we find the predicate P occurs in negated form P X in the first clause and in non negated form P a in the second clause X is an unbound variable while a is a bound value term Unifying the two produces the substitution X aDiscarding the unified predicates and applying this substitution to the remaining predicates just Q X in this case produces the conclusion Q a For another example consider the syllogistic form All Cretans are islanders All islanders are liars Therefore all Cretans are liars Or more generally X P X Q X X Q X R X Therefore X P X R X In CNF the antecedents become P X Q X Q Y R Y 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 P X R X Factoring edit 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 1 P u P f u 2 P v P f w 3 P x P f x displaystyle begin array rlcl 1 amp P u amp lor amp P f u 2 amp lnot P v amp lor amp P f w 3 amp lnot P x amp lor amp lnot P f x end array nbsp 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 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 false by resolving 5 and 6 with w f w displaystyle begin array rll 4 amp P u lor P f w amp text by resolving 1 and 2 with v f u 5 amp P f w amp text by factoring 4 with u f w 6 amp lnot P f f w amp text by resolving 5 and 3 with w w x f w 7 amp text false amp text by resolving 5 and 6 with w f w end array nbsp Non clausal resolution editGeneralizations 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 Non clausal resolution in propositional logic edit For propositional logic Murray 9 18 and Manna and Waldinger 10 98 use the rule F p G p F true G false displaystyle begin array c F p G p hline F textit true lor G textit false end array nbsp where p displaystyle p nbsp denotes an arbitrary formula F p displaystyle F p nbsp denotes a formula containing p displaystyle p nbsp as a subformula and F true displaystyle F textit true nbsp is built by replacing in F p displaystyle F p nbsp every occurrence of p displaystyle p nbsp by true displaystyle textit true nbsp likewise for G displaystyle G nbsp The resolvent F true G false displaystyle F textit true lor G textit false nbsp is intended to be simplified using rules like q true q displaystyle q land textit true implies q nbsp etc In order to prevent generating useless trivial resolvents the rule shall be applied only when p displaystyle p nbsp has at least one negative and positive 14 occurrence in F displaystyle F nbsp and G displaystyle G nbsp respectively Murray has shown that this rule is complete if augmented by appropriate logical transformation rules 10 103 Traugott uses the rule F p p G p F G true G false displaystyle begin array c F p p G p hline F G textit true lnot G textit false end array nbsp where the exponents of p displaystyle p nbsp indicate the polarity of its occurrences While G true displaystyle G textit true nbsp and G false displaystyle G textit false nbsp are built as before the formula F G true G false displaystyle F G textit true lnot G textit false nbsp is obtained by replacing each positive and each negative occurrence of p displaystyle p nbsp in F displaystyle F nbsp with G true displaystyle G textit true nbsp and G false displaystyle G textit false nbsp respectively Similar to Murray s approach appropriate simplifying transformations are to be applied to the resolvent Traugott proved his rule to be complete provided displaystyle land lor rightarrow lnot nbsp 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 p displaystyle p nbsp is replaced multiple times with a larger G true displaystyle G textit true nbsp and or G false displaystyle G textit false nbsp 12 398 Propositional non clausal resolution example edit As an example starting from the user given assumptions 1 a b c 2 c d 3 b d e 4 a e displaystyle begin array rccc 1 amp a amp rightarrow amp b land c 2 amp c amp rightarrow amp d 3 amp b land d amp rightarrow amp e 4 amp lnot a amp rightarrow amp e end array nbsp the Murray rule can be used as follows to infer a contradiction 15 5 true d a b false d a from 2 and 1 with p c 6 b true e false a b e a from 3 and 5 with p d 7 true e a a false c e a a from 6 and 1 with p b 8 e true true false e e from 7 and 4 with p a 9 a true false false from 4 and 8 with p e displaystyle begin array rrclccl 5 amp textit true rightarrow d amp lor amp a rightarrow b land textit false amp implies amp d lor lnot a amp mbox from 2 and 1 with p c 6 amp b land textit true rightarrow e amp lor amp textit false lor lnot a amp implies amp b rightarrow e lor lnot a amp mbox from 3 and 5 with p d 7 amp textit true rightarrow e lor lnot a amp lor amp a rightarrow textit false land c amp implies amp e lor lnot a lor lnot a amp mbox from 6 and 1 with p b 8 amp e lor lnot textit true lor lnot textit true amp lor amp lnot textit false rightarrow e amp implies amp e amp mbox from 7 and 4 with p a 9 amp lnot a rightarrow textit true amp lor amp textit false amp implies amp textit false amp mbox from 4 and 8 with p e end array nbsp For the same purpose the Traugott rule can be used as follows 12 397 10 a b true d a b d from 1 and 2 with p c 11 a true e a e from 10 and 3 with p b d 12 true false from 11 and 4 with p a e displaystyle begin array rcccl 10 amp a rightarrow b land textit true rightarrow d amp implies amp a rightarrow b land d amp mbox from 1 and 2 with p c 11 amp a rightarrow textit true rightarrow e amp implies amp a rightarrow e amp mbox from 10 and 3 with p b land d 12 amp lnot textit true amp implies amp textit false amp mbox from 11 and 4 with p a rightarrow e end array nbsp 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 displaystyle p c nbsp Murray s rule introduced 3 new disjunction symbols in 5 6 and 7 while Traugott s rule didn t 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 displaystyle p nbsp the non atomic formula a e displaystyle a rightarrow e nbsp in step 12 Using Murray s rules the semantically equivalent formula e a a displaystyle e lor lnot a lor lnot a nbsp was obtained as 7 however it could not be used as p displaystyle p nbsp due to its syntactic form Non clausal resolution in first order logic edit For first order predicate logic Murray s rule is generalized to allow distinct but unifiable subformulas p 1 displaystyle p 1 nbsp and p 2 displaystyle p 2 nbsp of F displaystyle F nbsp and G displaystyle G nbsp respectively If ϕ displaystyle phi nbsp is the most general unifier of p 1 displaystyle p 1 nbsp and p 2 displaystyle p 2 nbsp then the generalized resolvent is F ϕ true G ϕ false displaystyle F phi textit true lor G phi textit false nbsp While the rule remains sound if a more special substitution ϕ displaystyle phi nbsp is used no such rule applications are needed to achieve completeness citation needed Traugott s rule is generalized to allow several pairwise distinct subformulas p 1 p m displaystyle p 1 ldots p m nbsp of F displaystyle F nbsp and p m 1 p n displaystyle p m 1 ldots p n nbsp of G displaystyle G nbsp as long as p 1 p n displaystyle p 1 ldots p n nbsp have a common most general unifier say ϕ displaystyle phi nbsp The generalized resolvent is obtained after applying ϕ displaystyle phi nbsp 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 p 1 p m displaystyle p 1 cdots p m nbsp and p m 1 p n displaystyle p m 1 cdots p n nbsp 16 Paramodulation editParamodulation 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 Implementations editCARINE GKC Otter Prover9 SNARK SPASS Vampire Logictools online proverSee also editCondensed detachment an earlier version of resolution Inductive logic programming Inverse resolution Logic programming Method of analytic tableaux SLD resolution Resolution inferenceNotes edit Davis Martin Putnam Hilary 1960 A Computing Procedure for Quantification Theory J ACM 7 3 201 215 doi 10 1145 321033 321034 S2CID 31888376 Here p 210 III Rule for Eliminating Atomic Formulas Robinson 1965 D E Knuth The Art of Computer Programming 4A Combinatorial Algorithms part 1 p 539 a b Leitsch 1997 p 11 Before applying the inference method itself we transform the formulas to quantifier free conjunctive normal form Aris Enrique P Gonzalez Juan L Rubio Fernando M 2005 Logica Computacional ISBN 9788497321822 Russell Stuart J Norvig Peter 2009 Artificial Intelligence A Modern Approach 3rd ed Prentice Hall p 350 ISBN 978 0 13 604259 4 Duffy David A 1991 Principles of Automated Theorem Proving Wiley ISBN 978 0 471 92784 6 See p 77 The example here is slightly modified to demonstrate a not trivial factoring substitution For clarity the factoring step 5 is shown separately In step 6 the fresh variable w displaystyle w nbsp was introduced to enable unifiability of 5 and 6 needed for 7 Wilkins D 1973 QUEST A Non Clausal Theorem Proving System Master s Thesis University of Essex a b Murray Neil V February 1979 A Proof Procedure for Quantifier Free Non Clausal First Order Logic Technical report Electrical Engineering and Computer Science Syracuse University 39 Cited from Manna Waldinger 1980 as A Proof Procedure for Non Clausal First Order Logic 1978 a b c d Manna Zohar Waldinger Richard January 1980 A Deductive Approach to Program Synthesis ACM Transactions on Programming Languages and Systems 2 90 121 doi 10 1145 357084 357090 S2CID 14770735 Murray N V 1982 Completely Non Clausal Theorem Proving Artificial Intelligence 18 67 85 doi 10 1016 0004 3702 82 90011 x a b c d e f Traugott J 1986 Nested Resolution 8th International Conference on Automated Deduction CADE 1986 LNCS Vol 230 Springer pp 394 403 doi 10 1007 3 540 16780 3 106 ISBN 978 3 540 39861 5 a b Schmerl U R 1988 Resolution on Formula Trees Acta Informatica 25 4 425 438 doi 10 1007 bf02737109 S2CID 32702782 Summary These notions called polarities refer to the number of explicit or implicit negations found above p displaystyle p nbsp For example p displaystyle p nbsp occurs positive in p q r displaystyle p land q lor r nbsp and in q p displaystyle q rightarrow p nbsp negative in p q r displaystyle lnot p land q lor r nbsp and in p q displaystyle p rightarrow q nbsp and in both polarities in p q displaystyle p leftrightarrow q nbsp displaystyle implies nbsp is used to indicate simplification after resolution Here displaystyle nbsp denotes syntactical term equality modulo renaming Nieuwenhuis Robert Rubio Alberto 2001 7 Paramodulation Based Theorem Proving PDF In Robinson Alan J A Voronkov Andrei eds Handbook of Automated Reasoning Elsevier pp 371 444 ISBN 978 0 08 053279 0 References editRobinson J Alan 1965 A Machine Oriented Logic Based on the Resolution Principle Journal of the ACM 12 1 23 41 doi 10 1145 321250 321253 S2CID 14389185 Leitsch Alexander 1997 The Resolution Calculus Texts in Theoretical Computer Science An EATCS Series Springer ISBN 978 3 642 60605 2 Gallier Jean H 1986 Logic for Computer Science Foundations of Automatic Theorem Proving Harper amp Row Lee Chin Liang Chang Richard Char Tung 1987 Symbolic logic and mechanical theorem proving Academic Press ISBN 0 12 170350 9 a href Template Cite book html title Template Cite book cite book a CS1 maint multiple names authors list link External links editAlex Sakharov Resolution Principle MathWorld Alex Sakharov Resolution MathWorld Retrieved from https en wikipedia org w index php title Resolution logic amp oldid 1190125895, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.