Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance:

Size: px
Start display at page:

Download "Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance:"

Transcription

1 Modèles des langages de programmation Domaines, catégories, jeux Programme de cette seconde séance: Modèle ensembliste du lambda-calcul ; Catégories cartésiennes fermées 1

2 Synopsis 1 the simply-typed λ-calculus, 2 the set-theoretic model of the λ-calculus, 3 categories and functors 4 cartesian categories 5 cartesian closed categories 6 interprétation of the simply-typed λ-calculus in a ccc 2

3 The simply-typed λ-calculus 3

4 The pure λ-calculus Terms M ::= x M N łx. M The β-reduction: (λx.m) N M [x := N] The η-expansion: M λx. (M x) Remark: every term is considered up to renaming α of the bound variables, typically: λx.λy.x α λz.λy.z 4

5 The simply-typed λ-calculus The simple types A, B are constructed by the grammar: A, B ::= α A B. A typing context Γ is a finite sequence Γ = (x 1 : A 1,..., x n : A n ) where each x i is a variable and each A i is a simple type. A sequent is a triple where x 1 : A 1,..., x n : A n P : B x 1 : A 1,..., x n : A n is a typing context, P is a λ-term and B is a simple type. 5

6 The simply-typed λ-calculus Variable Abstraction Application Weakening Contraction Exchange x : A x : A Γ, x : A P : B Γ λx.p : A B Γ P : A B Γ, PQ : B Γ P : B Γ, x : A P : B Q : A Γ, x : A, y : A P : B Γ, z : A P[x, y z] : B Γ, x : A, y : B, P : C Γ, y : B, x : A, P : C 6

7 Subject reduction A λ-term P is simply typed when there exists a sequent Γ P : A which may be obtained by a derivation tree. One establishes that the set of simply typed λ-terms is closed under β-réduction: Subject Reduction: If Γ P : A and P β Q, then Γ Q : A. 7

8 The set-theoretic interpretation of the λ-calculus 8

9 Interprétation ensembliste To each atomic type α is associated a set X α Then, one extends the interpretation to every type: [[α]] = X α [[A B]] = [[B]] [[A]] = Set ([[A]], [[B]]) A sequent x 1 : A 1,..., x n : A n M : B is interpreted as a function [[A 1 ]] [[A n ]] [[B]] 9

10 Soundness theorem Theorem. The interpretation provides an invariant of λ-terms modulo β and η. if Γ (λx.m) : A B and N : A, then [[Γ, (λx.m)n : B]] = [[Γ, M[x := N] : B]] if Γ M : A B then [[Γ (λx.mx) : A B]] = [[Γ M : A B]] 10

11 Categories and functors 11

12 Categories A category C is given by [0] a class of objects [1] a set Hom(A, B) of morphisms f : A B for every pair of objects (A, B) [2] a composition law : Hom(B, C) Hom(A, B) Hom(A, C) [2] an identity morphism for every object A, id A : A A 12

13 Categories satisfying the following properties: [3] the composition law is associative: f Hom(A, B) g Hom(B, C) h Hom(C, D) f (g h) = ( f g) h [3] the morphisms id are neutral elements f Hom(A, B) f id A = f = id B f 13

14 Examples 1. the category Set of sets and functions 2. the category Ord of partial orders and monotone functions 3. the category Dom of domains and continuous functions 4. the category Coh of coherence spaces and linear maps 5. every partial order 6. every monoid 14

15 Opposite category The opposite of a category C is the category noted C op whose morphisms f : A B are defined as the morphisms f : B A of the original category C. 15

16 Product category The product A B of two categories is the category A B whose objects are the pairs (A, B) of objects of A and B, whose morphisms (A, B) (A, B ) are the pairs of morphisms f : A A g : B B 16

17 Product category with composition and identities defined as expected: (A, B) id (A,B) (A, B) = (A, B) (id A,id B ) (A, B) (A, B) ( f,g) (A, B ) ( f,g ) (A, B ) = (A, B) ( f f,g g) (A, B ) 17

18 Functors A functor between categories is defined as the following data: F : C D [0] an object FA of D for every object A of C, [1] a function F A,B : Hom C (A, B) Hom D (FA, FB) for every pair of objects (A, B) of the category C. 18

19 Functors One requires moreover [2] that F preserves composition FA F f FB Fg FC = FA F(g f ) FC [2] that F preserves the identities FA Fid A FA = FA id FA FA 19

