Scholarly article on topic 'An axiomatics for categories of coalgebras'

An axiomatics for categories of coalgebras Academic research paper on "Computer and information sciences"

CC BY-NC-ND
0
0
Share paper
Keywords
{}

Abstract of research paper on Computer and information sciences, author of scientific article — John Power, Hiroshi Watanabe

Abstract We give an axiomatic account of what structure on a category C and an endofunctor H on C yield similar structure on the category H —Coalg of H-coalgebras. We give conditions under which completeness, cocompleteness, symmetric monoidal closed structure, local presentability, and subobject classifiers lift. Our proof of the latter uses a general result about the existance of a subobject classifier in a category containing a small dense subcategory. Our leading example has C = Set with H the endofunctor for which a coalgebra is a finitely branching (labelled) transition system. We explain that example in detail.

Academic research paper on topic "An axiomatics for categories of coalgebras"

Electronic Notes in Theoretical Computer Science 11 (1998)

URL: http://www.elsevier.nl/locate/entcs/volumell.html 18 pages

An axiomatics for categories of coalgebras

John Power1

Department of Computer Science University of Edinburgh King's Buildings, Edinburgh, EH9 3JZ Scotland

Hiroshi Watanabe

Depa.rtmemt of Ma,them a,tics Ho kka,ido Un i-i > e r.s ity Kita 10 Nisht 8, Sapporo 060-0810, Japan

Abstract

Wo give ail axiomatic account of what structine on a category C anel an eiidofiuiotor H on C yield, similar structiue on the category H — Coaly of _ff-eoalgobras. We give conditions under which completeness, ooeomploteiioss, symmetric monoidal closed structine, local preseiitability, and subobject classifiers lift. Ora proof of the latter uses a general result about the existence of a subobjcct classifier in a category containing a small dense subcategory. Our leading example has C = Set with H the eiidofiuiotor for which a coalgebra is a finitely brandling (labelled) transition system. We explain that example in detail.

1 ntroduotion

Given an endofunctoi II oil the category Set, ail H-coalgebra, is a set A" together with a function x : X —> HX. A leading example of such ail H is given by the functor P^ that takes a set A" to the set of finite subsets of A", with the behaviour of H oil maps given by direct image. Ail ff-coalgebra is then a finitely branching transition system. A valiant, is given by starting with a set L and letting IIX be the set of finite subsets of L x A". For that II an iï-coalgebra is a finitely branching labelled transition system, with labels in L. Many other H"s have been investigated too: for a detailed introduction

1 Tliis work lias been done witli the support of EPSRC grant GR/.TS4205: Frameworks for programming language semantics and logic, and with the support of the COE budget of STA Japan, and with a visit to Hokkaido University.

©1998 Published hy Elsevier Science B. V.

and further examples, see Jacobs and Rut ten's tutorial [4] and the papers cited therein, especially Rut ten's [11].

Much of the theory of" coalgebras has been directed towards an algebraic account of coiiiduction in computer science. One can account for bisimulation and coinductive definitions of data types in terms of coalgebras and maps of coalgebras (see [4] and the papers cited therein). For the two H"s cited above, the maps in H — Conic/ amount exactly to the usual notion of functional bisimulation of transition systems. So it seems natural to ask, in general, what is the structure of H — Conic/'? For instance, is it complete, cooonrplete, or symmetric monoidal closed? If not, then under what conditions is it thus? In this paper, we give conditions under which it has all that structure, and more. In particular, under a condition, it has a subobject classifier. That is significant in that, for a particular H< namely that II taking a set A" to the set of its nonempty finite subsets, the subobject classifier amounts to the set of hypersets [12], or the set of sets satisfying Aczel's anti-foundation axiom [1]. For that specific if, the category of ii-coalgel >ras is studied in detail in [13,15] and in Watanabe's thesis [16].

There is a rapidly growing body of research on the category H — Conic/. One substantial work is Michael Barr's paper [2], in which he showed that the forgetful functor U : II — Conic/ —> Set has a right adjoint, and analysed structures relevant to that. He also related that result to Aczel's non-well founded set theory. Despite restricting his attention to Set, Barr's proof was axiomatic: but he did not extend his result to a general analysis of the structure of H — Conic/. Another article, to appear in this volume, is by James Worrell [17], who addresses the same topic as we do, but with a somewhat different emphasis. Together with Peter Johnstone, the work of our two papers is currently being combined and extended [5]. Finally, Rutten's technical report [11] overlaps a little with our work: a few basic results agree, but his emphasis is on functors that preserve weak pullbacks, a condition we do not consider.

