Substructural type systems, such as affine (and linear) type systems, are type systems which impose restrictions on copying (and discarding) of variables, and they have found many applications in computer science, including quantum programming. We describe one linear and one affine type systems and we formulate abstract categorical models for both of them which are sound and computationally adequate. We also show, under basic assumptions, that interpreting lambda abstractions via a monoidal closed structure (a popular method for linear type systems) necessarily leads to degenerate and inadequate models for call-by-value affine type systems with recursion. In our categorical treatment, a solution to this problem is clearly presented. Our categorical models are more general than linear/non-linear models used to study linear logic and we present a homogeneous categorical account of both linear and affine type systems in a call-by-value setting. We also give examples with many concrete models, including classical and quantum ones.
翻译:亚结构型系统,如方形(和线性)系统,是限制复制(和丢弃)变量的型号系统,在计算机科学中发现了许多应用,包括量子编程。我们描述一个线性系统和一个线性系统,并为这两种系统设计了健全的、计算上适当的抽象绝对模型。我们还根据基本假设表明,通过单层封闭结构(线性类型系统流行的方法)解释羊羔抽取必然导致逐类呼吁型系统反复出现退化和不充分的模型。在我们绝对的处理办法中,明确提出了解决这个问题的解决方案。我们绝对模型比用于研究线性逻辑的线性/非线性模型更为一般,我们在逐项价值设置中对线性和线性型和线性型系统进行同质的绝对描述。我们还提供了许多具体模型的例子,包括古典和量值模型。