Category Theory

Category Theory

Lecture 5 L5 46 L108 assessment—heads up L5 47 Exponentials Given !," ∈ Set,let" ! ∈ Set denote the set of all functions from ! to " . " ! = Set(!,") = {# ⊆ ! × " | # is single-valued and total} Aim to characterise " ! category theoretically. L5 48 Exponentials Given !," ∈ Set,let" ! ∈ Set denote the set of all functions from ! to " . Aim to characterise " ! category theoretically. Function application gives a morphism app : " ! × ! → " in Set. app(#,$) = #$ (# ∈ " !,$ ∈ !) so as a set of ordered pairs, app is {((#,$),%)∈(" ! × !)×" |($,%)∈# } L5 48 Exponentials Given !," ∈ Set,let" ! ∈ Set denote the set of all functions from ! to " . Aim to characterise " ! category theoretically. Function application gives a morphism app : " ! × ! → " in Set. Currying operation transforms morphisms # : & × ! → " in Set to morphisms cur # : & → " ! cur # '$ = # (',$)(# ∈ " !,' ∈ &,$ ∈ !) cur #'= {($,%)|((',$),%)∈# } cur # = {(',()|( = {($,%)|((',$),%)∈# }} L5 48 L5 49 For each function # : & × ! → " we get a commutative diagram in Set: app " ! × ! " cur # ×id! # & × ! (cur #',$) cur #'$= # (',$) (',$) L5 50 For each function # : & × ! → " we get a commutative diagram in Set: app " ! × ! " cur # ×id! # & × ! Furthermore, if any function ( : & → " ! also satisfies app " ! × ! " (×id! # & × ! then ( = cur # ,becauseoffunction extensionality... L5 50 Function Extensionality Two functions #,( ∈ " ! are equal if (and only if) ∀$ ∈ !,# $ = ($. This is true of the set-theoretic notion of function, becausethen {($,# $)|$ ∈ ! } = {($,($)|$ ∈ ! } i.e. {($,%)|($,%)∈# } = {($,%)|($,%)∈(} i.e. # = ( (in other words it reduces to the extensionality property of sets: two sets are equal i!they have the same elements). L5 51 Exponential objects Suppose a category C has binary products,thatis,for every pair of C-objects ! and " there is a product ) ) diagram ! ←−1 ! × " −→2 " . Notation: given # ∈ C(!,!() and # ( ∈ C(","(),then # × # ( : ! × " → ! ( × " ( ( stands for )# ◦ )1 ,# ◦ )2+, that is, the unique morphism ( ∈ C(! × ",!( × " () satisfying ( )1 ◦ ( = # ◦ )1 and )2 ◦ ( = # ◦ )2. L5 52 Exponential objects Suppose a category C has binary products. An exponential for C-objects ! and " is specified by object " ! +morphismapp : " ! × ! → " satisfying the universal property for all & ∈ C and # ∈ C(& × !,"),thereisaunique app ( ∈ C(&,"! ) such that " ! × ! " (×id! # commutes in C. & × ! Notation: we write cur # for the unique ( such that app ◦(( × id! ) = # . L5 52 Exponential objects The universal property of app : " ! × ! → " says that there is a bijection C(&,"! ) ! C(& × !,") ( ,→ app ◦(( × id! ) cur # ←! # app ◦(cur # × id! ) = # ( = cur(app ◦(( × id! )) L5 53 Exponential objects The universal property of app : " ! × ! → " says that there is a bijection... It also says that (" ! , app) is a terminal object in the following category: ! objects: (&,#) where # ∈ C(& × !,") ! morphisms ( : (&,#)→(& (,#() are ( ∈ C(&,&() such that ( # ◦ (( × id! ) = # ! composition and identities as in C. So when they exist, exponential objects are unique up to (unique) isomorphism. L5 53 Cartesian closed category Definition. C is a cartesian closed category (ccc)ifitis acategorywithaterminalobject,binaryproductsand exponentials of any pair of objects. This is a key concept for the semantics of lambda calculus and for the foundations of functional programming languages. Notation: an exponential object " ! is o"en wri#en as ! " " L5 54 Cartesian closed category Definition. C is a cartesian closed category (ccc)ifitis acategorywithaterminalobject,binaryproductsand exponentials of any pair of objects. Examples: ! Set is a ccc — as we have seen. ! Preord is a ccc: we already saw that it has a terminal object and binary products; the exponential of (*1, -1) and (*2, -2) is (*1 " *2, -) where *1 " *2 = Preord((*1, -1), (*2, -2)) # - ( ⇔∀$ ∈ *1,#$-2 ($ (check that this is a pre-order and does give an exponential in Preord) L5 54.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    15 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us