Categories are constructs that contain the following data:
- A collection of objects, (like a set but a collection of all sets also contains the set of all sets)
- For any two objects , a collection of morphisms from to . This is denoted by: , , .
- For each object , a morphism that maps to itself.
- A binary operation called composition that can join morphisms together such that
The properties should be satisfied for this to be considered a category:
- Left Unit Law: ,
- Right Unit Law: ,
- Associative Law:
Sets Category
The category of sets, denoted by is the category such that:
- An object is a set
- Given two sets is the set of all functions from to
- is the identity function on the set
- Composition operation is just function compositions
Additonal Steps
To prove set is a category, final step is to show that the left/right unit laws and the associative law holds.