Denition A category A is an allegory i it is a locally ordered 2-category, whose hom-posets have binary meets and an anti-involution R 7! R sat

Similar documents
University of Oxford, Michaelis November 16, Categorical Semantics and Topos Theory Homotopy type theor

A Note on Extensional PERs

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello.

Representation of monoids in the category of monoid acts. 1. Introduction and preliminaries

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic

Dual Adjunctions Between Algebras and Coalgebras

1. Introduction and preliminaries

1 Cartesian bicategories

NON-SYMMETRIC -AUTONOMOUS CATEGORIES

Topos Theory. Lectures 21 and 22: Classifying toposes. Olivia Caramello. Topos Theory. Olivia Caramello. The notion of classifying topos

What are Iteration Theories?

Categorical quantum mechanics

Universal Properties

Localizations as idempotent approximations to completions

Reconsidering MacLane. Peter M. Hines

Custom Hypergraph Categories via Generalized Relations

Categories and functors

Category Theory. Categories. Definition.

Univalent Foundations and the equivalence principle

Cartesian Closed Topological Categories and Tensor Products

INTRODUCTION TO PART V: CATEGORIES OF CORRESPONDENCES

Knowledge Representation in Bicategories of Relations

Stabilization as a CW approximation

A Graph Theoretic Perspective on CPM(Rel)

Categorical coherence in the untyped setting. Peter M. Hines

On the normal completion of a Boolean algebra

What s category theory, anyway? Dedicated to the memory of Dietmar Schumacher ( )

Parameterizations and Fixed-Point Operators on Control Categories

1 Recall. Algebraic Groups Seminar Andrei Frimu Talk 4: Cartier Duality

Locally cartesian closed categories

COMMUTATIVE ALGEBRA LECTURE 1: SOME CATEGORY THEORY

Enriched and internal categories: an extensive relationship

Characterising FS domains by means of power domains

Lecture 4 Super Lie groups

arxiv: v1 [math.ct] 28 Dec 2018

Complex Systems from the Perspective of Category. Theory: II. Covering Systems and Sheaves

OPERAD BIMODULE CHARACTERIZATION OF ENRICHMENT. V2

CATEGORY THEORY. Cats have been around for 70 years. Eilenberg + Mac Lane =. Cats are about building bridges between different parts of maths.