20 Illustration [ orders ] Every ordered set (X, ) defines a category [X, ] whose objects are the elements of X whose hom-sets are defined as { Hom(x, y) = { } if x y otherwise In this category, there exists at most one map between two objects 20

21 Illustration [ orders ] Exercise: given two ordered sets (X, ) (Y, ) a functor F : [X, ] [Y, ] is the same thing as a monotonic function F : (X, ) (Y, ) between the underlying ordered sets. 21

22 Illustration [ monoids ] A monoid (M,, e) is a set M equipped with a binary operation : M M M and a neutral element e : { } M satisfying the two properties below: Associativity law x, y, z M, (x y) z = x (y z) Unit law x M, x e = x = e x. 22

23 Illustration [ monoids ] Key observation: between there is a one-to-one relationship (M,, e) Σ (M,, e) monoids categories with one object obtained by defining Σ(M,, e) as the category with unique hom-set Σ(M,, e) (, ) = M and composition law and unit defined as g f = g f id = e 23

24 Illustration [ monoids ] Key observation: given two monoids (M,, e) (N,, u) a functor F : Σ (M,, e) Σ (N,, u) is the same thing as a homomorphism f : (M,, e) (N,, u) between the underlying monoids. Recall that a homomorphism is a function f such that x, y M, f (x y) = f (x) f (y) f (e) = u 24

25 Transformations A transformation θ : F G between two functors F, G : A B is a family of morphisms (θ A : FA GA) A Obj(A) of the category B indexed by the objects of the category A. 25

26 Natural transformations A transformation θ : F G : A B is natural when the diagram F f FA FB θ A θ B GA G f GB commutes for every morphism f : A B. 26

27 Isomorphism In a category C, a morphism f : A B is called an isomorphism when there exists a morphism satisfying g : B A g f = id A et f g = id B. Exercise. Show that g f : A C is an isomorphism when f : A B and g : B C are isomorphisms. Exercise. Show that every functor F : C D transports an isomorphism of C into an isomorphism of D. 27

28 Bifunctors A bifunctor F from C and D to E is given by: a functor F(A, ) : D E for every object A of the category C a functor F(, B) : C E for every object B of the category D such that the diagram F(A, B) F(A,g) F(A, B ) F( f,b) F( f,b ) F(A, B) F(A,g) F(A, B ) commutes for all morphisms f : A A in C and g : B B in D. 28

29 Cartesian categories 29

30 Products The product of two objects A and B in a category C is an object A B equipped with two morphisms π 1 : A B A π 2 : A B B such that for every diagram X f π 1 A B A g there exists a unique morphism h : X A B making the diagram X h f π 2 π 1 A B B A commute. g π 2 B 30

31 Illustrations 1. The cartesian product in the category Set, 2. The lub a b of two elements a and b in an ordered set (X, ), 3. The cartesian product in the category Dom, 31

32 Terminal object An object 1 is terminal in a category C when Hom(A, 1) is a singleton for all objects A. One may consider 1 as the nullary product in C. Example 1. the singleton { } in the categories Set and Dom, Example 2. the maximum of an ordered set (X, ) 32

33 Cartesian category A cartesian category is a category C equipped with a product A B for all pairs A, B of objects, and of a terminal object 1 33

34 Cartesian categories In every cartesian category, one finds weakening maps ɛ A : A 1, diagonal maps δ A : A A A obtained as id A A A δ A A A π 1 id A π 2 A symmetry maps γ A,B : A B B A obtained as π 2 B A B γ A,B B A π 1 π 1 π 2 A Exercise: Show that ( ) defines a bifunctor C C C. 34

35 Cartesian closed categories First definition 35

36 Ccc A cartesian closed category is a cartesian category (C,, 1) together with the following data for all objects A and B: of an object A B of a morphism eval A,B : A (A B) B such that for every object X and morphism f : A X B there exists a unique morphism h : X A B making the diagram A (A B) eval A,B B commute. A h A X f 36

37 Cartesian closed category Second definition 37

38 Adjunction An adjunction is a triple consisting of two functors and a family of bijections L : A B R : B A φ A,B : Hom B (LA, B) Hom A (A, RB) natural in A and B, for all pairs of objects A, B of A and B. LA B B A A RB φ A,B One writes L R and one says that L is left adjoint to R. 38

39 Example: the free vector space Set L R Vect where A = Set : the category of sets and functions B = Vect : the category of vector spaces on a field k R : the «forgetful» functor V U(V) L : the «free vector space» functor X kx kx := { x X λ x x λ x k null almost everywhere. } 39

40 Illustration: the free monoid Set L R Mon where A = Set : the category of sets and functions B = Mon : the category of monoids and homomorphisms, R : the «forgetful» functor M U(M). L : the «free monoid» functor A A. A := n N A n 40

41 What does natural bijection φ exactly mean? By φ natural, one means that the two families of sets Hom B (LA, B) Hom A (A, RB) define functors Hom B (L, ) : A op B Set Hom A (, R ) : A op B Set and that the family of bijections φ defines a natural transformation φ : Hom B (L, ) Hom A (, R ) : A op B Set between them. 41

42 What does natural bijection φ exactly mean? Natural in A and B thus means that every commutative diagram LA g B Lh A h B LA is transformed into a commutative diagram f B A φ A,B (g) RB h A A φ A,B ( f ) RB Rh B 42

43 Cartesian exponentiation Consider an object A in a cartesian category(c,, 1). A cartesian exponentiation of A is a pair consisting of a functor (A ) : C C and of a family of bijections φ A,B,C : Hom(A B, C) Hom(B, A C) natural in B and C. In other words, it is an adjunction between the functors A A 43

44 What natural bijection means in that case Naturality in B and C means that the family of bijections φ A,B,C : Hom(A B, C) Hom(B, A C) transforms every commutative diagram A B g C A h B A B into a commutative diagram f C h C B φ A,B,C (g) A C h B B φ A,B,C ( f ) A h C A C 44

45 Cartesian closed category Definition. A cartesian closed category (ccc) is a cartesian category (C,, 1) equipped with a cartesian exponentation A B C B A C for every object A of the category. φ A,B,C 45

46 Parameter theorem We have seen that the cartesian product defines a bifoncteur A, B A B : C C C in every cartesian category. In the same way, Parameter theorem [MacLane] The family of cartesian exponentiations (A ) A : C C defines a unique bifunctor A, B A B : C op C C such that the bijections φ A,B,C are natural in A, B, C. 46

47 Parameter theorem Here, natural in A, B, C means that the family of bijections (φ A,B,C ) A,B,C : Hom(A B, C) Hom(B, A C) transforms every commutative diagram A B g C h A h B A B in a commutative diagram: f C h C B φ A,B,C (g) A C h B B φ A,B,C ( f ) h A h C A C 47

48 Interpretation of the simply-typed λ-calculus in a CCC 48

49 The simply-typed λ-calculus The simple types A, B are constructed by the grammar: A, B ::= α A B. A typing context Γ is a finite sequence Γ = (x 1 : A 1,..., x n : A n ) where each x i is a variable and each A i is a simple type. A sequent is a triple where x 1 : A 1,..., x n : A n P : B x 1 : A 1,..., x n : A n is a typing context, P is a λ-term and B is a simple type. 49

50 The simply-typed λ-calculus Variable Abstraction Application Weakening Contraction Exchange x : A x : A Γ, x : A P : B Γ λx.p : A B Γ P : A B Γ, PQ : B Γ P : B Γ, x : A P : B Q : A Γ, x : A, y : A P : B Γ, z : A P[x, y z] : B Γ, x : A, y : B, P : C Γ, y : B, x : A, P : C 50

51 Interpretation of the λ-calculus Step 1. We suppose given a function ξ : α ξ(α) which associates an object ξ(α) to every type variable α. Step 2. Every type A is then interpreted as an object [[A]] of the cartesian closed category by structural induction: [[α]] = ξ(α) [[A B]] = [[A]] [[B]] [[A B]] = [[A]] [[B]] 51

52 Interpretation of the λ-calculus Step 3. Every sequent x 1 : A 1,..., x n : A n t : B is interpreted as a morphism [[t]] : [[A 1 ]] [[A n ]] [[B]] by structural induction on the derivation tree which produced it. 52

53 The logical rules Variable: [[A]] id [[A]] [[A]] Lambda: A Γ f B becomes Γ φ A,Γ,B ( f ) A B Application: Γ f A and g A B become Γ f g A (A B) eval A,B B 53

54 The structural rules Contraction: A A Γ f B becomes A Γ δ A Γ A A Γ f B Weakening: Γ f B becomes A Γ ε A Γ 1 Γ Γ f B Permutation: Γ A B becomes Γ B A Γ γ A,B Γ A B f B f B 54

55 Soundness theorem Theorem. In every cartesian closed category C, the interpretation [[ ]] is an invariant modulo β, η. If Γ (λx.m) : A B and N : A, then [[Γ, (λx.m)n : B]] = [[Γ, M[x := N] : B]] If Γ M : A B then [[Γ (λx.mx) : A B]] = [[Γ M : A B]] Exercise. Establish the soundness theorem. 55

1 Categorical Background

1 Categorical Background 1 Categorical Background 1.1 Categories and Functors Definition 1.1.1 A category C is given by a class of objects, often denoted by ob C, and for any two objects A, B of C a proper set of morphisms C(A,

More information

Quantum groupoids and logical dualities

Quantum groupoids and logical dualities Quantum groupoids and logical dualities (work in progress) Paul-André Melliès CNS, Université Paris Denis Diderot Categories, ogic and Foundations of Physics ondon 14 May 2008 1 Proof-knots Aim: formulate

More information

Category Theory (UMV/TK/07)

Category Theory (UMV/TK/07) P. J. Šafárik University, Faculty of Science, Košice Project 2005/NP1-051 11230100466 Basic information Extent: 2 hrs lecture/1 hrs seminar per week. Assessment: Written tests during the semester, written

More information

Enriched Categories. Stephen Fitz

Enriched Categories. Stephen Fitz Enriched Categories Stephen Fitz Abstract I will introduce some of the basic concepts of Enriched Category Theory with examples of enriched categories. Contents 1 Enriched Categories 2 1.1 Introduction..............................

More information

Project: Construction of the Fundamental Group

Project: Construction of the Fundamental Group Project: Construction of the Fundamental Group Renzo s math 472 This worksheet is designed to lead you to define and discover our first functor: the fundamental group. 1 Definitions First of all, let us

More information

1 Categories, Functors, and Natural Transformations. Discrete categories. A category is discrete when every arrow is an identity.

1 Categories, Functors, and Natural Transformations. Discrete categories. A category is discrete when every arrow is an identity. MacLane: Categories or Working Mathematician 1 Categories, Functors, and Natural Transormations 1.1 Axioms or Categories 1.2 Categories Discrete categories. A category is discrete when every arrow is an

More information

PART I. Abstract algebraic categories

PART I. Abstract algebraic categories PART I Abstract algebraic categories It should be observed first that the whole concept of category is essentially an auxiliary one; our basic concepts are those of a functor and a natural transformation.

More information

A Taste of Categorical Logic Tutorial Notes

A Taste of Categorical Logic Tutorial Notes A Taste of Categorical Logic Tutorial Notes Lars Birkedal birkedal@cs.au.dk) Aleš Bizjak abizjak@cs.au.dk) October 12, 2014 Contents 1 Introduction 2 2 Higher-order predicate logic 2 3 A first set-theoretic