Here, our approach is axiomatic. What we mean by that is that we do not restrict attention to Set as a base category, and we do not prove results about a specific endofiinctor, although all our results apply to a large class of endofunctors. What we do is consider a base category C with some structure, for instance that of a symmetric monoidal closed category, and an arbitrary endofiinctor H on it satisfying some conditions: then prove that H — Conic/ has the structure we assert. The category Set has all the structure we consider, as does any Grothendieck topos. All the structures and properties we consider on endofunctors are mild and hold of our leading examples.

The abstract category theory underlying this paper is largely based on Makkai and Fare's accessible categories [10]. That work is not central although helpful for one of our major results, that in which we assert that II — Conic/ has a subobject classifier, but it is central to most others.

Once one has an account of H — Conic/ and hence an algebraic account of

categories in which maps are functional 1 ¿simulations, an immediate following question is about categories of 1 ¿simulations. That is future work, but observe that for any category E with pullbacks, one can consider the bicategory Spnn(E), whose objects are those of E and whose 1-cells are given by spans of arrows in E. So, in this case, an object would be given by an ii-coalgebra, and a map from A to D would be a pair of functional bisimulations from an H-coalgebra D into A and D. That is exactly the way .Toyal et al defined bisimulation in their study of open maps for 1 ¿simulation [6], i.e., they gave a notion of functional bisimulation, then said a bisimulation is a span of functional bisimulations between them. So we leave a study of a bicategory of bisimulations for future work, but expect it to involve a study of Spnn(E) or possibly Bel(E), or a variant, where E — H — Coaly.

This paper is organized as follows. In Section 2, we give conditions under which H — Conic/ is cocomplete and has a symmetric monoidal structure. In Section 3, we explain the notion of accessible category, and give a condition under which H — Conic/ is accessible, and hence has a small dense subcategory That is the heart of our use of Makkai and Fare's work on accessible categories, and it appears in Ban's paper [2]. In the presence of colimits, it follows that H—Conic/ is locally presentable. Accessibility allows us to deduce immediately that H — Conic/ is complete, that the symmetric monoidal structure is closed, and that the forgetful functor to the base category has a right adjoint, as in Ban's paper [2]. Then, in Section 4, we give a condition under which H —Conic/ has a subobject classifier. An accessible category always has a small dense subcategory, as we shall explain. Here, we use density to give a general result that a cocomplete category with a small flense subcategory, hence for instance every locally presentable category, has a subobject. classifier if there is an object, that classifies subobjects of objects of the dense subcategory Then, armed with that result, we give our proof that H — Conic/ has a subobject. classifier. In fact, we prove a more general result to the effect, that any category that contains a small dense subcategory and has a functor into an elementary topos satisfying a few conditions has a subobject. classifier, and deduce our result about. H — Conic/ from that. Finally, in Section 5, we investigate one of our leading examples in detail.

2 outine results

In this section, we give a few routine results about. H — Conic/. We include them largely for completeness, as we shall need them later.

Theorem 2.1 If C is cocomplete and H is any endofunctor on C, then H — Conic/ is cocomplete and the forgetful functor U : H — Conic/ —> C preserves colimits.

The proof is a routine calculation, using the definition of colimits (see [11] Tlini 4.5 for essentially the same result). It is also routine to verify

Proposition 2.2 The forgetful functor U : H — Coaly —> C reflects isomorphisms, i.e., iff : A —> B is a map in H —Coalg for which Uf : UA —> UB is an isomorphism., then f is an isomorphism.

These two results imply most of [11] Prop 4.7, i.e., that epimorphisms in H — Coalg are those maps sent by U to epimorphisms in C, and that moiiomoiphisms are reflected by U. The rest of Rut ten's result assumes the preservation of weak pullbacks by H< which we do not assume, but see the proof of Corollary 4.6.