Reinhold Heckmann. FB 14 { Informatik. D-6600 Saarbrucken. Bundesrepublik Deutschland. September 10, Abstract

58 CHAPTER 2. COMPUTATIONAL METHODS

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s

sset(x, Y ) n = sset(x [n], Y ).

Logic for Computational Effects: work in progress

Topological aspects of restriction categories

Types in categorical linguistics (& elswhere)

Algebraic Geometry

Categories and Modules

Elementary (ha-ha) Aspects of Topos Theory

by Say that A is replete (wrt ) if it is orthogonal to all f: X Y in C such that f : Y X is iso, ie for such f and all there is a unique such that the

The Morita-equivalence between MV-algebras and abelian l-groups with strong unit

A brief Introduction to Category Theory

NOTES ON ATIYAH S TQFT S

Categorical quantum channels

Formally real local rings, and infinitesimal stability.

An adjoint construction for topological models of intuitionistic modal logic Extended abstract

Algebras and Bialgebras

LOCAL VS GLOBAL DEFINITION OF THE FUSION TENSOR PRODUCT

MacLane s coherence theorem expressed as a word problem

A Fixed Point Theorem in a Category of Compact Metric Spaces

Boolean Algebras, Boolean Rings and Stone s Representation Theorem

Introduction to Restriction Categories

Quantum Groups and Link Invariants

Involutive Categories and Monoids, with a GNS-correspondence

Adjunctions! Everywhere!

Thus we get. ρj. Nρj i = δ D(i),j.

Category Theory. Travis Dirle. December 12, 2017

Distributors at Work

1 Categorical Background

AXIOMS FOR GENERALIZED FARRELL-TATE COHOMOLOGY

A CLOSED MODEL CATEGORY FOR (n 1)-CONNECTED SPACES

The unfolding of general Petri nets

Limit Preservation from Naturality

A NOTE ON ENRICHED CATEGORIES

Homology and Cohomology of Stacks (Lecture 7)

Categories and Quantum Informatics

Analysis and Enriched Category Theory

NOTES ON FLAT MORPHISMS AND THE FPQC TOPOLOGY

Applications of 2-categorical algebra to the theory of operads. Mark Weber

Category theory and set theory: algebraic set theory as an example of their interaction

D-MODULES: AN INTRODUCTION

C2.7: CATEGORY THEORY

The denormalized 3 3 lemma

Mix Unitary Categories

Commutative Algebra Lecture 3: Lattices and Categories (Sept. 13, 2013)

An Exact Interpretation of while

An introduction to derived and triangulated categories. Jon Woolf

Lecture 2 Sheaves and Functors

2-Gerbes and 2-Tate Spaces

2-DIMENSIONAL TOPOLOGICAL QUANTUM FIELD THEORIES AND FROBENIUS ALGEBRAS. Contents 1. The main theorem 1

GENERALIZED ABSTRACT NONSENSE: CATEGORY THEORY AND ADJUNCTIONS

ALGEBRAIC GEOMETRY COURSE NOTES, LECTURE 9: SCHEMES AND THEIR MODULES.

Introduction to CATEGORY THEORY and CATEGORICAL LOGIC

Formal power series rings, inverse limits, and I-adic completions of rings

COHOMOLOGY AND DIFFERENTIAL SCHEMES. 1. Schemes

axioms Weak n-ary Relational Products in Allegories Axioms 2014, 3, ; doi: /axioms ISSN

Scattered toposes. Received 1 April 1999; received in revised form 1 July 1999 Communicated by I. Moerdijk

Unbounded quantifiers via 2-categorical logic

distinct models, still insists on a function always returning a particular value, given a particular list of arguments. In the case of nondeterministi

Semantics for algebraic operations

Transcription:

Two Categories of Relations (Technical Report no. 94-32) Peter Knijnenburg Frank Nordemann Dept. of Computer Science, Leiden University, Niels Bohrweg 1, 2333 CA Leiden, the Netherlands. E-mail: peterk@cs.leidenuniv.nl 1 Introduction Recently there have appeared two notions of `categories of relations' in the literature. Freyd introduced the notion of allegory [FS91], and Carboni and Walters introduced the notion of cartesian bicategory of relations [CW87]. On the face of it, the two approaches look rather dierent. In this paper we show that the latter axiomatization is equal (in a categorical sense) to an enrichment of the former. The approach by Freyd (see denitions 2.1 and 2.2) is a very smooth axiomatization of the notion of category of relations. But, as Carboni observed [Car93], the theory is rather rigid. In particular, the modular law is not satisfactory from a theoretical point of view: it can not even be stated unless one has an involution which is the \identity on objects", which in nature never occurs unless one is already in a category of relations. Hence Carboni and Walters proposed another axiomatization (denition 2.4 below) which is \more categorical". So both approaches have their strong points, and the result of this paper allows to exploit them both without any penalty at all. This seems to be particular relevant since categories of relations have been used recently in theoretical computer science to model nondeterministic programs [HJ86, She90, Man85]. 2 Two categories of relations In this section we repeat the denition of the two categories. For the composition of two arrows R and S in a category, R S means rst S and then R. Furthermore, we assume that composition binds more tightly than intersection. For further categorical background, consult [FS91, Mac71]. The rst denition of a categry of relations we consider in this paper was introduced by Freyd [FS91]. 1

Denition 2.1 1. A category A is an allegory i it is a locally ordered 2-category, whose hom-posets have binary meets and an anti-involution R 7! R satisfying the modular law (R S) \ T (R \ (T R )) R 2. An allegory is unitary i it has an object U (the unit) such that 1 U is the largest morphism U! U, and for every object A there exists a morphism t A : A! U such that t A t A 1 A. We call a relation R :! Y a partial map if it is single valued, that is, if R R 1. The relation is called a map if it is moreover total, that is, if R R 1 and R R 1. In other words, if R is a map, then R is its right adjoint (R a R ). One can prove that a relation R has a right adjoint i R is this right adjoint. A tabulation of a relation R :! Y is given by two maps f : Z! and g : Z! Y such that g f = R and f f \ g g = 1 Z. The last condition says that f and g are jointly monic. For two objects and Y in an unitary allegory, the relation t Y t :! Y can be shown to be the largest relation from to Y. We denote it by m ;Y. In the sequel, for a category of relations C, we let Map(C) denote the subcategory of C consisting of all objects and all maps. Denition 2.2 A unitary allegory is called pre-tabular i for all objects and Y, the morphism m ;Y has a tabulation. We denote this tabulation by : Y! and 0 : Y! Y. We denote the category of pre-tabular unitary allegories, and structure preserving functors, by ptua. We have the following lemma [FS91]. Lemma 2.3 Map(A) is a cartesian category. The product of and Y is given by the tabulation of m ;Y. A tabular unitary allegory is a unitary allegory in which each relation has a tabulation. In [FS91] it is shown that every pre-tabular unitary allegory can be fully and faithfully embedded in a tabular unitary allegory. Furthermore, each tabular unitary allegory is isomorphic to the category Rel(C) of relations of a regular category C [FS91, JMP92]. Hence we can consider each pre-tabular unitary allegory as a subcategory of a Rel(C), with C regular. Next we introduce the second categorical structure for axiomatizing relations, as proposed by Carboni and Walters [CW87]. Denition 2.4 A category B is a cartesian bicategory of relations i it is a locally ordered 2-category, equipped with a functorial tensor product : BB! B, which has an identity object I and natural isomorphisms :! I : Y! Y 2

: (Y Z)! ( Y ) Z satisfying the classical coherence conditions. Furthermore, for every object in B there exists a comonoid structure :! t :! I satisfying the following axioms 1. The arrows and t satisfy the equations for to be a cocommutative comonoid object [Mac71] (see gure 1). 2. Each morphism R :! Y is a lax comonoid homomorphism. That is, Y R (R R) and t Y R t 3. For each object, and t have a right adjoint and t, respectively. This cocommutative comonoid structure is the only cocommutative comonoid structure on with structure morphisms having right adjoints. Furthermore, every object is discrete, in the sense that = ( 1) (1 ) We denote the category of cartesian bicategories of relations, and structure preserving functors, by CRel. The remarkable thing about cartesian bicategories of relations is that local limits and the involution operator are denable [CW87]. To be precise, given two relations R; S :! Y, their intersection is given by Y R \ S = Y (R S) The involution of a relation R :! Y is given by the composite where > Y I 1 > Y 1 R 1 > Y Y 1 > I = I t > > 1 = t > > I Again we call a relation R having a right adjoint a map. One can prove that this right adjoint necessarily equals the involution. The following lemma is proved in [CW87]. Lemma 2.5 Map(B) is cartesian category. For two objects and Y, the product is given by Y, with projections = 1 (1t) and 0 = 1 (t1). Furthermore, for two relations R and S, R S = ( R ) \ ( 0 S 0 ). > 3

@ @@ @? @@R -? H HHHH 1 H HHHHj - I 1 t 1 - @ @ @ @ @@R 1 ( ) 1?? - ( ) 3 The isomorphism Figure 1: Cocommutative comonoid object It has been observed earlier [Car93] that the two categories ptua and CRel are equivalent. In this section we prove that they are in fact isomorphic. First we describe the functor A : CRel! ptua. Let B be a cartesian bicategory of relations. A(B) is given by the following data. The objects and morphisms of A(B) are the objects and morphisms of B. The order on the homsets in A(B) is the order in B. The involution is given by the (denable) involution of B. The unit is given by I. The tabulation of m ;Y is given by : Y! and 0 : Y! Y. Lemma 3.1 A(B) is a pre-tabular unitary allegory. Proof The proof follows from a number of theorems in [CW87]. By Theorem 1.6, the homsets of B have nite products. By Theorem 2.4, there exists an anti-involution such that (R \ S) = R \ S. The modular law follows from Remark 2.9(ii). The axioms for the unit follow from Theorem 1.6(ii). Finally, by Theorem 2.8(i), the projections form a tabulation of m. Next we describe the functor C : ptua! CRel. Let A be a pre-tabular unitary allegory. C(A) is given by the following data. 4

The objects and morphisms of C(A) are the objects and morphisms of A. The order on the homsets in C(A) is the order in A. The tensor product of two objects A and B is given by the domain of the tabulation of m A;B. The tensor product of two arrows R : A! C and S : B! D is given by R S = C;D R A;B \ 0 C;D S 0 A;B The identity object of the tensor product is given by the unit. The required natural isomorphisms are given by = h1; ti = = h 0 ; i = hh; 0 i; 0 0 i where h; i is the pairing operator of Map(A). = h1; 1i and t is already present in A. Lemma 3.2 C(A) is a cartesian bicategory of relations. Proof We work in the internal language of the regular category associated with A. Then to prove that is functorial, we need to show that (T U)(RS) = (T R) (U S). This amounts to showing that in the internal language, for any relations R; S; T; U, 9c; d:t (c; e)^u(d; f)^r(a; c)^s(b; d) a` (9c:T (c; e)^r(a; c))^(9d:u(d; f)^s(b; d)) This equivalence holds in any regular category, by Frobenius Reciprocity (see [MR77]). It follows immediately from the denition that preserves the order on hom sets. Hence is a homomorphism of bicategories. The arrows, and are maps, and that they are isomorphisms satisfying the classical coherence conditions follows from the fact that they are so in Map(A). Using the internal language again, it is easy to show that they are natural. For each object, the maps and t satisfy the axioms for to be a cocommutative comonoid structure, since they do so in Map(A). Let R :! Y be an arrow in A. Then t Y R t, since it holds in A. Furthermore, R = ( \ 0 ) R R \ 0 R = R \ 0 R 0 = (R R) Hence R is a lax comonoid homomorphism. Suppose ~ and ~ t is another cocommutative comonoid structure. Then both t and ~ t are maps to the terminal object in Map(A) and hence they are equal. 5

From the counit axiom (second diagram in gure 1), it follows that ~ = 1 and 0 ~ = 1. Hence ~ = h1; 1i =, since Map(A) is cartesian. It is straightforward to show that Discreteness holds, using the internal language. Lemma 3.3 C(A(B)) = B. Proof Obviously, C(A(B)) and B are the same bicategory. So we only need to check that the extra structure of C(A(B)) and B coincide. For example, suppose is the diagonal in B and 0 is the diagonal in C(A(B)). Since Map(B) and Map(A(B)) are the same cartesian categories, = h1; 1i = 0. The other cases are proved similarly. Lemma 3.4 A(C(A)) = A. Proof Again, it is easy to see that A(C(A)) and A are the same bicategory. Let (; 0 ) be the tabulation of the maximal relation m ;Y in A, and (~; ~ 0 ) the tabulation of m ;Y in A(C(A)). Now, reasoning in Map(A), ~ ;Y = 1 (1 t Y ) = ;U (1 t Y ) = ;U h ;Y ; t Y 0 ;Y i = ;Y Hence, for all objects and Y, m ;Y A(C(A)). has the same tabulation in A and Next we have to show that the involution in A and in A(C(A)) coincide. Consider the following diagram. Y ( ) (1 (R 1) - (Y Y ) 6 1 Y 1 Y? Y Y; Y 6 pr q R - Y 0 Y;? - where psq = 1 \ 0 S. It is easy to see that (1 ) = (1 ). Hence the uppermost path from Y to is the converse of R according to Carboni and Walters. For any relation S, S = 0 psq : 0 (1 \ 0 S ) 0 0 S S S = m \ S = 0 \ S 0 psq 6

where the last inequality follows from the modular law. This shows that the lower diagram commutes. Next, since pr q 1, we have that pr q = pr q [FS91]. Hence pr q = 1 \ R 0. From this it easily follows that the upper diagram commutes. We can extend the operation A to a functor A : CRel! ptua, by stipulating that A(F ) = F. It is easy to see that A(F ) is a functor preserving the structure of pre-tabular unitary allegories, hence A is a functor. Analogously, we extend the operation C to a functor C : ptua! CRel. We now arrive at the main theorem of this paper. Theorem 3.5 ptua = CRel. References [Car93] A. Carboni. Personal communication. 1993. [CW87] [FS91] [HJ86] A. Carboni and R.F.C. Walters. Cartesian bicategories I. J. Pure and Applied Algebra, 49:11{32, 1987. P. Freyd and A. Scedrov. Categories, Allegories. North-Holland, Amsterdam, 1991. C.A.R. Hoare and He Jifeng. The weakest pre-specication (part I). Fundamenta Informaticae, 9(1):51{84, 1986. [JMP92] P.T. Johnstone, I. Moerdijk, and A.M. Pitts. Sketches of an elephant. To be published by: Oxford U.P., 1992. [Mac71] S. MacLane. Categories for the Working Mathematician, volume 5 of Graduate Texts in Mathematics. Springer Verlag, Berlin, 1971. [Man85] E.G. Manes. Weakest preconditions: categorical insights. In D. Pitt, S. Abramsky, A. Poigne, and D. Rydeheard, editors, Proc. Category Theory and Computer Programming, volume 240 of Lecture Notes in Computer Science, pages 182{197, 1985. [MR77] [She90] M. Makkai and G.E. Reyes. First Order Categorical Logic, volume 611 of Lecture Notes in Mathematics. Springer Verlag, Berlin, 1977. M. Sheeran. Describing hardware algorithms in Ruby. In G. David, R.T. Boute, and B.D. Shrivers, editors, Declarative Systems, pages 289{303. Elsevier, 1990. 7