PLLOMay 19

Dependent Multiplicities in Dependent Linear Type Theory

arXiv:2507.0875920.7h-index: 1
Predicted impact top 61% in PL · last 90 daysOriginality Incremental advance
AI Analysis

This work provides a principled resource-aware type system for dependently typed languages, addressing a known limitation in existing linear type theories.

The paper introduces a dependent linear type theory where multiplicities can depend on variables, enabling precise resource annotations for programs with branching and recursion. The theory is implemented in Agda and supports W-types.

We present a novel dependent linear type theory in which the multiplicity of some variable-i.e., the number of times the variable can be used in a program-can depend on other variables. This allows us to give precise resource annotations to programs involving branching and recursion that cannot be adequately typed in other theories. Our type system is obtained by embedding linear logic into dependent type theory and specifying how the embedded logic interacts with the host theory. We can then use the natural numbers of the dependent type theory to derive a quantitative typing system with dependent multiplicities. Our theory supports W-types, thereby giving a principled resource-aware treatment of a large class of inductive types. We characterise the semantics as Categories with Families indexed in symmetric monoidal categories, thereby generalising Quantitative Categories with Families. Existing dependently typed languages can easily be extended with our system, which we demonstrate with an implementation in Agda.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes