Logic for Computer Scientists/Predicate Logic/Syntax
Contents |
[edit] Syntax
[edit] Definition 1 (Syntax of predicate logic - Terms)
Assume a
- countable set of function symbols

- a countable set of

The set of terms is defined by the following induction:
- Variables xi are terms.
- If
are terms and
is a function symbol, then
is a term.
Terms of type
are special ones, they are called constants. In this case we omit the braces and denote them as
.
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.
[edit] Definition 2 (Syntax of predicate logic - Formulae)
Assume a countable set of predicate symbols
. The set of (well-formed) formulae is defined by the following induction:
- If
are terms and
is a predicate symbol, then
is a formula. - If F and G are formulae, then
and
are formulae. - If F is a formula, then
is a formula. - If x is a variable and F a formula, then
and
are formulae.
Formulae of type
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 | |||
![]() |
for constants | |||
![]() |
for function symbols | |||
![]() |
for predicate symbols |
Note the 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:
The two operators * and + are represented in a predicate logic formula as binary function symbols
and
, the three variables are x1,x2 and x3, and the equality relation = is the binary predicate symbol
. Altogether we have the following formula in predicate logic:

In the following we will use the obvious and more liberal notation as in the propositional case.
[edit] Definition 3
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
or
. 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.

This page may need to be 

are terms and
is a function symbol, then
is a term.
is a predicate symbol, then
and
are formulae.
is a formula.
and
are formulae.

