Category Theory is the study of abstractions of composition, otherwise known as Categories.
Understanding What Categories Are
Set Theory Composition
In order to understand what Categories (abstractions of composition) are, we first need to understand how Composition works in Set Theory. Note that set theory composition is a particular Category.
Composition
The act of combining the application of multiple Functions into one function.
Age is a function that maps People to Integers
GreaterThan18 is a function that maps Integers to Booleans
GreaterThan18 ∘ Age is the Composition of the above functions that maps People to Booleans
It is equivalent to applying Age, then applying GreaterThan18
It can be thought of as: GreaterThan18 follows Age
GreaterThan18 ∘ Age = Age(GreaterThan18(…))
id is the Identity Morphism, which is depicted above to map People to People
It exists for all sets, but is omitted for the others
In category theory, we study objects not by looking inside of them, but by analyzing the arrows betweeen them and other objects; by studying their relationships to other objects in the category. In fact, we cannot look inside the objects, because we have not defined the properties of that object. We only know objects by the arrows they emit and receive. If we were to “look inside” an object, we would have to define it as a specific object, like a set or something, which would lose the generality of the category, which doesn’t neccessarily need to have a set there. The whole point of CT is that it is very generalized.
Imagine a group of people, where arrows between the people indicates A is a friend of B. We cannot look inside the people to see their personality, traits, etc, but we can determine who is most popular just from looking at the arrows.
Isomorphism
Isomorphism
Formal Definition
An Isomorphism is a kind of Morphism between objects in a Category that is Invertible.
Thus, our morphisms are functors
The Objects of a Categories being Categories themselves, is just a special case of Category. Therefore, the same general Formal Definition applies. However, it can also be reexpressed in terms of functors, where A,B are categories, and FAB is a functor.
When there is a notion of size, this invertibility can be thought of as a BijectiveMorphism between a pair of Objects; a relationship where one object can be converted and restored to and from another object.
A rigourous way of saying that a specific Construction is the quintessential way of satisfying a a certain condition, that all other Objects satisfying said condition must obey.