MONADS on DAGGER CATEGORIES 1. Introduction
Total Page:16
File Type:pdf, Size:1020Kb
Load more
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. -
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 -
Skew Monoidal Categories and Grothendieck's Six Operations
Skew Monoidal Categories and Grothendieck's Six Operations by Benjamin James Fuller A thesis submitted for the degree of Doctor of Philosophy. Department of Pure Mathematics School of Mathematics and Statistics The University of Sheffield March 2017 ii Abstract In this thesis, we explore several topics in the theory of monoidal and skew monoidal categories. In Chapter 3, we give definitions of dual pairs in monoidal categories, skew monoidal categories, closed skew monoidal categories and closed mon- oidal categories. In the case of monoidal and closed monoidal categories, there are multiple well-known definitions of a dual pair. We generalise these definitions to skew monoidal and closed skew monoidal categories. In Chapter 4, we introduce semidirect products of skew monoidal cat- egories. Semidirect products of groups are a well-known and well-studied algebraic construction. Semidirect products of monoids can be defined anal- ogously. We provide a categorification of this construction, for semidirect products of skew monoidal categories. We then discuss semidirect products of monoidal, closed skew monoidal and closed monoidal categories, in each case providing sufficient conditions for the semidirect product of two skew monoidal categories with the given structure to inherit the structure itself. In Chapter 5, we prove a coherence theorem for monoidal adjunctions between closed monoidal categories, a fragment of Grothendieck's `six oper- ations' formalism. iii iv Acknowledgements First and foremost, I would like to thank my supervisor, Simon Willerton, without whose help and guidance this thesis would not have been possible. I would also like to thank the various members of J14b that have come and gone over my four years at Sheffield; the friendly office environment has helped keep me sane. -
A Subtle Introduction to Category Theory
A Subtle Introduction to Category Theory W. J. Zeng Department of Computer Science, Oxford University \Static concepts proved to be very effective intellectual tranquilizers." L. L. Whyte \Our study has revealed Mathematics as an array of forms, codify- ing ideas extracted from human activates and scientific problems and deployed in a network of formal rules, formal definitions, formal axiom systems, explicit theorems with their careful proof and the manifold in- terconnections of these forms...[This view] might be called formal func- tionalism." Saunders Mac Lane Let's dive right in then, shall we? What can we say about the array of forms MacLane speaks of? Claim (Tentative). Category theory is about the formal aspects of this array of forms. Commentary: It might be tempting to put the brakes on right away and first grab hold of what we mean by formal aspects. Instead, rather than trying to present \the formal" as the object of study and category theory as our instrument, we would nudge the reader to consider another perspective. Category theory itself defines formal aspects in much the same way that physics defines physical concepts or laws define legal (and correspondingly illegal) aspects: it embodies them. When we speak of what is formal/physical/legal we inescapably speak of category/physical/legal theory, and vice versa. Thus we pass to the somewhat grammatically awkward revision of our initial claim: Claim (Tentative). Category theory is the formal aspects of this array of forms. Commentary: Let's unpack this a little bit. While individual forms are themselves tautologically formal, arrays of forms and everything else networked in a system lose this tautological formality. -
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. -
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. -
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). -
The Morita Theory of Quantum Graph Isomorphisms
Commun. Math. Phys. Communications in Digital Object Identifier (DOI) https://doi.org/10.1007/s00220-018-3225-6 Mathematical Physics The Morita Theory of Quantum Graph Isomorphisms Benjamin Musto, David Reutter, Dominic Verdon Department of Computer Science, University of Oxford, Oxford, UK. E-mail: [email protected]; [email protected]; [email protected] Received: 31 January 2018 / Accepted: 11 June 2018 © The Author(s) 2018 Abstract: We classify instances of quantum pseudo-telepathy in the graph isomorphism game, exploiting the recently discovered connection between quantum information and the theory of quantum automorphism groups. Specifically, we show that graphs quantum isomorphic to a given graph are in bijective correspondence with Morita equivalence classes of certain Frobenius algebras in the category of finite-dimensional representations of the quantum automorphism algebra of that graph. We show that such a Frobenius algebra may be constructed from a central type subgroup of the classical automorphism group, whose action on the graph has coisotropic vertex stabilisers. In particular, if the original graph has no quantum symmetries, quantum isomorphic graphs are classified by such subgroups. We show that all quantum isomorphic graph pairs corresponding to a well-known family of binary constraint systems arise from this group-theoretical construction. We use our classification to show that, of the small order vertex-transitive graphs with no quantum symmetry, none is quantum isomorphic to a non-isomorphic graph. We show that this is in fact asymptotically almost surely true of all graphs. Contents 1. Introduction ................................. 2. Background ................................. 2.1 String diagrams, Frobenius monoids and Gelfand duality ...... -
Categories of Quantum and Classical Channels (Extended Abstract)
Categories of Quantum and Classical Channels (extended abstract) Bob Coecke∗ Chris Heunen† Aleks Kissinger∗ University of Oxford, Department of Computer Science fcoecke,heunen,[email protected] We introduce the CP*–construction on a dagger compact closed category as a generalisation of Selinger’s CPM–construction. While the latter takes a dagger compact closed category and forms its category of “abstract matrix algebras” and completely positive maps, the CP*–construction forms its category of “abstract C*-algebras” and completely positive maps. This analogy is justified by the case of finite-dimensional Hilbert spaces, where the CP*–construction yields the category of finite-dimensional C*-algebras and completely positive maps. The CP*–construction fully embeds Selinger’s CPM–construction in such a way that the objects in the image of the embedding can be thought of as “purely quantum” state spaces. It also embeds the category of classical stochastic maps, whose image consists of “purely classical” state spaces. By allowing classical and quantum data to coexist, this provides elegant abstract notions of preparation, measurement, and more general quantum channels. 1 Introduction One of the motivations driving categorical treatments of quantum mechanics is to place classical and quantum systems on an equal footing in a single category, so that one can study their interactions. The main idea of categorical quantum mechanics [1] is to fix a category (usually dagger compact) whose ob- jects are thought of as state spaces and whose morphisms are evolutions. There are two main variations. • “Dirac style”: Objects form pure state spaces, and isometric morphisms form pure state evolutions. -
Compact Inverse Categories 11
COMPACT INVERSE CATEGORIES ROBIN COCKETT AND CHRIS HEUNEN Abstract. The Ehresmann-Schein-Nambooripad theorem gives a structure theorem for inverse monoids: they are inductive groupoids. A particularly nice case due to Jarek is that commutative inverse monoids become semilattices of abelian groups. It has also been categorified by DeWolf-Pronk to a structure theorem for inverse categories as locally complete inductive groupoids. We show that in the case of compact inverse categories, this takes the particularly nice form of a semilattice of compact groupoids. Moreover, one-object com- pact inverse categories are exactly commutative inverse monoids. Compact groupoids, in turn, are determined in particularly simple terms of 3-cocycles by Baez-Lauda. 1. Introduction Inverse monoids model partial symmetry [24], and arise naturally in many com- binatorial constructions [8]. The easiest example of an inverse monoid is perhaps a group. There is a structure theorem for inverse monoids, due to Ehresmann-Schein- Nambooripad [9, 10, 27, 26], that exhibits them as inductive groupoids. The latter are groupoids internal to the category of partially ordered sets with certain ex- tra requirements. By a result of Jarek [19], the inductive groupoids corresponding to commutative inverse monoids can equivalently be described as semilattices of abelian groups. A natural typed version of an inverse monoid is an inverse category [22, 6]. This notion can for example model partial reversible functional programs [12]. The eas- iest example of an inverse category is perhaps a groupoid. DeWolf-Pronk have generalised the ESN theorem to inverse categories, exhibiting them as locally com- plete inductive groupoids. This paper investigates `the commutative case', thus fitting in the bottom right cell of Figure 1. -
The Expectation Monad in Quantum Foundations
The Expectation Monad in Quantum Foundations Bart Jacobs and Jorik Mandemaker Institute for Computing and Information Sciences (iCIS), Radboud University Nijmegen, The Netherlands. fB.Jacobs,[email protected] The expectation monad is introduced abstractly via two composable adjunctions, but concretely cap- tures measures. It turns out to sit in between known monads: on the one hand the distribution and ultrafilter monad, and on the other hand the continuation monad. This expectation monad is used in two probabilistic analogues of fundamental results of Manes and Gelfand for the ultrafilter monad: algebras of the expectation monad are convex compact Hausdorff spaces, and are dually equivalent to so-called Banach effect algebras. These structures capture states and effects in quantum foundations, and the duality between them. Moreover, the approach leads to a new re-formulation of Gleason’s theorem, expressing that effects on a Hilbert space are free effect modules on projections, obtained via tensoring with the unit interval. 1 Introduction Techniques that have been developed over the last decades for the semantics of programming languages and programming logics gain wider significance. In this way a new interdisciplinary area has emerged where researchers from mathematics, (theoretical) physics and (theoretical) computer science collabo- rate, notably on quantum computation and quantum foundations. The article [6] uses the phrase “Rosetta Stone” for the language and concepts of category theory that form an integral part of this common area. The present article is also part of this new field. It uses results from programming semantics, topology and (convex) analysis, category theory (esp. monads), logic and probability, and quantum foundations. -
Most Human Things Go in Pairs. Alcmaeon, ∼ 450 BC
Most human things go in pairs. Alcmaeon, 450 BC ∼ true false good bad right left up down front back future past light dark hot cold matter antimatter boson fermion How can we formalize a general concept of duality? The Chinese tried yin-yang theory, which inspired Leibniz to develop binary notation, which in turn underlies digital computation! But what's the state of the art now? In category theory the fundamental duality is the act of reversing an arrow: • ! • • • We use this to model switching past and future, false and true, small and big... Every category has an opposite op, where the arrows are C C reversed. This is a symmetry of the category of categories: op : Cat Cat ! and indeed the only nontrivial one: Aut(Cat) = Z=2 In logic, the simplest duality is negation. It's order-reversing: if P implies Q then Q implies P : : and|ignoring intuitionism!|it's an involution: P = P :: Thus if is a category of propositions and proofs, we C expect a functor: : op : C ! C with a natural isomorphism: 2 = 1 : ∼ C This has two analogues in quantum theory. One shows up already in the category of finite-dimensional vector spaces, FinVect. Every vector space V has a dual V ∗. Taking the dual is contravariant: if f : V W then f : W V ! ∗ ∗ ! ∗ and|ignoring infinite-dimensional spaces!|it's an involution: V ∗∗ ∼= V This kind of duality is captured by the idea of a -autonomous ∗ category. Recall that a symmetric monoidal category is roughly a category with a unit object I and a tensor product C 2 C : ⊗ C × C ! C that is unital, associative and commutative up to coherent natural isomorphisms.