Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/2822237
CITATIONS READS
2 16
1 author:
Valeria De Paiva
University of Birmingham
141 PUBLICATIONS 1,713 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Valeria De Paiva on 21 September 2012.
May 31, 1991
Abstract
This note presents a category of multirelations, which is, in a loose sense a gen-
eralisation of both our previous work (the categories GC, [dP'89]) and of Chu's
construction AN C [Barr'79]. The main motivation for writing this note was the
utilisation of the category GC by Brown and Gurr [BG90] to model Petri Nets. We
wanted to extend their work to deal with multirelations, as Petri Nets are usually
modelled using multirelations pre and post. That proved easy enough and people in-
terested mainly in concurrency theory should refer to our joint work [BGdP'91]; this
note deals with the mathematics underlying [BGdP'91]. The upshot of this work is
that we build a model of Intuitionistic Linear Logic (without modalities) over any
symmetric monoidal closed category C with a distinguished object (N; ; ; e ?)
{ a closed poset. Moreover, if the category C is cartesian closed with free commu-
tative monoids, we build a model of Intuitionistic Linear Logic with a non-trivial
modality `!' over it.
Introduction
This note extends the treatment of relations in the category GC { which is an in-
teresting model of (Full Intuitionistic) Linear Logic [dP89], see sequent presentation
in the appendix { to multirelations over a category C where C is a category with a
distinguished (ordered) object (N; ). In particular we discuss the case of multire-
lations [Wins88] in the category Sets, where (N; ) is the set of natural numbers
N with the opposite of its usual ordering.
The main motivation for writing this note was the utilisation of the category
GC by Brown and Gurr [BG90] to model Petri Nets. The idea of using category
theory to model Petri Nets originates with Glynn Winskel, who attributes some
of the insights to Mike Fourman. Brown and Gurr following Winskel's lead and
also Girard's dictum that Linear Logic ought to relate nicely to Concurrency, used
the category GC to model Petri Nets, but as GC dealt with relations, they could
only account for particular Petri Nets, called in some of the literature elementary
Petri Nets. Elementary Petri nets are nets where the relations pre and post have
multiplicities restricted to 0 ? 1. It seemed to us that it should be easy to extend
the treatment in [BG90] to modelling Petri nets with multiplicities; that turned
Small corrections were made in August 1991. I would like to thank Pino Rosolini and Thomas
Streicher for their comments.
1
to be the case and people interested mainly in concurrency theory should consult
[BGdP'91]. This note deals with the mathematics underlying [BGdP'91], which
could not be all explained in that paper.
The construction described here can also be seen as a common generalisation
of the constructions of the category GC cf.[dP89] and of GAME K of Yves Lafont
[YL'88], [LS'91]. Note that, as the category GAME K can be seen as a special case
of Chu's construction AN C - cf. the appendix of -Autonomous Categories [Bar79]
- this note compares GC and Chu's category.
In the rst section we present our variation of Chu's construction, which we call
the category MN C and compare the two constructions. We also state a proposition
interesting from the abstract viewpoint, but not explicitly used anywhere in the
paper and whose proof, by Dominic Verity, would make this note even longer. This
proposition shows that one of Chu's main results, that his category was enriched
over the base category C, is also true of our construction MN C. In the second
section, to motivate the richer structure on the category MN C, we restrict ourselves
to the case where C is the category Sets and N is the set of the natural numbers
with the opposite of its usual order. (Lawvere's seminal work on metric spaces
[Law] makes this order the sensible one to consider.) That is the interesting case
for Petri Nets applications. In the third section we describe the multiplicative and
additive structures of MN C in the general case. In the fourth and longest section
we discuss Linear Logic modality `!' for MN C under the strong assumption that C
is cartesian closed with free commutative monoids. This section is a straightforward
generalisation of our previous results for GC, but the calculations are slightly more
complicated and quite lengthy. Finally, in the last section we describe some of the
possible generalisations of MN C under investigation and their possible applications.
This work was rst presented at the Edinburgh Workshop in Concurrency, Petri
Nets and Linear Logic in April 1990 and subsequently at the CLICS review meeting
in Paris, September 90. Many thanks to these audiences, in particular to Martin
Hyland, Jean-Yves Girard, Carolyn Brown, Doug Gurr, Harold Schllinx, Andy Pitts
and Dominic Verity. Thanks also to Peter Dybjer, who made me write about the
relationship between MN C and GAMEK .
2
U
F
U
Y ???????????! U
X
j j
f
Y jj jj
# #
V
Y ??????????! N
we have (U
F ) (f
Y ) as morphisms in C(U
Y; N ).
Diagramatically we have:
U ???7??? X
j "
f jj + jj F 8u
y 2 U
Y (u
Fy) (fu
y)
# j
V ???7??? Y
U
F
U
Y ???????????! U
X
j j
f
Y jj jj
# #
V
Y ??????????! N
we have (U
F ) (f
Y ) as morphisms in C(U
Y; N ).
Identities in MN C are identities of C in each coordinate, composition is given
by composition in each coordinate and associativity comes from the associativity in
C. Thus we have the following proposition.
Proposition 1 The description above denes a category MN C.
The only thing to check is composition of morphisms (f; F ): A ! B and (g; G): B !
C , which is easily done using the diagram:
3
U ???7??? X
j "
f jj jj F 8u
y 2 U
Y (u
Fy) (fu
y)
# j
V ???7??? Y
j "
g jj jj G 8v
z 2 V
Z (v
Gz )
(gv
z )
# j
W ???7??? Z
U
G U
F
U
Z ???????????! U
Y ???????????! U
X
j j jjj
f
Z j j = jj f
Y
# # j
V
Z ??????????! V
Y j
V
G
j @@ j
g
Z jj jj
# @& #
W
Z ??????????????
????????????! N
4
U
F
U
Y ???????????! U
X
j j
f
Y jj jj
# #
V
Y ??????????! N
5
MN C
j @
jj @@
# &
ANj C GC
jj
#
GAMEK
2 2 2
We now state a proposition, not necessary for the rest of this note, whose proof
can be found in [Ver91]. The reason for mentioning the proposition is that its
analogue for AN C was one of Chu's main results in [Barr'79]. Note, however,
that to prove this proposition, we assume that C has pullbacks as well as being a
symmetric monoidal closed category with nite products.
Proposition 2 The category MN C is enriched over the category C.
The next step is to dene more structure in MN C. Given objects A and B
7 X ) and (V (
respectively, (U () ) 7 Y ) in MN C, we want to dene an internal hom
?7 U Y ), but the problem
[A; B ]. The object [A; B ] should look like (V U X Y (
)
is to dene a map
? : V U X Y U Y ! N
with good properties. By good properties it is meant mean that we should be able
to dene an adjoint tensor product to the internal hom. That can be dicult in
the general case, but if C is Sets and N really is N the set of natural numbers it is
easy. We start with the easy case in the next section and then do the more general
one in section 3.
6
2 The Category MSets
If we consider the construction of MN C where C is the category of sets and usual
maps Sets and N is the set of natural numbers N , then our objects (U ( )7 X )
correspond to multirelations U X ! N cf. [Wins]. Recall that Sets is not only
cartesian closed with coproducts, but a topos.
A morphism (f; F ): A ! B in MN Sets corresponds to a condition on multire-
lations and saying that
8u 2 U; 8y 2 Y (u; Fy) (fu; y)
as natural numbers, or equivalently that 8u 2 U; 8y 2 Y ? (u; Fy) + (fu; y) 0.
Moreover the set of natural numbers N has some extra structure, apart from
its usual order, that allows us to dene a symmetric monoidal closed structure in
MN Sets. For a start we can add natural numbers, so we can dene a tensor product
in MN Sets, which we call from now on MSets. Before dening the tensor product,
we summarize the discussion above in a denition.
Denition 3 The category MSets consists of:
Objects are triples (U; X; ) written as (U ()7 X ), where U X ! N is a
function in Sets, that is a multirelation.
Morphisms in MSets from an object U X ! N or (U ( )7 X ) to an object
V Y ! N or (V ( )7 Y ) are pairs of morphisms in Sets, (f; F ) where
f : U ! V and F : Y ! X are such that
U ???7??? X
j "
f jj + jj F
# j
V ???7??? Y
7
Note that we are using the cartesian closed structure of Sets - to write X V and Y U
- and the monoidal structure `+' of N to dene
.
This operation clearly denes a bifunctor, which is a tensor product. Associativ-
ity and commutativity are straightforward and the object I = (1 ( )7 1) - where the
0
Actually this odd-looking tensor product, analogous to the one in GC, is the
right one to prove monoidal-closedness of MSets with respect to a (reasonably)
intuitive internal-hom, which we proceed to dene.
7 X ) and (V )
Denition 5 Given two objects (U (
) (7 Y ) in MSets we dene [A; B ]
their internal-hom as the object,
?
[A; B ] = (V U X Y ????7?????? U Y ):
The multirelation \( ? )" is given by ( ? )(f; F; u; y) = ?_ (u; Fy)+ (fu; y),
where the dotted subtraction is truncated subtraction, that is ?_ + = ? if
and 0 otherwise.
The truncated subtraction in the denition above is very intuitive after reading
Lawvere's \Metric Spaces, Generalised Logic and Closed Categories"[Law], where
the same kind of construction is done using the positive real numbers instead of the
natural numbers.
Proposition 3 The construction above denes a bifunctor [?; ?]: MSetsopMSets !
MSets.
Having dened an internal hom and a tensor product we have the obvious:
Theorem 1 The category MSets is a symmetric monoidal closed category with
respect to the tensor product
and the internal-hom [?; ?] dened above.
The proof is simple, one has to verify the natural isomorphism
HomMSets (A
B; C )
= HomMSets (A; [B; C ])
This can be done by looking at the diagrams
U V ????7?????? X V Y U U ?????7????? X
j " j "
f jj hF ; F i jj jj hf; F i jj F
j j
1 2 2 1
# #
?
W ?????7????? Z W V Y Z ????7?????? V Z
1 2
B; C ), then we know ?(
) +
0, which means ?(u; F zv) ? (v; F zu) +
(f (u; v); z ) 0. But to show that the corresponding morphism (hf; F i; F ) is in
1 2
2 1
allowed. 2
In the next section we generalise the constructions of this section to categories
other than Sets and to N 's other than the set of natural numbers.
8
3 Structure on MN C
The categorically-minded reader may have noticed that we used an \adjointness
situation" in N to dene the symmetric monoidal closed structure in MSets. That
is we have used the facts that in N we can say n m, also n + m 2 N and
?_ n + m 2 N - that is `+' and `?_ ' are bifunctors and there is an adjunction:
?_ (m + n) + p 0 i ?_m + (?_ n + p) 0:
Thus to generalise the construction of MSets we rst dene \a symmetric
monoidal closed poset" (N; ; ; ?; e), then we show how the closed structure of
N allows us to dene a symmetric monoidal closed structure in MN C, if C is
symmetric monoidal closed with products.
We should mention that Flagg has, independently, the same denition of a
(symmetric monoidal) closed poset in [Fla'90], but he really considers integral closed
posets, the ones where the identity for the monoidal structure `e' is also the identity
for an extra `additive' structure, exactly the condition we want to avoid. We give
our denition in two easy steps.
Denition 6 An ordered monoid (N; ; ; e) is a poset (N; ) with a given com-
patible symmetric monoidal structure (N; ; e). The structures are compatible in the
sense that, if a b, we have a c b c, for all c in N .
These are called ordered monoids in Concurrency Theory, but could as well be
called and posets as in [HdP'91]. Note that to be very precise we should call the
monoids above, symmetric ordered monoids, see [dP'91] for a slightly more general
notion.
Denition 7 Suppose (N; ; ; e) is an ordered monoid and a; b 2 N . If there
exists a largest x 2 N such that a x b then this element is denoted a ? b and
it is called the relative pseudocomplement of a wrt b. A closed poset is an ordered
monoid (N; ; ; e) such that a ? b exists for all a and b in N .
Since we dened a closed poset to be a restriction of the notion of a symmetric
monoidal closed category to the category of Posets, we have an obvious proposition:
Proposition 4 A closed poset (N; ; ; e; ?) has the folowing properties:
1. a b c i a b ? c
2. If a b, then for any c in N , c ? a c ? b and b ? c a ? c;
3. As `e' is the identity for `' a e = a a implies e a ? a for any a in N .
Note that set of the natural numbers with its usual ordering and operations -
addition and truncated subtraction - dened in section 2 is a closed poset hN;
; +; 0; ?i
_ . For other interesting examples of closed posets see [Flagg].
Having done the rst generalisation - to consider a closed poset, instead of
the set of natural numbers - we now proceed to generalise the category Sets to
any symmetric monoidal closed category C with nite products. Thus, suppose
that C is a symmmetric monoidal closed category with nite products and that
(N; ; ; e; ?) is a closed poset as above. Write [?; ?] for the internal hom and
for (its adjoint) tensor product in C, as well as for the cartesian product.
Then we can construct the category MN C as in section 1 and one of the possible
symmetric monoidal structures of MN C is given by:
9
7 X ) and B = (V (
Denition 8 Given two objects A = (U ( ) )7 Y ) in MN C we
dene A
M B their tensor product as follows:
(
)M
A
M B = (U
V ?????7??????? [V; X ] [U; Y ])
The morphism \(
)M " intuitively says (
)M (u
v; hf; gi) = (u
fv)
(v
gu), where is the monoidal structure in (N; ; ; e; ?).
To dene formally the morphism (
)M consider the following map, which
we call :
(U
V )
([V; X ] [U; Y ]) U
?!
V
1 U
V
[V; X ] U?!
eval U
X ?!
N
Similarly we dene (U
V )
([V; X ] [U; Y ]) ?! N . Then to get
we pair
and and use the monoidal structure `' of N , as follows:
(U
V )
([V; X ] [U; Y ]) <;>
?! N N ?! N
I ????e?7????? 1
j "
jj jj
# ? j
[U; U ] [X; X ] ????7?????? U
X
U
V ????7?????? [V; X ] [U; Y ] U ?????7????? X
j " j "
f jj hf ; f i jj jj hf; f i jj f
j j
1 2 2 1
# #
?
W ?????7????? Z [V; W ] [Z; Y ] ????7?????? V
Z
1 2
v)
z ). But as N is a closed poset,
1 2
(u
f zv) (v
f zu)
(f (u
v)
z ) () (u
f zv) (v
f zv) ?
(f (u
v)
z )
1 2 1 2
(u
f (v; z )) ( ?
)(hfu; f ui; v
z )
1 2
11
3.1 Second Comparison
In this section we want compare the symmetric monoidal closed structures of AN C
and MN C, but it is slightly easier to compare AN Sets and MN Sets. As we noted
before the two categories have the same objects, eg
N and B = V Y ?!
A = U X ?! N
and for morphisms
AN Sets(A; B ) MN Sets(A; B )
as any morphism in AN Sets satises not only (u; Fy) (fu; y) but also the
converse. The internal-hom and the tensor product are very similar in shape, but
dierent enough. To make this comparison meaningful we recall the structure of
AN Sets albeit in a concise way. More details can be found in [Barr79], [Barr91],
[L88], [LS'91].
The denition of the internal-hom [A; B ]A in AN Sets, for objects A and B is
given by the object
( ? )A
(L (A; B ) ??????7???????? U Y )
1
to use Lafont's notation. Chu writes L (A; B ) as V (A; B ). The object L (A; B ) is
a subset of the internal hom [U; V ] [Y; X ], which as Sets is cartesian closed, can
1 1
L (A; B ) ????????! V U
1
j j
jj jj U
# #
X Y ??????Y??! N U Y
which intuitively means that
L (A; B ) = fh ; i j : U ! V; : Y ! X and (u; y) = ( u; y)g
1 1 2 1 2 2 1
so nothing more natural than taking the transpose of either of the two composition
maps in the square above.
The denition of tensor product in AN Sets is similar, for two objects A and B ,
A
A B is given by the object
(
)A
(U V ?????7??????? L (A; B ))
2
where L (A; B ), in Lafont's notation is a subset of the internal hom [V; X ] [U; Y ]
2
12
given by the following pullback:
L (A; B ) ????????! X V
2
j j
jj jj V
# #
Y U ??????U??! N U V
which intuitively means that
L (A; B ) = fh ; i j : V ! X; : U ! Y and (u; v) = (v; u)g
2 1 2 1 2 1 2
V ! N; : U ! Y; : V ! X such that
1 2
so we take the transpose of either of the two composition maps in the pullback
square.
Chu does not explicitly describe the tensor product, as it can be dened in terms
of negation, as A
A B = [A; B ? ]?
Since AN C is a subcategory of MN C, the two symmetric monoidal closed struc-
tures can be compared within MN C.
Proposition 7 The tensor products (
)M and (
)A can be related by the
following diagram:
(
)M
U V ?????7??????? X V Y U
j "
1 jj jj i
# (
)A j
U V ??????7??????? L (A; B ) 2
( ? )A
L (A; B ) ???????7???????? U Y
1
j "
i jj jj 1
# ( ? )M j
V U X Y ??????7???????? U Y
13
In particular, the identities for the tensors can also be compared
i
1 ???7??? 1
j "
1 jj jj !
# j
id
1 ???7??? N
One very nice thing about the category AN Sets or GAMEK is its relationship
to Linear Algebra, cf. [LS'91]. Seely remarks in [See] that when Chu was writing
about symmetric monoidal closed categories, Linear Logic had not been invented by
Girard. Hence there is nothing about additives - nor about a `!' comonad - in Chu's
original construction. Also, when following Girard's and Hyland's suggestions in
Boulder 87, I wrote about the categories GC as models of Linear Logic, I knew
nothing about Chu's construction. But additives were very easy to construct in
GC, as they are in MN C.
3.2 Additive Structure in MN C
If C has nite coproducts - as well as being symmetric monoidal closed with products
- and N is a closed poset as before, products and coproducts in MN C are very easy
to dene using their counterparts in C. The method is the same used for GC and
subsequently for GAMEK and AN Sets:
7 X ) and (V )
Denition 10 Given two objects (U (
) (7 Y ) in MN C we dene their
categorical product as follows:
A&B = (U V ( )7 X + Y )
&
?
The morphism \& " is given intuitively by & (hu; vi; x;
y; ) = (u; x) (v; y )
0
1
But we do no operation to (u; x) and (v; y), as we either have (x; 0) or (y; 1),
but never both, by denition of the coproduct X + Y .
More precisely & is given by the morphism
?
` + 0
(U V )
(X + Y )
= (U V )
X + (U V )
Y ?????????????! U
X + V
Y ?????????! N
1 2
It is easy :to check that this operation denes a bifunctor with identity given by
1M = (1 ( )7 0) - the empty multirelation - and that & is a categorical product.
The projections are projections in the rst coordenate and canonical injections in
the second coordinate. Similarly we have coproducts.
7 X ) and (V )
Denition 11 Given two objects (U (
) (7 Y ) in MN C we dene their
categorical coproduct
A B = (U + V ( 7 X Y )
)
?u;
The morphism \ " is given by ( v; ; hx; yi) = (u; x) (v; y)
0
1
Again it is easy to check :that the bifunctor \" provides categorical coproducts
and that 0M given by (0 ()7 1) is the initial object.
14
Proposition 8 The category MN C has binary products and coproducts.
It is clear that the category MN C above provides a model for Intuitionistic
Linear Logic, as described in the appendix.
Theorem 3 The category MN C is a categorical model of Intuitionistic Linear
Logic.
The proof is trivial, as the constants IM ; 1M ; 0M and bifunctors
; ?; &; were
dened for it. 2
Observe that the additive structure of AN C is the same as that of MN C - or
GC for that matter.
4 Modalities in MN C
This section should be considered as `work in progress', as we really would like to
have the results for a category C symmetric monoidal closed with products, instead
of for a cartesian closed category. But the calculations seem to be correct and the
case of C cartesian closed is the important one for the Petri Nets applications.
If we assume that C is a cartesian closed category - thus a fortiori a symmetric
monoidal closed category with products - with free commutative monoids we can
provide the linear logic modality `!' for MN C as a model of Intuitionistic Linear
Logic. Note that, in particular the category Sets satises all these conditions.
The general idea - analogous once more to the previous work on CG - is to
dene comonads T and S in MN C and compose them to get another comonad
called suggestively `!' in MN C. But comonads T and S come from monads (?)U ,
(?) and their composite (?) U , in C. Thus we have subsections for T , S and `!',
as well as one subsection on the logical properties of the comonads.
Recall that for C a cartesian closed category MN C simplies slightly as it has as
objects maps U X ?! N and as morphisms pairs of maps (f; F ) in C f : U ! V
and F : Y ! X , such that in the following diagram
U F
U Y ???????????! U X
j j
f Y jj jj
# #
V Y ??????????! N
15
categorical products A&B are
(U V (
)7 X + Y )
&
):7 0);
with identity I = (1 (
and coproducts A B are
7 X Y )
(U + V (
)
4.1 The comonad T
The comonad T is as easy to dene for MN C as it was for GC. Recall that any
xed object U in a cartesian closed category C induces an endofunctor
( )U : C ! C
X 7! XU
j j
f jj jj f U
# #
Y 7! YU
This endofunctor has a natural monad structure where the unit of the monad
1 U 2 X and the
X! X is given by the transpose
of the second projection U X !
monad multiplication (X U )U !1 X U is given by precomposing with the diagonal
map : U ! U U , thus (X U )U = X U U X! X U . We summarize that in the
denition below.
Denition 12 For each object U in a cartesian closed category C we have a monad
(( )U ; ; ) in C given by the natural transformations below:
1 1
X ??????! X U X U U ?????????! X U
1 1
As they are monads, the endofunctors ( )U make the following diagrams commute:
XU ( )U
X U ???????????! X U U ?????????? X U X U U U ????????! X U U
1 1
@ j ? j j
@@ jj 1
?? U jj jj 1
& # # #
1
.
XU X U U ?????
???! X
U
1
One important fact about the monads (?)U is that they also make the following
diagrams commute.
16
Fact 1 The following diagrams commute.
U U
U X ???????????! U X U U X U U ???????????! U X U
1 1
@ j j j
@@ jj h ; evi h ; evi jj
1 1
jj h ; evi 1
& # # #
U X U X U ????????????! U X
h ; evi 1
That is a consequence of the fact that ( )U is the monad induced by the adjunction
< U ; U ; ; " >: C * C[U ]
also written as U a U , cf. [LSc'86]. We use the monads ( )U in C to dene
the comonad T in MN C and the fact above is used to show that T has a comonad
structure.
Denition 13 The endofunctor T :MN C !MN C takes an object (U ( 7 X ) of
)
MN C to the object (U T
)7 X U ), where intuitively the object T is given by T(u; f ) =
(
(u; fu).
In other words, the object T is given by the following composition:
h ; evi
U X U ?????????????! U X ??????! N
1
T
U ???7????? X U
j "
f jj jj F ( ) f
# j
V ???7???? Y V
T
To show that T is an endofunctor in MN C we have to check the following
diagram,
U Yf U FU
U Y V ?????????????! U Y U ?????????????! U X U
j j j
f Y V jj h ; evi jj = jj h ; evi
j
1 1
# U F #
j U Y ???????????! U X
j j j
jj f Y jj jj
# # #
V Y ?????????????! V Y ????????????! N
V
h ; evi
1
17
The functor T has a natural comonad structure inherited from the monoidal
structure of the functors (?)U for U in C. Thus we have natural transformations
: TA ! A and : TA ! T A in MN C given by,
1 1
2
T T
U ???7????? X U U ????7????? X U
j " j "
1 jj jj 1 jj jj
j j
1 1
# #
T 2
U ????7???? X U ???7????? X U U
To show that these are morphisms in MN C we note that the following diagrams
commute:
U U
U X ???????????! U X U U X U U ???????????! U X U
1 1
j j j j
1 jj jj T 1 jj jj T
# # # #
U X ??????????! N U X U U ???????????! N
T 2
()
Y 1 ???????! Y Y ???????? 1 Y Y Y Y ??????! Y Y
@ j ? j j
@@ jj
?? jj jj
& # . # #
Y Y Y ??????! Y
18
f
X! U (Y; Y ; Y )
f
(X ; X ; X ) ! (Y; Y ; Y )
We write ( ) for the composite functor U F : C ! C. Thus we have an
endofunctor : C ! C given by,
X 7! X
j j
f jj jj f
# #
Y 7! Y
natural transformations
X ??????! X X ?????????! X
2 2
satisfying:
( )
X ??????! X ?????????? X X ????????! X
2 2
@ j ? j j
@@ jj ? j j jj
& # .?
2 2
# #
2
X X ?????
???! X
2
19
of X x and x . The following diagrams commute:
1 2
The co-unit of the adjunction : MoncC ! Monc C takes any free commutative
monoid (X ; ; ) arising from an arbitrary commutative monoid (X; ; ) to
itself. Thus
: FU (M; ; ) = (M ; ; ) ! (M; ; )
where the morphism corresponds to `iteration' of the original multiplication .
If the category C has a 0 object, then we have 0 = 1. In particular, if we
are thinking of C as Sets and N the set of natural numbers with its additive
monoidal structure (N; 0; +), as in section 2, we have (N ; ; ) = (N; 0; +).
Intuitively that says (h i) = 0 and (hn ; n ; : : : ; nk i) = n + n + : : : + nk , which
2 2
1 2 1 2
implies (hni) = n. More in general, if N is the closed poset (N; ; ; e; ?) we have
(N ; ; ) = (N; e; ) and
(hn ; n ; : : : ; nk i) = n n : : : nk and (h i) = e:
1 2 1 2
20
If (f; F ): A ! B is a morphism in MN C, S (f; F ) is given by (f; F ) as follows
S
U ???7????? X
j "
f jj jj F
# S j
V ???7????? Y
As an illustration of the conciseness of the notation used, recall that the small
diagram above corresponds to the big one below:
U F
U Y ????????????! ??????! U Y ?????????????! U X
j j j
jj jj Y
2
jj X
2
# # U F #
U Y ?????????????! U X
j j j
jj jj m jj m
# # #
Y m (U F )
U Y ?????????????! U Y ??????! (U Y ) ?????????????! (U X )
2
j j j j
f Y jj jj f Y jj (f Y ) jj
# # # #
V Y ????????????! V Y ????m??! (V Y ) ?????????????! N
Y
@@
2
@&
N
To show that S is an endofunctor, remember that for the square most down to the
right, we use that the functor ( ) preserves the order on morphisms in C, for the
other squares we have equality.
The endofunctor S has a natural comonad structure given by the monad struc-
ture of ( ) in C. Thus we have morphisms : SA ! A and : SA ! S A in MN C
2 2
2
given by
S S
U ???7????? X U ????7????? X
j " j "
1 jj jj 1 jj jj
j j
2 2
# #
S 2
U ????7???? X U ???7????? X
To show that the above are morphisms and in MN C we note that the
2 2
21
diagrams below commute, which is a consequence of the following fact.
U U
U X ???????????! U X U X ???????????! U X
2 2
j j j j
j
1j jj S j
1j jj S
# # # #
U X ??????????! N U X ???????????! N
S
2
j S ? j
jj
?? jj m
# . #
N ????? ???? N ????????????? (U X )
m
U X ?????????! (U X )
" j
X jj jj
j #
U X N
" @ S j
U jj @ jj
j @& #
S2
U X ?????????! N
j "
X jj jj
# j
U j X
m jj jjj
# (S) j
(U X ) ???????????! N
Note that the rst diagram commutes because the transformation m applied to
singletons is a singleton, m(hui; hxi) = hu xi; applied to a singleton is and
(hni) = n. The second diagram says we can transform a sequence of sequences
before applying the endofunctor S a second time.
Now we want to compose the two comonads T and S above, that is we want to
dene ! as S T . To give an intuitive denition is easy:
22
Denition 16 The endofunctor !:MN C !MN C takes an object (U ( )7 X ) of M C
N
)7 X U ), where intuitively if : U ! X and u = hx ; x ; : : : ; xn i
to the object (U (!
1 2
X 7! (X )U
j j
f jj jj (f )U
# #
Y 7! (Y )U
3 U
The endofunctor ( ) U has a natural monad structure in C, its unit X ?! X
is given by the composition of the units and as follows,
2 1
X ??????! X ??????! (X )U
2 1
X U ?! (U X U ) U
(X U ) ?! (U X U ) U
a (U X U )
U (X U ) ?!
From the rst line to the second, we just take the exponential transpose. From
the second to the third, we use the fact that if Y has a monoid structure, the
same happens to Y U - Y is (U X U ) in this case - and the free monoids
adjunction. The last step is just exponential transposition again.
There is a natural transformation in C given by
X : (X U ) ! (X )U
23
Denition 17 To obtain the natural transformation it is enough to have
the auxiliary map a: U (X U ) ! (U X U ) above, as we could compose it
with ev : (U X U ) ! X and take the transpose.
a (U X U ) ?!
U (X U ) ?! ev X
X X U
(X U ) ?!
This is a distributive law of monads [Beck]. Thus we can use Beck's results
and
Finally we say that is given by the transpose of the long composition:
3
X U U ?!2 i X U U ?!
U hev; U (X )U U ?! 2
ev X ?! X
U 3 U
X U ?! X
Note that to dene the multiplication we use and the distributive law ,
3 2
24
Denition 19 The endofunctor ! in MN C acts on objects as
7 X ) = (U (
!(U (
) )7 (X )U ) !
# U F #
j U Y ?????????????! U X
j j j
jj f Y j j jj S
# # #
V Y V ????????????! V Y ?????????????! N
h ; evi
1 S
The endofunctor ! in MN C has a natural comonad structure given by the monad
structure of ( ) U in C. Thus : !A ! A and : !A !!!A are given by
! !
! !
U ???7??? X U U ????7???? X U
j " j "
1 jj jj 1 jj jj
j j
3 3
# #
!! U
U ???7??? X U ???7????? X U
To show that these maps are maps in MN C is just the composition of the diagrams
we have shown to commute for T and S . Thus
U U U
U X ???????????! U X U U X U ???????????! U X U
3 3
j j j j
1 jj jj TS jj jj
# # # #
U
U X ?????????! N U X U ??????????! N
25
After all the work above to dene the comonad `!' we must show that it works.
We do that in the next section, but before heading for the logic we need a last
categorical proposition.
Proposition 9 The comonad `!' in MN C dened above satises
!(A&B )
=!A
!B and !1
=I
Proof: By denition of `!' we have:
)7 X U )
!A = (U ( !
)7 Y V )
!B = (V ( !
)7 0 )
!1 = (1 (
! 1
?; A ` B ?`B
(dereliction) (weakening)
?; !A ` B ?; !A ` B
?; !A; !A ` B !? ` A
(contraction) (!)
?; !A ` B !? `!A
Our next theorem show that the comonad `!' dened in the last section really
works. The details are very similar to our previous work as well as to Seely's work
[See'87], to which we refer the reader. The basic idea is to show that the rules
are sound by showing that, if there is a morphism in the category MN C between
the objects which are the translation of the antecedent, then there is a morphism
between the objects which translate the sucedent of each rule.
Theorem 4 The comonad `!' in MN C satises the rules for the modality `!' in
Linear Logic.
26
It is clear that by virtue of being a comonad `!' satises the rule (dereliction). To
f
wit, if there is always a morphism !A ?! A, whenever we have a map G
A ?! B
we can compose it with G
!A G?!
G
A to get G
!A ?! B , which shows that
the rule (dereliction) is sound.
To show soundness of the rule (!) we need more. If there is always a map
! !!A and !G ?! f f
!A ?! A, then we can apply the functor `!' to f , to get !!G ?!
!
!A
and if we precompose it with !G ?!!!G we get !G ?!!A, which shows the rule (!)
is satised. But for this we are assuming that !? ` A corresponds to a morphism
!G ! A, and to know that we use the previous proposition as
!? =!G
!G
: : :
!Gk
1 2 =!(G &G & : : : Gk )
1 2
commutative diagrams.
Then it is clear that !A in MN C is a comonoid with respect to
M , as we have
morphisms !A ! I and !A ! !A
!A. Just check the diagrams:
!
U ???7??? X U U ????!?7????? X U
j " j "
! jj jj c jj jj c
j j
1 2
# #
0 !
!
1 ???7??? 1 U U ????7?????? X U U X U U
f !A
!A to get G
!A ?! B .
Thus if G
g!A
!A ?! B we can compose it with !A ?!
And if G ?! B we can compose it with !A ?! I to have G
!A ?! B . 2
4.5 Comparing Modalities
Similarly to what happen with the monoidal closed structures of AN C and MN C,
the exponential connectives !A and !M are comparable. In fact one could call L (A)
the subset of the morphisms f j : U ! X g such that 8u 2 U; 8 (u) 2 X , if
3
(u) = h(u) ; : : : ; (u)n i then (u; (u) ) = (u; (u) ) = : : : = (u; (u)n ). We
have then the following morphisms in MN C.
1 1 2
(!)M
U ????7?????? X U
j "
1 jj jj i
# (!)A j
U ?????7?????? L (A) 3
5 Further Work
The linear negation ( )? and the connective \par" of Linear Logic pose problems
though in MN C, even if C is cartesian closed, even in Sets.
27
In our previous work, the bifunctor par was dened in the dialectica categories
using disjunction of relations, but for multirelations it is not clear how to dene
`disjunction' of natural numbers m _ n. We know from the work in GC that A2B
should look like (U Y V X (
2
)7 X Y ), but the problem is to dene a well-behaved
morphism 2 . One could try the following:
7 X ) and (V (
Conjecture 1 Given objects (U ( ) ) 7 Y ) dene their\ par" as (U Y
2
VX ()7 X Y ), where the multirelation 2 is given by 2 (f; g; x; y) = max((fy; x); (gx; y))
The reason for the maximum of two natural numbers is that max looks a bit
like logical or, if you think of of the truth table for _ and 0 means false. But then
the identity for this par is (1 (
0
)7 1), so (the linear logic constants) I and ? would
coincide. Other possibilities for the map 2 are to take multiplication of natural
numbers or their minimum.
But the reason none of these pars work is that they do not satisfy the weak
distributive law [HdP'91] below:
a2(b c) (a2b) c
In the case of multiplication the weak distributive law would give us a (b + c) =
a b + a c a b + c, only true if a 1 a contradiction.
Also in the dialectica categories linear negation is dened in terms of linear
implication into a dualizing object \?" which is the identity for par. If one considers,
as in Lawvere's paper \1" as an element of N that might induce a good choice for
\?", but then linear negation is only dened for a very small class of objects.
In contrast to the situation described above, if one deals with the category AN C,
one can dene both `par' and linear negation. But then you must have models of
Classical Linear Logic, as the duality A?? = A is built into the category.
Conclusions
Much work remains to be done. On the mathematical side we want to try to obtain
the right level of generality and to prove the existence of the modality `!' when the
category C is only symmetric monoidal closed. Some work, with Martin Hyland
is in progress, generalizing the construction of MN C so that we model all of (full
Intuitionistic) Linear Logic, see [HdP].
There are several questions as to how much of the work above can be done with
non-symmetric monoidal closed categories. That would lead into non-commutative
linear logic and there is some work in progress with Dominic Verity on it, as well as
some other work on models of systems useful for linguistics purposes, see [dP'91].
On the applications side, there is some more work, besides [BGdP], with Car-
olyn Brown and Douglas Gurr on the connections between the models of Linear
Logic that appear in Concurrency Theory. Finally, I would like to incorporate
quantication into this general picture.
References
[Bar] M. BARR -Autonomous Categories, LNM 752, Springer-Verlag,
1979.
[Bar] M. BARR *-Autonomous Categories and Models of Linear Logic, to ap-
pear in JAAP, 1991.
[B&G] C. BROWN and D. GURR A Categorical Linear Framework for Petri
Nets, LICS'90.
28
[BGdP] C. BROWN, D. GURR and V.de PAIVA General Petri Nets and Simu-
lation Morphisms, manuscript, Feb'91.
[Fla] R. C. FLAGG A Generalised Logic, manuscript, Fall'90.
[HdP] M. HYLAND and V.de PAIVA Lineales, manuscript Sept'90.
[PTJ] P. Johnstone Topos Theory, Academic Press.
[LSc] J. Lambek and P. Scott Introduction to Higher-Order Categorical
Logic, CUP, 1986.
[Law] F.W. LAWVERE Metric Spaces, Generalized Logic, and Closed Cat-
egories, Rendiconti del Seminario Matematico e Fisico di Milano, 43
(1973).
[Laf] Y. LAFONT From Linear Algebra to Linear Logic, manuscript, Novem-
ber'88.
[LSt] Y. LAFONT and T. STREICHER Games Semantics for Linear Logic,
to appear in LICS'91, Dec'90.
[deP] V.C.V. de PAIVA A Dialectica-like Model of Linear Logic, LNCS 389,
1989.
[deP] V.C.V. de PAIVA A Dialectica Model of the Lambek Calculus,
manuscript, April'91.
[See] R. Seely Linear Logic, *-Autonomous Categories and Cofree Coalgebras,
in Categories in Computer Science and Logic, AMS vol 92, eds. J. Gray
and A. Scedrov, 1989.
[Ver] D. VERITY Enrichments, manuscript, Feb'91.
[Wins] G. WINSKEL A Category of Labelled Petri Nets and Compositional
Proof System, LICS'88.
[Str] T. STREICHER Adding modalities to GAMEK , personal communica-
tion at PSSL, March'90.
29
Appendix
Intuitionistic Linear Logic
We recall the axioms and rules of Intuitionistic Linear Logic, as in [Gir/L].
Axioms:
A ` A (identity)
`I
?`1 ?; 0 ` A
Structural Rules:
?`A ? ` A A; ?0 ` B
(permutation) (cut)
? ` A ?; ?0 ` B
Logical Rules:
Multiplicatives:
?`A
(unitl)
?; I ` A
?; A; B ` C ? ` A ?0 ` B
(
l ) (
r )
?; A
B ` C ?; ?0 ` A
B
? ` A ?0 ; B ` C ?; A ` B
(?l ) (?r )
?; ?0 ; A ? B ` C ? ` A ? B
Additives:
?`A ?`B ?; A ` C ?; B ` C
(&r ) (&l )
? ` A&B ?; A&B ` C ?; A&B ` C
?; A ` C ?; B ` C ?`A ?`B
(l ) (r )
?; A B ` C ?`AB ?`AB
Note that sequents have only one formula on the right-hand side of the turnstile.
30
Full Intuitionistic Linear Logic
We recall the axioms and rules of (Full Intuitionistic) Linear Logic.
Axioms:
A ` A (identity)
`I ?`
? ` 1; ?; 0 `
Structural Rules:
?` ? ` A; A; ?0 ` 0
(permutation) (cut)
? ` ?; ?0 ` 0 ;
Logical Rules:
Multiplicatives:
?` ?`
(unitl ) (unitr )
?; I ` ? ` ?;
?; A; B ` ? ` A; ?0 ` B; 0
(
l ) (
r )
?; A
B ` ?; ?0 ` A
B; ; 0
?; A ` ?0 ; B ` 0 ? ` A; B;
(2l ) (2r )
?; ?0 ; A2B ` ; 0 ? ` A2B;
? ` A; ?0 ; B ` 0 ?; A ` B
(?l ) (?r ) ()
?; ?0 ; A ? B ` 0 ; ? ` A ? B
Additives:
? ` A; ? ` B; ?; A ` ?; B `
(&r ) (&l )
? ` A&B; ?; A&B ` ?; A&B `
?; A ` ?; B ` ? ` A; ? ` B;
(l ) (r )
?; A B ` ? ` A B; ? ` A B;
(*) Observe that in rule (?r ) we only deal with one formula on the right-hand
side of the turnstile, according to our intuitionistic
avour of Linear Logic.
31