A Study of Categories of Algebras and Coalgebras

Total Page:16

File Type:pdf, Size:1020Kb

A Study of Categories of Algebras and Coalgebras A Study of Categories of Algebras and Coalgebras Jesse Hughes May, 2001 Department of Philosophy Carnegie Mellon University Pittsburgh PA 15213 Thesis Committee Steve Awodey, Co-Chair Dana Scott, Co-Chair Jeremy Avigad Lawrence Moss, Indiana University Submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy Abstract This thesis is intended to help develop the theory of coalgebras by, first, taking classic theorems in the theory of universal algebras and dualizing them and, second, developing an internal logic for categories of coalgebras. We begin with an introduction to the categorical approach to algebras and the dual notion of coalgebras. Following this, we discuss (co)algebras for a (co)monad and develop a theory of regular subcoalgebras which will be used in the internal logic. We also prove that categories of coalgebras are complete, under reasonably weak conditions, and simultaneously prove the well-known dual result for categories of algebras. We close the second chapter with a discussion of bisimulations in which we introduce a weaker notion of bisimulation than is current in the literature, but which is well-behaved and reduces to the standard definition under the assumption of choice. The third chapter is a detailed look at three theorem's of G. Birkhoff [Bir35, Bir44], presenting categorical proofs of the theorems which generalize the classical results and which can be easily dualized to apply to categories of coalgebras. The theorems of interest are the variety theorem, the equational completeness theorem and the subdirect product representation theorem. The duals of each of these theorems is discussed in detail, and the dual notion of \coequation" is introduced and several examples given. In the final chapter, we show that first order logic can be interpreted in categories of coalgebras and introduce two modal operators to first order logic to allow reasoning about \endomorphism-invariant" coequations and bisimulations internally. We also develop a translation of terms and formulas into the internal language of the base category, which preserves and reflects truth. Lastly, we introduce a Kripke-Joyal style semantics for L(E ), as well as a pointwise semantics which reflects the intuition of coequation forcing at a point or subset of a coalgebra. Acknowledgments I have been fortunate to have two advisors on this dissertation. I first became in- terested in the subject thanks to Dana Scott, who helped guide the questions and suggested the Birkhoff's theorem research in particular. Steve Awodey taught me everything I know about category theory, but I am grateful anyway. Both advisors helped my writing immensely, in addition to guiding my research, and I am thankful for their patience and wisdom. When Dana first suggested I look into coalgebras, he pointed me to Vicious Cir- cles, by Jon Barwise and Larry Moss. Since that book was the start of my study of coalgebras, it seemed only fair that Larry Moss should have to read this dissertation. He graciously agreed to be my outside reader. I am grateful for the advice he and Jeremy Avigad gave as members of my committee. My research has benefited through discussions and correspondence with many people, including Peter Aczel, Jiˇr´ı Ad´amek, Andrej Bauer, Lars Birkedal, Steve Brookes, Corina C^ırstea, Federico do Marchi, Neil Ghani, Jeremy Gibbons, Peter Gumm, Bart Jacobs, Alexander Kurz, Bill Lawvere, John Reynolds, Tobias Schr¨oder James Worrell and Jaap van Oosten and others I'm sure to have missed here. I also want to thank the organizers of the Coalgebraic Methods for Computer Science workshop for providing a great opportunity to meet and discuss our research. On a more personal note, I could not have completed this work without the extraordinary patience and generosity of my wife, Ling Cheung. In fact, I am the rare husband who's also grateful for the extended visits of his mother-in-law, Siu Kai Lam. She helped out considerably when two graduate students were overwhelmed with a newborn, Quincy Prescott Hughes. I also enjoyed the distractions from my work, including Penguins hockey, regular fishing trips with Dirk Schlimm, exciting demolition derbies at New Alexandria and captivating and suspenseful games of Peek- a-boo with Quincy. iii Contents Introduction 1 Chapter synopsis 4 Chapter 1. Algebras and coalgebras 7 1.1. Algebras and coalgebras for an endofunctor 7 Γ 1.2. Structural features of E and EΓ 16 1.3. Subalgebras 22 1.4. Congruences 27 1.5. Initial algebras and final coalgebras 32 Chapter 2. Constructions arising from a (co)monad 47 2.1. (Co)monads and (co)algebras 47 2.2. Subcoalgebras 61 2.3. Subcoalgebras generated by a subobject 73 2.4. Limits in categories of coalgebras revisited 77 2.5. Bisimulations 89 2.6. Coinduction and bisimulations 105 2.7. n-simulations 109 Chapter 3. Birkhoff's variety theorem 113 3.1. The classical theorem 114 3.2. A categorical approach 115 3.3. Categories of algebras 125 3.4. Uniformly Birkhoff categories 127 3.5. Deductive closure 135 3.6. The coalgebraic dual of Birkhoff's variety theorem 140 3.7. Uniformly co-Birkhoff categories 153 3.8. Invariant coequations 162 3.9. Behavioral covarieties and monochromatic coequations 168 Chapter 4. The internal logic of E 175 4.1. Preliminary results 175 4.2. Transfer principles 186 v vi CONTENTS 4.3. A Kripke-Joyal style semantics 198 4.4. Pointwise forcing of coequations 200 Concluding remarks and further research 205 Appendix A. Preliminaries 209 A.1. Notation 209 A.2. Factorization systems 209 A.3. Predicates and Subobjects 212 A.4. Relations 214 A.5. Monads and comonads 216 Appendix. Bibliography 219 Appendix. Index 223 Introduction The theory of universal algebras has been well-developed in the twentieth cen- tury. The theory has also proved especially fruitful, with early results (like Birkhoff's variety theorem) providing a basis for model theory and other results providing an abstract understanding of familiar principles of induction, recursion and freeness. The theory of coalgebras is considerably younger and less well developed. Coalgebras arise naturally, as Kripke models for modal logic, as automata and objects for object oriented programming languages in computer science, etc. Hence, one would like a unified theory of coalgebras to play a role analogous to that of the theory of algebras. This goal is aided by the duality between algebras and coalgebras. Statements about categories of algebras yield dual statements about categories of coalgebras. One can then investigate whether there are reasonable assumptions about the categories of coalgebras that yield the dual theorems. Algebras, in their commonest form, can be understood as a set together with some operations on the set. In other words, algebras are structures for a signature. The term algebras are examples of free algebras, where freeness is easily expressed in terms of adjoint functors. Such free algebras (which are initial objects in a related category of algebras) come with the proof principle of induction, which can be understood in terms of minimality. That is, the principle of induction is equivalent to the property that an algebra has no non-trivial subalgebras. The property of definition by recursion is exactly the property that an algebra is an initial object. Thus, these familiar topics of universal algebra are well-suited for a categorical setting. We can use the tools of category theory to investigate freeness, induction and recursion as special cases of adjointness, minimality and initiality, respectively. In particular, these algebraic properties can be represented as standard categorical properties applied to categories of algebras (in which the structure of the category leads to the well-known algebraic properties). Coalgebras can also be regarded as a set together with certain operations on it, but with a key difference. Where an algebra is intended to model combinatorial op- erations, a coalgebra models a set with various unary operations whose codomain is a (typically) more complex structure. These operations can be viewed as \destructors" which take an element of the coalgebra to its constituent parts. Compare this view 1 2 INTRODUCTION with the notion that an algebras operations give a means (not necessarily unique) of \constructing" an element out of a tuple. Consider, for instance, a set S of A-labeled binary trees1 which is closed under the \childOf" relation. That is, if x 2 S, then both the left and right subtrees of x (if they exist) are also in S. Then S has a natural coalgebraic structure consisting of three destructor functions. Given any x 2 S, we may ask for the label of x. We may also ask for the left child or right child of x, assuming that there is an \error state" which can be returned if x has no such child . These three structure maps define a signature Σ for a category of coalgebras in the same way that a set with some combinatorial operations define a signature for a category of algebras (i.e., a similarity type). Any set X, together with three operations, a:X /A; l :X /X + 1; r :X /X + 1; is a Σ-coalgebra. Equivalently, any set X with a single map ha; l; ri:X /A × (X + 1) × (X + 1) is a coalgebra of the same type as our set S of binary trees. Indeed, any such structured set can be regarded as a set of trees itself. We can use the theory of algebras in order to develop the theory of coalgebras. The duality is apparent in the distinguished initial algebra/final coalgebra. The initial algebra is the initial (i.e., \least") fixed point of the associated functor, while the final coalgebra is the final (i.e., \greatest") fixed point.
Recommended publications
  • Ambiguity and Incomplete Information in Categorical Models of Language
    Ambiguity and Incomplete Information in Categorical Models of Language Dan Marsden University of Oxford [email protected] We investigate notions of ambiguity and partial information in categorical distributional models of natural language. Probabilistic ambiguity has previously been studied in [27, 26, 16] using Selinger’s CPM construction. This construction works well for models built upon vector spaces, as has been shown in quantum computational applications. Unfortunately, it doesn’t seem to provide a satis- factory method for introducing mixing in other compact closed categories such as the category of sets and binary relations. We therefore lack a uniform strategy for extending a category to model imprecise linguistic information. In this work we adopt a different approach. We analyze different forms of ambiguous and in- complete information, both with and without quantitative probabilistic data. Each scheme then cor- responds to a suitable enrichment of the category in which we model language. We view different monads as encapsulating the informational behaviour of interest, by analogy with their use in mod- elling side effects in computation. Previous results of Jacobs then allow us to systematically construct suitable bases for enrichment. We show that we can freely enrich arbitrary dagger compact closed categories in order to capture all the phenomena of interest, whilst retaining the important dagger compact closed structure. This allows us to construct a model with real convex combination of binary relations that makes non-trivial use of the scalars. Finally we relate our various different enrichments, showing that finite subconvex algebra enrichment covers all the effects under consideration.
    [Show full text]
  • MAT 4162 - Homework Assignment 2
    MAT 4162 - Homework Assignment 2 Instructions: Pick at least 5 problems of varying length and difficulty. You do not have to provide full details in all of the problems, but be sure to indicate which details you declare trivial. Due date: Monday June 22nd, 4pm. The category of relations Let Rel be the category whose objects are sets and whose morphisms X ! Y are relations R ⊆ X × Y . Two relations R ⊆ X × Y and S ⊆ Y × Z may be composed via S ◦ R = f(x; z)j9y 2 Y:R(x; y) ^ S(y; z): Exercise 1. Show that this composition is associative, and that Rel is indeed a category. The powerset functor(s) Consider the powerset functor P : Set ! Set. On objects, it sends a set X to its powerset P(X). A function f : X ! Y is sent to P(f): P(X) !P(Y ); U 7! P(f)(U) = f[U] =def ff(x)jx 2 Ug: Exercise 2. Show that P is indeed a functor. For every set X we have a singleton map ηX : X !P(X), defined by 2 S x 7! fxg. Also, we have a union map µX : P (X) !P(X), defined by α 7! α. Exercise 3. Show that η and µ constitute natural transformations 1Set !P and P2 !P, respectively. Objects of the form P(X) are more than mere sets. In class you have seen that they are in fact complete boolean algebras. For now, we regard P(X) as a complete sup-lattice. A partial ordering (P; ≤) is a complete sup-lattice if it is equipped with a supremum map W : P(P ) ! P which sends a subset U ⊆ P to W P , the least upper bound of U in P .
    [Show full text]
  • Commutative Hopf Algebras and Cocommutative Hopf Algebras in Positive Characteristic
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector JOURNAL OF ALGEBRA 79, 375-392 (1982) Commutative Hopf Algebras and Cocommutative Hopf Algebras in Positive Characteristic MITSUHIRO TAKEUCHI * Department of Mathematics, University of Tsukuba, Ibaraki 305, Japan Communicated by N. Jacobson Received January 1, 1981 Let A be a commutative Hopf algebra over a field k of characteristic p > 0. Let o: C + B be a surjective map of commutative algebras such that xP = 0 for any x in Ker(yl), so that the map Fc: k’@ @ C+ C, 10 a t+ lPaP factors through k’lp @ 9, yielding a map $: k”P @ B -+ C. A map of algebras f: A + B can be lifted to an algebra map f: A -+ C such that f = q 0 f if and only if Ker(F,) c Ker(Fr o (k”” @ f )). In particular, if FA is injective, any algebra map A + B can be lifted to A + C. The dual results will be given for cocommutative Hopf algebras and coalgebra maps. It is known that every reduced algebraic group over a perfect field is smooth [ 1, p. 2391. This means that if A is a finitely generated commutative Hopf algebra over a field k such that k@ A is reduced, then for any surjective map of commutative algebras p: C+ B whose kernel Ker(q) is nilpotent, any algebra mapf: A + B can be lifted to an algebra mapf: A -+ C such that v, of= f [I, Corollary 4.6, p.
    [Show full text]
  • Relations in Categories
    Relations in Categories Stefan Milius A thesis submitted to the Faculty of Graduate Studies in partial fulfilment of the requirements for the degree of Master of Arts Graduate Program in Mathematics and Statistics York University Toronto, Ontario June 15, 2000 Abstract This thesis investigates relations over a category C relative to an (E; M)-factori- zation system of C. In order to establish the 2-category Rel(C) of relations over C in the first part we discuss sufficient conditions for the associativity of horizontal composition of relations, and we investigate special classes of morphisms in Rel(C). Attention is particularly devoted to the notion of mapping as defined by Lawvere. We give a significantly simplified proof for the main result of Pavlovi´c,namely that C Map(Rel(C)) if and only if E RegEpi(C). This part also contains a proof' that the category Map(Rel(C))⊆ is finitely complete, and we present the results obtained by Kelly, some of them generalized, i. e., without the restrictive assumption that M Mono(C). The next part deals with factorization⊆ systems in Rel(C). The fact that each set-relation has a canonical image factorization is generalized and shown to yield an (E¯; M¯ )-factorization system in Rel(C) in case M Mono(C). The setting without this condition is studied, as well. We propose a⊆ weaker notion of factorization system for a 2-category, where the commutativity in the universal property of an (E; M)-factorization system is replaced by coherent 2-cells. In the last part certain limits and colimits in Rel(C) are investigated.
    [Show full text]
  • Lecture 10. Functors and Monads Functional Programming
    Lecture 10. Functors and monads Functional Programming [Faculty of Science Information and Computing Sciences] 0 Goals I Understand the concept of higher-kinded abstraction I Introduce two common patterns: functors and monads I Simplify code with monads Chapter 12 from Hutton’s book, except 12.2 [Faculty of Science Information and Computing Sciences] 1 Functors [Faculty of Science Information and Computing Sciences] 2 Map over lists map f xs applies f over all the elements of the list xs map :: (a -> b) -> [a] -> [b] map _ [] = [] map f (x:xs) = f x : map f xs > map (+1)[1,2,3] [2,3,4] > map even [1,2,3] [False,True,False] [Faculty of Science Information and Computing Sciences] 3 mapTree _ Leaf = Leaf mapTree f (Node l x r) = Node (mapTree f l) (f x) (mapTree f r) Map over binary trees Remember binary trees with data in the inner nodes: data Tree a = Leaf | Node (Tree a) a (Tree a) deriving Show They admit a similar map operation: mapTree :: (a -> b) -> Tree a -> Tree b [Faculty of Science Information and Computing Sciences] 4 Map over binary trees Remember binary trees with data in the inner nodes: data Tree a = Leaf | Node (Tree a) a (Tree a) deriving Show They admit a similar map operation: mapTree :: (a -> b) -> Tree a -> Tree b mapTree _ Leaf = Leaf mapTree f (Node l x r) = Node (mapTree f l) (f x) (mapTree f r) [Faculty of Science Information and Computing Sciences] 4 Map over binary trees mapTree also applies a function over all elements, but now contained in a binary tree > t = Node (Node Leaf 1 Leaf) 2 Leaf > mapTree (+1) t Node
    [Show full text]
  • Knowledge Representation in Bicategories of Relations
    Knowledge Representation in Bicategories of Relations Evan Patterson Department of Statistics, Stanford University Abstract We introduce the relational ontology log, or relational olog, a knowledge representation system based on the category of sets and relations. It is inspired by Spivak and Kent’s olog, a recent categorical framework for knowledge representation. Relational ologs interpolate between ologs and description logic, the dominant formalism for knowledge representation today. In this paper, we investigate relational ologs both for their own sake and to gain insight into the relationship between the algebraic and logical approaches to knowledge representation. On a practical level, we show by example that relational ologs have a friendly and intuitive—yet fully precise—graphical syntax, derived from the string diagrams of monoidal categories. We explain several other useful features of relational ologs not possessed by most description logics, such as a type system and a rich, flexible notion of instance data. In a more theoretical vein, we draw on categorical logic to show how relational ologs can be translated to and from logical theories in a fragment of first-order logic. Although we make extensive use of categorical language, this paper is designed to be self-contained and has considerable expository content. The only prerequisites are knowledge of first-order logic and the rudiments of category theory. 1. Introduction arXiv:1706.00526v2 [cs.AI] 1 Nov 2017 The representation of human knowledge in computable form is among the oldest and most fundamental problems of artificial intelligence. Several recent trends are stimulating continued research in the field of knowledge representation (KR).
    [Show full text]
  • The Formal Theory of Hopf Algebras, Part II
    The Formal Theory of Hopf Algebras Part II: The case of Hopf algebras Hans{E. Porst Department of Mathematical Sciences, University of Stellenbosch, Stellenbosch, South Africa [email protected] Abstract The category HopfR of Hopf algebras over a commutative unital ring R is analyzed with respect to its categorical properties. The main results are: (1) For every ring R the category HopfR is locally presentable, it is coreflective in the category of bialgebras over R, over every R-algebra there exists a cofree Hopf algebra. (2) If, in addition, R is absoluty flat, then HopfR is reflective in the category of bialgebras as well, and there exists a free Hopf algebra over every R-coalgebra. Similar results are obtained for relevant subcategories of HopfR. Moreover it is shown that, for every commutative unital ring R, the so-called \dual algebra functor" has a left adjoint and that, more generally, universal measuring coalgebras exist. MSC 2000: Primary 16T05, Secondary 18D10 Keywords: Hopf algebras, ?bialgebras, limits, colimits, free Hopf algebras, cofree Hopf algebras, Hopf envelope, universal measuring coalgebra Introduction The first monograph on Hopf algebra theory (Sweedler 1969 [27]) paid considerable attention to categorical properties of those. Somewhat surprisingly more recent successors like e.g. [11] | though using categorical language throughout | hardly touch these questions. The question we here have in mind are, e.g., Does the category of Hopf algebras have products (or, more generally, all limits) and how are they constructed? Does it have colimits? Or Do the naturally occurring functors (e.g., the embedding of the category of Hopf algebras into that of bialgebras) have adjoints? Some scattered results exist, as for example 1.
    [Show full text]
  • 1. Language of Operads 2. Operads As Monads
    OPERADS, APPROXIMATION, AND RECOGNITION MAXIMILIEN PEROUX´ All missing details can be found in [May72]. 1. Language of operads Let S = (S; ⊗; I) be a (closed) symmetric monoidal category. Definition 1.1. An operad O in S is a collection of object fO(j)gj≥0 in S endowed with : • a right-action of the symmetric group Σj on O(j) for each j, such that O(0) = I; • a unit map I ! O(1) in S; • composition operations that are morphisms in S : γ : O(k) ⊗ O(j1) ⊗ · · · ⊗ O(jk) −! O(j1 + ··· + jk); defined for each k ≥ 0, j1; : : : ; jk ≥ 0, satisfying natural equivariance, unit and associativity relations. 0 0 A morphism of operads : O ! O is a sequence j : O(j) ! O (j) of Σj-equivariant morphisms in S compatible with the unit map and γ. Example 1.2. ⊗j Let X be an object in S. The endomorphism operad EndX is defined to be EndX (j) = HomS(X ;X), ⊗j with unit idX , and the Σj-right action is induced by permuting on X . Example 1.3. Define Assoc(j) = ` , the associative operad, where the maps γ are defined by equivariance. Let σ2Σj I Com(j) = I, the commutative operad, where γ are the canonical isomorphisms. Definition 1.4. Let O be an operad in S. An O-algebra (X; θ) in S is an object X together with a morphism of operads ⊗j θ : O ! EndX . Using adjoints, this is equivalent to a sequence of maps θj : O(j) ⊗ X ! X such that they are associative, unital and equivariant.
    [Show full text]
  • Categories of Coalgebras with Monadic Homomorphisms Wolfram Kahl
    Categories of Coalgebras with Monadic Homomorphisms Wolfram Kahl To cite this version: Wolfram Kahl. Categories of Coalgebras with Monadic Homomorphisms. 12th International Workshop on Coalgebraic Methods in Computer Science (CMCS), Apr 2014, Grenoble, France. pp.151-167, 10.1007/978-3-662-44124-4_9. hal-01408758 HAL Id: hal-01408758 https://hal.inria.fr/hal-01408758 Submitted on 5 Dec 2016 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Distributed under a Creative Commons Attribution| 4.0 International License Categories of Coalgebras with Monadic Homomorphisms Wolfram Kahl McMaster University, Hamilton, Ontario, Canada, [email protected] Abstract. Abstract graph transformation approaches traditionally con- sider graph structures as algebras over signatures where all function sym- bols are unary. Attributed graphs, with attributes taken from (term) algebras over ar- bitrary signatures do not fit directly into this kind of transformation ap- proach, since algebras containing function symbols taking two or more arguments do not allow component-wise construction of pushouts. We show how shifting from the algebraic view to a coalgebraic view of graph structures opens up additional flexibility, and enables treat- ing term algebras over arbitrary signatures in essentially the same way as unstructured label sets.
    [Show full text]
  • A Necessary and Sufficient Condition for Induced Model Structures
    A NECESSARY AND SUFFICIENT CONDITION FOR INDUCED MODEL STRUCTURES KATHRYN HESS, MAGDALENA KE¸DZIOREK, EMILY RIEHL, AND BROOKE SHIPLEY Abstract. A common technique for producing a new model category struc- ture is to lift the fibrations and weak equivalences of an existing model struc- ture along a right adjoint. Formally dual but technically much harder is to lift the cofibrations and weak equivalences along a left adjoint. For either technique to define a valid model category, there is a well-known necessary \acyclicity" condition. We show that for a broad class of accessible model structures | a generalization introduced here of the well-known combinato- rial model structures | this necessary condition is also sufficient in both the right-induced and left-induced contexts, and the resulting model category is again accessible. We develop new and old techniques for proving the acyclity condition and apply these observations to construct several new model struc- tures, in particular on categories of differential graded bialgebras, of differential graded comodule algebras, and of comodules over corings in both the differen- tial graded and the spectral setting. We observe moreover that (generalized) Reedy model category structures can also be understood as model categories of \bialgebras" in the sense considered here. Contents 1. Introduction 2 1.1. Acknowledgments 5 2. Accessible model categories, acyclicity, and induced model structures 5 2.1. Induced model structures and acyclicity 5 2.2. Techniques for proving acyclicity 8 2.3. Adjoint squares 11 3. Left and right induced algebraic weak factorization systems 13 3.1. Algebraic weak factorization systems and accessible model categories 14 3.2.
    [Show full text]
  • Algebraic Structures Lecture 18 Thursday, April 4, 2019 1 Type
    Harvard School of Engineering and Applied Sciences — CS 152: Programming Languages Algebraic structures Lecture 18 Thursday, April 4, 2019 In abstract algebra, algebraic structures are defined by a set of elements and operations on those ele- ments that satisfy certain laws. Some of these algebraic structures have interesting and useful computa- tional interpretations. In this lecture we will consider several algebraic structures (monoids, functors, and monads), and consider the computational patterns that these algebraic structures capture. We will look at Haskell, a functional programming language named after Haskell Curry, which provides support for defin- ing and using such algebraic structures. Indeed, monads are central to practical programming in Haskell. First, however, we consider type constructors, and see two new type constructors. 1 Type constructors A type constructor allows us to create new types from existing types. We have already seen several different type constructors, including product types, sum types, reference types, and parametric types. The product type constructor × takes existing types τ1 and τ2 and constructs the product type τ1 × τ2 from them. Similarly, the sum type constructor + takes existing types τ1 and τ2 and constructs the product type τ1 + τ2 from them. We will briefly introduce list types and option types as more examples of type constructors. 1.1 Lists A list type τ list is the type of lists with elements of type τ. We write [] for the empty list, and v1 :: v2 for the list that contains value v1 as the first element, and v2 is the rest of the list. We also provide a way to check whether a list is empty (isempty? e) and to get the head and the tail of a list (head e and tail e).
    [Show full text]
  • Relations: Categories, Monoidal Categories, and Props
    Logical Methods in Computer Science Vol. 14(3:14)2018, pp. 1–25 Submitted Oct. 12, 2017 https://lmcs.episciences.org/ Published Sep. 03, 2018 UNIVERSAL CONSTRUCTIONS FOR (CO)RELATIONS: CATEGORIES, MONOIDAL CATEGORIES, AND PROPS BRENDAN FONG AND FABIO ZANASI Massachusetts Institute of Technology, United States of America e-mail address: [email protected] University College London, United Kingdom e-mail address: [email protected] Abstract. Calculi of string diagrams are increasingly used to present the syntax and algebraic structure of various families of circuits, including signal flow graphs, electrical circuits and quantum processes. In many such approaches, the semantic interpretation for diagrams is given in terms of relations or corelations (generalised equivalence relations) of some kind. In this paper we show how semantic categories of both relations and corelations can be characterised as colimits of simpler categories. This modular perspective is important as it simplifies the task of giving a complete axiomatisation for semantic equivalence of string diagrams. Moreover, our general result unifies various theorems that are independently found in literature and are relevant for program semantics, quantum computation and control theory. 1. Introduction Network-style diagrammatic languages appear in diverse fields as a tool to reason about computational models of various kinds, including signal processing circuits, quantum pro- cesses, Bayesian networks and Petri nets, amongst many others. In the last few years, there have been more and more contributions towards a uniform, formal theory of these languages which borrows from the well-established methods of programming language semantics. A significant insight stemming from many such approaches is that a compositional analysis of network diagrams, enabling their reduction to elementary components, is more effective when system behaviour is thought of as a relation instead of a function.
    [Show full text]