
176
Chapter
6.
Perpetual Processes
§25. Complete Herorand Interpretations
177
Ultrametric spaces have topological properties rather similar to discrete metric
spaces [5].
Definition (X,d) is a metric space,
if
d is a metric on X.
If
d
IS
an
ultrametric, then (X,d) is an ultrametric space.
Clearly,
o.
n
(t)
is
a finite
tenu
with dp(o.
n
(t»
:=;;
n+
1.
TenuS can be made into a metric space in a natural way. First, we recall the
definition
of
a metric space [29].
Now let
s,~eTenuS'
If
s:¢:!:,
then
it
is clear that o.n(s);t:o.n(t), for some
n>O.
Consequently, If
s;t:t,
then
{n
: o.n(s);t:o.n(t)} is not empty. We define o.(s,t) =
min{n:
o.n(s);t:o.n(t)}. Thus o.(s,t) is the least depth at which s and t differ.
Proposition 25.1 (TenuS' d) is an ultrametric space, where d is defined by
d(s,t) = 0,
if
s=t
=
2-<X.(s,t),
otherwise.
A crucial fact about TenuS is given by the following proposition [72].
Proposition 25.2 (TenuS' d) is compact iff S
is
finite.
Proof
Suppose first that S is infinite. Let {t
s
:
se
S}
be any collection
of
tenus with the property that ts(O)=s (that is, the root is labelled by
s).
If
s1;t:s2'
then d(t ,t ) = 1/2. Thus TenuS is not compact.
s1
s2
Conversely, suppose that S is finite. Let {tk}keco be a sequence in TenuS'
We consider two cases.
(a) There exists meco and peco such that, for all
n"?p,
we have
dp(tn):=;;m.
Since S is finite, there are only a finite number
of
tenus over S
of
depth
:=;;
m.
Hence {tk}keco must have a constant and, hence, convergent subsequence.
(b) Given meco and peco, there exists
n"?p
such that
dp(tn»m.
In this case, we can suppose without loss
of
generality that the sequence
{tk}keco is such that
dp(tk»k,
for keco. Note that every subsequence
of
{tk}keco
has the property that the depths
of
the tenus in the subsequence are unbounded.
We
define by induction an infinite
tenu
teTenu
S
such that, for each
n"?1,
there
exists a subsequence {tkm}meco
of
{tk}keco with o.n(t
km
) = o.n(t), for
me
co.
Suppose first that n=1. Since S is finite, a subsequence
{~
}meco
of
m
{tk}keco must have the same symbol, say
s,
labelling their root nodes. We define
t([]) =
s.
Next suppose that t
is
defined up to depth
n.
Thus there exists a subsequence
{t
k
}
of
{tk}k such that
a.
(t
k
) =
a.
(t), for
meco.
Since S is finite,
m meco eco n m n
there exists a subsequence
{~
}peco
of
{~
}meco such that the
o.n+1(~
) are
m m m
p
all equal, for peco. Define the
n~es
at depth n+1 for t in the same way as each
of
the t
k
. This completes the inductive definition.
m
Sin~e
it
is
clear that t
is
an accumulation point
of
{t
k
}ke
co'
we have shown
that TermS is compact.
I11III
Now we are in a position to define the complete Herbrand universe. Let P be
a definite program and F be the finite set
of
constants and function symbols in P.
We regard constants as function symbols
of
arity
O.
~.
Thus t
~t
n
The closure
of
a
(a) dom(o.n(t» = {medom(t) :
Iml:=;;n}.
(b) o.n(t) : dom(o.n(t»
~
S v
in}
is defined by
o.n(t)(m) = t(m),
if
Iml
< n
=
n,
if
Iml
=
n.
Definition Let X be a set. A mapping d : X xX
~
non-negative reals is a
metric for X
if
(a) d(x,y) = 0
iff
x=y, for all x,yeX.
(b) d(x,y) = d(y,x), for all
x,yex.
(c) d(x,z)
:=;;
d(x,y) + d(y,z), for all x,y,zeX.
d is an ultrametric [5]
if
(d) d(x,z)
:=;;
max{d(x,y), d(y,z)}, for all
x,y,zex.
Proof
Straightforward. (See problem 1.)
I11III
Convergence in the topology induced by d is denoted by
means that the sequence {t } converges to t in this topology
n neco .
set A in this topology is denoted by
A.
Definition A metric space (X,d) is compact
if
every sequence in X has a
subsequence which converges to a point in
X.
Definition The complete Herbrand universe
Up
for P is
Tenu
F
. The elements
of
Up
are called ground terms.