Skip to content

Commit

Permalink
Add section on Functors (#32)
Browse files Browse the repository at this point in the history
* Add section on Functors

* Fix spelling error
  • Loading branch information
MatBon01 authored Apr 6, 2023
1 parent b6348ee commit 550ce45
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions report/background/categorytheory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ \subsection{Categories}
\todo{introduce hom-set}

\subsection{Functors}
\theoremstyle{definition}\newtheorem*{covfunctordef}{Functor}

Similar to the arrows we have within categories, we can transform categories to other categories. This is the notion of a functor.
\begin{covfunctordef}
Given two categories \cat{C} and \cat{D}, a (covariant) functor $\functor{F}: \cat{C} \to \cat{D}$ is two related functions, an \emph{object function} and an \emph{arrow function} (both written as \functor{F}). The object function $\functor{F}: \objs{C} \to \objs{D}$ maps an object $a$ in \cat{C} to $\functorobj{F}{a}$ in \cat{D}. Given an arrow $\morph{f}: \obj{a} \to \obj{b}$ in \cat{C}, the arrow function maps \morph{f} to $\functormorph{F}{f}: \functorobj{F}{a} \to \functorobj{F}{b}$. The functor must obey the following properties: \todo{Should I say the arrow is in the cat or the morphs of the cat}
\begin{itemize}
\item It must preserve the identity morphism, i.e. $\functormorph{F}{\id{a}} = \id{\functorobj{F}{a}}$.
\item It must also preserve composition, i.e. $\functormorph{F}{\left(\morph{g} \circ \morph{f}\right)} = \functormorph{F}{\morph{g}} \circ \functormorph{F}{\morph{f}}$.
\end{itemize}
\end{covfunctordef}

Intuitively, it should be obvious that categories and functors themselves form a category, \commoncatname{Cat}.\\

\subsection{Natural transformations}
\subsection{Adjunctions}
\todo{Describe why adjunctions are such a key character in this paper}
Expand Down
6 changes: 6 additions & 0 deletions report/background/utils.sty
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
\newcommand{\domain}[1]{\ensuremath{\mathrm{dom}\,\morph{#1}}}
\newcommand{\codomain}[1]{\ensuremath{\mathrm{cod}\,\morph{#1}}}
\newcommand{\id}[1]{\ensuremath{\mathrm{id}_{\obj{#1}}}}
\newcommand{\commoncatname}[1]{\ensuremath{\mathrm{#1}}}

% Functor
\newcommand{\functor}[1]{\ensuremath{\mathnormal{#1}}}
\newcommand{\functorobj}[2]{\ensuremath{\functor{#1} \obj{#2}}}
\newcommand{\functormorph}[2]{\ensuremath{\functor{#1} \morph{#2}}}

% Pointed set
\newcommand{\pset}[2]{\ensuremath{\left(#1,\,#2\right)}}
Expand Down

0 comments on commit 550ce45

Please sign in to comment.