Typesetting Commutative Diagrams Phisms Are Equal in the Given Category

Total Page:16

File Type:pdf, Size:1020Kb

Typesetting Commutative Diagrams Phisms Are Equal in the Given Category 466 TUGboat, Volume 15 (1994), No. 4 Typesetting Commutative Diagrams phisms are equal in the given category. For instance, saying that the diagram1 Gabriel Valiente Feruglio f / B University of the Balearic Islands A 0 Mathematics and Computer Science Dept. g g E-07071 Palma de Mallorca (Spain) / C D [email protected] 0 f Abstract commutes is exactly the same as saying that There have been several efforts aimed at providing TEX and its derivatives with a suitable mechanism for type- 0 0 setting commutative diagrams, with the consequent avail- g ◦ f = f ◦ g. ability of several macro packages of widespread use in the category theory community, and a long debate about the best syntax to adopt for commutative diagrams in As a notation, the graphic style of presenta- LATEX3 has taken place during 1993 in the CATEGORIES discussion list. From the user’s point of view, however, tion inherent to commutative diagrams makes state- there is not much guidance when it comes to choosing ments and descriptions involving categories more clear a macro package, and even after a decision is made, the and manageable than textual presentations. For in- conversion of diagrams from the particular conventions stance, consider the definition of an equalizer. A of a macro package to another macro package’s conven- morphism e : X → A is an equalizer of a pair of tions may prove to be rather hard. morphisms f : A → B and g : A → B if f ◦ e = Typesetting commutative diagrams is a surprisingly g ◦ e and for every morphism e0 : X0 → A satisfy- difficult problem, in comparison with TEX macro pack- ing f ◦ e0 = g ◦ e0 there exists a unique morphism ages for other purposes, as judged by the amount of code k : X0 → X such that e ◦ k = e0. needed and years of development invested. The existing An equivalent definition is that e is an equalizer macro packages for typesetting commutative diagrams if the upper part of the diagram are reviewed in this paper and they are compared accord- f e / / / ing to several criteria, among them the capability to pro- / X A B > O g } duce complex diagrams, quality of the output diagrams, } } } k } ease of use, quality of documentation, installation pro- 0 } e } cedures, resource requirements, availability, and porta- } 0 bility. The compatibility of the different macro packages X is also analyzed. commutes and, whenever the lower part of the dia- gram also commutes, there is a unique k such that the whole diagram commutes. −−∗−− As a tool for thought, proofs involving prop- erties that are stated in terms of commutative dia- grams can often be given in a “visual” way, in what has been called diagram chasing. For instance, the 1 Introduction proposition that if both inner squares of the follow- Commutative diagrams are a kind of graph that is ing diagram commute, then also the outer rectangle widely used in category theory, not only as a concise commutes, g and convenient notation but also as a powerful tool f / / B C for mathematical thought. A a c A diagram in a certain category is a collection b of nodes and directed arcs, consistently labeled with / / 0 0 0 A B C 0 0 g objects and morphisms of the category, where “con- f sistently” means that if an arc in the diagram is labeled with a morphism f and f has domain A and codomain B, then the source and target nodes of this arc must be labeled with A and B respectively. 1 All the diagrams in this paper have been typeset us- A diagram in a certain category is said to com- ing the XY-pic macro package, unless otherwise stated. The mute if, for every pair of nodes X and Y ,allthe reader should not infer any preference by the author for that paths in the diagram from X to Y are equal, in particular macro package, but should understand that some macro package is needed for the examples in the paper. Sam- the sense that each path in the diagram determines ple diagrams typeset with the other macro packages are given through composition a morphism and these mor- in Appendix I. TUGboat, Volume 15 (1994), No. 4 467 can be proven as follows: least for all but the simplest diagrams.) This gives (g0 ◦ f 0) ◦ a = g0 ◦ (f 0 ◦ a) (associativity) a first distinction, = g0 ◦ (b ◦ f) (commutativity • one object and all departing morphisms in each of left square) non-empty cell, or =(g0 ◦ b) ◦ f (associativity) ◦ ◦ =(c g) f (commutativity • either one object or one or more morphisms in of right square) each non-empty cell. = c ◦ (g ◦ f) (associativity). Commutative diagrams2 range from simple, rect- Whether they belong together with their source angular matrices of formulae and arrows to complex, object in a cell or they use a cell on their own, mor- non-planar diagrams with curved and diagonal ar- phisms are specified by the address of their target rows of different shapes. cell. Such addresses can be implicit, absolute or rel- ative to the source cell, and they can be either arbi- 2 Constructing commutative diagrams trary or limited by the available diagonal slopes. Commutative diagrams are constructed in most cases Moreover, some macro packages even support as rectangular arrays, as Donald Knuth does in Ex- symbolic addresses, by which nodes are tagged with ercise 18.46 of [4]. The objects or vertices are set identifier names and arrows are specified by making reference to the names of their source and target much like a \matrix in TEXoranarray environ- nodes. This is a step forward in the sense of the ment in LATEX, • • LATEX principle of emphasizing structural descrip- • • • tions, and in fact it is of great help for designing complex diagrams because it divides the task into • • • two separate subtasks, the one of producing a cor- • • • • • rect and elegant arrangement of nodes and the other of laying out the correct arrows and positioning their and the morphisms or arrows are set either right labels. after the vertex where they start, ◦ -◦ 3 Evaluation guidelines ◦ ◦ -◦ 6 6 6 The following aspects are considered in the next sec- tion for each of the macro packages in turn. The ◦ ◦ -◦ ◦? -? spirit of these guidelines is to give the potential user ◦? ◦?-◦ ? a feeling of what to expect from a macro package for typesetting commutative diagrams, and they are or in a cell on their own, based on the experience of the author during the last - • ◦ • few years, as user of some of the macro packages. ◦ ◦ - • ◦ • ◦ • 3.1 Arrow styles 6 6 6 ◦ ◦ ◦ ◦ ◦ The arrows used in commutative diagrams often are of different shapes, in order to distinguish different - • ◦ • ◦ • kinds of morphisms such as monomorphisms, epi- ◦ •? ◦ ◦ ◦ -•? morphisms, isomorphisms, and inclusions, to name ◦ ◦ just a few, and sometimes they have a shaft other ? ? ? • ◦ • ◦ -• than a solid line, for instance dashed or dotted, to indicate that it is the existence of the corresponding depending on the macro package being used, where morphisms which is being characterized. the grids correspond to the sample diagram pre- A collection of built-in arrow shapes and shafts sented in Appendix I. (Sketching a commutative is included in every macro package, and some macro diagram on such a grid on paper may prove to be a packages even provide facilities for defining new ar- mandatory step before typing the actual diagram, at row styles, for instance by defining a new control se- 2 The epithet “commutative” is traditional and originates quence name and choosing a particular combination in the fact that diagrams may be used to display equations of tail (the piece that appears at the source end), such as the commutative and associative laws. Although not head (the piece that appears at the target end), and all such diagrams which people draw commute in the formal sense given, this paper adheres to tradition and all such dia- shaft, from a predefined pallette of possible heads, grams are called commutative diagrams herein. tails, and shafts. 468 TUGboat, Volume 15 (1994), No. 4 3.2 Automatic stretching diagonal slopes and a wider variety of arrow heads Most of the macro packages provide for the auto- and tails to choose from. matic stretching of arrows to meet their source and In such a case, installation can get more com- METAFONT target nodes, where meeting a node means to get as plicated. is not as easy to drive or as A close to the (rectangular) box enclosing the node as familiar to the user as TEXorLTEX; many imple- dictated by some predefined parameter. mentations do not make it available, and on oth- While this may be appropriate for most hor- ers only the system administrator is able to install izontal and vertical arrows, in the case of diagonal fonts. A ready-to-use collection of the additional arrows it may leave the arrow too far from the node, fonts at standard magnifications is distributed, how- and extra diagram fine-tuning (see below) is needed ever, with some macro packages. in such cases in order to get the arrow closer to the 3.5 Documentation node. The macro package by John Reynolds, how- ever, incorporates basic facilities for associating a This ranges from small text files to comprehensive hexagon, octagon, or diamond to a node, instead user guides, and even to book chapters. of the usual rectangle, although it does not exploit 3.6 User support them in the macros for commutative diagrams. The authors of the different macro packages have 3.3 Diagram fine-tuning been receptive to comments and willing to provide Given a correct description of the structure, a macro user support.
Recommended publications
  • Diagram Chasing in Abelian Categories
    Diagram Chasing in Abelian Categories Daniel Murfet October 5, 2006 In applications of the theory of homological algebra, results such as the Five Lemma are crucial. For abelian groups this result is proved by diagram chasing, a procedure not immediately available in a general abelian category. However, we can still prove the desired results by embedding our abelian category in the category of abelian groups. All of this material is taken from Mitchell’s book on category theory [Mit65]. Contents 1 Introduction 1 1.1 Desired results ...................................... 1 2 Walks in Abelian Categories 3 2.1 Diagram chasing ..................................... 6 1 Introduction For our conventions regarding categories the reader is directed to our Abelian Categories (AC) notes. In particular recall that an embedding is a faithful functor which takes distinct objects to distinct objects. Theorem 1. Any small abelian category A has an exact embedding into the category of abelian groups. Proof. See [Mit65] Chapter 4, Theorem 2.6. Lemma 2. Let A be an abelian category and S ⊆ A a nonempty set of objects. There is a full small abelian subcategory B of A containing S. Proof. See [Mit65] Chapter 4, Lemma 2.7. Combining results II 6.7 and II 7.1 of [Mit65] we have Lemma 3. Let A be an abelian category, T : A −→ Ab an exact embedding. Then T preserves and reflects monomorphisms, epimorphisms, commutative diagrams, limits and colimits of finite diagrams, and exact sequences. 1.1 Desired results In the category of abelian groups, diagram chasing arguments are usually used either to establish a property (such as surjectivity) of a certain morphism, or to construct a new morphism between known objects.
    [Show full text]
  • The Left and Right Homotopy Relations We Recall That a Coproduct of Two
    The left and right homotopy relations We recall that a coproduct of two objects A and B in a category C is an object A q B together with two maps in1 : A → A q B and in2 : B → A q B such that, for every pair of maps f : A → C and g : B → C, there exists a unique map f + g : A q B → C 0 such that f = (f + g) ◦ in1 and g = (f + g) ◦ in2. If both A q B and A q B 0 0 0 are coproducts of A and B, then the maps in1 + in2 : A q B → A q B and 0 in1 + in2 : A q B → A q B are isomorphisms and each others inverses. The map ∇ = id + id: A q A → A is called the fold map. Dually, a product of two objects A and B in a category C is an object A × B together with two maps pr1 : A × B → A and pr2 : A × B → B such that, for every pair of maps f : C → A and g : C → B, there exists a unique map (f, g): C → A × B 0 such that f = pr1 ◦(f, g) and g = pr2 ◦(f, g). If both A × B and A × B 0 are products of A and B, then the maps (pr1, pr2): A × B → A × B and 0 0 0 (pr1, pr2): A × B → A × B are isomorphisms and each others inverses. The map ∆ = (id, id): A → A × A is called the diagonal map. Definition Let C be a model category, and let f : A → B and g : A → B be two maps.
    [Show full text]
  • Limits Commutative Algebra May 11 2020 1. Direct Limits Definition 1
    Limits Commutative Algebra May 11 2020 1. Direct Limits Definition 1: A directed set I is a set with a partial order ≤ such that for every i; j 2 I there is k 2 I such that i ≤ k and j ≤ k. Let R be a ring. A directed system of R-modules indexed by I is a collection of R modules fMi j i 2 Ig with a R module homomorphisms µi;j : Mi ! Mj for each pair i; j 2 I where i ≤ j, such that (i) for any i 2 I, µi;i = IdMi and (ii) for any i ≤ j ≤ k in I, µi;j ◦ µj;k = µi;k. We shall denote a directed system by a tuple (Mi; µi;j). The direct limit of a directed system is defined using a universal property. It exists and is unique up to a unique isomorphism. Theorem 2 (Direct limits). Let fMi j i 2 Ig be a directed system of R modules then there exists an R module M with the following properties: (i) There are R module homomorphisms µi : Mi ! M for each i 2 I, satisfying µi = µj ◦ µi;j whenever i < j. (ii) If there is an R module N such that there are R module homomorphisms νi : Mi ! N for each i and νi = νj ◦µi;j whenever i < j; then there exists a unique R module homomorphism ν : M ! N, such that νi = ν ◦ µi. The module M is unique in the sense that if there is any other R module M 0 satisfying properties (i) and (ii) then there is a unique R module isomorphism µ0 : M ! M 0.
    [Show full text]
  • Diagram Chasing in Abelian Categories
    Diagram Chasing in Abelian Categories Toni Annala Contents 1 Overview 2 2 Abelian Categories 3 2.1 Denition and basic properties . .3 2.2 Subobjects and quotient objects . .6 2.3 The image and inverse image functors . 11 2.4 Exact sequences and diagram chasing . 16 1 Chapter 1 Overview This is a short note, intended only for personal use, where I x diagram chasing in general abelian categories. I didn't want to take the Freyd-Mitchell embedding theorem for granted, and I didn't like the style of the Freyd's book on the topic. Therefore I had to do something else. As this was intended only for personal use, and as I decided to include this to the application quite late, I haven't touched anything in chapter 2. Some vague references to Freyd's book are made in the passing, they mean the book Abelian Categories by Peter Freyd. How diagram chasing is xed then? The main idea is to chase subobjects instead of elements. The sections 2.1 and 2.2 contain many standard statements about abelian categories, proved perhaps in a nonstandard way. In section 2.3 we dene the image and inverse image functors, which let us transfer subobjects via a morphism of objects. The most important theorem in this section is probably 2.3.11, which states that for a subobject U of X, and a morphism f : X ! Y , we have ff −1U = U \ imf. Some other results are useful as well, for example 2.3.2, which says that the image functor associated to a monic morphism is injective.
    [Show full text]
  • Math 395: Category Theory Northwestern University, Lecture Notes
    Math 395: Category Theory Northwestern University, Lecture Notes Written by Santiago Can˜ez These are lecture notes for an undergraduate seminar covering Category Theory, taught by the author at Northwestern University. The book we roughly follow is “Category Theory in Context” by Emily Riehl. These notes outline the specific approach we’re taking in terms the order in which topics are presented and what from the book we actually emphasize. We also include things we look at in class which aren’t in the book, but otherwise various standard definitions and examples are left to the book. Watch out for typos! Comments and suggestions are welcome. Contents Introduction to Categories 1 Special Morphisms, Products 3 Coproducts, Opposite Categories 7 Functors, Fullness and Faithfulness 9 Coproduct Examples, Concreteness 12 Natural Isomorphisms, Representability 14 More Representable Examples 17 Equivalences between Categories 19 Yoneda Lemma, Functors as Objects 21 Equalizers and Coequalizers 25 Some Functor Properties, An Equivalence Example 28 Segal’s Category, Coequalizer Examples 29 Limits and Colimits 29 More on Limits/Colimits 29 More Limit/Colimit Examples 30 Continuous Functors, Adjoints 30 Limits as Equalizers, Sheaves 30 Fun with Squares, Pullback Examples 30 More Adjoint Examples 30 Stone-Cech 30 Group and Monoid Objects 30 Monads 30 Algebras 30 Ultrafilters 30 Introduction to Categories Category theory provides a framework through which we can relate a construction/fact in one area of mathematics to a construction/fact in another. The goal is an ultimate form of abstraction, where we can truly single out what about a given problem is specific to that problem, and what is a reflection of a more general phenomenom which appears elsewhere.
    [Show full text]
  • Homotopy Commutative Diagrams and Their Realizations *
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Journal of Pure and Applied Algebra 57 (1989) 5-24 5 North-Holland HOMOTOPY COMMUTATIVE DIAGRAMS AND THEIR REALIZATIONS * W.G. DWYER Department of Mathematics, University of Notre Dame, Notre Dame, IN465.56, U.S.A D.M. KAN Department of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139, U.S.A. J.H. SMITH Department of Mathematics, Johns Hopkins University, Baltimore, MD21218, lJ.S.A Communicated by J.D. Stasheff Received 11 September 1986 Revised 21 September 1987 In this paper we describe an obstruction theory for the problem of taking a commutative diagram in the homotopy category of topological spaces and lifting it to an actual commutative diagram of spaces. This directly generalizes the work of G. Cooke on extending a homotopy action of a group G to a topological action of G. 1. Introduction 1.1. Summary. In [2], Cooke asked when a homotopy action of a group G on a CW-complex X is equivalent, in an appropriate sense, to a topological action of G on some homotopically equivalent space. He converted this problem into a lifting problem, which then gave rise to a sequence of obstructions, whose vanishing insured the existence of the desired topological action. These obstructions were ele- ments of the cohomology of G with local coefficients in the homotopy groups of the function space Xx. As a group is just a category with one object in which all maps are invertible, one can consider the corresponding problem for homotopy actions of an arbitrary small topological category D on a set {X,} of CW-complexes, indexed by the objects DE D.
    [Show full text]
  • 14. Limits One of the More Interesting Notions of Category Theory, Is the Theory of Limits
    14. Limits One of the more interesting notions of category theory, is the theory of limits. Definition 14.1. Let I be a category and let F : I −! C be a func- tor. A prelimit for F is an object L of C, together with morphisms fI : L −! F (I), for every object I of I, which are compatible in the fol- lowing sense: Given a morphism f : I −! J in I, the following diagram commutes f L I- F (I) F (f) - fJ ? F (J): The limit of F , denoted L = lim F is a prelimit L, which is uni- I versal amongst all prelimits in the following sense: Given any prelimit L0 there is a unique morphism g : L0 −! L, such that for every object I in I, the following diagram commutes g L0 - L fI f 0 - I ? F (I): Informally, then, if we think of a prelimit as being to the left of every object F (I), then the limit is the furthest prelimit to the right. Note that limits, if they exist at all, are unique, up to unique isomorphism, by the standard argument. Note also that there is a dual notion, the notion of colimits. In this case, F is a contravariant functor and all the arrows go the other way (informally, then, a prelimit is to the right of every object F (I) and a limit is any prelimit which is furthest to the left). Let us look at some special cases. First suppose we take for I the category with one object and one morphism.
    [Show full text]
  • Commutative Diagrams Easy to Design, Parse and Tweak
    CoDiCommutative Diagrams for TEX enchiridion 1.0.1 11th June 2020 CoDi is a TikZ library. Its aim is making commutative diagrams easy to design, parse and tweak. 2 Preliminaries Preliminaries TikZ is the only dependency of CoDi. This ensures compatibility with most1 TEX avours. Furthermore, it can be invoked both as a standalone and as a TikZ library. Below are minimal working examples for the main dialects. TEX package ConTEXt module LATEX package \DOCUMENTCLASS{ARTICLE} \INPUT \USEMODULE \USEPACKAGE {COMMUTATIVE-DIAGRAMS} [COMMUTATIVE-DIAGRAMS] {COMMUTATIVE-DIAGRAMS} \STARTTEXT \BEGIN{DOCUMENT} \CODI \STARTCODI \BEGIN{CODI} % DIAGRAM HERE % DIAGRAM HERE % DIAGRAM HERE \ENDCODI \STOPCODI \END{CODI} \BYE \STOPTEXT \END{DOCUMENT} TEX(TikZ library) ConTEXt (TikZ library) LATEX(TikZ library) \DOCUMENTCLASS{ARTICLE} \INPUT{TIKZ} \USEMODULE[TIKZ] \USEPACKAGE{TIKZ} \USETIKZLIBRARY \USETIKZLIBRARY \USETIKZLIBRARY [COMMUTATIVE-DIAGRAMS] [COMMUTATIVE-DIAGRAMS] {COMMUTATIVE-DIAGRAMS} \STARTTEXT \BEGIN{DOCUMENT} \TIKZPICTURE[CODI] \STARTTIKZPICTURE[CODI] \BEGIN{TIKZPICTURE}[CODI] % DIAGRAM HERE % DIAGRAM HERE % DIAGRAM HERE \ENDTIKZPICTURE \STOPTIKZPICTURE \END{TIKZPICTURE} \BYE \STOPTEXT \END{DOCUMENT} A useful TikZ feature exclusive to LATEX is externalization. It is an \DOCUMENTCLASS{ARTICLE} eective way to boost processing times by (re)compiling gures \USEPACKAGE as external les only when strictly necessary. {COMMUTATIVE-DIAGRAMS} % OR, EQUIVALENTLY : %\USEPACKAGE{TIKZ} A small expedient is necessary to use it with CoDi: diagrams %\USETIKZLIBRARY must be wrapped in TIKZPICTURE environments endowed with %{COMMUTATIVE-DIAGRAMS} the /tikz/codi key. \USETIKZLIBRARY{EXTERNAL} \TIKZEXTERNALIZE On the side is an example saving the pictures in the ./tikzpics/ [PREFIX=TIKZPICS/] folder to keep things tidy. \BEGIN{DOCUMENT} \BEGIN{TIKZPICTURE}[CODI] ) % DIAGRAM HERE \END{TIKZPICTURE} Basic knowledge of TikZ is assumed. A plethora of excellent re- \END{DOCUMENT} sources exist, so no crash course on the matter will be improvised here.
    [Show full text]
  • FINITE CATEGORIES with PUSHOUTS 1. Introduction
    Theory and Applications of Categories, Vol. 30, No. 30, 2015, pp. 1017{1031. FINITE CATEGORIES WITH PUSHOUTS D. TAMBARA Abstract. Let C be a finite category. For an object X of C one has the hom-functor Hom(−;X) of C to Set. If G is a subgroup of Aut(X), one has the quotient functor Hom(−;X)=G. We show that any finite product of hom-functors of C is a sum of hom- functors if and only if C has pushouts and coequalizers and that any finite product of hom-functors of C is a sum of functors of the form Hom(−;X)=G if and only if C has pushouts. These are variations of the fact that a finite category has products if and only if it has coproducts. 1. Introduction It is well-known that in a partially ordered set the infimum of an arbitrary subset exists if and only if the supremum of an arbitrary subset exists. A categorical generalization of this is also known. When a partially ordered set is viewed as a category, infimum and supremum are respectively product and coproduct, which are instances of limits and colimits. A general theorem states that a category has small limits if and only if it has small colimits under certain smallness conditions ([Freyd and Scedrov, 1.837]). We seek an equivalence of this sort for finite categories. As finite categories having products are just partially ordered sets, we ought to replace the existence of product by some weaker condition. Let C be a category. For an object X of C, hX denotes the hom-functor Hom(−;X) of C to the category Set.
    [Show full text]
  • WHEN IS ∏ ISOMORPHIC to ⊕ Introduction Let C Be a Category
    WHEN IS Q ISOMORPHIC TO L MIODRAG CRISTIAN IOVANOV Abstract. For a category C we investigate the problem of when the coproduct L and the product functor Q from CI to C are isomorphic for a fixed set I, or, equivalently, when the two functors are Frobenius functors. We show that for an Ab category C this happens if and only if the set I is finite (and even in a much general case, if there is a morphism in C that is invertible with respect to addition). However we show that L and Q are always isomorphic on a suitable subcategory of CI which is isomorphic to CI but is not a full subcategory. If C is only a preadditive category then we give an example to see that the two functors can be isomorphic for infinite sets I. For the module category case we provide a different proof to display an interesting connection to the notion of Frobenius corings. Introduction Let C be a category and denote by ∆ the diagonal functor from C to CI taking any object I X to the family (X)i∈I ∈ C . Recall that C is an Ab category if for any two objects X, Y of C the set Hom(X, Y ) is endowed with an abelian group structure that is compatible with the composition. We shall say that a category is an AMon category if the set Hom(X, Y ) is (only) an abelian monoid for every objects X, Y . Following [McL], in an Ab category if the product of any two objects exists then the coproduct of any two objects exists and they are isomorphic.
    [Show full text]
  • Basic Category Theory
    Basic Category Theory TOMLEINSTER University of Edinburgh arXiv:1612.09375v1 [math.CT] 30 Dec 2016 First published as Basic Category Theory, Cambridge Studies in Advanced Mathematics, Vol. 143, Cambridge University Press, Cambridge, 2014. ISBN 978-1-107-04424-1 (hardback). Information on this title: http://www.cambridge.org/9781107044241 c Tom Leinster 2014 This arXiv version is published under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International licence (CC BY-NC-SA 4.0). Licence information: https://creativecommons.org/licenses/by-nc-sa/4.0 c Tom Leinster 2014, 2016 Preface to the arXiv version This book was first published by Cambridge University Press in 2014, and is now being published on the arXiv by mutual agreement. CUP has consistently supported the mathematical community by allowing authors to make free ver- sions of their books available online. Readers may, in turn, wish to support CUP by buying the printed version, available at http://www.cambridge.org/ 9781107044241. This electronic version is not only free; it is also freely editable. For in- stance, if you would like to teach a course using this book but some of the examples are unsuitable for your class, you can remove them or add your own. Similarly, if there is notation that you dislike, you can easily change it; or if you want to reformat the text for reading on a particular device, that is easy too. In legal terms, this text is released under the Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International licence (CC BY-NC-SA 4.0). The licence terms are available at the Creative Commons website, https:// creativecommons.org/licenses/by-nc-sa/4.0.
    [Show full text]
  • Category Theory and Diagrammatic Reasoning 30Th January 2019 Last Updated: 30Th January 2019
    Category theory and diagrammatic reasoning 30th January 2019 Last updated: 30th January 2019 1 Categories, functors and diagrams It is a common opinion that sets are the most basic mathematical objects. The intuition of a set is a collection of elements with no additional structure. When the set is finite, especially when it has a small number of elements, then we can describe it simply by listing its elements one by one. With infinite sets, we usually give some algorithmic procedure which generates all the elements, but this rarely completes the description: that only happens when the set is \freely generated" in some sense. Example 1. The set N of natural numbers is freely generated by the procedure: • add one element, 0, to the empty set; • at every step, if x is the last element you added, add an element Sx. It is more common that a set X is presented by first giving a set X0 of terms that denote elements of X, and which is freely generated; and then by giving an equivalence relation on X0 which tells us when two terms of X0 should be considered equal as elements of X. This is sometimes called a setoid. We can present the equivalence relation on X0 as a set X1, together with two functions s X1 X0. (1) t You should think of an element f 2 X1 as a \witness of the fact that s(f) is equal to t(f) in X". To transform this into an equivalence relation on X0, we take the relation x ∼ y if and only if there exists f 2 X1 such that s(f) = x and t(f) = y and then close it under the reflexive, symmetric, and transitive properties.
    [Show full text]