What are the best books and lecture notes on category theory?
$\endgroup$426 Answers
$\begingroup$$\endgroup$5$\begingroup$And when you get bored of reading, let the Catsters take over. (78 videos on Category theory!)
$\endgroup$$\begingroup$Lang's Algebra contains a lot of introductory material on categories, which is really nice since it's done with constant motivation from algebra (e.g. coproducts are introduced right before the free product of groups is discussed).
$\endgroup$4$\begingroup$Another book that is more elementary, not requiring any algebraic topology for motivation, and formulating the basics through a question and answer approach is:
An added benefit is that it is written by an expert!
$\endgroup$5$\begingroup$$\endgroup$4$\begingroup$Emily Riehl's recently published book Category theory in context is a fantastic introductory text for those interested in seeing lots of examples of where category theory arises in various mathematical disciplines. Understand the examples from other branches of mathematics requires some mathematical maturity (e.g., a bit of exposure to algebra and topology), but these examples aren't strictly necessary to understand the category theory; even the less advanced reader should have no problem understanding the categorical content of the text. It stresses the importance of representability, an understanding of which is crucial if the reader wants to go on to learn about $ 2 $-categories in the future. It's elegantly written, well-motivated, uses very clear notation, and overall is refreshingly clear in its exposition.
The current version of the text is available at and errata in the published version are being updated. The text is new, so it's not as well-known as other texts, but it's so well-written that it seems very likely that it will soon become a mainstay in the world of category theory texts.
9 July 2017 Edit. Updated the link to the text.
$\endgroup$0$\begingroup$The nLab is a great resource for category theory.
$\endgroup$3$\begingroup$Awodey's new book, while pricey, is a really pleasant read and a good tour of Category Theory from a logician's perspective all the way up to topos theory, with a more up to date view on categories than Mac Lane.
$\endgroup$4$\begingroup$Paolo Aluffi, Algebra: Chapter 0 has category theory woven all through it, particularly in Chapter IX of course. I can tell that randomly sampled pieces of the text are well-written, although I have never systematically read longer parts of it.
$\endgroup$1$\begingroup$The first few chapters of Goldblatt's Topoi: the categorial analysis of logic provide another fairly elementary introduction to the basics of category theory.
$\endgroup$2$\begingroup$I've read a fair amount of Sets for Mathematics and found it to be a gentle introduction.
$\endgroup$$\begingroup$As a young student, I enjoyed Peter Freyd's fun little book on abelian categories (available online as a TAC Reprint). The nice thing about Freyd's book is it isn't boring, and it has little pieces of wisdom (opinion) such as the remark that categories are not really important, you just define them so you can define functors. And in fact you just define functors so you can define natural transformations, the really interesting things.
Of course you may disagree, but blunt debatable assertions (like this one) always make for more interesting reading. Another provocative remark by this author is the observation that he himself seldom learnt math by reading books, but rather by talking to people.
From the nice link above I learned that Goldblatt also quotes a remark (which may have inspired Freyd's) by Eilenberg and Maclane that categories are entirely secondary to functors and natural transformations, on page 194 where he introduces these latter concepts.
$\endgroup$1$\begingroup$Arbib, Arrows, Structures, and Functors: The Categorical Imperative
More elementary than MacLane.
I don't know very much about this, but some stripes of computer scientist have taken an interest in category theory recently, and there are lecture notes floating around with that orientation.
$\endgroup$$\begingroup$Steve Awodey has some lecture notes available online too. (Awodey's newish book is expensive, but probably rather good)
Patrick Schultz's answer, and BBischoff's comment on an earlier answer also have good links to freely available resources.
$\endgroup$$\begingroup$And it's also available on Arxiv.
$\endgroup$1$\begingroup$MATH 4135/5135: Introduction to Category Theory by Peter Selinger (17pp). Concise course outline. Only wish it covered more topics. Available in PS or PDF format.
A Gentle Introduction to Category Theory (the calculational approach) by Maarten M. Fokkinga (80pp).
Barr and Wells, in addition to Toposes, Triples and Theories, have written Category Theory for the Computing Sciences, a comprehensive tome which goes through most of the interesting aspects of category theory with a constant explicit drive to relate everything to computer science whenever possible.
Both books are available online as TAC Reprints.
$\endgroup$$\begingroup$There's also this Category Theory for Programmers by Bartosz Milewski with the companion video lectures
$\endgroup$1$\begingroup$First Chapter of Jacobson's Basic Algebra -II.
$\endgroup$$\begingroup$- Appendix of Abstract-Algebra by Dummit & Foote
- An introduction to Category theory by Harold Simmons
- A course in Homological algebra - Hilton and Stammbach
I'm surprised that this hasn't been mentioned already.
"Category Theory: An Introduction" by Herrlich and Strecker. You can find this book in either the Allyn and Bacon Series in Advanced Mathematics or Sigma Series in Pure Mathematics.
$\endgroup$$\begingroup$Lawvere, Rosebrugh. Sets for Mathematics.
Pierce B. C. Basic category theory for computer scientists.
Martini. Elements of Basic Category Theory.
Burstall, Rydeheard. Computational category theory. Requires ML background.
$\endgroup$$\begingroup$"Basic category theory"is a script by Jaap van Oosten from Utrecht university (u can find more scripts on topos theory and intuitionism there). Advanced is Introduction in Higher order categorical logic by Lambek & Scott. The 3 vols. from Borceux aswell as Johnstone: Sketches of an elephant, 1-2 are very readable reference for looking up proofs and technical details. Toposes and local set theories by Bell is availlable in Dover prints.
$\endgroup$$\begingroup$$\endgroup$$\begingroup$There is also this Introduction to Applied Category Theory Course offered by MIT. The lectures conducted by David Spivak and Brendan Fong are recorded and posted here. I personally find this a much better introductory material than the other one I posted, despite being a software engineer.
$\endgroup$$\begingroup$A relatively new source tha I believe hasn't been mentioned: Notes on Category Theory with examples from basic mathematics by Paolo Perrone.
$\endgroup$These notes were originally developed as lecture notes for a category theory course. They should be well-suited to anyone that wants to learn category theory from scratch and has a scientific mind. There is no need to know advanced mathematics, nor any of the disciplines where category theory is traditionally applied, such as algebraic geometry or theoretical computer science. The only knowledge that is assumed from the reader is linear algebra. All concepts are explained by giving concrete examples from different, non-specialized areas of mathematics (such as basic group theory, graph theory, and probability). Not every example is helpful for every reader, but hopefully every reader can find at least one helpful example per concept. The reader is encouraged to read all the examples, this way they may even learn something new about a different field.
Particular emphasis is given to the Yoneda lemma and its significance, with both intuitive explanations, detailed proofs, and specific examples. Another common theme in these notes is the relationship between categories and directed multigraphs, which is treated in detail. From the applied point of view, this shows why categorical thinking can help whenever some process is taking place on a graph. From the pure math point of view, this can be seen as the 1-dimensional first step into the theory of simplicial sets. Finally, monads and comonads are treated on an equal footing, differently to most literature in which comonads are often overlooked as "just the dual to monads". Theorems, interpretations and concrete examples are given for monads as well as for comonads.