Categories and Computability

Total Page:16

File Type:pdf, Size:1020Kb

Categories and Computability Categories and Computability J.R.B. Cockett ∗ Department of Computer Science, University of Calgary, Calgary, T2N 1N4, Alberta, Canada April 4, 2014 Contents 1 Introduction 3 1.1 Categories and foundations . 3 1.2 Categories and computer science . 4 1.3 Categories and computability . 4 I Basic Categories 6 2 Categories and examples 7 2.1 The definition of a category . 7 2.1.1 Categories as graphs with composition . 7 2.1.2 Categories as partial semigroups . 8 2.1.3 Categories as enriched categories . 9 2.1.4 The opposite category and duality . 9 2.2 Examples of categories . 10 2.2.1 Preorders . 10 2.2.2 Finite categories . 11 2.2.3 Categories enriched in finite sets . 11 2.2.4 Monoids . 13 2.2.5 Path categories . 13 2.2.6 Matrices over a rig . 13 2.2.7 Kleene categories . 14 2.2.8 Sets . 15 2.2.9 Programming languages . 15 2.2.10 Products and sums of categories . 16 2.2.11 Slice categories . 16 ∗Partially supported by NSERC, Canada. 1 3 Elements of category theory 18 3.1 Epics, monics, retractions, and sections . 18 3.2 Functors . 20 3.3 Natural transformations . 23 3.4 Adjoints . 25 3.4.1 The universal property . 25 3.5 Basic properties of adjoints . 28 3.6 Basic limits and colimits . 31 3.6.1 Initial and final objects . 31 3.6.2 Binary products and coproducts . 32 3.6.3 Limits and colimits of diagrams . 36 3.7 Special limits: equalizers and pullbacks . 38 3.8 Completeness and cocompleteness . 41 4 Exercises for part I 44 II Restriction Categories 47 5 Introduction to restriction 48 5.1 Restriction basics . 49 5.2 M-categories . 54 5.3 Joins and meets . 60 5.4 Cartesian restriction categories . 64 6 Turing categories 68 6.1 Examples . 70 6.1.1 The classical recursion category . 70 6.1.2 Variation . 71 6.1.3 Reflexive objects . 71 6.1.4 Classifying categories . 72 6.1.5 Turing categories vs. Kleene categories . 72 6.2 Comparing Turing structures . 73 6.3 Comparing Turing morphisms . 74 6.4 Partial Combinatory Algebras . 78 6.5 Examples of PCAs . 82 7 Recursion categories 84 7.1 Recursiveness . 84 7.2 Finite interleaving . 86 7.3 Undecidability . 87 7.4 The recursion theorem and Rice's theorem . 89 7.5 G¨odelincompleteness . 92 7.6 General interleaving . 94 8 Exercises for Part II 98 2 1 Introduction It is impossible to give a complete view of category theory in a short sequence of lectures such as these and at the same time begin to illustrate an application. It is, therefore, inevitable that I will present a very biased and selective sampling. Since its inception in 1945 (with Eilenberg and Mac Lane's paper [13]) category theory has found use as a fundamental tool in almost all areas of mathematics, it has had a profound effect on logic and philosophy, and it has been seriously applied both in the foundations of physics and, increasingly since the mid 1980's, to the foundations of computer science in programming semantics. The second part of these notes describe another important area of application to computer science: computability. Despite the obvious potential for categorical methods to provide new insights in this area, computability (and complexity) has still not received the level of categorical attention it deserves. This makes it a particularly appropriate target for a series of lectures as there are plenty of opportunities to contribute! 1.1 Categories and foundations Category theory starts with a beguilingly simple notion: a category is just a directed graph with a composition defined on the edges. However, as more structure (mediated by functors, natural transformations, limits, and colimits) is added to this modest beginning, a fundamentally new and powerful mathematical perspective begins to emerge .... the reverberations of which are still working their way through the body of mathematics. Prior to the 1950's work in the foundations of mathematics was almost all reductionist. This approach to foundations originated in Cantor's creation of set theory. It is easy to forget that shortly after its formulation around the turn of the 20th century this foundation was beset by \paradoxes" and was widely criticized. Indeed, it was not until the work of Russell, Whitehead, and Zermelo which established axiomatic set theory, that Cantor's sets were viewed as laying a foundation for mathematics. The antinomies which had plagued the foundations of mathematics had been quite embarrassing, and it was almost, with relief that the Mathematical establishment embraced the solution offered by axiomatic set theory. In 1926, when some mathematicians { following the \intuitionistic" views of Brouwer { continued to question this newly lain foundation, it was hardly surprising that Hilbert, representing the establishment, famously declared: \No one shall expel us from the paradise that Cantor has created for us". Ironically it was only a few years later in 1931 that G¨odel'swork left Hilbert's program in tatters. Brouwer's \intuitionistic" views, although in some sense vindicated, never became mainstream. In fact, the focus in Mathematics had by that time already shifted away from foundational issues toward new and more applied frontiers { analysis, topology, algebraic geometry, number theory, combinatorics, etc. { and to other developments, such as Bourbaki's program to organize and systematize mathematics at a more abstract level. By the 1950's large tracts of new mathematics had been developed and documented. The relationships between these diverse developments had begun to assume an importance which, on the one hand, could not have been foreseen and, on the other, was simply not addressed at all by a reductionist approach to foundation. The development of category theory brought to the table a potent antidote to the reductionist program. Not only did it allow for the expression of relationships between areas of mathematics but also it provided methods to directly encode behavior in terms of admissible transformations. 3 It embodies an approach to mathematics very much in the tradition of Klein's Erlangen Program (involving transformation groups in geometry), and Noether's abstract approach to algebra. Most importantly category theory allowed the systematic discussion of behavior in a manner which avoided the detailed bottom-up development of internal structure. This enabled mathematicians to focus on structural interactions without actually worrying about exactly how the structures might arise. Considering that, famously, it took 360 pages of Principia Mathematica to prove 1 + 1 = 2, this was an immensely important innovation. Mathematical structures had become increasingly sophisticated and a reductionist approach to all structure had become a millstone around the neck of progress. It was simply too much work to connect securely to increasingly distant and irrelevant foundations. 1.2 Categories and computer science In 1987 Andre Scedrov and John Gray arranged a research conference at the University of Boulder (Colorado) entitled \Categories in Computer Science and Logic." If one were to try to pinpoint exactly when category theory became a respectable tool in computer science this meeting (and its aftermath) stands out. John Reynolds, already a prominent computer scientist, and Jean- Yvres Girard, a young French logician, had independently invented the polymorphic λ-calculus. John Reynold had naively suggested a set theoretic semantics and had discovered somewhat to his dismay that not only was his semantics flawed but that he could prove that there could be no such semantics. The fact that one could compute perfectly well with this calculus displayed a serious gap between set theoretic semantics and what was apparently required for computation. Consequently Reynolds had asked both logicians and category theorists where the semantics of such systems lay. It turned out that category theorists already had an answer and part of the meeting was dedicated to an exposition (by Andy Pitts and Edmund Robinson) of that answer. The answer involved topos theory and altogether too many categorical steps for John Reynolds to digest at the meeting itself, however, he undertook to learn category theory and subsequently made substantial use of it in his work. The seeds of a number of other burgeoning interactions between these subjects (logic, category theory, and computer science) were also latent at that meeting. To mention just one: Jean-Yvres Girard was present and gave an exposition of linear logic and its proof theory. Subsequently in the proceedings Robert Seely [28] provided a categorical semantics for this system in Barr's ∗- autonomous categories. This developed into a continuing interaction between categorical proof theory, logic, and computer science which is still central as it has important implications for the semantics of concurrency and more generally in systems in which resources are limited. 1.3 Categories and computability An area in which one might have expected computer science and category theory to have had a potentially significant interaction is right at the foundations of computer science, namely, at computability and complexity theory. Realizability topoi (due to Martin Hyland and Dana Scott) are built on top of a model of computability, and these were instrumental in answering Reynolds question. Thus, already computability issues were indirectly present. In the same year as the Boulder Conference, a very influential paper by Robert Di Paola and Alex Heller on \recursion theory without elements" [12] was published in the Journal of Symbolic Logic. It outlined a 4 categorical approach to computability theory. Their work set in motion a rather different program to understand computability categorically. Di Paola and Heller's paper was based on a categorical formulation of partiality and almost immediately Pino Rosolini and Edmund Robinson [26] pointed out that there was a cleaner foun- dation using what they called P-categories.
Recommended publications
  • Finite Sum – Product Logic
    Theory and Applications of Categories, Vol. 8, No. 5, pp. 63–99. FINITE SUM – PRODUCT LOGIC J.R.B. COCKETT1 AND R.A.G. SEELY2 ABSTRACT. In this paper we describe a deductive system for categories with finite products and coproducts, prove decidability of equality of morphisms via cut elimina- tion, and prove a “Whitman theorem” for the free such categories over arbitrary base categories. This result provides a nice illustration of some basic techniques in categorical proof theory, and also seems to have slipped past unproved in previous work in this field. Furthermore, it suggests a type-theoretic approach to 2–player input–output games. Introduction In the late 1960’s Lambekintroduced the notion of a “deductive system”, by which he meant the presentation of a sequent calculus for a logic as a category, whose objects were formulas of the logic, and whose arrows were (equivalence classes of) sequent deriva- tions. He noticed that “doctrines” of categories corresponded under this construction to certain logics. The classic example of this was cartesian closed categories, which could then be regarded as the “proof theory” for the ∧ – ⇒ fragment of intuitionistic propo- sitional logic. (An excellent account of this may be found in the classic monograph [Lambek–Scott 1986].) Since his original work, many categorical doctrines have been given similar analyses, but it seems one simple case has been overlooked, viz. the doctrine of categories with finite products and coproducts (without any closed structure and with- out any extra assumptions concerning distributivity of the one over the other). We began looking at this case with the thought that it would provide a nice simple introduction to some techniques in categorical proof theory, particularly the idea of rewriting systems modulo equations, which we have found useful in investigating categorical structures with two tensor products (“linearly distributive categories” [Blute et al.
    [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]
  • 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]
  • Chapter 2 of Concrete Abstractions: an Introduction to Computer
    Out of print; full text available for free at http://www.gustavus.edu/+max/concrete-abstractions.html CHAPTER TWO Recursion and Induction 2.1 Recursion We have used Scheme to write procedures that describe how certain computational processes can be carried out. All the procedures we've discussed so far generate processes of a ®xed size. For example, the process generated by the procedure square always does exactly one multiplication no matter how big or how small the number we're squaring is. Similarly, the procedure pinwheel generates a process that will do exactly the same number of stack and turn operations when we use it on a basic block as it will when we use it on a huge quilt that's 128 basic blocks long and 128 basic blocks wide. Furthermore, the size of the procedure (that is, the size of the procedure's text) is a good indicator of the size of the processes it generates: Small procedures generate small processes and large procedures generate large processes. On the other hand, there are procedures of a ®xed size that generate computa- tional processes of varying sizes, depending on the values of their parameters, using a technique called recursion. To illustrate this, the following is a small, ®xed-size procedure for making paper chains that can still make chains of arbitrary lengthÐ it has a parameter n for the desired length. You'll need a bunch of long, thin strips of paper and some way of joining the ends of a strip to make a loop. You can use tape, a stapler, or if you use slitted strips of cardstock that look like this , you can just slip the slits together.
    [Show full text]
  • Product Category Rules
    Product Category Rules PRé’s own Vee Subramanian worked with a team of experts to publish a thought provoking article on product category rules (PCRs) in the International Journal of Life Cycle Assessment in April 2012. The full article can be viewed at http://www.springerlink.com/content/qp4g0x8t71432351/. Here we present the main body of the text that explores the importance of global alignment of programs that manage PCRs. Comparing Product Category Rules from Different Programs: Learned Outcomes Towards Global Alignment Vee Subramanian • Wesley Ingwersen • Connie Hensler • Heather Collie Abstract Purpose Product category rules (PCRs) provide category-specific guidance for estimating and reporting product life cycle environmental impacts, typically in the form of environmental product declarations and product carbon footprints. Lack of global harmonization between PCRs or sector guidance documents has led to the development of duplicate PCRs for same products. Differences in the general requirements (e.g., product category definition, reporting format) and LCA methodology (e.g., system boundaries, inventory analysis, allocation rules, etc.) diminish the comparability of product claims. Methods A comparison template was developed to compare PCRs from different global program operators. The goal was to identify the differences between duplicate PCRs from a broad selection of product categories and propose a path towards alignment. We looked at five different product categories: Milk/dairy (2 PCRs), Horticultural products (3 PCRs), Wood-particle board (2 PCRs), and Laundry detergents (4 PCRs). Results & discussion Disparity between PCRs ranged from broad differences in scope, system boundaries and impacts addressed (e.g. multi-impact vs. carbon footprint only) to specific differences of technical elements.
    [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]
  • An Introduction to Category Theory and Categorical Logic
    An Introduction to Category Theory and Categorical Logic Wolfgang Jeltsch Category theory An Introduction to Category Theory basics Products, coproducts, and and Categorical Logic exponentials Categorical logic Functors and Wolfgang Jeltsch natural transformations Monoidal TTU¨ K¨uberneetika Instituut categories and monoidal functors Monads and Teooriaseminar comonads April 19 and 26, 2012 References An Introduction to Category Theory and Categorical Logic Category theory basics Wolfgang Jeltsch Category theory Products, coproducts, and exponentials basics Products, coproducts, and Categorical logic exponentials Categorical logic Functors and Functors and natural transformations natural transformations Monoidal categories and Monoidal categories and monoidal functors monoidal functors Monads and comonads Monads and comonads References References An Introduction to Category Theory and Categorical Logic Category theory basics Wolfgang Jeltsch Category theory Products, coproducts, and exponentials basics Products, coproducts, and Categorical logic exponentials Categorical logic Functors and Functors and natural transformations natural transformations Monoidal categories and Monoidal categories and monoidal functors monoidal functors Monads and Monads and comonads comonads References References An Introduction to From set theory to universal algebra Category Theory and Categorical Logic Wolfgang Jeltsch I classical set theory (for example, Zermelo{Fraenkel): I sets Category theory basics I functions from sets to sets Products, I composition
    [Show full text]
  • Arxiv:1811.04966V3 [Math.NT]
    Descartes’ rule of signs, Newton polygons, and polynomials over hyperfields Matthew Baker and Oliver Lorscheid Abstract. In this note, we develop a theory of multiplicities of roots for polynomials over hyperfields and use this to provide a unified and conceptual proof of both Descartes’ rule of signs and Newton’s “polygon rule”. Introduction Given a real polynomial p ∈ R[T ], Descartes’ rule of signs provides an upper bound for the number of positive (resp. negative) real roots of p in terms of the signs of the coeffi- cients of p. Specifically, the number of positive real roots of p (counting multiplicities) is bounded above by the number of sign changes in the coefficients of p(T ), and the number of negative roots is bounded above by the number of sign changes in the coefficients of p(−T ). Another classical “rule”, which is less well known to mathematicians in general but is used quite often in number theory, is Newton’s polygon rule. This rule concerns polynomi- als over fields equipped with a valuation, which is a function v : K → R ∪{∞} satisfying • v(a) = ∞ if and only if a = 0 • v(ab) = v(a) + v(b) • v(a + b) > min{v(a),v(b)}, with equality if v(a) 6= v(b) for all a,b ∈ K. An example is the p-adic valuation vp on Q, where p is a prime number, given by the formula vp(s/t) = ordp(s) − ordp(t), where ordp(n) is the maximum power of p dividing a nonzero integer n. Another example is the T -adic valuation v on k(T), for any field k, given by v ( f /g) = arXiv:1811.04966v3 [math.NT] 26 May 2020 T T ordT ( f )−ordT (g), where ordT ( f ) is the maximum power of T dividing a nonzero polyno- mial f ∈ k[T].
    [Show full text]
  • Toy Industry Product Categories
    Definitions Document Toy Industry Product Categories Action Figures Action Figures, Playsets and Accessories Includes licensed and theme figures that have an action-based play pattern. Also includes clothing, vehicles, tools, weapons or play sets to be used with the action figure. Role Play (non-costume) Includes role play accessory items that are both action themed and generically themed. This category does not include dress-up or costume items, which have their own category. Arts and Crafts Chalk, Crayons, Markers Paints and Pencils Includes singles and sets of these items. (e.g., box of crayons, bucket of chalk). Reusable Compounds (e.g., Clay, Dough, Sand, etc.) and Kits Includes any reusable compound, or items that can be manipulated into creating an object. Some examples include dough, sand and clay. Also includes kits that are intended for use with reusable compounds. Design Kits and Supplies – Reusable Includes toys used for designing that have a reusable feature or extra accessories (e.g., extra paper). Examples include Etch-A-Sketch, Aquadoodle, Lite Brite, magnetic design boards, and electronic or digital design units. Includes items created on the toy themselves or toys that connect to a computer or tablet for designing / viewing. Design Kits and Supplies – Single Use Includes items used by a child to create art and sculpture projects. These items are all-inclusive kits and may contain supplies that are needed to create the project (e.g., crayons, paint, yarn). This category includes refills that are sold separately to coincide directly with the kits. Also includes children’s easels and paint-by-number sets.
    [Show full text]
  • Diagrammatics in Categorification and Compositionality
    Diagrammatics in Categorification and Compositionality by Dmitry Vagner Department of Mathematics Duke University Date: Approved: Ezra Miller, Supervisor Lenhard Ng Sayan Mukherjee Paul Bendich Dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the Department of Mathematics in the Graduate School of Duke University 2019 ABSTRACT Diagrammatics in Categorification and Compositionality by Dmitry Vagner Department of Mathematics Duke University Date: Approved: Ezra Miller, Supervisor Lenhard Ng Sayan Mukherjee Paul Bendich An abstract of a dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the Department of Mathematics in the Graduate School of Duke University 2019 Copyright c 2019 by Dmitry Vagner All rights reserved Abstract In the present work, I explore the theme of diagrammatics and their capacity to shed insight on two trends|categorification and compositionality|in and around contemporary category theory. The work begins with an introduction of these meta- phenomena in the context of elementary sets and maps. Towards generalizing their study to more complicated domains, we provide a self-contained treatment|from a pedagogically novel perspective that introduces almost all concepts via diagrammatic language|of the categorical machinery with which we may express the broader no- tions found in the sequel. The work then branches into two seemingly unrelated disciplines: dynamical systems and knot theory. In particular, the former research defines what it means to compose dynamical systems in a manner analogous to how one composes simple maps. The latter work concerns the categorification of the slN link invariant. In particular, we use a virtual filtration to give a more diagrammatic reconstruction of Khovanov-Rozansky homology via a smooth TQFT.
    [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]
  • A Small Complete Category
    Annals of Pure and Applied Logic 40 (1988) 135-165 135 North-Holland A SMALL COMPLETE CATEGORY J.M.E. HYLAND Department of Pure Mathematics and Mathematical Statktics, 16 Mill Lane, Cambridge CB2 ISB, England Communicated by D. van Dalen Received 14 October 1987 0. Introduction This paper is concerned with a remarkable fact. The effective topos contains a small complete subcategory, essentially the familiar category of partial equiv- alence realtions. This is in contrast to the category of sets (indeed to all Grothendieck toposes) where any small complete category is equivalent to a (complete) poset. Note at once that the phrase ‘a small complete subcategory of a topos’ is misleading. It is not the subcategory but the internal (small) category which matters. Indeed for any ordinary subcategory of a topos there may be a number of internal categories with global sections equivalent to the given subcategory. The appropriate notion of subcategory is an indexed (or better fibred) one, see 0.1. Another point that needs attention is the definition of completeness (see 0.2). In my talk at the Church’s Thesis meeting, and in the first draft of this paper, I claimed too strong a form of completeness for the internal category. (The elementary oversight is described in 2.7.) Fortunately during the writing of [13] my collaborators Edmund Robinson and Giuseppe Rosolini noticed the mistake. Again one needs to pay careful attention to the ideas of indexed (or fibred) categories. The idea that small (sufficiently) complete categories in toposes might exist, and would provide the right setting in which to discuss models for strong polymorphism (quantification over types), was suggested to me by Eugenio Moggi.
    [Show full text]