Tuesday, December 1, 2026

Category Theory and Logic as a Theory of Everything

                      [Thank you, Clémentine Laurens for the conversation!]

The May 2026 issue of the French science magazine Epsiloon has an article by Clémentine Laurens with the headline "Et si la théorie des catégories était une théorie du tout ?", that is, "What if category theory were a theory of everything?". She interviewed several of us, including John Baez, Bob Coecke, Jade Master, David Spivak, Gioele Zardini and me. The article tells how category theory, created in the 1940s to move ideas rigorously between topology and algebra and once considered absurdly abstract, is now being used in physics, linguistics, robotics and epidemiology. I've often said that "applied category theory" used to sound like an oxymoron, but it never was one: category theory was always applied to other parts of mathematics, to begin with. The article notes that the field now has a journal,


Compositionality, and an annual conference, already in its ninth edition. It's also honest about the difficulties: the entry cost is high, and nobody quoted claims categories are a magic formula.

I like the article, but its headline asks two questions at once. Is category theory a unifying language for mathematics? Yes, and it has been for decades: algebraic topology, algebraic geometry and much of algebra are now written in its terms. Is it a unifying language for the sciences? That's what we hope, and it's the hope behind applied category theory (ACT). The article's examples are about this second question, and they're recent, mostly from the last twenty years. They're promising, but they don't yet constitute a comparable track record.

There is, however, a substantial track record of category theory working outside pure mathematics, older than what has recently been called ACT: its applications to computer science, both to functional programming and to the semantics of programming languages. And there, category theory has worked together with logic for decades. The simply typed lambda calculus has cartesian closed categories as its natural semantics: types correspond to objects, terms to arrows, and substitution to composition. The Curry–Howard correspondence connects this picture to proofs, bringing logic, programming and category theory together. Moggi used the categorical notion of monads to model computational effects, and Wadler and others brought them into functional programming, where they became part of everyday Haskell practice. Proof assistants such as Lean, Agda and Rocq exploit the proofs-as-programs correspondence through dependent type theories, which themselves admit categorical interpretations.

The connections go back further. In the 1960s, Lawvere showed that quantifiers can be understood as adjoints, and the development of topos theory revealed how categories can carry their own internal logic. When Girard introduced linear logic in 1987, categorical models soon followed, including the Dialectica categories of my 1990 thesis, which connected Gödel's functional interpretation with the new logic. This was not simply a matter of borrowing categorical constructions to describe logical systems. Logical principles suggested categorical structures, and categorical constructions suggested new ways of reasoning. The interaction was productive in both directions.

So is category theory a theory of everything? Not yet, certainly not in the sciences. But its success in mathematics and computer science gives us good reasons to take the ambition seriously. And the history of computer science suggests an important addition: category theory has been extraordinarily successful when developed together with logic.

In the article, David Spivak describes categories as an excellent substitute for logic, more concise and less laborious. I agree about the economy of categorical reasoning, but I don't see categories and logic as alternatives. The history of categorical logic shows how deeply the two subjects have transformed each other. More importantly, their combination has given computer science not just a language for describing programs, but mathematical tools for reasoning about them.

I suspect there is a lesson here for applied category theory as well. Describing systems compositionally is already very valuable. But we also want to reason about those systems: to understand their assumptions, derive consequences, and establish which properties are preserved by composition. Perhaps the next step for ACT is not just to develop a common language for the sciences, but to develop ways of reasoning within that language. Categorical logic has been doing precisely this for decades.

  


No comments:

Post a Comment