Logic for Computer Scientists/Predicate Logic/Strategies for Resolution/SLD-Resolution

From testwiki
Jump to navigation Jump to search

Selective Linear Definite (SLD) Resolution

In this section we will introduce a special form of linear resolution for Horn clauses. We will interpret a clause a program by notationing it in the following form:

Aprogram clause (fact)AB1,,Bn program clause B1,,Bn goal 

Definition 27

Let P be a set of program clauses. Assume a selection function, which gives for a given goal A1,,An one of its subgoals Ai. Further assume a goal Gi=A1,,Am,,An and a selection function which selects Am. Let Ci=AB1,,Bq be a variant of a clause in P, such that Ci and Gi have no variable in common. If θi+1 is most general unifier of Am and A, the goal

Gi+1=(A1,,Am1,B1,,Bq,Am+1,,An)θi+1

is called SLD-resolvent

Definition 28

An SLD-deduction (-refutation)of P{G} for a set of program clauses P and a goal clause G is a linear deduction (refutation) in which only SLD-resolution steps occur and G is the start clause.

  • An R-computed answer substitution θ for P{G} is θ1θn|Var(G), where θ1,,θn are the mgUs from a SLD-refutation of P{G} with selection function R.
  • A substitution θ for Var(G) is an answer substitution for P{G}.
  • It is a correct answer substitution for P{G}, if PGθ

Theorem 11

Let P be a set of program clauses, G a goal clause and R a selection function. For every correct answer substitution θ for P{G}, there is an R-computed answer substitution σ for P{G} and a substitution γ, such that θ=σγ|Var(G)

In the Section on Propositional Logic we already explained propositional tableaux and its variants, like the connection calculus and model elimination. In this section we will give model elimination in the first order case. Note that we need one more inference rule, the reduction rule, in this case

Definition 29

A clause (normalform) tableau for a set of clauses S is a tableau for S, whose nodes are literals from S and which is constructed by a (possibly infinite) sequence of applications of the following rules:

  • The tree consisting of root true and immediate successors L1,,Ln, where C=L1,,Ln is a new variant of a clause from S is a tableau for S (initialisation rule).
  • Let T be a tableau for S, B a branch of T, and C=L1,,Ln an new variant of a clause from S, such that the link-condition with mgu σ is satisfied. If the tree T is constructed by extending B by the n subtrees Li, then Tσ is a tableau for S (expansion rule).
  • Let T be a tableau for S, B a branch of T, L a leaf of B, and LC, such that L and L have a mgu σ, than Tσ is a tableau for S (reduction rule).

The following are three possible link conditions:

  1. No condition.
  2. Weak link condition: There is a literal LB and LC, such that L and L have a mgu σ
  3. Strong link condition: There is a leaf L of B, and LC, such that L and L have a mgu σ .

Analog to the propositional case the different link conditions result in different calculi:

  • The empty condition results in a clause normal form tableau calculus.
  • The weak condition results in a connection calculus.
  • The strong link condition results in a model elimination calculus.

Template:BookCat