10/24/2026
Walking through Chapter 2 from Principles of Dependent Type Theory by Angiuli and Gratzer.
This is first and foremost a pre-meeting log for chatting with Jon Sterling. Questions for the meeting are marked QJon:like this.
Chapter 2 of Principles of Dependent Type Theory (from here on known as The Book) concerns itself with defining the rules of type theory. It begins with the classical formulation of STLC, but quickly moves on to define the concept of the "substitution calculus".
The substitution calculus is a category where objects are contexts,
and morphisms are (backwards) parallel substitutions.
The empty context is terminal.
Thinking back to formalizing different calculi I would also expect that parallel substitution is the right notion here.
On this we have a set (presheaf) of types
In the descriptions of type theory I was used to, I would expect the next step would be, for each connective:
Instead The Book goes on to talk about how each of these can be derived from a (natural) isomorphism. This was quite surprising as to me, connectives in a theory correspond to different universal properties of the source category. For example the CCC structure induces exactly the 3 connectives one would expect in STLC. Through conversations with Beatrice, she told me a fact that natural isomorphisms on presheafs correspond to universal properties in the source category. QJon:Would be nice to chat about this a bit to make sure I understand it. Nonetheless the key idea can bee sen in Slogan 2.5.5:
I find the exact constructions quite involved and will try to work with them a bit to actually get a feel for how they operate. QJon:If you have some more resources on this construction I would happily read them.