Logic for Computer Scientists/Predicate Logic/Syntax

From testwiki
Revision as of 03:59, 20 July 2018 by imported>Holdoffhunger (Definition 2 (Syntax of predicate logic - Formulae): Remove double "the.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

Definition 1 (Syntax of predicate logic - Terms)

Assume a

  • countable set of function symbols {fiki,k=1,2,3,}
  • a countable set of {xii=1,2,3,}

The set of terms is defined by the following induction:

  • Variables xi are terms.
  • If t1,,tk are terms and fik is a function symbol, then fik(t1,,tk) is a term.

Terms of type fi0() are special ones, they are called constants. In this case we omit the braces and denote them as fi0.

Terms are the syntactic counterpart of the above mentioned objects. Constants will denote the elements of the domain and function symbols will denote a way to refer to such objects.

The following definition introduces the formulae.

Definition 2 (Syntax of predicate logic - Formulae)

Assume a countable set of predicate symbols{piki=1,2,3,}. The set of (well-formed) formulae is defined by the following induction:

  • If t1,,tk are terms and Pik is a predicate symbol, then Pik(t1,,tk) is a formula.
  • If F and G are formulae, then (FG) and (FG) are formulae.
  • If F is a formula, then ¬F is a formula.
  • If x is a variable and F a formula, then xF and xF are formulae.

Formulae of type Pik(t1,,tk) are called atoms or atomic formulae.

Note that the concept of subformulae applies exactly like in the propositional case (Syntax (Propositional Logic)).

We introduce the following abbreviations, which will be used with indices as well:

u,v,w,x,z, for variables
a,b,c, for constants
f,g,h, for function symbols
p,q,r, for predicate symbols


Note the arity of function and predicate symbols is ommited in these abbreviations; we assume that it will be obvious from the context.

Example: Assume we want to represent the following equation, which holds for arbitrary elements in a field:

x*(y+z)=x*y+x*z

The two operators * and + are represented in a predicate logic formula as binary function symbols f12 and f22, the three variables are x1,x2 and x3, and the equality relation = is the binary predicate symbol P12. Altogether we have the following formula in predicate logic:

x1x2x3(P12(f22(x1,f12(x2,x3)),f12(f22(x1,x2),f22(x1,x3))))

In the following we will use the obvious and more liberal notation as in the propositional case.

Definition 3: Bound and Free Occurrences of Variables

An occurrence of a variable x in a formula F is called bound, if it occurs in a subformula of F which is of the form xG or xG. Otherwise we call the occurrence free.

A formula, which does not contain a free occurrence of a variable is called closed.

Example: The following formula contains both free and bound occurrences of x and y.

z(Q(z)x(P(x,y))y(P(x,y)))

Template:BookCat