arXiv · 2610.23023
Arbitrary Functors as Modalities in a Linear Calculus
Abstract
We study modalities in the linear lambda calculus, by interpreting them as endofunctors in monoidal closed categories. We support functors that do not distribute over products, including (co)monads. We also support arbitrary natural transformations as conversion between modalities. We provide a generic categorical semantics, which we then specialise to a sound and complete resource semantics. We use this resource semantics to derive normalisation by evaluation. Along the way, we describe several applications of such models. This work aims at providing a foundation for future programming languages with modalities. The paper is backed by a mechanisation in Agda.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jean-Philippe Bernardy, Andreas Abel. 2026-10-16. Arbitrary Functors as Modalities in a Linear Calculus. https://arxiv.org/abs/2610.23023
Cite the original work for its findings. Save a collection to share your selection of sources.