Lecture 4: Simply typed λ-calculus as CCC
Teacher: Paul-André Melliès
Reminders
An adjoint pair is a pair of functors
equipped with a family of bijections:
natural in
This operation defines functors:
NB: in Homotopy Type Theory, we don’t currently know how to deal with these opposite categories.
Naturality here amounts to every commutative square
being turned into a commutative square:
Mac Lane’s Parameter theorem
In a cartesian category, we already know that the cartesian product defines a bifunctor.
Similarly, in a CCC: (Mac Lane’s Parameter theorem) the family of cartesian exponentiations
defines a unique bifunctor:
such that the bijections
Every CCC is enriched over itself
In a cartesian closed category, the functor
NB: the terminal object
NB: the converse is not true: a category may be enriched over itself but not cartesian closed.
Example: Topological spaces: not cartesian closed. But a sub-category thereof is:
the category of compactly generated topological spaces (in which every set is closed iff its intersection with every compact is closed) and continuous functios is a CCC.
Simply typed -calculus as CCC
Inference rules/typing judgement:
Logical rules
Structural rules
will be interpreted as
For every type variable
Interpretation of a type
Then, by structural induction, we define
Every sequent
by induction on the derivation tree:
-
Variable:
-
Lambda/Curryfication:
becomes, by adjunction: -
Application:
-
Contraction
becomes -
Weakening
which is isomorphic to
-
Exchange: analogous
Soundness theorem
In every CCC
, the interpretation is an invariant modulo .
If
If
Proof: Similar to the one of subject reduction (preservation of type by
Linear Logic: an intermediate notion
Leave a comment