http://wrap.warwick.ac.uk/
Original citation:
Matthews, S. G. (1992) Partial metric spaces. University of Warwick. Department of Computer Science. (Department of Computer Science Research Report). (Unpublished) CS-RR-212
Permanent WRAP url:
http://wrap.warwick.ac.uk/60901 Copyright and reuse:
The Warwick Research Archive Portal (WRAP) makes this work by researchers of the University of Warwick available open access under the following conditions. Copyright © and all moral rights to the version of the paper presented here belong to the individual author(s) and/or other copyright owners. To the extent reasonable and practicable the material made available in WRAP has been checked for eligibility before being made available.
Copies of full items can be used for personal research or study, educational, or not-for-profit purposes without prior permission or charge. Provided that the authors, title and full bibliographic details are credited, a hyperlink and/or URL is given for the original metadata page and the content is not changed in any way.
A note on versions:
The version presented in WRAP is the published version or, version of record, and may be cited as it appears here.For more information, please contact the WRAP Team at:
Research
R.port
272
Partial
Metric
SpacesS
G
Matthews
RR212
Scott models are-topolggt"4 models of complete partial orders used for Tarskian fixed point
semantics of the lamMa calculus. As of yet there are no methods for deriving Scon m6dels from
specificationg of the "complete" objects beyond an arbitrary choice. This paper introduces
"partial metrics" for generalising a theory of complete objects into a Scott model including partiat
objects.
Deparrnent of Comp,uter Science
University of Warwick Coventry CV4 7AL
Partial
Metric
Spaces
Steve
Matthews
Dept.
of
Computer Science
University
of
Warwick
Coventry,
CV4
7AL
[email protected]
Introduction
Metric
spacetopology provides
an
excellent framework
for
studying
the
behaviour
of
continuous functions
in
many
Tz
topologies.
For example,
Banach'scontraction
mappingtheorem
provides
a foundationfor
much inductiveproof
theoryfor
continuousfunctions.
Metricspaces are of much interest to programming language designers as they provide the domain of totally defined
or
complete
programmable dataobjects.
For example,
for
the setof all flat finite &
infinite
lists LS
over aset
S
we can define a "Baire" style metricon LS
as follows.VreL
V
s,s'€
d(Nil
,1)
=
1if 1+Nil
d(
1,1')
Unfortunately
Godel's decidability results force us to include partial objects suchas
l-
thetotally
undefined data object alongside the complete
ones.
This
leads to Scott's partial order topologicalmodels as used in denotational
semantics. However,
by necessity these modelsare T6
and so not describable by any metric as all metric spacesareT2
(i.e.Hausdorff).
This would seem to infer thatmetric space topology is not appropriate
for
denotational semantics. deBakker&Zucker [dB&232]
have used
metric
spaces butwithout the
usual Scottpartial
ordertopology.
Smyth [Sm87]
hasgeneralised the metric axioms by dropping the symmetry axiom (see M2 in
Definition A5 or
[Su75])in
orderto
definepaftial
orders.
Also,
Kopperman[Ko88]
has shown that anytopology
can begenerated
by
an appropriate generalisedmetric.
This
raises thepossibility
that theremay
be anappropriate notion
of
a generalisedmetric
suitablefor
Scotttopologies.
In
this paper we providesuch a generalisation as an alternative to the approach taken by
Smyth.
In our approach the complete objectsform
a metric subspaceof
apantial
metric space.
Our generalisation keeps the symmenyaxiom
MZ
while
using a
new generalisedreflexive
axiom to distinguish
betweenpartial
andcomplete
objects.
This
new approach promises an approachto
denotational semantics which combines the eleganceof
Tarskian semantics and Scott topologieswith
conventiional metric spacetechnology.
if
s=s'
ifs*s'
S V 1, l'e
L
d(s:I,S':1')
= l2x
=l
Definition
I
A
Partial
Metric
(Pmetric
)
isafunction
p
:
A
X
A
+
B,
such that"(P1) V x,YeA
x=Y
(+
P(x,x)
= p(x,y)=p(y,y)
(PZ) V x,y€A
p(x,x)
(P3) V
x,y
€
A
p(x,Y) =
P(Y,x)
(P4) V
X,y,ze
A
p(x,z)
A
metric is precisely apmeric p
:
A
X
A
-+
R,
in which,V
x
e
A
p(x,x)
=
QAlso
note that for eachpmeric p
:
A
X
A
-+
lR
,V x,Y€A
p(x,y) = 0 :+ x=Y
this
being"half' of
the metric reflexiveaxiom
Ml
.
We can use pmetrics to make thefollowing
definition of
when a data object is to be regarded as complete.x
iscomplete
::=
p(x,x)
=0
Any
object which is not complete is calledpartial,
thus,x
is
partial ::=
p(x,x)
>
0
Example
I
AFlatPmetricisapmetric
pt : StX S-l+ {0,1}
where,
51
::=SU{I}
for
a setS,
and
l-
+
S,
ild,
V x,Y€St
Pr(x,Y)=o c+ x=Y€S
I-ater we
will
show how flat pmetrics relate to the usual partial order notion of a flat domain.Example
2A
KahnPmetric
isapmetric
pS
:
KaS
X
KaS
-t
{2-n
l
n
€
(, }U
{0}
whereKaS
is defined to be the setof all finite
&
infinite
sequences over the setS
and,V yeKas
Ps(<>,Y) =
1V
x,y e
(dS
V
n,m
>
0
.
ps(
(xgr...,\-l)
,
(Y0,...,Ym-t >
)= In x
ps(<xl
,...,\-l),(yl
,...,ys1-1
))
if
*o=yo
= 1
if*O+yO
V
x
e
cds
ps(x,x)
=
0Kahn
pmetrics are usedfor
describing the partial
order domain usedby Kahn
lKa74l to
give
adenotational semantics to
pipeline
dataflow
networks.
Later on wewill
showhow
Kahn pmetrics can be used to describe Kahn's partial orderingon
KaS .Definition
2The
Open
Balls
for
apmetric
p
:
A
X
A -+
IR
are the setsof
the form,Br(x) ,,= { y.A
I p(x,y)<€
}foreach
€>0
and
xeA.
Theorem
I
Theserofallopenballsofapmetric
p:
AXA
+
IR wrth
A
formthebasisofaopologyon
A.
Proof:
Proof
usingDefinition
A4
andTheorem
Al
Suppose
p: AXA -r
IR
isaPmetric.
Then,
A = U*"A
Bil*,*)+t
(x)
and,for
anyballs
B,(
x
)
and
86(
y
)
,Br(x)
n B6(y)
-Ut Bn(z) I ze
B.(x)
n
B6(y)
where,
I
::= p(z,z)+min{
e-p(x,z),6-p(y,z)}
tr
Theorem
2Foreachpmetric
p:
AXA
-+
IR,
openball
Br(a),
and
xe
A,
xeBr(a)
:+ 3 6>0
xcB6(x)EBr(a)
Proof:
Suppose
;
e B,(a)
Then
p(x,a)
<
€Let 6
::=
€
-
p(x,a)
+
(x,x)
Then
6>0
as
€tp(x,a)
Also,
p(x,x)<6
as
€tp(x,a)
Thus
x
e
B6(x)
Suppose now
that
y
e
86(
x )P(Y,x)
<
6p(y,x) <
€
-p(x,a)+p(x,x)
p(y,x)
+
p(x,a)
-
p(x,x)
p(y,a)
< €
(byPa)
y
e
B6(a)
Thus
86(x)
c
B€(a).
tr
Theorem
3Pmetric topologies
re
To.
Proof:
Suppose
p: AXA-+
IR
isapmetric.
Suppose
x+y e
A
Thenfrom
Pl
&
P2
p(x,x)
<
p(x,y) or
p(y,y)
<
p(x,y)
Wlog
suppose
p(x,x)<p(x,y)
then,
leBr(x) n y*
Br(x)
where,
€::= (p(x,x)+p(x,y))/2
tr
Note that the open balls (with
A)
of theform,
Br(x) r,= { y.A
I p(x,y)<t
}form
a basis for the same topoplogy as the balls(with
A)
of the form,B'r(x) rt= { y.A
I
p(x,y)
xs,
V €>0 V xeA
B',(x) :
Br+X*,*;(x)
andas,
V €tp(x,x)
Br(x) =
B'r_p1r,*;(x)
and, V0<€<p(x,x)
Br(x) =
g
The next theorem gives us a
pmetric
analogue to thefamiliar
menic conditionfor
convcrgence. A
sequence
X
e
@A inametricspacewithmetric
d: AXA -r
R,
convergesto
I
c
A
lff,
3
h-n--r-
d(Xn,I)
=
0Theorem
4Asequence
X
e
@A inapmetricspacewithpmetric
p:
AXA
-r lR
convergestoI eA iff :l
li-n__*
p(\,I)
= p(I,tr)
Proof:
Suppose
X
convergesto
I
.ThenV€>0 3k>0 Vn>k
Xn.Be*4r,fy(I)
ThenV€>0 3k>0 Vn>k
p(Xn,I)-p(I,I)
ThusbyP2
3
t-o_*"
p(4,,I)
= p(I,tr)
Supposenowthat
3
hro_r-
p(Xn,I) = p(I,I).
Also,
supposethat
)r
e
B,(
a ) .We have to show
that
X
is eventuallyin
B,(
a).
As
[m"-* p(Xn,tr) = p(],])
wecanchoose
k>0
suchthat,Vn>k
p(Xn,I)-p(tr,I)
V
n >
k
p(4,,a)
<
p(Xn,I)
- p(I,I)
+
p(I,a)
=€
Vn>k
Xn
€
Br(a).
tr
A
primary motivation behind the development of generalising metrics to get pmetrics was that thereshould be a natural way of defining a partial order on a pmetric space, and so open up such spaces to
applications in denoational semantics.
Definition
3Foreachpmerric
p: AXA-+ IR .pg AXA
isthebinaryrelationdefinedby,
V x,y€A
x .p y <+ p(x,x)=p(x,y)
Theorem
5Foreachpmetric
p: AXA+ IR
.p
isapanialorder.
Proof:
VxeA.
x.px
as
p(x,x)=p(x,x)
Vx,y€A
x.py n y.px
+ p(x,x)=p(x,y)= p(y,y)
(bVP3)
=e x=y
(bypl)
Vx,y,zcA.x'PY
n Y'Pz
+
p(x,x)
=
p(x,y) n
P(Y,Y) = P(Y,z)
but,
p(x,z) < p(x,y)+p(y,z) -p(y,y)
(byPa)
p(x,z)
S p(x,
x)
p(x,z)
=
p(x,*)
(byP2)
x
.p
z
( bydefinition
of
.p
)tr
For each flat pmetric
p
.p1
is the usual ordering on a flatdomain,
whilefor
each Kahn pmetricps
.pS
istheusual"initials€gment"orderingonsequences.
Forametric
d: AXA +
lR.d
is the equalityrelation.
As we regard each metric space as a partial metric subspaceof
complete objectsit
is appropriate that this should be so 4s ne fstally defined object should be comparable withanother distinct totally defined objecr
The next theorem provides a warning
of
the dangersof
working
h
TO
spaces as not allsequences have unique
limits,
evenif
chains do.Theorem
6Suppose
XeoA
convergesto
IeA
inapmetricspacewithpmetric
p: AXA-+
IRand
that
I'
e
A
is
suchthat
I'
'p
I .
Then
X
convergesto
I'
aswell.
Proof:
By Theorem 4
it
is sufficent to show that ,3 lhq,--
P(
Xn
,
I' ) =
P(I', I')
Suppose €
>0,
then as
X
convergesto
I
(byTheorem4)
we can
choose
k >
0
suchthat,
V
n>k
p(
Xn,
I ) - P(I,I)
Vn>k
.
p(
Xn,
I') -
P(
I', I')
= p(4,,I)-p(I,I)
(as)t'.pI)
tr
In
the aboveproof
I'
is a "phoney"limit
in
the sense that it would not correspond to a chainlimit
if
the sequence were a chain. The intention
of
the next definition is to overcome the problemof
having sequenceswith
more than onelimit
by introducing
a restricted notionof
convergence. This
will
ensure that the topological
limit
of a chain is also the least upper bound.Definition
4Asequence
Xe @A
inapmetricspacewithpmetric
p : AXA +
B,
Properly
Converges
to
I
e
A
if
X
convergesto
tr
and,3
[rnn--
p(4,,)q) =
p(],tr)
Inotherwords
Xe
oA
properlyconvergesto
Ie A if 3
limo--
p(4t,I )
and'3
lirnnr-
p(
4,
,4 )
an4
limo--
p(Xn,\)
= [-r,-- P(4t,])
= p(]'])
The next Theorem shows that properconvergence captures the
limits
we really want although notice, we have not used chains here to obtain uniquelimia
in aT6
space.Theorem
7Suppose
X
e
oA
properly converges toboth
tr
and
I'
in a pmetric spacewith
pmetricp:
AXA
+
lR,
then
I'
'P
tr.
Proof:
Suppose
X
e
oA
properly convergesto
both
I
and
I'
.Choose
€ >
0
,
thenwecanchoose
k >
0
suchthat,p(
Xn,I )
p(I,I)
n p(Xn,I')
P(tr',I')
n lp()q,,Xn) p(I,I)l
p(
I
,I')
P(I', I')
+ (p(X",I')
p()',I'))
s€
Thus
p(
l'
,
I' ) =
p(
I
,I')
as
€
was an arbitrary choice.And
so
I'
.p
)
tr
The implication of the Theorem
7
is that limits to properly convergent sequences areunique.
This is an interesting resultfor
non-Hausdorff
Tg
spaces.Other
standard
metric
constructions
also
generalise
to
pmetric
spaceswith
both considerable&
surprising ease.Definition
5A
sequenceX
c
oA
inapmetricspacewithpmetric
p:
AXA
-+
lR
is
Cauchy
f'
V
€
>0 3 k>0 V n,m>k
p(4,,Xn') -
P(Xn,,Xm)<€
Definition
6A
pmetric spaceis
Complete if
every Cauchy sequence properly converges.Definition
7A
Contraction inapmetricspacewithpmetric
p:
AXA
+
IR
isafunction
f
:
A
-r
Asuch that,
3
0 < c
<
I V
x'Y
€
A
p(
f(y)
,
f(x)
) -
P(
f(x) '
f(x)
)Theorem
8Each contraction in a complete partial metric space has a unique fixed
poinr
Proof:
Suppose
f
:
A
+ A
is a contraction in_a complete puqal.meqc
spacewith
pmetric
p: AXA+ IR,
andthat
0Sc<lissuchthat,
V x,y
e
A
.
p(
f(y), f(x) )
p(
f(x), f(x)
)Let a e
A,
andlet
X
e
@A
besuchthat
V
n
>
0 \ =
fn(a).
We
will
first
showthat
X
is a Cauchy sequence.V n>0 . f( 4r+2,\+r ) -
f( 4r+r,4r+r
)V n>0 . f(
4,+z
,
Xn+l
) - f( Xi+r ,
Xn+l
)V n,k)0
.f(
Xn+k+l
,
Xn
) - f( \,
Xn
)+ f(
Xn+k,
Xr,
) - f( Xn,
Xn
)+f(Xn+k,Xn)-f(Xn,4,)
V n,k ) 0 . f(
Xn+k+l
,
Xn
) - f(
X1'
,
Xn
)=
cn
x (1-"k+l;
B
BCTCS
8
'.92
Thus
X
is seen to be a Cauchy sequence.Thus as our prnetric space is complere
X
properly convergesto
I
e
A
say.We now show
that
I
is a fixed pointof
f
.Choose
€
>
0,
thenas
X
properlyconvergesto
tr
wecanfind
k
2 0
suchthat,Vn>k
p(
I ,
Xn
) -
p(
x'
Xo
) < e/(l+c)
n p(\,l)
- P(I,l)
Thus Vn>k
p(
f(I), I ) - P(I'I
)+p(\+r,I)-p(l,I)
+ p(
Xn+l
, I ) -
p(
I
,
I
)=€
Thus,as€isarbitrary,
p(f(I),I)
- p(I,tr)
(*)
Similarly,
Vn>k
.p(
f(I),I
) -
p(
f(I), f(I)
)+
p( 4r+r
, I ) -
p(
f(I) , f(I)
)= (p( f(I) ,Xn+l ) - p( f(I) , f(I)
))
+
(P(
4r+r
, I ) -
P(
ll+r ,
4r+r
))
E cx(p(),Xn)
p()',I))
+E/(l+c)
=€
Thus, as
€
isarbitrary,
p(
f(I), l ) =
p(
f(I), f(I)
)Thusfrom
(*)
andPl
l=f(l),
andsof
hasbeenshownto
have a fixed
point.
It just reamins to showthat
I
is unique.Suppose
I'
c
A
and
l'
=
f(
)')
,
then ,P(
I'
*''=
I
l,';,^','nt', )
-
p(
f(I'),
r(I')
)p(I,I')-P(I',I')
=
0
as
0Sc<1
I',pI
Similarly
we canshow,
I 'p I'
andso tr
=
tr'
tr
Weighted Metrics
So far we have explained partial metrics in terms
of
a generalisationof the metric
axiomsMl
-
M3
However,
thereis
another methodfor
introducing
partial
metrics.
This
second approach sheds morelight
on the relationship bet'ween metrics andpartial
metrics.
As
has beenclearly shown already partial metrics do allow discussion
of
Scott style partialobjecs in
the spirit ofmetric
spacesby introducing
the idea that an object need not necessarily have zero distance fromitself,
i.e.
V xeA .p(x,x)
>
0
insteadof
V xeA
.
d(x,x)
=
0.
Byconcentratingon
the idea that each object hasa
weight
which
in
generalis
a non-negativereal
gives us analternative way
to
definepartial
metrics.
The resultof
this
is
theconclusion that
the notionof
pmetric
is precisley the combinationof
the ideasof metric
andweight.
Definition
8A
WeightedMetric
overaset
A
isapair
<
d,
||
d:AXA+lR
andaWeightFunction
ll:A+
IR
where,V x,y
e
A
d(x,Y)
Theorem
9Partial metrics and weighted metrics can be defined in terms of each other.
Proof :
Suppose
<
d, ll >
isaweightedmetricovertheset
A.
Lrt
p
:
A
X
A
-+
lR
be the function such that,Vx,y
€
A
P(x,y) = (d(x,Y) +lxl
+
lYl) /
2We
will
first
showthat
p
is a pmetric byproving
Pl
-
P4 .(P1=+)Trivially
V *,y
€
A
x=y + p(x,x)
=
p(x,y)
=
p(y,y)
(Ple)V
x,y
e
A
P(x,x)
=
P(x,Y)
= P(Y,Y)
d(x,x)+lxl+lxl
d(x,y)+lxl
+lyl
d(y,y)+lyl+lyl
=) 2xlxl
= d(x,y)+lxl +lyl = 2 x
lyl
+
d(x,Y) = lxl-lYl
= lYl-lxl
+
d(x,y) = 0 + x=Y
(byMl)
(P2)
V x,y
e
A
p(x,y) = p(y,x)
(byM2)
(P3)
V
x,Y
€
A p(x,x) =
lxl
(P4)
V x,y,ze A
d(x,z)
+
d(x,z)+lxl+lzl
d(x,
z)
+lx
| + | zI
d(x,y
)+lx
|+
ly
I2
d(y,z)+lyl+lzl
lvl
2:+ p(x,z) < p(x,y)+p(y,z) -p(y,y)
Thus
p
has been shown to be a pmetric.Supposenowthat
p
isapmetric.
Wewillshowthatthepair
( d, ll>
definedby,V
x
e
A
lxl
::= p(x,x)
V x,Y€A
d(x,Y) := 2rP(x,Y)
lxl
lYl
is a weighted metric by
proving
Ml
-M3.
(M1+)
V x,YeA
x=Y +
d(x,y)=0(bydefrnitionof
<d,ll>)
O{1e) V x,y€A
d(x,y)
=Q
=t 2*p(x,y)
lxl
lyl =
0+ (p(x,y)-p(x,x)) + (p(y,x)-p(y,y)) =
0
(byP3)
+ p(x,x)
= p(x,y)
=
p(y,y)
(byP2)
:+ x=y
(byPl)
(N42)
V x,y
€
A
d(x,y) = d(y,x)
(byP3)
(M3) V x,y,z. A
P(x,z)
d(x,
z)+lx
l+
lzl
d(x,Y)+
lx l+lY
I2
d(y,z)+lyl+lzl
lvl
+
d(x,z)
tr
Using the one to one relationship between paftial and weighted metrics used
in
the last proof we candefine the equivalent of the pmetric ordering on weighted metrics by,
V x,Y€A
x <Y (+ d(x,Y) = lxl-lYl
Now we move on to the problems of how to build larger pmetric spaces from smaller pmetric
spaces.
For pmetrics to beof
much usein
denotational semantics we must have (at least) product,sum,
andfunction
spaceconstructions
to build
useful
spaces.
The remainder
of
this
paperdemonstrates
that
suchconstructions do
exist.
First
we
needto apply to
pmetrics a
standard construction usedfor
turning an unbounded metric into a bounded metric.Definition
9Foreachpmetric
p : A X A -)
IR
, P^ : A X A -+ [0rl)
isthepmetric
suchthat
V x,y€A
p^(x,y) = p(x,y) /( 1*p(x,y))
Using Theorem
43
tocheck
P4
it
can easily be verifiedthat
p"
is indeed a pmetric .Theorem
10For each
pmetric
p
the topology inducedby
p"
is the same as p .Proof
:Suppose
p : A X A ->
IR
isapmetric,
then,
VxeA
V€>0
B,(x)= B^6111a6;(x)
and,
VxeA
V0<e <1
B"r(x) = Br4r-ry(*)
and,
V xeA V €>1
B"€(x) = U{
Bp(*,r)+r(y)
ly€B^r(x)
}tr
Also note that
for
eachpmetric
p,
.p
=
.
(
p"
)
.Definition
f0
TheCountableProductof
thepmetrics
pn: \XA1, -+ IR
(n20)isthefunction
p' : (Xn>oAn)2 + IR
where,V X,y € Xn>oA,, p'(x,y) = In>o (pn)"(xn,yn) x
2-n-lTheorem
l0
The countable product of pmetrics is a pmetric.
Proof:
Suppose
p' : (Xn>04,)2 +
lR
isthecountableproductofthepmetrics
Pn: AnX\ +
IRWe
will
show the countable producto
be a pmetric byproving
Pl
-P4.
(Pl=+)
trivial.
(Ple) V X,y .
Xn>04r
Pt(x,x)
=
Pt(x,Y
) =
Pt(Y,Y)
=i
In>O
(pn)"(\,\)
x
2-n'r
= In>o
(pn)"(
xn
,
yn
) x
Z-n-l=
In>o
(Pn)"(
yn
,
yn
) x
2-n-l+ In>o (
(pn)^(
\,
yn
)
(pn)n(
*n,
\ ) ) x
z'n'r
=In>0 ( (po)"(\,yn)
(pn)"(yn,yn)
) x
2-n-l=Q
+
V n)0
(Pn)^(\,\)
=(Pn)n(\,yn)
=
(pn)"(
yn,
yn
):+
V n20 .
xn
= yn
=+ x=y
(P2)
by
Y2
for each pn.(P3)
by
P3 foreach
pn.
(P4) V x,y,z e Xn>o\
Pt(x,z)
p'(x,z)
=
In>'
(pn)"(
\, h ) x
z-n-r
andasp"(x,y)
+
p'(y,z)
- p'(y,y)
=In>o (
(pn)^(
xn
,yn )
+
(pn)"(
yn
,
zn)
-
(Pn)"(
Yo
,
Yn
) )
x
z'n'r
tr
The countable product has the "pointwis€"
ordering,
i.e.V X,y € Xn>04,. x'(p")y
ce
V n20. \ r(
(pn)n)
ynDefinition
11TheDisjointSumofafamilyofpmetrics
pi:
A'1X,A.1
-)
IR
(ieI)
isthe
pmetric
p+: Ui.l{<i,x>lxeAi}
+ [0,1]
where,V <i,x> , (j,Y> . Ui.t
{
<i,x ) lx
e
Ai
}p+(
<i,x> , (j,y)
)=
(pl)"(x,y,
ii;i
The topology and partial ordering for a disjoint sums are the expected ones.
We now come to the more involved problem of how to constnrct a pmetric function space.
As
with
function space constructions of othen we are forced to make certain assumptions on the typeof functions allowed
in
such a function space.Definition
12Foreachpmetric
p: AXA+
IR aset A*cA
isProperlyDenseinAifeach
member
x
e
A
is thelimit
of a sequencein
A*
properly convergingto
x
.Definition
13Aset A
withpmetric
p: AXA -r
IRis
Sufferable
iftherethereexistsacountableproperly
denseset
A*cA
andfunction
p*: A-+R-{0}
suchthat
forany
x,Y.
4*10,21
,
IaeA*
p*(a)
t
Xa
= Iu"6*
p*(a) x
Y"
(+
X
=
Y
Sufferability
is not an umeasonable assumption as any spaceof
interest to a programming languageErratum
(RR212
Partial Metric
Spaces)
Definition
13
is unnecessarily strong and should be replaced
by,
Definition
13A
set
A
with
pmetric
p
: A
X
A
+
IR
is
Sufferable
if
,3 r20
e
IR V x,y e A
p(x,y)
andthereexistsacountableproperly
denseset
A*c
A
with
function
p*:
A*
-r R-t0)
such that
IaeA*
P*(a)
In
Definition
14
read,
The
setof
all
suchproperly
continuous functions overclosure
of
a recursively enumerableset.
Although not proved here we can show that the countableproduct
of
sufferable spaces is sufferable.Definition
14A
continuousfunction
f
: A
-)
A'
overpmetric
spacesis
Properly
Continuous
if
for eachsequence
{
e
orfi
properlyconvergingto
x
e
A
thesequence
Y
e
A'
where,V n>0
Yn
=
f(Xn)
properly converges
to
f(
x)
.
The
setof
all
such properly
continuous functions is denoted byA.+
A'
Definition
15For
pmetrics
p:AXA+lR
and
p':A'XA'-rlR,
d):(A-A')X
(A'+A') +
IR
and
ll : (A'+A') -)
IR
arethe functions such that,V f
e
A"+
A'
lfl = I3ctr*
p*(a)
x
lf(a)l'
V f,g € A'+ A'
dt(f,g) = Ia.A*
p*(a)
x
d'(f(a),
g(a)
)where
<
d'
,
Il'
>
is
the weighted metric equivalentfor
(p')"
as constructedin
the proofof
Theorem9
.Theorem 1l
<
d) ,
ll>
isaweightedmetric.
Proof
:(M1+)
Vf eA'+A'
d)(f,f)
= Ia.A*
P*(a)
x
d'(
f(a)
'
f(a)
)= Isctr*
p*(a)
x
0=0
(M2e)
V f,g€ A*r A'
d)(f,g) -0
+ VaeA*
d'(f(a),g(a)) =
0+ V
a
e
A*
f(a) =
g(a)
+ flA*
=
glA*
+
f
=g
asf
&garecontinuousandA*isdenseinA.
(M2)
d)
is symmetric asd'
is symmetric .(M3) V f,B,hc A.+ A'
dt(f,h)
= IarA* P*(a)
x
d'(
f(a) '
h(a)
)= Ise tr. P*(a)
x
d'(
f(a) '
g(a))
I Ia.A* P*(a) x
d'(
g(a) ,
h(a)
)= dt(f,g) + dt(g,h)
Thus
d?
is proven to be ametric.
It justreamains to showthat
||
is aweight.
v'''
.=^;"1.
;.ijl
;
l:lr"r,',s(a),'
)is a weighted metric
= d)(f,g)
Thus
II
is a weightfor
A !t
A'
Thus
<
d),
II
>
isaweightedmetricfor
A l+
A'
.tr
As
in
theproof of
Theorem 9 we can construct apmetric
p)
for
A '+
A'
.
An important result fora potential
function
space is the following.Theorem
12Vf,geAD+A'
f .p)g
<+ VaeA
f(a).p'g(a)
Proof :
V
f
,g
e
A l+ A'
f 'P)
g(+ d(f,g) = lfl
lgl
Gt Iu.6*
P*(a) x
d'(
f(a) '
g(a)
)= I".4* p*(a) x ( lf(a)l' - lg(a)l'
)c+ V aeA*
d'(f(a),g(a))
= lf(a)l'-
lg(a)l'
( by the definition of
p*
)<+ V aeA*
f(a).p'g(a)
<+ V aeA
f(a) .p'g(a)
asA*isproperlydenseinAand
f
&
g
are properly continuous and Theorem A4n
Conclusions
Pmetrics
( = weighted metrics)
allow the applicationof
metric Hausdorff methods to thenon
Hausdorff
Tg
topologies requiredfor
denotational semantics based upon partialorders.
For Computer Scientists this approach promises a fresh approach to denotational semantics usingwell
understood metric mathematics. For Mathematicians this approach suggests
thu
the standard theoryof
metric
spaces can be generalisedto non-Hausdorff
spa@swithout losing too
many Hausdorff properties such aslimits of
sequences beingunique.
Perhaps more importantly there is a lesson to be learntby
both Computer Scientists&
Mathematicianshere.
Too often the former have had toinvent
thek
own mathematics because the latter have not found conoputing problems mathematicallyinteresting.
The coincidence between the late David Park'swork
on bisimulation for process calculi and PeterAczel's
theory on nonwell
founded sets was perhaps anearlier
exampleof
the samelesson.
The challenge is to extendfamiliar
mathemaical methodsfor
reasoning about"total"
well founded objects to include "partial" nonwell
founded ones and so apply these methods for reasoning about programs.Thetopology
tl-
ofapmetricspacewithpmetric
p
: AXA +
IR
alwayshasthe
first of
the t'wo definitive properties,V
X,Y €
A
x.py n
xe€l-
y€€r
which characterise a Scott
topology.
The second definitive property is that the least upper boundof
a chain must be a topological
limil6f
ttratchain.
In the context of pmetric spaces this is equivalent tosaying that
all
chains must be properlyconvergent.
Thusif
a
Scott
pmetric
is defined to be onein
which
every chain is properly convergent andfor
which
there exists a specialelement
l-
e
A
such that
P(I,a)
=
sup{
P(x,x) | xeA
}then the
topology
of
a Scott pmetricis
always a Scotttopology.
The conclusionfrom
thisis
thatpmetrics can be used to define Scott topologies, and
so
must be relevant t o denotational semantics.The open question is how many Scott topologies cannot be defined using pmetrics.
References
tdB&2321
Processes andtheDerntaional
Senawics of Concunency ,J. W. de
Bakker
&
J.I.
Zucker,
Dept.of
Computer Science reportNV 209182
,
Stichting Mathematisch Centrum.The Semantics of a l-anguage
for
Parallel Progranvning,
Gilles Kahn ,Proc.
IFIPConf.
1974,
pp.
471-
475 .lKa74l
[Ko88]
All
Topologies comc from GeneralisedMetrics,
Ralph Kopperman,American Mathematical
Monthly,
Vol.95
,
No.2,
February 1988.[Sm87]
Quui
- Untformitics:
Reconciling DornainswithMetric
Spaces ,M. B.
Smyth,
Mathematical Foundations of Prognmming Language Semantics,
3rd Workshop,
Tulane
1987,
in
LNCS 298 ,eds.
M.
Main et. al.[Su75]
Introductionn
MetricandTopological
Spaces,
W.A.
Sutherland,Clarendon
Press.
Oxford
1975 .Appendix
Definition
A1
A
TopologJr
on aset
A
is aset
t
c 2A
such that,(Tl) A
e
0-(T2) Aef,
(T3) vscr
USe€r-(T4) V Sclf
lSl
<""
:+
nS € t
( Members