Of greater interest here, a symmetric monoidal endofunctor oil a symmetric monoidal category C consists of an endofunctor H : C —> C together with two natural transformations, with components H^x.i') '■ HX0HY —> H( A"® Y) and H : I —> HI subject to four coherence axioms to the effect that these natural transformations respect the coherence isomorphisms of the symmetric monoidal structure. Often we write H for a symmetric monoidal endofunctor, leaving the rest of the structure implicit. An endofunctor may have more than one symmetric monoidal structure on it.

Example 2.3 The endofunctor Pw on Set has two symmetric monoidal structures, one given by the map P^ : PwX x PuJY —> PuJ(X x 1') sending (A<B) to A x 1?, with unit given by sending 1 to {1}, and the other given by sending (A, B) to {(.r, y) : xeAVyeB} with the unit given by sending 1 to the empty set. The former is the one of primary interest, as it corresponds to synchronization. For the endofunctor x —) for finite Z, we can give a symmetric monoidal structure by the map PJL x -) : PJL x A) x PJL x Y) —> PJL x A x Y) sending (A,B) to {(/,o.,6) : (/, a)eA A (/, 6)fl?}, with the unit bv sending 1 to {(7,1) : leL}.

Theorem 2.4 Let C he a, symmetric monoidal category and let H he a symmetric monoidal endofunctor on C. Then H—Coalg has a symmetric monoidal structure that is preserved, strictly by the forgetful functor U : H — Coalg —> O.

Proof. Given ii-coalgebras (A", x) and (!',?/)< flefme (A\.r) <g> (Y.y) to have object A"(g)Y, the tensor product in O, with the map from A"(g)Y to H(X<2)Y) given by composing x <g> y with H^x.V) It is routine to verify that H — Coalg is symmetric monoidal, using the axioms on H and those of the symmetric monoidal structure of C. Moreover, by construction of the tensor product, U preserves it strictly. □

It is routine to verify that the various examples of H that most interest us satisfy the condition of the Theorem.

3 A—ossi ility

In this section, we shall give a condition on a category C and on an endofunctor H that forces H — Coalg to be what is called an accessible category, and hence

have what is known as a small dense subcategory.

One of the reasons that accessibility of a category is of fundamental importance is as follows. If one has a preordered set, then it has all infima if and only if it has all suprema. So, since completeness of a category extends the notion of a preorder having all infima, and since cocompleteness of a category extends the notion of a preorder having all suprema, it is natural to ask whether a category is complete if and only if it is cocomplete. But that is not the case in general for large categories, and the most interesting categories such as Set are large. If one follows the argument for preorders, the point where it falls down for categories is a size question: when one says that a category is complete, one means that every small diagram has a limit, and dually for cocompleteness. But in generalising the argument for preorders, at one point one needs a colimit of a large diagram. For instance, the terminal object of a category C\ if it exists, is a colimit of the identity functor 011 C: but the domain of the diagram giving that colimit is C\ which is typically a large category. There is an account of this issue in Mac Fane's book [9]. So one might ask under what condition 011 a category does it follow that the category is complete if and only if it is cocomplete? A related question is, given a functor that preserves all colimits, under what condition does it have a right adjoint? One particularly natural condition 011 a category that allows such results is accessibility. The basic reference for accessible categories is [10].

Definition 3.1 Let /c be an infinite regular cardinal (such as 10). Then, a small category I is k.-filtered if for any category J of cardinality less than /c, any diagram D : J —> I has a cocone over it. A colimit is k.-filtered, when it is a colimit of a diagram whose domain is /i-filtered.

Definition 3.2 A11 object A" of a category C is called /c-presentable if the homfunctor C( A", —) : C —> Set preserves /i-filtered colimits.

For example, taking /i — uj, a set is /c-presentable if and only if it is finite. More generally, for arbitrary /i, a set is /c-presentable if and only if it has cardinality less than /c.

Definition 3.3 A category C is /c-accessible if

(i) C has /i-filtered colimits, and

(ii) there is a small full subcategory D of C consisting of /c-presentable objects, such that every object of C is a /i-filtered colimit of a diagram that factors through D.

A category is accessible if it is /c-accessible for some infinite regular cardinal /c.

For instance. Set is ¿¿-accessible, because every set is expressible as the union of its finite subsets. Similarly, Cat is ¿¿-accessible because every small category is a filtered colimit of finitely presentable categories. In general, any locally presentable category is accessible, as are many other categories.

A consequence of category being accessible is that it has what is called a small dense subcategory (see [10] Prop 2.1.5). That is not a difficult result, but it is convenient, in that it gives a canonical description of each object of the category as a colimit of a diagram factoring through a small subcategory. Specifically,

Definition 3.4 A small full subcategory T is dense, in C with inclusion J : T —> C if every object A" of C is a colimit of the diagram

J(-)f A —> T —> C

where ,!( — )/X is the comma category, i.e., an object consists of an object t of T together with a map from Jt into A", and an arrow is an arrow in T making the diagram commute: with the functors given by projection tt : ./( — )/A" —> T and the inclusion J : T —> C.

There are various characterisations of the notion of density, and there are a few mild variants, such as not insisting that J be full, or not insisting that T be a subcategory of C: but they all amount to the same idea. An elegant and useful characterisation of density is

Proposition 3.5 ([7]) T is dense in C if and only the frmctor from C to ¡T°i\Set] sending X to C(J(-\X) : T* —> Set is fully faithful.

The proof is straightforward. For much of our analysis, we shall use the existence of a small dense subcategory as a standard assumption: it is a little weaker than the assumption of accessibility, and the way we obtain H — Coalg having a small dense subcategory is always via an accessibility condition and argument. But some of our results only require density, and it is convenient in that it gives a canonical colimit for each object.

Returning to accessibility and how we obtain II — Coalg as an accessible category

Definition 3.6 A functor between «-accessible categories is «-accessible if it preserves «-filtered colimits. A functor is accessible if it is «-accessible for some «.

All of the endofiinctors on Set of interest to us are accessible. See Barr's paper [2] for an account. The central point about «-filtered colimits that make them easy to handle is that 1 is «-presentable, and so an element of a «-filtered colimit is always the image of an element of one of its components, and two elements are equal in the colimit if and only if they are equal in some component. This contrasts with coequalizers. For an example of an accessible endofunctor

Example 3.7 Let P^ denote the endofunctor on Set that sends a set A" to the set of finite subsets of A. Then P^ prPS^TVPS uJ- filtered colimits: let A" be an ¿¿-filtered colimit of A",-. Then, given a finite subset P of A", each element of F must lie in the image of some A",-. By filteredness, it follows that there is

some Xk for which all elements of F are in the image of AMoreover, any two finite subsets of A" are equal if and only if they may he shown to be equal in some Xk. That completes the proof.

One of the central theorems. Theorem 5.1.6, of [10] yields

Theorem 3.8 For any accessible category C ami any accessible endofunctor H on C, the category H — Coalg is accessible.

Proof. First observe that H — Coalg has a limit-like universal property in CAT, namely as the universal diagram in CAT of the form

where a is a natural transformation, i.e., in the diagram, we may replace D by H — Coalg, U by the forgetful functor Un : H — Coalg —> Cand o by the natural transformation 7 : Ujj => HUn with (A\.r)-component x : X —> HX: and for any other diagram in CAT of this form, there is a unique functor Q : D —> H — Coalg making U — UjjQ and 7Q — o.

Xow, accessible categories are characterized, generalising Gabriel Ulmer duality, by the fact that they are the categories of models for sketches. So, if one passes along the duality between the category of accessible categories and that of sketches, one may replace C by the corresponding sketch Sk(C), and replace H by the corresponding map of sketches Sk(H). This being a duality, limit-like properties of the category of accessible categories correspond to colimit-like properties of the category of sketches. But the category of sketches is cocomplete. So if we take the colimit-like universal diagram in

Sketch

and pass hack along the duality, we obtain a limit construction in the category of accessible categories. One can routinely check that that diagram satisfies the defining limiting property of H — Coaly, so is isomorphic to H — Coaly.

For more detail of the proof, see [10]. For our leading example, we shall give an independent proof that H — Coaly has a small dense subcategory: that is a weaker condition than accessibility, but it suffices for our results here. In the case that HX is the set of finite subsets of L x X for a finite set Z, the category of finitely branching Z-labelled trees gives a small dense subcategory.

The result that H — Coaly is accessible if C and H are accessible is fundamental for us. We have already seen that if C is cocomplete, then H — Coaly is cocomplete. Several equivalent definitions of locally presentable category were given by Gabriel and Ulmer [3]: one of them, in our terminology, was

Definition 3.9 A locally presentable category is a cocomplete accessible category.

There has been considerable study of locally presentable categories, for instance in [3] and [8], and the class of locally presentable categories is of central importance to category theory. The accessibility result immediately yields

Corollary 3.10 IfC is locally presentable and H is accessible, then H—Coaly is locally presentable.

A fundamental result about locally presentable categories is an immediate corollary of the following [8]

Theorem 3.11 LetC be cocomplete and have a small dense subcategory, and let, D be cocomplete. Then any colimit, preserving functor F : C —> D has a, right, adjoint.

Proof. Let T be dense in C\ and given A" in D, consider colim(Fj( — )/X —> T —> C), where the first component is given by projection, and the second is

Thus H — Coaly is accessible.

the inclusion j : T —> C. Xow follow the usual argument for preorders: that argument now works because the oolimit is taken over a small diagram, and therefore exists in C. □

Corollary 3.12 If C is cocomplete with a small dense, subcategory, then C is complete.

Proof. The diagonal functor A : C —> [/, O] preserves colimits for any small category I. So it has a right adjoint. □

Corollary 3.13 IfC is locally presentable and H is accessible, then H—Coalg is complete.

This result may seem surprising. Xote carefully what it does say and what it does not say It implies, for instance, the existence of all binary products in the category Trans j- . But it does not imply that the product is a simple construction: in particular, it does not imply that it is the product in the category of transition systems with the usual maps of transition systems.

Corollary 3.14 ([2]) IfC is locally presentable, and H is accessible, the forgetful functor U : H — Coalg —> C has a right, adjoint,. Moreover, the right adjoint, is accessible.

Proof. The existence of a right adjoint follows because U preserves colimits. Its accessibility follows by its construction. □

Corollary 3.15 If C is locally presentable a,nd, H is accessible, the forgetful functor U : H — Coalg —► C is comonadic, expressing H — Coalg as the category of coalgebras for an accessible comonad, on, C.

Proof. This is a routine argument using the dual of Beck's monadicity theorem (see [9]). One needs to show that U preserves the equalizers of [/-split equalizers, but that follows directly from the definitions of ii-coalgebra and [/-split equalizer as in [9]. □

Corollary 3.16 If C is locally presentable and symmetric monoid,a,1 closed, and if H is symmetric monoidal a,nd, accessible, then H — Coalg is symmetric monoidal closed.

Proof. H — Coalg is cocomplete, with U preserving colimits, and it is symmetric monoidal, with U preserving the symmetric monoidal structure: recall also that U reflects isomorphisms. Let (A\.r) be any object in H — Coalg. We need to show that (A", x) 0 — : H — Coalg —> H — Coalg preserves colimits. But that follows by routine argument based on the above results, and the fact that, since C is closed. A" ® — : C —> C preserves colimits. □

Example 3.17 All the symmetric monoidal structures given in Example 2.3 turn out to be closed by Corollary 3.16.

Filially, we can make one more observation putting the above together.

Definition 3.18 A symmetric monoidal closed category is called locally presentable, as a closed category [8] if it is locally presentable and if the /impresentable objects are closed under 0 and I for some k„

Corollary 3.19 If C is locally presentable as a, closed category and if H is symmetric monoidal and accessible, then H — Coalg is locally presentable as a, closed, category.

Proof. By the results above, we need only to show that the /c-presentable objects of H — Coalg include the unit and are closed under 0 for some /i. Recall that the right adjoint G of U is accessible. So it preserves /c-filt.ered colimits for some /c. Taking that /c, it follows that if (X,x) is /i-presentable in H — Coalg, then A" is /i-presentable in C. From this point, the rest follows routinely from the definitions of /i-presentable object and /c-filtered colimit.D

This result is significant because the deeper results of the theory of enriched categories are based upon enrichment in a category that is locally presentable as a closed category (see [8]). So this tells us that, for all endofunctors of interest to us, the category H — Coalg is a suitable basis for enriched category theory So for instance, the category of finitely branching (labelled) transition systems and functional bisimulations is suitable for enriched category theory, so one may reasonably speak of a hom possessing the structure of a transition system. This could potentially be of considerable interest in modelling dynamic properties of programs.

4 he suojeot "lssifior

In this section, we shall take as a basic assumption that we consider a category D (for which our leading example is any category of the form H — Coalg for accessible H on locally presentable C) that is cocomplete and has a small dense subcategory T. By Corollary 3.12, it follows that D is complete. We shall consider conditions under which D has a subobject classifier.

Our first result is about size. The condition that a category D has a subobject classifier is the statement that the functor sub : Dop —> Set taking an object A" to its set of subobjects (assuming it has such a small set) with behaviour on maps given by pullback (again assuming such exist), is representable. Any category D which is cocomplete and has a small dense subcategory T does admit the existence of the functor sub since D is complete and is a full subcategory of [Tol\Set]. But the representability is a condition that involves all objects of D rather than a small family of them. So we need to cut that down to a condition about a small family. In fact, we can prove

Theorem 4.1 Let, D be cocomplete with a, small dense subcategory T with inclusion J : T —> D. Suppose the/re exists an object Q and a, map true : 1 —> ft in D such that, pidling back along tr ue yields an isomorphism from the functor D(I(-)Sl) : Top —> Set to the functor subJ(-) : Top —> Set.

Then ft together with tr ue is a subobject classifier for D.

Proof. Given a mononiorpliisni j : Y —> A" in D. consider the expression of A" as the colimit

colim(J(—)fX —>T —> D). and take the pullbaok of Y along each of the ooprojections

t A V -- V

A pullbaok of a nionomorphism is a nionomorphism, and so this determines a map from t to ft for each map from t to A". These maps form a cocone, and hence yield a map from A" to ft which we call \y. It remains to show that

j true

commutes, and is a pullbaok in D. Tb see that it commutes, consider Y as a canonical colimit. Every map from a t to Y composes to give a map into A", and since the composite factors through the nionomorphism j : Y —> A", the pullbaok of j along it is the identity 011 t. Xow, by routine manipulation of pullbacks and eolimits, we have the eommutativity.

To see that it is a pullbaok, by density it suffices to show that for every t in T and every map / : t —> A" making the evident square commute, / factors through j : Y —> A". Since true is a mononiorpliisni, by the eommutativity, the identity 011 t is the pullbaok of true, along \y f : t —> ft. But taking the pullbaok of j along /, then taking the corresponding map from t into ft is \y/ by construction of \y. So the pullbaok of j along / is the identity, and so f factors through j.

The unicity of \y is routine to verify, using the unicity part of the property of A" as a colimit. □

With a little effort, one can calculate what the terminal object in a co-complete category with a small dense subcategory must be, as a colimit: and one can do likewise with a subobject classifier, if one exists. We want expressions as eolimits because in our leading examples, those categories of the form H — Coalg for an accessible functor H on a locally presentable category C\

we know how to calculate oolimits, as they are given as oolimits in C\ whereas we do not have a simple description of limits.

We must first discuss a special class of oolimits called coends.

Definition 4.2 Given a small category I and a functor F : Iop x I —> D,

a coend, of F< denoted f F(i,i)< is a coequalizer of the coproduct

given by coequalizing the evident two maps from Ylf-i—j to Xw F(i,i).

The coend of primary interest to us has I — T and F : Top x T —>■ D given by F(sJ) — a coproduct of sub(s) copies of'/. There is a

general theory of coends (see for instance [7]). In particular, for any object A of a eoeomplete category D with a small dense subcategory T, one has

/ £ * = -*■

D(Jt.A)

With this definition, and with some calculation, one can conclude

Proposition 4.3 Let D be, eoeomplete with a snail dense subcategory J : T —> D. Then

(i) the terminal object, in D is colim( J : T —> D)

(ii) if D has a, subobject classifier Q, then it must be the coend, f*^^*)*' ■with true : 1 —> Q given by the cocone determined, by factoring through the copro'jection oft into the idf-coriiponent oft, a,nd, given a monomor-phmn j : Y —> t, with the map \y : t —> Q given by factoring through the coprojection oft into the Y-component, oft.

Proof. If D has a subobject classifier fi, then sub(t) is isomorphic to D(tSi), and hence the above eolimit defines ii. □

We shall now use Theorem 4.1 to give a condition under which a category D has a subobject classifier when a related category C has one. First, we need a lemma. Say that a functor U : D —> C weakly preserves a pullback if it sends the pullback to a weak pullback, where a weak pullback satisfies the existence but not unicity part of the definition of pullback.

Lemma 4.4 Let U : D —> C weakly preserve pullbacks of 7nonomorphis7ns. Then U preserves pullbacks of monomorphisms, so in particular, preserves monomorphisms.

Proof. Given a monomorphism m in _D, the pullback of m along itself is the identity. By weak preservation of pullbacks, it follows that Um is a monomorphism. An arbitrary pullback of a monomorphism in D must be a monomorphism, so be sent by U to a monomorphism in C. Together with weak preservation of pullbacks of monomorphisms, that implies that U preserves the pullback. □

Theorem 4.5 Let, D be cocomplete with a small dense subcategory J : T — D. Let C be an elementary topos, and suppose U : D —> C has a right adjoint, reflects isoinorphisms, and, weakly preserves pidlbacks of monomor-phisms. Then D has a sid>ob;ject classifier.

Xote that we do not assume that U preserves all finite limits. In particular, U does not preserve the terminal object in many of our leading examples.

Proof. It suffices to prove that D has an object 0, that classifies subobjects of objects t of the small dense subcategory T. So, given a monomorphism j : Y —> t in D. consider the commutative square

j true : 1.1 I

A"-- Q

where fi, true, and \y are defined as in the proposition. Also consider the pullback square

true (4.2)

By definition, there is a unique comparison map c : Y —> P making the triangle into A" commute. We seek to show that c is an isomorphism.

Observe that there is a map 7 : U(Q) —> fV determined by the forgetful function subf)(t) —> subc(Ut) for each t: that this map is defined uses the assumptions that U has a right adjoint, thus preserves the colimit, and, by the Lemma, that U preserves monomorphisms and pullbacks of monomorphisms, the latter being needed to prove the naturality in t.

It is routine to verify that the square

U(true)

and the triangle

commute. Thus, the diagram given by applying U to (4.1) and composing with 7 is a pullback. Of course, applying U to (4.2) and composing with 7 gives a commutative square. Consequently, we have a map in C from UP to / V that commutes with the two maps into UX. Those two maps into UX are both monomorphisms, and so Uc. is invertible. Hence, since U reflects isomorphisms, c is invertible. □

Corollary 4.6 Let H be an accessible endofunctor on a locally presentable elementary topos C, and suppose that H weakly preserves pidlbacks. Then H — Coaly has a subobject classifier.

Proof. We need to show that if H weakly preserves pullbacks, so does U : H — Coaly —> C. This is a routine argument: given a diagram in H — Coaly, take the pullback in C\ and use weak preservation by H to lift the pullback to a commutative square in H — Coaly. Xow use the pullback property in H — Coaly and in C to show that the pullback in C splits that in H — Coaly.□

This proof is essentially [11] Tlini 4.6 and gives a slightly stronger formulation of the last part of [11] Prop 4.7. Of course, this result does not say that H — Coaly need be a topos: see [¿>J tor a counterexample. As we mentioned above, the comonad induced by H floes not in general preserve finite limits. Moreover, if H was symmetric monoidal, we obtained a symmetric monoidal closed structure 011 H — Coaly, not a cartesian closed structure. However, we did use the fact that C was a topos in the proof when we gave the map 7 into the subobject classifier of C. See [5] for a more extensive analysis of this result.

The result has several consequences given by routinely following the algebraic theory of toposes but replacing the cartesian closed structure by symmetric monoidal closed structure. For instance.

Corollary 4.7 If H is accessible and symmetric monoidal, and, H weakly preserves pullbacks, with C locally presentable as a closed, category and, containing a, subobject classifier (e.g., if C is a, Grothendieck topos),

(i) every monomorphism in H — Coaly is an equalizer.

(ii) the functor from H — Conly°p to H — Coaly sending an object X to [A", Q] is monadic.

(iii) every epimorphism in H — Coaly is a, coequalizer.

This completes our general axiomatic development of what structures and properties 011 a category C and an endofunctor H 011 C give rise to corresponding structures and properties 011 the category of ii-coalgebias. This analysis relates closely to that of [17]: see [5] for an extension of [17] and this paper.

5 elled trnsition systems

In this final section of the paper, we discuss a particular example of an endofunctor H 011 Set in detail. Consider the endofunctor PuJ{L x —) 011 Set that takes a set X to the set of finite subsets of ¿ x X. The category of coalge-bras amounts to the category whose objects are finitely branching ¿-labelled transition systems, with labels in a set L: we denote it by Trans j.

We show that Trans j is complete and eoeomplete with a subobject classifier. Coeompleteness follows from Theorem 2.1. As for completeness, we can see it from the existence of a small dense subcategory in Trans j. The existence of a small dense subcategory can be shown by accessibility of P^(L x —) in the same way as for P^ in Example 3.7, but we can construct a small dense subcategory explicitly as follows.

Definition 5.1 Let N be the set of natural numbers and (L x N)* be the set of finite words over I xN. Let A be a subset of (L x N)*. Wre say

• A is prefix closed if w € A implies r £ A for all prefixes r of w.

• A is locally finite if for each r € A the set {.r elxN: r.x € A} is a finite set of the form {(7,, 1), (72,2),..., (/,,.„, nr)} with /,- € ¿ for each 1 < ■/ < nr.

Observe that every prefix closed subset A C (L x N)* contains the empty word f. Each prefix closed locally finite subset A C (L x N)* determines a PJL x — )-coalgebra (A,t4) by rA(w) - {(7, ?/-.(/, ■/)) : w.(Li)eA} C L x A: we call it a finitely branching labelled, tree. Finitely brandling labelled trees and moiphisms of PW(L x — )-coalgel)ias define a category that we denote by Tree 1. Hence Tree.j is a full subcategory of Trans r \ we denote the inclusion by i : Tree.j —> Trans j. By construction, the category Tree.j is small.

Let (D,d) be a P^^ x — )-eoalgebia. Define a numbering a 011 (D<d) as follows. For each xeD, number the elements of d(x) from 1 to |r/(.r)|, and define the function n:r : d.(x) —> ¿ x N by <rr(,:) = (/,n), where 1 is the label of zed(x) and n is the number of in d.(x). For each xeD, we call a finite sequence , ..., of ¿ x D a path from x to D^(zn)eD if z\fd{x) and Zk+\fd(d-2{zk)) for each 1 < k < n — 1, where = (0\(z)<d^(z)). Given a numbering a 011 (D,d) and xeD, define Path^(:r) C (L x N)* to be