More information

Categories and functors

Categories and functors Lecture 1 Categories and functors Definition 1.1 A category A consists of a collection ob(a) (whose elements are called the objects of A) for each A, B ob(a), a collection A(A, B) (whose elements are called

More information

Algebras. Larry Moss Indiana University, Bloomington. TACL 13 Summer School, Vanderbilt University

Algebras. Larry Moss Indiana University, Bloomington. TACL 13 Summer School, Vanderbilt University 1/39 Algebras Larry Moss Indiana University, Bloomington TACL 13 Summer School, Vanderbilt University 2/39 Binary trees Let T be the set which starts out as,,,, 2/39 Let T be the set which starts out as,,,,

More information

Adjunctions! Everywhere!

Adjunctions! Everywhere! Adjunctions! Everywhere! Carnegie Mellon University Thursday 19 th September 2013 Clive Newstead Abstract What do free groups, existential quantifiers and Stone-Čech compactifications all have in common?

More information

Category Theory. Categories. Definition.

Category Theory. Categories. Definition. Category Theory Category theory is a general mathematical theory of structures, systems of structures and relationships between systems of structures. It provides a unifying and economic mathematical modeling

More information

3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection

3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection 3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection is called the objects of C and is denoted Obj(C). Given

More information

INTRODUCTION TO CATEGORY THEORY FOR FUNCTIONAL PROGRAMMING

INTRODUCTION TO CATEGORY THEORY FOR FUNCTIONAL PROGRAMMING INTRODUCTION TO CATEGORY THEORY FOR FUNCTIONAL PROGRAMMING Andrew R. Plummer Department of Linguistics The Ohio State University 14 Oct, 2009 OUTLINE 1 INTRODUCTION TO CATEGORIES 2 FUNCTORS AND FUNCTOR

More information

CATEGORICAL GROTHENDIECK RINGS AND PICARD GROUPS. Contents. 1. The ring K(R) and the group Pic(R)

CATEGORICAL GROTHENDIECK RINGS AND PICARD GROUPS. Contents. 1. The ring K(R) and the group Pic(R) CATEGORICAL GROTHENDIECK RINGS AND PICARD GROUPS J. P. MAY Contents 1. The ring K(R) and the group Pic(R) 1 2. Symmetric monoidal categories, K(C), and Pic(C) 2 3. The unit endomorphism ring R(C ) 5 4.

More information

Cartesian closed 2-categories and rewriting

Cartesian closed 2-categories and rewriting Cartesian closed 2-categories and rewriting Aurore Alcolei A brief presentation of Tom Hirschowitz s paper, Cartesian closed 2-categories and permutation equivalence in higher-order rewriting June 7, 2014

More information

9 Direct products, direct sums, and free abelian groups

9 Direct products, direct sums, and free abelian groups 9 Direct products, direct sums, and free abelian groups 9.1 Definition. A direct product of a family of groups {G i } i I is a group i I G i defined as follows. As a set i I G i is the cartesian product

More information

Theories With Duality DRAFT VERSION ONLY

Theories With Duality DRAFT VERSION ONLY Theories With Duality DRAFT VERSION ONLY John C. Baez Department of athematics, University of California Riverside, CA 9252 USA Paul-André elliès Laboratoire PPS Université Paris 7 - Denis Diderot Case

More information

MacLane s coherence theorem expressed as a word problem

MacLane s coherence theorem expressed as a word problem MacLane s coherence theorem expressed as a word problem Paul-André Melliès Preuves, Programmes, Systèmes CNRS UMR-7126, Université Paris 7 ÑÐÐ ÔÔ ºÙ ÙºÖ DRAFT In this draft, we reduce the coherence theorem

More information

Complete Partial Orders, PCF, and Control

Complete Partial Orders, PCF, and Control Complete Partial Orders, PCF, and Control Andrew R. Plummer TIE Report Draft January 2010 Abstract We develop the theory of directed complete partial orders and complete partial orders. We review the syntax

More information

Adjoints, naturality, exactness, small Yoneda lemma. 1. Hom(X, ) is left exact

Adjoints, naturality, exactness, small Yoneda lemma. 1. Hom(X, ) is left exact (April 8, 2010) Adjoints, naturality, exactness, small Yoneda lemma Paul Garrett garrett@math.umn.edu http://www.math.umn.edu/ garrett/ The best way to understand or remember left-exactness or right-exactness

More information

Lecture 15: Duality. Next we spell out the answer to Exercise It is part of the definition of a TQFT.

Lecture 15: Duality. Next we spell out the answer to Exercise It is part of the definition of a TQFT. Lecture 15: Duality We ended the last lecture by introducing one of the main characters in the remainder of the course, a topological quantum field theory (TQFT). At this point we should, of course, elaborate

More information

A brief Introduction to Category Theory

A brief Introduction to Category Theory A brief Introduction to Category Theory Dirk Hofmann CIDMA, Department of Mathematics, University of Aveiro, 3810-193 Aveiro, Portugal Office: 11.3.10, dirk@ua.pt, http://sweet.ua.pt/dirk/ October 9, 2017

More information

Category Theory. Course by Dr. Arthur Hughes, Typset by Cathal Ormond

Category Theory. Course by Dr. Arthur Hughes, Typset by Cathal Ormond Category Theory Course by Dr. Arthur Hughes, 2010 Typset by Cathal Ormond Contents 1 Types, Composition and Identities 3 1.1 Programs..................................... 3 1.2 Functional Laws.................................

More information

FUNCTORS AND ADJUNCTIONS. 1. Functors

FUNCTORS AND ADJUNCTIONS. 1. Functors FUNCTORS AND ADJUNCTIONS Abstract. Graphs, quivers, natural transformations, adjunctions, Galois connections, Galois theory. 1.1. Graph maps. 1. Functors 1.1.1. Quivers. Quivers generalize directed graphs,

More information

A Taste of Categorical Logic Tutorial Notes

A Taste of Categorical Logic Tutorial Notes A Taste of Categorical Logic Tutorial Notes Lars Birkedal (birkedal@cs.au.dk) Aleš Bizjak (abizjak@cs.au.dk) July 10, 2017 Contents 1 Introduction 2 2 Higher-order predicate logic 2 3 A first set-theoretic

More information

From Categories with Families to Locally Cartesian Closed Categories. Pierre Clairambault June 12, 2006

From Categories with Families to Locally Cartesian Closed Categories. Pierre Clairambault June 12, 2006 From Categories with Families to Locally Cartesian Closed Categories Pierre Clairambault June 12, 2006 1 Contents 1 Introduction 3 2 Mathematical preliminaries 3 2.1 Basic categorical elements...................................

More information

Elements of Category Theory

Elements of Category Theory Elements of Category Theory Robin Cockett Department of Computer Science University of Calgary Alberta, Canada robin@cpsc.ucalgary.ca Estonia, Feb. 2010 Functors and natural transformations Adjoints and

More information

Review of category theory

Review of category theory Review of category theory Proseminar on stable homotopy theory, University of Pittsburgh Friday 17 th January 2014 Friday 24 th January 2014 Clive Newstead Abstract This talk will be a review of the fundamentals

More information

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

CATEGORY THEORY. Cats have been around for 70 years. Eilenberg + Mac Lane =. Cats are about building bridges between different parts of maths. CATEGORY THEORY PROFESSOR PETER JOHNSTONE Cats have been around for 70 years. Eilenberg + Mac Lane =. Cats are about building bridges between different parts of maths. Definition 1.1. A category C consists

More information

A completeness theorem for symmetric product phase spaces

A completeness theorem for symmetric product phase spaces A completeness theorem for symmetric product phase spaces Thomas Ehrhard Fédération de Recherche des Unités de Mathématiques de Marseille CNRS FR 2291 Institut de Mathématiques de Luminy CNRS UPR 9016

More information

A categorical model for a quantum circuit description language

A categorical model for a quantum circuit description language A categorical model for a quantum circuit description language Francisco Rios (joint work with Peter Selinger) Department of Mathematics and Statistics Dalhousie University CT July 16th 22th, 2017 What

More information

Cartesian Closed Topological Categories and Tensor Products

Cartesian Closed Topological Categories and Tensor Products Cartesian Closed Topological Categories and Tensor Products Gavin J. Seal October 21, 2003 Abstract The projective tensor product in a category of topological R-modules (where R is a topological ring)

More information

A quoi ressemblerait une géométrie du raisonnement?

A quoi ressemblerait une géométrie du raisonnement? Journée de la Fédération Charles Hermite A quoi ressemblerait une géométrie du raisonnement? Paul-André Melliès CNRS & Université Paris Diderot LORIA Nancy Mardi 14 octobre 2013 La prose du monde «La parole

More information

Assume the left square is a pushout. Then the right square is a pushout if and only if the big rectangle is.

Assume the left square is a pushout. Then the right square is a pushout if and only if the big rectangle is. COMMUTATIVE ALGERA LECTURE 2: MORE CATEGORY THEORY VIVEK SHENDE Last time we learned about Yoneda s lemma, and various universal constructions initial and final objects, products and coproducts (which

More information

SM CATEGORIES AND THEIR REPRESENTATIONS

SM CATEGORIES AND THEIR REPRESENTATIONS SM CATEGORIES AND THEIR REPRESENTATIONS Abstract. Lectures at the TQFT seminar, Jerusalem, Fall 5770 1. Introduction A monoidal category C is a category with a bifunctor : C C C endowed with an associativity

More information

Categories, Proofs and Programs

Categories, Proofs and Programs Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories

More information

Category Theory. Travis Dirle. December 12, 2017

Category Theory. Travis Dirle. December 12, 2017 Category Theory 2 Category Theory Travis Dirle December 12, 2017 2 Contents 1 Categories 1 2 Construction on Categories 7 3 Universals and Limits 11 4 Adjoints 23 5 Limits 31 6 Generators and Projectives

More information

1 Cartesian bicategories

1 Cartesian bicategories 1 Cartesian bicategories We now expand the scope of application of system Beta, by generalizing the notion of (discrete) cartesian bicategory 1. Here we give just a fragment of the theory, with a more

More information

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

sset(x, Y ) n = sset(x [n], Y ). 1. Symmetric monoidal categories and enriched categories In practice, categories come in nature with more structure than just sets of morphisms. This extra structure is central to all of category theory,

More information

Recall: a mapping f : A B C (where A, B, C are R-modules) is called R-bilinear if f is R-linear in each coordinate, i.e.,

Recall: a mapping f : A B C (where A, B, C are R-modules) is called R-bilinear if f is R-linear in each coordinate, i.e., 23 Hom and We will do homological algebra over a fixed commutative ring R. There are several good reasons to take a commutative ring: Left R-modules are the same as right R-modules. [In general a right

More information

COMMUTATIVE ALGEBRA LECTURE 1: SOME CATEGORY THEORY

COMMUTATIVE ALGEBRA LECTURE 1: SOME CATEGORY THEORY COMMUTATIVE ALGEBRA LECTURE 1: SOME CATEGORY THEORY VIVEK SHENDE A ring is a set R with two binary operations, an addition + and a multiplication. Always there should be an identity 0 for addition, an

More information

A Linear/Producer/Consumer model of Classical Linear Logic

A Linear/Producer/Consumer model of Classical Linear Logic A Linear/Producer/Consumer model of Classical Linear Logic Jennifer Paykin Steve Zdancewic February 14, 2014 Abstract This paper defines a new proof- and category-theoretic framework for classical linear

More information

Direct Limits. Mathematics 683, Fall 2013

Direct Limits. Mathematics 683, Fall 2013 Direct Limits Mathematics 683, Fall 2013 In this note we define direct limits and prove their basic properties. This notion is important in various places in algebra. In particular, in algebraic geometry

More information

NON-SYMMETRIC -AUTONOMOUS CATEGORIES

NON-SYMMETRIC -AUTONOMOUS CATEGORIES NON-SYMMETRIC -AUTONOMOUS CATEGORIES MICHAEL BARR 1. Introduction In [Barr, 1979] (hereafter known as SCAT) the theory of -autonomous categories is outlined. Basically such a category is a symmetric monoidal

More information

arxiv: v2 [math.ra] 14 Sep 2016

arxiv: v2 [math.ra] 14 Sep 2016 ON THE NEGATIVE-ONE SHIFT FUNCTOR FOR FI-MODULES arxiv:1603.07974v2 [math.ra] 14 Sep 2016 WEE LIANG GAN Abstract. We show that the negative-one shift functor S 1 on the category of FI-modules is a left

More information

A Grothendieck site is a small category C equipped with a Grothendieck topology T. A Grothendieck topology T consists of a collection of subfunctors

A Grothendieck site is a small category C equipped with a Grothendieck topology T. A Grothendieck topology T consists of a collection of subfunctors Contents 5 Grothendieck topologies 1 6 Exactness properties 10 7 Geometric morphisms 17 8 Points and Boolean localization 22 5 Grothendieck topologies A Grothendieck site is a small category C equipped

More information

Categories, Functors, Natural Transformations

Categories, Functors, Natural Transformations Some Definitions Everyone Should Know John C. Baez, July 6, 2004 A topological quantum field theory is a symmetric monoidal functor Z: ncob Vect. To know what this means, we need some definitions from

More information

IndCoh Seminar: Ind-coherent sheaves I

IndCoh Seminar: Ind-coherent sheaves I IndCoh Seminar: Ind-coherent sheaves I Justin Campbell March 11, 2016 1 Finiteness conditions 1.1 Fix a cocomplete category C (as usual category means -category ). This section contains a discussion of

More information

ENTROPIC HOPF ALGEBRAS AND MODELS OF NON-COMMUTATIVE LOGIC

ENTROPIC HOPF ALGEBRAS AND MODELS OF NON-COMMUTATIVE LOGIC Theory and Applications of Categories, Vol. 10, No. 17, 2002, pp. 424 460. ENTROPIC HOPF ALGEBRAS AND MODELS OF NON-COMMUTATIVE LOGIC RICHARD F. BLUTE, FRANÇOIS LAMARCHE, PAUL RUET ABSTRACT. We give a

More information

Serre A -functors. Oleksandr Manzyuk. joint work with Volodymyr Lyubashenko. math.ct/ Notation. 1. Preliminaries on A -categories

Serre A -functors. Oleksandr Manzyuk. joint work with Volodymyr Lyubashenko. math.ct/ Notation. 1. Preliminaries on A -categories Serre A -functors Oleksandr Manzyuk joint work with Volodymyr Lyubashenko math.ct/0701165 0. Notation 1. Preliminaries on A -categories 2. Serre functors 3. Serre A -functors 0. Notation k denotes a (ground)

More information

arxiv: v1 [math.ct] 7 Feb 2011

arxiv: v1 [math.ct] 7 Feb 2011 Chapter 1 Introduction to Categories and Categorical Logic Samson Abramsky and Nikos Tzevelekos arxiv:1102.1313v1 [math.ct] 7 Feb 2011 Oxford University Computing Laboratory Wolfson Building, Parks Road,

More information

Monads and More: Part 4

Monads and More: Part 4 Monads and More: Part 4 Tarmo Uustalu, Institute of Cybernetics, Tallinn University of Nottingham, 14 18 May 2007 University of Udine, 2 6 July 2007 Comonads Comonads are the dual of monads. A comonad

More information

Quantizations and classical non-commutative non-associative algebras

Quantizations and classical non-commutative non-associative algebras Journal of Generalized Lie Theory and Applications Vol. (008), No., 35 44 Quantizations and classical non-commutative non-associative algebras Hilja Lisa HURU and Valentin LYCHAGIN Department of Mathematics,

More information

Universal Algebra and Diagrammatic Reasoning

Universal Algebra and Diagrammatic Reasoning Universal Algebra and Diagrammatic Reasoning John Baez Geometry of Computation 2006 January 30 - Feburary 3 = figures by Aaron D. Lauda available online at http://math.ucr.edu/home/baez/universal/ 1 Universal

More information

Parameterizations and Fixed-Point Operators on Control Categories

Parameterizations and Fixed-Point Operators on Control Categories Parameterizations and Fixed-Point Operators on Control Categories oshihiko Kakutani 1 and Masahito Hasegawa 12 1 Research Institute for Mathematical Sciences, Kyoto University {kakutani,hassei}@kurims.kyoto-u.ac.jp

More information

Algebraic Geometry

Algebraic Geometry MIT OpenCourseWare http://ocw.mit.edu 18.726 Algebraic Geometry Spring 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.726: Algebraic Geometry

More information

1 Introduction. 2 Categories. Mitchell Faulk June 22, 2014 Equivalence of Categories for Affine Varieties

1 Introduction. 2 Categories. Mitchell Faulk June 22, 2014 Equivalence of Categories for Affine Varieties Mitchell Faulk June 22, 2014 Equivalence of Categories for Affine Varieties 1 Introduction Recall from last time that every affine algebraic variety V A n determines a unique finitely generated, reduced

More information

The Universal Coefficient Theorem

The Universal Coefficient Theorem The Universal Coefficient Theorem Renzo s math 571 The Universal Coefficient Theorem relates homology and cohomology. It describes the k-th cohomology group with coefficients in a(n abelian) group G in

More information

Mathematical Synthesis of Equational Deduction Systems. Marcelo Fiore. Computer Laboratory University of Cambridge

Mathematical Synthesis of Equational Deduction Systems. Marcelo Fiore. Computer Laboratory University of Cambridge Mathematical Synthesis of Equational Deduction Systems Marcelo Fiore Computer Laboratory University of Cambridge TLCA 2009 3.VII.2009 Context concrete theories meta-theories Context concrete theories meta-theories

More information

M, N ::= x λp : A.M MN (M, N) () c A. x : b p x : b

M, N ::= x λp : A.M MN (M, N) () c A. x : b p x : b A PATTERN-MATCHING CALCULUS FOR -AUTONOMOUS CATEGORIES ABSTRACT. This article sums up the details of a linear λ-calculus that can be used as an internal language of -autonomous categories. The coherent

More information

Discrete Random Variables Over Domains

Discrete Random Variables Over Domains Theoretical Computer Sceince, to appear Discrete Random Variables Over Domains Michael Mislove 1 Department of Mathematics Tulane University New Orleans, LA 70118 Abstract In this paper we initiate the

More information

Category Theory for Linear Logicians

Category Theory for Linear Logicians Category Theory for Linear Logicians Richard Blute Philip Scott September 10, 2003 Abstract This paper presents an introduction to category theory with an emphasis on those aspects relevant to the analysis

More information

Categories and Quantum Informatics

Categories and Quantum Informatics Categories and Quantum Informatics Week 6: Frobenius structures Chris Heunen 1 / 41 Overview Frobenius structure: interacting co/monoid, self-duality Normal forms: coherence theorem Frobenius law: coherence

More information

DEFINITIONS: OPERADS, ALGEBRAS AND MODULES. Let S be a symmetric monoidal category with product and unit object κ.

DEFINITIONS: OPERADS, ALGEBRAS AND MODULES. Let S be a symmetric monoidal category with product and unit object κ. DEFINITIONS: OPERADS, ALGEBRAS AND MODULES J. P. MAY Let S be a symmetric monoidal category with product and unit object κ. Definition 1. An operad C in S consists of objects C (j), j 0, a unit map η :

More information

Analysis and Construction of Logical Systems: A Category-Theoretic Approach

Analysis and Construction of Logical Systems: A Category-Theoretic Approach University of Warsaw Faculty of Mathematics, Informatics and Mechanics Micha l R. Przyby lek Analysis and Construction of Logical Systems: A Category-Theoretic Approach PhD dissertation Supervisor prof.

More information

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

Topos Theory. Lectures 21 and 22: Classifying toposes. Olivia Caramello. Topos Theory. Olivia Caramello. The notion of classifying topos Lectures 21 and 22: toposes of 2 / 30 Toposes as mathematical universes of Recall that every Grothendieck topos E is an elementary topos. Thus, given the fact that arbitrary colimits exist in E, we can

More information

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

Thus we get. ρj. Nρj i = δ D(i),j. 1.51. The distinguished invertible object. Let C be a finite tensor category with classes of simple objects labeled by a set I. Since duals to projective objects are projective, we can define a map D :

More information

Categorical Aspects of Galois Theory

Categorical Aspects of Galois Theory Department of Mathematics and Statistics University of Calgary Foundational Methods in Computer Science, 2014 Outline 1 Motivation Classical Galois Theory for Fields 2 Definition Examples 3 Some Field

More information

Endomorphism Semialgebras in Categorical Quantum Mechanics

Endomorphism Semialgebras in Categorical Quantum Mechanics Endomorphism Semialgebras in Categorical Quantum Mechanics Kevin Dunne University of Strathclyde November 2016 Symmetric Monoidal Categories Definition A strict symmetric monoidal category (A,, I ) consists

More information

MTH 428/528. Introduction to Topology II. Elements of Algebraic Topology. Bernard Badzioch

MTH 428/528. Introduction to Topology II. Elements of Algebraic Topology. Bernard Badzioch MTH 428/528 Introduction to Topology II Elements of Algebraic Topology Bernard Badzioch 2016.12.12 Contents 1. Some Motivation.......................................................... 3 2. Categories

More information

The tensor product of commutative monoids

The tensor product of commutative monoids The tensor product of commutative monoids We work throughout in the category Cmd of commutative monoids. In other words, all the monoids we meet are commutative, and consequently we say monoid in place

More information

Cellularity, composition, and morphisms of algebraic weak factorization systems

Cellularity, composition, and morphisms of algebraic weak factorization systems Cellularity, composition, and morphisms of algebraic weak factorization systems Emily Riehl University of Chicago http://www.math.uchicago.edu/~eriehl 19 July, 2011 International Category Theory Conference

More information

OPERAD BIMODULE CHARACTERIZATION OF ENRICHMENT. V2

OPERAD BIMODULE CHARACTERIZATION OF ENRICHMENT. V2 OPERAD BIMODULE CHARACTERIZATION OF ENRICHMENT. 2 STEFAN FORCEY 1. Idea In a recent talk at CT06 http://faculty.tnstate.edu/sforcey/ct06.htm and in a research proposal at http://faculty.tnstate.edu/sforcey/class_home/research.htm

More information

C2.7: CATEGORY THEORY

C2.7: CATEGORY THEORY C2.7: CATEGORY THEORY PAVEL SAFRONOV WITH MINOR UPDATES 2019 BY FRANCES KIRWAN Contents Introduction 2 Literature 3 1. Basic definitions 3 1.1. Categories 3 1.2. Set-theoretic issues 4 1.3. Functors 5

More information

Lectures on Homological Algebra. Weizhe Zheng

Lectures on Homological Algebra. Weizhe Zheng Lectures on Homological Algebra Weizhe Zheng Morningside Center of Mathematics Academy of Mathematics and Systems Science, Chinese Academy of Sciences Beijing 100190, China University of the Chinese Academy

More information

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

University of Oxford, Michaelis November 16, Categorical Semantics and Topos Theory Homotopy type theor Categorical Semantics and Topos Theory Homotopy type theory Seminar University of Oxford, Michaelis 2011 November 16, 2011 References Johnstone, P.T.: Sketches of an Elephant. A Topos-Theory Compendium.

More information

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

Representation of monoids in the category of monoid acts. 1. Introduction and preliminaries Quasigroups and Related Systems 25 (2017), 251 259 Representation of monoids in the category of monoid acts Abolghasem Karimi Feizabadi, Hamid Rasouli and Mahdieh Haddadi To Bernhard Banaschewski on his

More information

Category Theory. Steve Awodey. Carnegie Mellon University

Category Theory. Steve Awodey. Carnegie Mellon University Category Theory Steve Awodey Carnegie Mellon University in memoriam Saunders Mac Lane Preface Why write a new textbook on Category Theory, when we already have Mac Lane s Categories for the Working Mathematician?

More information

Boolean Algebras, Boolean Rings and Stone s Representation Theorem

Boolean Algebras, Boolean Rings and Stone s Representation Theorem Boolean Algebras, Boolean Rings and Stone s Representation Theorem Hongtaek Jung December 27, 2017 Abstract This is a part of a supplementary note for a Logic and Set Theory course. The main goal is to

More information

Dual Adjunctions Between Algebras and Coalgebras

Dual Adjunctions Between Algebras and Coalgebras Dual Adjunctions Between Algebras and Coalgebras Hans E. Porst Department of Mathematics University of Bremen, 28359 Bremen, Germany porst@math.uni-bremen.de Abstract It is shown that the dual algebra

More information

The category of open simply-typed lambda terms

The category of open simply-typed lambda terms The category of open simply-typed lambda terms Daniel Murfet based on joint work with William Troiani o Reminder on category theory Every adjunction gives rise to a monad C F / G D C(Fx,y) = D(x, Gy) C(FGx,x)

More information

MATH 101B: ALGEBRA II PART A: HOMOLOGICAL ALGEBRA 23

MATH 101B: ALGEBRA II PART A: HOMOLOGICAL ALGEBRA 23 MATH 101B: ALGEBRA II PART A: HOMOLOGICAL ALGEBRA 23 6.4. Homotopy uniqueness of projective resolutions. Here I proved that the projective resolution of any R-module (or any object of an abelian category

More information

Category Theory 1 Categories and functors

Category Theory 1 Categories and functors Category Theory 1 Categories and functors This is to accompany the reading of 1 7 October and the lecture of 8 October. mistakes and obscurities to T.Leinster@maths.gla.ac.uk. Please report Some questions

More information

Universal Properties

Universal Properties A categorical look at undergraduate algebra and topology Julia Goedecke Newnham College 24 February 2017, Archimedeans Julia Goedecke (Newnham) 24/02/2017 1 / 30 1 Maths is Abstraction : more abstraction

More information

What is a Model for a Semantically Linear λ-calculus?

What is a Model for a Semantically Linear λ-calculus? What is a Model for a Semantically Linear λ-calculus? Marco Gaboardi Dipartimento di Scienze dell Informazione Università degli Studi di Bologna IRIA Focus team gaboardi@cs.unibo.it Mauro Piccolo Dipartimento

More information

Locally cartesian closed categories

Locally cartesian closed categories Locally cartesian closed categories Clive Newstead 80-814 Categorical Logic, Carnegie Mellon University Wednesday 1st March 2017 Abstract Cartesian closed categories provide a natural setting for the interpretation

More information

OMEGA-CATEGORIES AND CHAIN COMPLEXES. 1. Introduction. Homology, Homotopy and Applications, vol.6(1), 2004, pp RICHARD STEINER

OMEGA-CATEGORIES AND CHAIN COMPLEXES. 1. Introduction. Homology, Homotopy and Applications, vol.6(1), 2004, pp RICHARD STEINER Homology, Homotopy and Applications, vol.6(1), 2004, pp.175 200 OMEGA-CATEGORIES AND CHAIN COMPLEXES RICHARD STEINER (communicated by Ronald Brown) Abstract There are several ways to construct omega-categories

More information

Interpreting the Second-Order Lambda Calculus using Qualitative Domains

Interpreting the Second-Order Lambda Calculus using Qualitative Domains Department of Mathematics Bachelor Thesis Interpreting the Second-Order Lambda Calculus using Qualitative Domains Author: Anton Golov Supervisor: Dr. Jaap van Oosten September 2014-July 2015 Contents 1

More information

TENSOR-TRIANGULATED CATEGORIES AND DUALITIES

TENSOR-TRIANGULATED CATEGORIES AND DUALITIES Theory and Applications of Categories, Vol. 22, No. 6, 2009, pp. 136 198. TENSOR-TRIANGULATED CATEGORIES AND DUALITIES BAPTISTE CALMÈS AND JENS HORNBOSTEL Abstract. In a triangulated closed symmetric monoidal

More information

The dual homomorphism to f : A B is the homomorphism f : Hom(A, G) Hom(B, G)

The dual homomorphism to f : A B is the homomorphism f : Hom(A, G) Hom(B, G) Hom(A, G) = {h : A G h homomorphism } Hom(A, G) is a group under function addition. The dual homomorphism to f : A B is the homomorphism f : Hom(A, G) Hom(B, G) defined by f (ψ) = ψ f : A B G That is the

More information

1. Introduction and preliminaries

1. Introduction and preliminaries Quasigroups and Related Systems 23 (2015), 283 295 The categories of actions of a dcpo-monoid on directed complete posets Mojgan Mahmoudi and Halimeh Moghbeli-Damaneh Abstract. In this paper, some categorical

More information

Conceptual Connections of Circularity and Category Theory

Conceptual Connections of Circularity and Category Theory 1/64 Conceptual Connections of Circularity and Category Theory Larry Moss Indiana University, Bloomington ESSLLI 2012, Opole 2/64 The conceptual comparison chart Filling out the details is my goal for

More information

Brief notes on category theory

Brief notes on category theory Brief notes on category theory Prakash Panangaden 28 th May 2012 Abstract These are brief informal notes based on lectures I gave at McGill. There is nothing original about them. 1 Basic definitions A

More information

arxiv:math/ v1 [math.qa] 3 Jun 2002

arxiv:math/ v1 [math.qa] 3 Jun 2002 What is Stochastic Independence? arxiv:math/0206017v1 [math.qa] 3 Jun 2002 Uwe Franz Institut für Mathematik und Informatik Ernst-Moritz-Arndt-Universität Greifswald Friedrich-Ludwig-Jahn-Str. 15 a D-17487

More information

Categories and Functors (Lecture Notes for Midlands Graduate School, 2013) Uday S. Reddy The University of Birmingham

Categories and Functors (Lecture Notes for Midlands Graduate School, 2013) Uday S. Reddy The University of Birmingham Categories and Functors (Lecture Notes for Midlands Graduate School, 2013) Uday S. Reddy The University of Birmingham April 7, 2013 2 Contents 1 Categories 5 1.1 Categories with and without elements.......................

More information

NOTES ON ATIYAH S TQFT S

NOTES ON ATIYAH S TQFT S NOTES ON ATIYAH S TQFT S J.P. MAY As an example of categorification, I presented Atiyah s axioms [1] for a topological quantum field theory (TQFT) to undergraduates in the University of Chicago s summer

More information

Introduction to Chiral Algebras

Introduction to Chiral Algebras Introduction to Chiral Algebras Nick Rozenblyum Our goal will be to prove the fact that the algebra End(V ac) is commutative. The proof itself will be very easy - a version of the Eckmann Hilton argument

More information

Math Homotopy Theory Spring 2013 Homework 13 Solutions

Math Homotopy Theory Spring 2013 Homework 13 Solutions Math 527 - Homotopy Theory Spring 2013 Homework 13 Solutions Definition. A space weakly equivalent to a product of Eilenberg-MacLane spaces is called a generalized Eilenberg-MacLane space, or GEM for short.

More information

EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY

EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY 1. Categories 1.1. Generalities. I ve tried to be as consistent as possible. In particular, throughout the text below, categories will be denoted by capital

More information