paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Mixed linear and non-linear recursive types

混合线性与非线性递归类型
ICFP 3(ICFP)2019匹配度 1/10 · 该论文是纯类型论与范畴语义方向,研究线性/非线性递归类型及其模型,未涉及LLM、Agent、静态分析、浮点程序分析或贝叶斯程序分析,与用户当前研究方向几乎无交集。引用 14 inbox
Bert Lindenhovius, Michael Mislove, Vladimir Zamdzhiev
crossref: 2026-09-10

AI 速览

一句话:提出支持线性与非线性混合类型及递归类型的 LNL-FPC 类型系统,并给出可靠且计算充分的范畴模型。

论文研究如何在保留线性类型安全性的同时兼容非线性类型与递归类型,提出线性/非线性不动点演算 LNL-FPC。该类型系统支持类型级递归,并由此诱导项级递归;作者构造了可靠且计算充分的范畴模型,用以描述直觉线性逻辑的子结构操作在所有非线性类型(包括递归类型)上的结构。为构造模型,作者提出一种在 CPO 范畴中通过 pre-embeddings 求解递归域方程的新技术,并通过识别非线性类型的典范余幺半群结构来建模隐式 weakening 与 contraction。最后,作者给出一大类具体模型,表明抽象模型条件合理,并适用于经典函数式编程以及量子编程、电路描述语言等新兴范式。

问题
如何设计同时支持线性类型安全性、非线性类型便利性和递归类型的类型系统,并为其子结构规则与递归结构提供语义基础。
方法
设计 LNL-FPC 演算,支持类型级递归;在 CPO 范畴中利用 pre-embeddings 构造递归域方程的解,并建立刻画直觉线性逻辑子结构操作与非线性类型余幺半群结构的范畴模型。
评估
证明所给范畴模型对 LNL-FPC 是可靠且计算充分的,并构造一大类具体模型,涵盖经典函数式编程以及量子编程与电路描述等应用场景。
原文摘要(Abstract)

We describe a type system with mixed linear and non-linear recursive types called LNL-FPC (the linear/non-linear fixpoint calculus). The type system supports linear typing which enhances the safety properties of programs, but also supports non-linear typing as well which makes the type system more convenient for programming. Just like in FPC, we show that LNL-FPC supports type-level recursion which in turn induces term-level recursion. We also provide sound and computationally adequate categorical models for LNL-FPC which describe the categorical structure of the substructural operations of Intuitionistic Linear Logic at all non-linear types, including the recursive ones. In order to do so, we describe a new technique for solving recursive domain equations within the category CPO by constructing the solutions over pre-embeddings. The type system also enjoys implicit weakening and contraction rules which we are able to model by identifying the canonical comonoid structure of all non-linear types. We also show that the requirements of our abstract model are reasonable by constructing a large class of concrete models that have found applications not only in classical functional programming, but also in emerging programming paradigms that incorporate linear types, such as quantum programming and circuit description programming languages.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot603,
  title = {Mixed linear and non-linear recursive types},
  author = {Bert Lindenhovius and Michael Mislove and Vladimir Zamdzhiev},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {3},
  number = {ICFP},
  year = {2019},
  doi = {10.1145/3341715}
}