{f}U{n,,(,;i).oa2(,l)(z2) ■ ■ ■ -n) : -1, • • ■, -n is l>at.li from :r in D}.

Then Path^(;r) is a prefix closed locally finite subset of (L x N)*. Hence it determines an object of Tree.j that we also denote by Pathn(;r). There is a canonical arrow 7.,, : /(Path^(;r)) —> (D<d) in Trans j defined inductively by

"r(f) = .r, and for v<.(1, n)ePath^(.r) with (Ln)eL x N, 7.,, («'.(7, n)) — y with ^,<,0 ((Ky)) = (hn).

Lemma 5.2 Let, D be an object of Trans j and let <r be a numbering on it. For each object, A of Tree r, and, each arrow f : i(A) —> D in Trans j, there exists xeD and, an arrow f : A —> Patlv,(:r) such that the following d,ia,gra,m commutes.

Xow let T(D) he the free category generated by the graph (D, d) and define the functor E : V(Dfp —> TreeL by

• on objects, E(x) — Pathn(:r),

• an edge of T(D) amounts to a pair (.r,) with xeD and zed.(x). So define E on arrows by defining E((x,z)) : Path^t)^,:)) —> Patlv,(.r) by

E((x.z))(w) = a,(z).w.

Lemma 5.3

colim(i o E) ^ (X>, d)

