36 2. Logical Background
Note 2.4.1 (Unification and Variable Restrictions). It can be verified that
“≤” is indeed a partial ordering. The variable restriction V in σ ≤ δ [V ]
is indeed necessary sometimes, as σ ≤ δ might not hold although we would
expect so. For instance, if σ = {x ← y} and δ = {x ← a} then a substitution
γ does not exist such that σγ = δ (on all variables !). The “solution” y ← a
does not work because then
σγ = {x ← a, y ← a}6= {x ← a} = δ.
However, σ ≤ δ [{x}] holds. Notably, such a restriction to certain variables is
not necessary in the context of MGUs. That is, if δ is a unifier for expressions
E and F , then a MGU σ and a substitution γ always exists such that σγ = δ.
This is known as the unification theorem. A respective algorithm was given
first in
[
Robinson, 1965b
]
. See
[
Knight, 1989; J.-P. Jouannaud, 1991
]
for
overviews about unifications.
Obviously, multiset unification can be reduced to syntactic unification,
because δ is a multiset-MGU for {|L
1
,... ,L
n
|} and {|K
1
,... ,K
n
|} iff δ is
a (syntactic) unifier for c(L
1
,... ,L
n
) and c(K
π(1)
,... ,L
π(n)
), where π is
some permutation of 1,... ,n. From this reduction to syntactic unification
we thus conclude that for any multiset unifier δ a multiset-MGU σ exists and
a substitution γ such that σγ = δ (without variable restriction). However,
introducing variable restrictions becomes necessary again in the context of
“theory-MGU”s (see Section 4.2.1).
Example 2.4.3 (Unification). The terms t(x) and t(y) are unifiable by MGU
σ = {x ← y}. The unifier δ = {x ← a, y ← a} is not an MGU because for
γ = {y ← a} we find σγ = δ. The terms t(a) and t(b) are not unifiable.
2.5 Theories
Next we will formalize one of our central concepts, namely the concept of
a theory. The material presented here is a condensed form of the respective
chapters of the textbooks
[
Enderton, 1972; Heinemann and Weihrauch, 1991;
Lalement, 1993
]
.
We will start with a brief motivation. Then we will formally define the
notion of a “theory” and will give methods how theories can be defined. Then
we turn towards properties theories can have.
In Section 2.3 we have introduced the semantical notion of validity, which
means that a formula is true in all interpretations. However, for a mathemati-
cian the question of whether some given formula is valid in this sense is often
not so relevant. Instead he asks whether his conjecture is true in some ded-
icated interpretation. For instance, he will be interested in assertions about
the natural numbers or real numbers. Or he asks whether a certain assertion
is a logical consequence of some given axioms, e.g. the axioms of group the-
ory. Now, the notion of a theory allows the expression of these applications
in a convenient way.