Logic for Computer Scientists/Predicate Logic/Herbrand Theories

From testwiki
Jump to navigation Jump to search

Herbrand Theories

Until now we considered arbitrary interpretations of formulae in predicate logics. In particular we sometimes used numbers as interpretation domain and functions, like addition or successor. In the following, we will concentrate on a special case, the Herbrand interpretation and we will discuss their relation to the general case.

Definition 11

Let S be a set of clauses. The Herbrand universe UH for S is given by:

  • All constants which occur in S are in UH (if no constant appears in S, we assume a single constant, say a to be in UH).
  • For every n-ary function symbol f in S and every t1,,tnUH, f(t1,,tn)UH.

Examples: Given the clause set S1={P(a),¬P(x)P(f(x))}, we construct the Herbrand universe


UH={a,f(a),f(f(a)),f(f(f(a))),}


For the clause set S2={P(x)Q(x),R(z)} we get the Herbrand universe UH={a}.

Definition 12

Let S be a set of clauses. An interpretation =(U,A) is an Herbrand interpretation iff

  • U=UH
  • For every n-ary function symbol (n0) f and t1,,tnUH
    f(t1,,tn)=f(t1,,tn)

Note, that there is no restriction on the assignments of relations to predicate symbols (except, that, of course, they have to be relations over the Herbrand universe UH).

In order to discuss the interpretation of predicate symbols, we need the notion of Herbrand basis.

Definition 13

A ground atom or a ground term is an atom or a term without an occurrence of a variable. The Herbrand basis for a set of clauses S is the set of ground atoms p(t1,,tn), where p is a n-ary predicate symbol from S and t1,,tnUH


We will notate the assignments of relations to predicate symbols by simply giving a set I={m1,m2,,mn,}, where each element is a literal with its atom is from the Herbrand basis.

Examples:


  • S={p(x)q(x),r(f(y))}
  • UH={a,f(a),f(f(a)),}
  • I={p(a),q(a),r(a),p(f(a)),q(f(a)),r(f(a)),}

Definition 14

Let =(U,A) be an interpretation for a set of clauses S; the Herbrand interpretation * corresponding to is a Herbrand interpretation satisfying the following condition: Let t1,,tn be Elements from the Herbrand universe UH for S. By the interpretation every ti is mapped to a diU. If p(d1,,dn)=true(false), then p(t1,,tn) have to be assigned true(false) in *.

Let us now state a simple, very obvious lemma, which will help us, to focus on Herbrand interpretation in the following.

Lemma 4

If is a model for a set of clauses, then every corresponding Herbrand interpretation * is a model for S

Theorem 4

A set of clauses S is unsatisfiable iff there is no Herbrand model for S.

Proof: If S is unsatisfiable, there is obviously no Herbrand model for S.
Assume that there is no Herbrand model for S and that S is satisfiable. Then, there is a model for S and according to lemma 4 the corresponding Herbrand interpretation * is a model for S, which is a contradiction.

Template:BookCat