Proposition 5.4 The category Tree j is dense in Trans j.

Proof. Let D be an object of TransIn order to show the density of Treej in Trans i we have to show D is the colimit of the canonical diagram

i(—)/D —> TreeL —> Trans L.

Fix a numbering a on D. Let G : T(D)op —> i( — )/D be the functor defined by G(x) = and G((.r, z)) = E{{.r, z)) for xeT(D)op and an edge (:r, z) of T(D). It follows from Lemma 5.2 that

colim ( i( — )/D —>• Tree j —>■ Trans j )

is isomorphic to

colim(T(D)op i(-)/D TreeL TransL). Because the diagram T'(D)op i( — )/D Treej Trans j — ioE, we have

colim(i(-)/D Treer Trans L) ^ colim(i o E) ^ D

by Lemma 5.3. Since D was arbitrary, we have shown that the functor i : Treej —> Trans j- is dense. □

Corollary 5.5 Transj is complete,

Xote that this does not imply that products are given l>y a simple construction: see [17] for an explicit description of them.

Finally, since Trans j is the category of coalgebras for an endofiinetor on Set and since it has a small flense subcategory, the forgetful functor U : Transi —> Set has a right adjoint by Theorem 2.1 and Proposition 3.11. It also reflects isomorphisms by Proposition 2.2. Moreover, it is routine to check that PW(L x —) weakly preserves pullbacks. So, by the proof of Corollary 4.6, we have

