Category Theory for Programming

Benedikt Ahrens, Kobe Wullaert
9/2/2022
cs.PLmath.CT

Official code: benediktahrens/CT4P (45 stars, TeX, CC-BY-SA-4.0, last commit 2026-10-05).

Abstract

In these lecture notes, we give a brief introduction to some elements of category theory. The choice of topics is guided by applications to functional programming.

Show full abstract

Firstly, we study initial algebras, which provide a mathematical characterization of datatypes and recursive functions on them. Secondly, we study monads, which give a mathematical framework for effects in functional languages. The notes include many problems and solutions.

View on arXivView PDF

Code Implementations(1)

CC-BY-SA-4.0
4519TeX, AgdaApr 23, 20221 months agoCC-BY-SA-4.0

Similar Papers

Cite this paper

@article{ahrens2022category,
  title  = {Category Theory for Programming},
  author = {Benedikt Ahrens and Kobe Wullaert},
  year   = {2022},
  eprint = {2209.01259},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.01259}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.01259.svg)](https://codeofpaper.com/paper/2209.01259)

Discussion