Skip to content

Commit a180c19

Browse files
change document class to scrbook
1 parent 8ca1072 commit a180c19

File tree

7 files changed

+33
-28
lines changed

7 files changed

+33
-28
lines changed

tex/CT4P.tex

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\documentclass[a4paper,10pt]{scrartcl}
1+
\documentclass[a4paper,11pt, oneside,titlepage=false]{scrbook}
22
\usepackage[utf8]{inputenc}
33

44
\usepackage{tikz-cd}
@@ -284,9 +284,9 @@
284284
\newpage
285285

286286

287-
\section{Introduction}
288-
287+
\chapter{Introduction}
289288

289+
\section{About Category Theory}
290290
\emph{Category theory} is a mathematical area of endeavour and language developed to reconcile and unify mathematical phenomena from different disciplines.
291291
It was developed from the 1940s on, in particular by Samuel Eilenberg and Saunders Mac Lane.
292292
Category theory studies objects by studying the way they interact with other objects of the same kind.
@@ -300,7 +300,7 @@ \section{Introduction}
300300
We also study infinite datatypes (see \cref{sec:coinductive}).
301301

302302

303-
\subsection{Learning Material on Category Theory}
303+
\section{Learning Material on Category Theory}
304304
\label{sec:material}
305305

306306

@@ -317,16 +317,19 @@ \subsection{Learning Material on Category Theory}
317317
\item The rather substantial textbook by Barr and Wells \cite{barr-wells} (available for free online) covers a lot more than we are going to discuss in these notes.
318318

319319
\item The Catsters \cite{catsters} provide a lecture series on category theory on YouTube.
320+
321+
\item A list of resources on category theory is maintained at \url{https://www.logicmatters.net/categories/}.
320322
\end{itemize}
321323

322324
Throughout these notes, pointers to further sources, such as textbooks and research articles, are given.
323325

324-
\subsection{Notations}
326+
\chapter{Brief Summary of Logical Foundations}
325327
\label{sec:notation}
326328

327-
A list of notations which we use throughout these lectures notes.
329+
328330
\begin{itemize}
329331
\item If $X$ is a set and $x$ is an element of $X$, we write $x \in X$.
332+
\item If $X$ and $Y$ are sets
330333
\item If $X$ is a set and $P$ and $Q$ are properties dependent over the elements of $X$, we write $P\implies Q$ to express that if $P(x)$ holds for an element $x\in X$, then also $Q(x)$ should hold for the element $x$. Moreover, we write $P \iff Q$ if $P\implies Q$ and $Q\implies P$.
331334
\item If $X$ is a set and $P$ is a property dependent over the elements of $X$, we write:
332335
\begin{itemize}
@@ -343,7 +346,7 @@ \subsection{Notations}
343346

344347

345348

346-
\section{Categories}
349+
\chapter{Categories}
347350
\label{sec:categories}
348351

349352
\begin{reading*}
@@ -357,7 +360,7 @@ \section{Categories}
357360
\end{reading*}
358361

359362

360-
\subsection{Categories and Examples}
363+
\section{Categories and Examples}
361364

362365
\begin{dfn}\label{dfn:category}
363366
A \textbf{category} $\CC$ consists of the following data:
@@ -798,7 +801,9 @@ \subsection{Categories and Examples}
798801
Define a category $\REL$ of sets and binary relations. Recall that given sets $X$ and $Y$ a binary relation $R$ is a subset of the cartesian product $X \times Y$ of the sets.
799802
\end{exer}
800803

801-
\subsection{Isomorphisms}
804+
\chapter{Special Morphisms in a Category}
805+
806+
\section{Isomorphisms}
802807
\label{sec:isos}
803808

804809
\begin{reading*}
@@ -872,7 +877,7 @@ \subsection{Isomorphisms}
872877
Can you characterize/describe the isomorphisms in $\POS(\NN,\leq)$, $\SKELFINSET$ and $\MAT$?
873878
\end{exer}
874879

875-
\subsection{Sections and Retractions}
880+
\section{Sections and Retractions}
876881
\label{sec:sections}
877882

878883

@@ -902,7 +907,7 @@ \subsection{Sections and Retractions}
902907
\end{exer}
903908

904909

905-
\subsection{Monomorphisms and Epimorphisms}
910+
\section{Monomorphisms and Epimorphisms}
906911
\label{sec:mono-epi}
907912

908913
\begin{reading*}
@@ -1002,7 +1007,7 @@ \subsection{Monomorphisms and Epimorphisms}
10021007
\]
10031008
\end{exer}
10041009

1005-
\section{Universal Properties}\label{sec:universal}
1010+
\chapter{Universal Properties}\label{sec:universal}
10061011

10071012
In category theory, we study objects of a category by studying the ``interactions'' they have with other objects in the category.
10081013
What does this mean?
@@ -1025,7 +1030,7 @@ \section{Universal Properties}\label{sec:universal}
10251030

10261031
\end{reading*}
10271032

1028-
\subsection{Initial Objects}
1033+
\section{Initial Objects}
10291034
\label{sec:initial-objects}
10301035

10311036
We say that an object of a category $\CC$ is \emph{initial} if it has a unique morphism to any object in the category:
@@ -1139,7 +1144,7 @@ \subsection{Initial Objects}
11391144
we will see this in \cref{sec:initial-algs}.
11401145
\end{rem}
11411146

