A diagram model of linear dependent type theory
Abstract
We present a type theory dealing with non-linear, "ordinary" dependent types (which we will call cartesian) and linear types, where both constructs may depend on terms of the former. In the interplay between these, we find new type formers x:AB and x:AB, akin to and , but where the dependent type B, (and therefore the resulting construct) is a linear type. These can be seen as internalizing universal and existential quantification of linear predicates. We also consider two modalities, M and L, transforming linear types into cartesian types and vice versa. The theory is interpreted in a split comprehension category π:T accompanied by a split symmetric monoidal fibration, π: L. This structure determines, for any context , fibers T and L; the category of cartesian types and the monoidal category of linear types over , respectively. Here, the type formers x:A and x:A are understood as right and left adjoints of the monoidal reindexing functor πA*:L_.A. The operators M and L induce a fiberwise adjunction L M between L and T, where the traditional exponential modality is understood as the comonad ! = LM. We provide a model of this theory called the Diagram model, which extends the groupoid model of dependent type theory to accommodate linear types. Here, cartesian types are interpreted as a family of groupoids, while linear types are interpreted as diagrams A: in any symmetric monoidal category V. We show that the diagrams model can under certain conditions support a linear analogue of the univalence axiom, and provide some discussion on the higher-dimensional nature of linear dependent types.