Longo and Moggi - CCcateg-for-types
Longo and Moggi - CCcateg-for-types
G. LCN33, E. NIDC~I
UNIVERSITA DI PISA
DiDartimento di Informatica
Corso Italia 40
56100 PISA
ITALIE
PART I
§.0 INTRODUCTION - (to Part I and II) -. By "data type" one usually in-
tends a set of objects of the same "type" or "kind", suitable for mani-
fic r e p r e s e n t a t i o n mechanism. Thus the objects one deals with are mo-
gY-
The categories one needs for interpreting high level p r o g r a m m i n g
languages must possess strong completeness and closure properties so
that the existence of objects, which are formally given by general de-
For example, for a given set of partial differential equations, one may
types, since computable elements and maps provide the "regular" inter-
functions, PR, are not sufficient for this investigation, since, in ge-
more general data types. The methods are b o r r o w e d from higher type Re-
interelated topics in view of the work done in the 70's by several au-
Suppose one is given two countable sets A and B, and two numbe-
f
[0 --+~
(1 ) eA[ I eB
A +B
g
The first question one may ask about EN is whether there is na-
tural way to give, effectively, a numbering to the set EN(A,B), the
to Vf EN p (w,A)
-- _ ]n(f(n)+ = f(n) = eA(n)) -
But exactly because of this, one may want more; namely the p o s s i b i l i t y
gory or enlarge the Category itself. The point is that both ways should
§.2 and 3 presents CCC's with partial morphisms and partial objects
n+l;=n +n and the pure types by n+l;:n +0. Partial computable func-
2) ~f,gcF Xx.<f(x),g(x)>~F.
n+l.5 n+l n
(3) geL iff ~g'cL Yx,ycL g(x)(y) = g'(<x,y>).
240
n+2 n+l
Thus, for fcL , fog(x) = f(ly.g'(<x,y>)) and, for some hcL ,
n+2
fog(x) : ly.h(<x,y>), by the d e f i n i t i o n of L and (3) applied to
of the GBM or the HPEF. Thus these functionals are an easy way to de-
1
fine partial c o m p u t a b l e functions in higher types, by taking L = PR
1
or BM = PR. Partial maps turned out to be essential in c o m p u t a b i l i t y
as it will be m e n t i o n e d below.
fined (i.e. that <,> exists in any type) goes toghether with the proof
continuity notions for EN and Scott's domains. One cannot avoid, then,
tegory-theoretic frame.
morphisms), i.e. subcategories of Set (Set), and see how these ways re-
P
late.
2.1 Definition. Set is the category whose objects are sets and where
P
Set (x,y) = {fl f:X ÷Y (partial)}, for all objects x,y.
P
The f o l l o w i n g notion has been inspired by a talk given in Siena by
A. Heller.
if:
0 s.t. for all objects z,v and any f~C(z,x) and any g cC(y,v)
x,y
one has
241
0 of = 0 and go0 = 0 .
x/y z,y x,y x,t
the c h o i c e of t.
to y. Recall that, in a c a t e g o r y C, x 4 y (x is a r e t r a c t of y)
if there exists a pair (in, out), with in eC(x,y), out c C(y,x) s.t.
(Intuition: ~ 4 ~7 )"
[(f°h)-(goh) otherwise;
fxg = (fopl)'(gop2);
Observe that the extensions in the adjunctions in 2.6.2 and 3 are uni-
que. As usual, xy is an object and represents C(y,x).
P
Xy x t (xY) ×Y -- ---i. . . . . ~ xy ×
P P "(A(A eval)) id P Y
Y
243
(i) xy ~ xy
P
(ii) x y 4 x y × ty
P P
3) feEN(A,B)
-- --
is a principal m o r p h i s m if Vh{EN(A,B) h -<- a f.
(pre-)complete ~ B (pre-)complete,
see Longo & Moggi (1983).
per.
Write A
-- ~p .B (or .A 4 B) . for A. is a . r e t r a c t i o n of B in EN p (or in
EN).
I
3.6 Theorem. Let ~ 4p_
A and B ~ B . Then one has
A
(ii) if o n e also has A x A 4 A and B-- exists, then ~geEN(A,B)
principal.
types.
(i) ~ 4 p--
B( ~ --
B) ~ ~ ( p--
B~(4 B ~),
--
(ii) B ~ B± ~ B~ ~ (B--)
~ ± ,
follows.
Of c o u r s e , {E
2 o T} is the sub-CCC generated by ~p = P R in EN.
domain, by 2.8. Thus all the n u m b e r e d sets in the type structure, are
actualy partial objects. By 2~4 and the r e s u l t s following it, the to-
tal maps in e a c h E a÷T may be r i g h t f u l l y considered as p a r t i a l compu-
c
table functionals.
3.9 nemma . VoeT w ~pEc° ' E cO 4 (Eac )± and E c~ × E a ~ Eo' for all n > 0.
-- C C
lus.
simple corollary. This p r o v e s that the BMn's and the H P E F (see §.i)
give the i n t e g e r types in the type structure over w. The pure type
variant of 3.12 is e a s e l y given.
1
3.12 Corollary. Let L = PR. Then, for all n > 0,
n) Ln = En
c
n+l.5) L n+l~5 = E N ( E n E n+l)
C C
1.5
1.5) by a s i m p l e argument (show that L contains all a c c e p t a b l e
g~del-numberings of PR).
n+2
clearly acceptable w.r.t. E , in the sense of definition 1.2;
c
hence
n+2.5
~L ~ g = Xx.~(P0(X))(Pl(X))~En+2
c
= ~ = Xx'(XY'g(<x'Y>))cEN(E~ +l'En+2)c
Conversely,
3.13 Remark. The key issue in this part has been the study of partial
morphisms and objects in EN and the related sub-CCC's. Note that, in
precomplete numbered sets, partial morphisms may be always extended to
total ones. As for complete numbered sets one can say more, in view
of 2.4: with some work, it may be actually shown that complete numbered
sets and partial objects concide in EN.
E. B41~I
UNIVERSITA DI PISA
D i p a r t i m e n £ o di I n f o r m a t i c a
Corso Italia 40
96188 PISA
ITALIE
PART I I
(see Ershov (1975)) in the integer types. The key fact was the p o s s i b i -
on the n o t i o n of n u m b e r i n g :
i) LoL c L, id e L;
2) VnEW Ix.nEL;
i .e. : ~I EN ~ _ _ _ I __GEN L
I E N ~ I IGEN
~4S~t(ENL)°P
i) X = (XrE)cGEN L iff
-- x p
250
i) E c= w--+ X,
X
2) U {img e l e { E } = X,
X
e0/:
/:e\
I I,
ei ",~e'I
X ........->Y
f
ii) G E N L is a pCCC.
P
hint: X × Y : (X × Y,{e-e'le E x A e' Ey});
fix h_Y>
X<-- X x y y
e ~ / e'
251
Remark. In general, if C
is pCCC, it does not follow that C is CCC
P
(the p r o b l e m are objects s.t. Y ~ Y±).
f e ENL(x,Y) ~ f o E N L ( z , X ) ~ ENL(~,y)
p -- _ p -- _
HPEF {L n} , in the integer (or pure) types (see §.l of part I), w i t h
n6~
e '<<
I
I
e'
X-- -- ~ - ~ Y
in 0 in 1
-'\ ] /-
'~k I
! < f ' g //
f \: / g
n+l.5
The e x i s t e n c e of p r i n c i p a l morphisms in L does not f o l l o w from
d i n g of EN L in Set (ENL)°p,
REFERENCES