1142-
\subsection{Terminal Objects}
1147+
\section{Terminal Objects}
11431148
\label{sec:terminal-objects}
11441149

11451150

@@ -1206,7 +1211,7 @@ \subsection{Terminal Objects}
12061211
Identify a terminal object in the category $\REL$ and show that it is terminal.
12071212
\end{exer}
12081213

1209-
\subsection{(Binary) Products}
1214+
\section{(Binary) Products}
12101215
\label{sec:products}
12111216

12121217

@@ -1367,7 +1372,7 @@ \subsection{(Binary) Products}
13671372
\end{exer}
13681373

13691374

1370-
\subsection{(Binary) Coproducts}
1375+
\section{(Binary) Coproducts}
13711376
\label{sec:coproducts}
13721377

13731378
\begin{dfn}
@@ -1553,7 +1558,7 @@ \subsection{(Binary) Coproducts}
15531558

15541559

15551560

1556-
\section{Functors}\label{sec:functors}
1561+
\chapter{Functors}\label{sec:functors}
15571562
An important aspect in computer programming is the transformation of data. For example, if you have a data type $X$, then one can consider also the data type $\List(X)$ of lists with values in $X$. If one thinks of the objects in a category to be data types, then we can ask even more. If $f:X\to Y$ is a function (between the data types), then this also induces a function from the $X$-valued lists to the $Y$-valued lists as follows:
15581563
\begin{align}\label{eqn:function_on_list}
15591564
\List(f) : \List(X)&\to \List(Y)
@@ -1798,7 +1803,7 @@ \subsection{Categories as Objects of a Category?}
17981803

17991804

18001805

1801-
\section{Natural Transformations}
1806+
\chapter{Natural Transformations}
18021807
\label{sec:nat-trans}
18031808

18041809
\begin{dfn} Let $F,G: \CC\to\DD$ be functors. A \textbf{natural transformation} $\alpha$ from $F$ to $G$ consists of the following data:
@@ -2000,7 +2005,7 @@ \subsection{Equivalence of Categories}
20002005
\input{data}
20012006

20022007

2003-
\section{Conclusions and Further Reading}
2008+
\chapter{Conclusions and Further Reading}
20042009

20052010
We have given a brief, and necessarily incomplete, introduction to category theory.
20062011
The choice of topics was guided by the applications to programming we considered.

tex/adjunctions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\section{Adjunctions}
1+
\chapter{Adjunctions}
22
\label{sec:adjunctions}
33

44
\begin{dfn} A pair $(F,G)$ of functors $F : \CC\to\DD, G:\DD\to\CC$ is called an \textbf{adjoint pair} if for every objects $X\in\Ob{\CC}$ and $Y\in\Ob{\DD}$, there exists a bijection

tex/contravariant.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\section{Contravariant Functors}
1+
\chapter{Contravariant Functors}
22

33
A variation on functors are \textbf{contravariant functors}.
44
A contravariant functor consists of a map on objects, just like a functor.

tex/data.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
\section{Inductive Datatypes and Initial Algebras}
2+
\chapter{Inductive Datatypes and Initial Algebras}
33
\label{sec:initial-algs}
44

5-
\subsection{Examples}
5+
\section{Examples}
66
\label{sec:examples}
77

88

@@ -110,7 +110,7 @@ \subsection{Examples}
110110
Construct a suitable category $\Cat{L}$ and show that ($\mathsf{NatList}, \nil, \cons$) is initial in that category.
111111
\end{exer}
112112

113-
\subsection{Datatypes as Initial Algebras}
113+
\section{Datatypes as Initial Algebras}
114114
\label{sec:datatypes-as-initial}
115115

116116

@@ -557,7 +557,7 @@ \section{Fusion Property}\label{sec:fusion}
557557
A guide to further literature on recursion operators is given in \cite[\S6]{DBLP:journals/jfp/Hutton99}.
558558
\end{reading*}
559559

560-
\section{Terminal Coalgebras and Coinductive Datatypes}\label{sec:coinductive}
560+
\chapter{Terminal Coalgebras and Coinductive Datatypes}\label{sec:coinductive}
561561

562562

563563
\begin{reading*}

tex/forget-free.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
\section{Forgetful and Free Functors}
2+
\chapter{Forgetful and Free Functors}
33
A lot of (mathematical) structures are defined as some other kind of mathematical structure, but where extra structure is added. An example of this is the following:\\
44
Recall that a monoid is a set $M$ together with a binary operation $m:M\to M\to M$ which is associative and such that there is an identity element $e$ (see \cref{monoidcategory}). In particular, any monoid has an underlying set and any morphism of monoids has an underlying function (between those sets). So forgetting the binary operation and identity element defines a functor from $\MON$ to $\SET$ which is called a \textit{forgetful functor}:
55
\begin{exa}\label{example:forgetful_montoset} The \textbf{forgetful functor from $\MON$ to $\SET$} is the functor specified by the following data:

tex/monads.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
\section{Monads and Effects}
2+
\chapter{Monads and Effects}
33
\label{sec:monads}
44

55
In this section, we study the definition of monads as well as instances of monads useful in functional programming.

tex/solutions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\section{Solutions}
1+
\chapter{Solutions to Selected Exercises}
22
\label{sec:solutions}
33

44
\begin{solution}[\cref{exer:post_antisymmetry}]\label{sol:post_antisymmetry}

0 commit comments

Comments
 (0)