Theorem 5.6 The category Transi has a suholrject classifier. eferennes

[1] P. Aczol, Non-well fomided sots, CSLI Leetiue Notes 14, Stanford (1988).

[2] M. Barr, Terminal coalgebras in well-foiuieled set theory. Theoretical Computer Science 114 (1993) 299-315.

[3] P. Gabriel and F. Ulmor, Lokal prasentierbare Kategorien, Leotiu'o Notes in Math 221, Springer (1971).

[4] B. .Jacobs and J. Rutten, A tutorial on (Co)Algebras and (Co)Induetion, EACTS Bulletin 62 (1997) 222-259.

[5] P.T. .Johnstone, A..T. Power. T. Tsujisliita, H. Watanabe, and .T. Worrell, The structure of categories of coalgebras (in preparation).

[6] A. .Joyal, M. Neilsen, and G. Winskel, Bisimulation and open maps. Information and Computation 127 (1996) 164-185.

[7] G.M. Kelly, Basic concepts of enriched category theory, London Matli. Soc. Lectme Notes Series 64, Cambridge University Press (1982).

[8] G.M. Kelly, Structm'es defined by finite limits in the enriched context 1, Caliiers rle Top. of Goom. Diif. 23 (1982) 3-42.

[9] S. Mac Lane, Categories for the working mathematician. Springer (1971).

[10] M. Makkai and R„ Pare, Accessible categories: the fomidations of categorical model theory. Contemporary Mathematics 104, Amor. Matli Soc (1989)

[11] Jan Rutten, Universal Coalgobra: a Theory of Systems, CWI Report CS-R9652 (1996).

[12] T. Tsujisliita, Hyporsets as truth values (draft).

[13] T. Tsujisliita and H. Watanabe, Monoidal elosednoss of the category of simulations, Hokkaido University Preprint Series in Mathematics 392 (1997).

[14] H. Watanabe, A criterion for the existence of subobject classifiers (siibniittecl).

[15] H. Watanabe, Tlie subobject classifier of the category of functional bisimi ilations (si ibmitted).

[16] H. Watanabe, Tlie category of functional bisimulations (in preparation).

[17] James Worrell, Toposes of Coalgebras and Hidden Algebras (in this voliune).